@salla.sa/twilight-components 2.14.556 → 2.14.558
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/{esm/cart-DY4LZmNP.js → cjs/cart-DSvlJXCH.js} +4 -2
- package/dist/cjs/{filepond-t0Yy69qV.js → filepond-LS8ytqmE.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DNZM6Czl.js → filepond-plugin-file-poster-DexU9y97.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BPMIodJt.js → filepond-plugin-file-validate-size-BJJ_spY7.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DgYmyGCI.js → filepond-plugin-file-validate-type-BYz_biwv.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-B4itf01h.js → filepond-plugin-image-edit-C3R9xG9P.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Dj43xu10.js → filepond-plugin-image-exif-orientation-DC7e2K9l.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C6Gm9i9o.js → filepond-plugin-image-preview-DLbo1P7r.js} +1 -1
- package/dist/cjs/{index-DyL5Ypj3.js → index-BkcJlC9S.js} +14 -14
- package/dist/cjs/{intlTelInput-BTUy-aYK.js → intlTelInput-DvZz7cvU.js} +1 -1
- 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 +21 -6
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +11 -11
- 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-bullet-delivery_3.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +3 -3
- 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_9.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_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_3.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_2.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-shipments.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 +224 -46
- package/dist/cjs/salla-payments.cjs.entry.js +76 -2
- 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.cjs.entry.js +48 -13
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +33 -4
- package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +279 -33
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +3 -165
- package/dist/cjs/salla-user-menu.cjs.entry.js +3 -3
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C_t8j4f7.js → vanilla-picker-COagKVR0.js} +1 -1
- package/dist/collection/components/salla-button/salla-button.js +32 -2
- package/dist/collection/components/salla-modal/salla-modal.css +34 -16
- package/dist/collection/components/salla-modal/salla-modal.js +27 -2
- package/dist/collection/components/salla-orders/salla-orders.css +122 -0
- package/dist/collection/components/salla-orders/salla-orders.js +231 -45
- package/dist/collection/components/salla-payments/salla-payments.css +3 -0
- package/dist/collection/components/salla-payments/salla-payments.js +74 -0
- package/dist/collection/components/salla-product-card/salla-product-card.css +22 -2
- package/dist/collection/components/salla-product-card/salla-product-card.js +106 -11
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +32 -3
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +2 -1
- package/dist/collection/components/salla-search/interfaces.js +1 -0
- package/dist/collection/components/salla-search/salla-search.css +324 -14
- package/dist/collection/components/salla-search/salla-search.js +179 -32
- package/dist/collection/components/salla-search/utils.js +111 -0
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.css +1 -16
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +1 -163
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-button2.js +13 -2
- package/dist/components/salla-modal2.js +9 -3
- package/dist/components/salla-orders.js +294 -48
- package/dist/components/salla-payments.js +75 -1
- package/dist/components/salla-product-card2.js +50 -12
- package/dist/components/salla-rating-modal-v22.js +32 -3
- package/dist/components/salla-rating-modal2.js +2 -1
- package/dist/components/salla-search.js +392 -39
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-trust-badges.js +2 -164
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/{cjs/cart-s-x1Fshk.js → esm/cart-gFG8By9O.js} +2 -4
- package/dist/esm/{filepond-Dl-e9LIA.js → filepond-D5Fnwsco.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B44qzFr7.js → filepond-plugin-file-poster-BfePPO64.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DeewGi6D.js → filepond-plugin-file-validate-size-CVpLCDVB.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DquQHM9K.js → filepond-plugin-file-validate-type-BhzMnQfH.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DPSC2V4u.js → filepond-plugin-image-edit-Bvj3qwXE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-A-4MC3po.js → filepond-plugin-image-exif-orientation-NlBBLgPL.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-vvc3KNls.js → filepond-plugin-image-preview-CA1k8ex-.js} +1 -1
- package/dist/esm/{index-BJmvvw9H.js → index-B6Lo-Jz2.js} +14 -14
- package/dist/esm/{intlTelInput-DFX9QeWQ.js → intlTelInput-nu7FH85H.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 +21 -6
- package/dist/esm/salla-add-product-button_5.entry.js +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +3 -3
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-applied-filters.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +11 -11
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +3 -3
- 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_9.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_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- 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.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_3.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_2.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-shipments.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 +224 -46
- package/dist/esm/salla-payments.entry.js +76 -2
- 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.entry.js +48 -13
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +33 -4
- package/dist/esm/salla-rating-modal.entry.js +3 -2
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +279 -33
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +3 -165
- package/dist/esm/salla-user-menu.entry.js +3 -3
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Ld2F0WbU.js → vanilla-picker-Dn7Q0By-.js} +1 -1
- package/dist/twilight/{p-f0c19b59.entry.js → p-00f3dc2a.entry.js} +1 -1
- package/dist/twilight/{p-cc3c48b4.entry.js → p-051740db.entry.js} +1 -1
- package/dist/twilight/{p-95b8806a.entry.js → p-05f65278.entry.js} +1 -1
- package/dist/twilight/{p-3ec284fd.entry.js → p-0e9845d3.entry.js} +1 -1
- package/dist/twilight/{p-5391291e.entry.js → p-0ea66288.entry.js} +1 -1
- package/dist/twilight/{p-6b3e668c.entry.js → p-0f9d25c2.entry.js} +1 -1
- package/dist/twilight/{p-f6e44ad6.entry.js → p-100cb969.entry.js} +1 -1
- package/dist/twilight/{p-b654ffbd.entry.js → p-11234d66.entry.js} +1 -1
- package/dist/twilight/{p-54b4dec6.entry.js → p-1546f64d.entry.js} +1 -1
- package/dist/twilight/{p-bd68067a.entry.js → p-191b4fa6.entry.js} +1 -1
- package/dist/twilight/p-19607f60.entry.js +4 -0
- package/dist/twilight/p-1d1bbac7.entry.js +4 -0
- package/dist/twilight/{p-7e7f0849.entry.js → p-1d220636.entry.js} +1 -1
- package/dist/twilight/{p-7d0e8486.entry.js → p-1d9aa36c.entry.js} +1 -1
- package/dist/twilight/{p-1b97e436.entry.js → p-257717f5.entry.js} +1 -1
- package/dist/twilight/{p-ec27e0f4.entry.js → p-289574f0.entry.js} +1 -1
- package/dist/twilight/{p-d4263617.entry.js → p-28aeea5d.entry.js} +1 -1
- package/dist/twilight/{p-4df9ca99.entry.js → p-29a9ff44.entry.js} +1 -1
- package/dist/twilight/{p-1882e5b9.entry.js → p-2cb160a8.entry.js} +1 -1
- package/dist/twilight/{p-d8808de5.entry.js → p-2dc5f115.entry.js} +1 -1
- package/dist/twilight/{p-75e126cc.entry.js → p-2de7945d.entry.js} +1 -1
- package/dist/twilight/{p-a1ce8d6d.entry.js → p-2ebe428c.entry.js} +1 -1
- package/dist/twilight/{p-45b85a45.entry.js → p-31c017ae.entry.js} +1 -1
- package/dist/twilight/{p-8a640353.entry.js → p-344e7a53.entry.js} +1 -1
- package/dist/twilight/{p-4023d48a.entry.js → p-3661b790.entry.js} +1 -1
- package/dist/twilight/{p-55c89592.entry.js → p-3c312812.entry.js} +1 -1
- package/dist/twilight/{p-e209addd.entry.js → p-3f12a3a2.entry.js} +1 -1
- package/dist/twilight/{p-d16a17d2.entry.js → p-400c631e.entry.js} +1 -1
- package/dist/twilight/{p-d9e98286.entry.js → p-44f20e64.entry.js} +1 -1
- package/dist/twilight/{p-5af2868f.entry.js → p-4604590c.entry.js} +1 -1
- package/dist/twilight/{p-5b148ad4.entry.js → p-4c422a3d.entry.js} +1 -1
- package/dist/twilight/{p-d5a486bb.entry.js → p-4f645457.entry.js} +1 -1
- package/dist/twilight/{p-5ab257bf.entry.js → p-529a60e2.entry.js} +1 -1
- package/dist/twilight/{p-f37147c7.entry.js → p-5a2150e8.entry.js} +1 -1
- package/dist/twilight/{p-e0f7a4e1.entry.js → p-5d6db148.entry.js} +1 -1
- package/dist/twilight/{p-4ca525cb.entry.js → p-5d6f9c3e.entry.js} +1 -1
- package/dist/twilight/{p-2f59ef9c.entry.js → p-5dcf8a71.entry.js} +1 -1
- package/dist/twilight/{p-c266feb3.entry.js → p-5f4331f0.entry.js} +1 -1
- package/dist/twilight/{p-91351958.entry.js → p-5ffdb544.entry.js} +1 -1
- package/dist/twilight/{p-c4582e2b.entry.js → p-63b48fb1.entry.js} +1 -1
- package/dist/twilight/{p-291d6f2b.entry.js → p-647a1b63.entry.js} +1 -1
- package/dist/twilight/{p-92992a1e.entry.js → p-6840449d.entry.js} +1 -1
- package/dist/twilight/{p-99af9a68.entry.js → p-747fdf8c.entry.js} +1 -1
- package/dist/twilight/{p-918eb4b7.entry.js → p-7512638e.entry.js} +1 -1
- package/dist/twilight/{p-6d7629ee.entry.js → p-75ba562a.entry.js} +1 -1
- package/dist/twilight/{p-3bba916f.entry.js → p-7639c5a8.entry.js} +1 -1
- package/dist/twilight/{p-e64ad9de.entry.js → p-778f38ce.entry.js} +1 -1
- package/dist/twilight/{p-275b49b7.entry.js → p-785ac87d.entry.js} +1 -1
- package/dist/twilight/{p-90d5e633.entry.js → p-78cba566.entry.js} +1 -1
- package/dist/twilight/{p-e0e614d1.entry.js → p-7a78cbcd.entry.js} +1 -1
- package/dist/twilight/{p-3eb18438.entry.js → p-7b286e8d.entry.js} +1 -1
- package/dist/twilight/{p-2f2956d9.entry.js → p-8284d68b.entry.js} +1 -1
- package/dist/twilight/{p-4af910f1.entry.js → p-86622485.entry.js} +1 -1
- package/dist/twilight/{p-67efee3a.entry.js → p-8ca39b58.entry.js} +1 -1
- package/dist/twilight/{p-12a43d43.entry.js → p-8e10a9a9.entry.js} +1 -1
- package/dist/twilight/{p-dff3411a.entry.js → p-8ee698cc.entry.js} +1 -1
- package/dist/twilight/{p-89a82ff5.entry.js → p-8f11c556.entry.js} +1 -1
- package/dist/twilight/p-91ab3a03.entry.js +4 -0
- package/dist/twilight/{p-Ye-NG0xO.js → p-9L0Aq4PZ.js} +1 -1
- package/dist/twilight/{p-BJmvvw9H.js → p-B6Lo-Jz2.js} +1 -1
- package/dist/twilight/{p-BUfrGdXG.js → p-Ble2-eBI.js} +1 -1
- package/dist/twilight/{p-pCB_h2Xn.js → p-BopTxsQ2.js} +1 -1
- package/dist/twilight/{p-SDB-lCJg.js → p-CMHD60jb.js} +1 -1
- package/dist/twilight/{p-DXzyepGb.js → p-CUuXQJdT.js} +1 -1
- package/dist/twilight/{p-DpFFhlK6.js → p-CvrBhStg.js} +1 -1
- package/dist/twilight/{p-BscSw0sZ.js → p-DexDAAf1.js} +1 -1
- package/dist/twilight/{p-CLEHV1kt.js → p-Dgq6RHqV.js} +1 -1
- package/dist/twilight/{p-VDJLgJLw.js → p-VJGJYEfb.js} +1 -1
- package/dist/twilight/p-a1035984.entry.js +4 -0
- package/dist/twilight/{p-74f730e1.entry.js → p-a50073b5.entry.js} +1 -1
- package/dist/twilight/{p-4fdc296f.entry.js → p-a82db499.entry.js} +1 -1
- package/dist/twilight/{p-99702306.entry.js → p-a8d3ae7e.entry.js} +1 -1
- package/dist/twilight/p-a8d90638.entry.js +4 -0
- package/dist/twilight/{p-bfb82c90.entry.js → p-abce7e02.entry.js} +1 -1
- package/dist/twilight/{p-ba5546ab.entry.js → p-ad12ab8c.entry.js} +1 -1
- package/dist/twilight/{p-427d38a0.entry.js → p-adb31a76.entry.js} +1 -1
- package/dist/twilight/{p-601013e8.entry.js → p-b5a68a1a.entry.js} +1 -1
- package/dist/twilight/{p-fdc36d7c.entry.js → p-b695db2e.entry.js} +1 -1
- package/dist/twilight/{p-e1cca558.entry.js → p-ba941354.entry.js} +1 -1
- package/dist/twilight/{p-fa1900ec.entry.js → p-bb94c4e4.entry.js} +1 -1
- package/dist/twilight/{p-fc0304bf.entry.js → p-bbfaf5ac.entry.js} +1 -1
- package/dist/twilight/{p-2815c25a.entry.js → p-be292e0b.entry.js} +1 -1
- package/dist/twilight/{p-cb892619.entry.js → p-be34bd30.entry.js} +1 -1
- package/dist/twilight/{p-cddd3975.entry.js → p-bf2f2a36.entry.js} +1 -1
- package/dist/twilight/p-bfa7a257.entry.js +4 -0
- package/dist/twilight/{p-17522796.entry.js → p-c39c8112.entry.js} +1 -1
- package/dist/twilight/{p-3a1fd71a.entry.js → p-c56e1aa1.entry.js} +1 -1
- package/dist/twilight/{p-91f9f647.entry.js → p-c8c09f5c.entry.js} +1 -1
- package/dist/twilight/{p-a893e7e3.entry.js → p-c8c34286.entry.js} +1 -1
- package/dist/twilight/{p-88045527.entry.js → p-d41903f9.entry.js} +1 -1
- package/dist/twilight/{p-13011571.entry.js → p-d55b86b5.entry.js} +1 -1
- package/dist/twilight/{p-2fddb802.entry.js → p-d72e0350.entry.js} +1 -1
- package/dist/twilight/{p-95918a1a.entry.js → p-d96bc0c1.entry.js} +1 -1
- package/dist/twilight/{p-62dfd479.entry.js → p-db9f8104.entry.js} +2 -2
- package/dist/twilight/p-dd734bcb.entry.js +4 -0
- package/dist/twilight/p-df9d5f85.entry.js +4 -0
- package/dist/twilight/{p-8d7bfcf6.entry.js → p-e3a45456.entry.js} +1 -1
- package/dist/twilight/{p-6e08f950.entry.js → p-e5169250.entry.js} +1 -1
- package/dist/twilight/{p-a1738bf0.entry.js → p-ea606acc.entry.js} +1 -1
- package/dist/twilight/{p-2ce0c4ca.entry.js → p-effc8ceb.entry.js} +1 -1
- package/dist/twilight/{p-0d3be88f.entry.js → p-f2fb1121.entry.js} +1 -1
- package/dist/twilight/{p-5527801b.entry.js → p-fa7c358f.entry.js} +1 -1
- package/dist/twilight/{p-DY4LZmNP.js → p-gFG8By9O.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-button/salla-button.d.ts +6 -0
- package/dist/types/components/salla-modal/salla-modal.d.ts +5 -0
- package/dist/types/components/salla-orders/interface.d.ts +1 -0
- package/dist/types/components/salla-orders/salla-orders.d.ts +29 -2
- package/dist/types/components/salla-payments/salla-payments.d.ts +4 -0
- package/dist/types/components/salla-product-card/salla-product-card.d.ts +18 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +7 -0
- package/dist/types/components/salla-search/interfaces.d.ts +21 -0
- package/dist/types/components/salla-search/salla-search.d.ts +40 -2
- package/dist/types/components/salla-search/utils.d.ts +19 -0
- package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +0 -22
- package/dist/types/components.d.ts +50 -0
- package/package.json +5 -5
- package/dist/twilight/p-08fa9f0b.entry.js +0 -4
- package/dist/twilight/p-1066a05c.entry.js +0 -4
- package/dist/twilight/p-11afb8be.entry.js +0 -4
- package/dist/twilight/p-164cb0d8.entry.js +0 -4
- package/dist/twilight/p-5ecc99df.entry.js +0 -4
- package/dist/twilight/p-acc63da6.entry.js +0 -4
- package/dist/twilight/p-bb082b47.entry.js +0 -4
- package/dist/twilight/p-f3eab493.entry.js +0 -4
|
@@ -27,7 +27,7 @@ const SallaSkeleton = /*@__PURE__*/ proxyCustomElement(class SallaSkeleton exten
|
|
|
27
27
|
's-skeleton-item': true,
|
|
28
28
|
's-skeleton-item-circular': this.type == 'circle',
|
|
29
29
|
};
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '363b803ca0428a575313a96b569ddab7f67b3703', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: 'bd1e4607e4753ef8b148a125b8d9bc60ca20dc72', class: classes }, "\u00A0")));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return sallaSkeletonCss; }
|
|
33
33
|
}, [0, "salla-skeleton", {
|
|
@@ -383,7 +383,7 @@ const SallaSocialShare = /*@__PURE__*/ proxyCustomElement(class SallaSocialShare
|
|
|
383
383
|
})));
|
|
384
384
|
}
|
|
385
385
|
render() {
|
|
386
|
-
return (h("div", { key: '
|
|
386
|
+
return (h("div", { key: '4de560059da2e2dd232bbcd693cd8ad937da9c8e', class: "s-social-share-wrapper" }, h("slot", { key: '7ab0a6d03088e0c741c5f432c6c8991db1f0e7b8', name: "widget" }, h("salla-button", { key: '574fc864d8552114ead6061740581d72521fd38d', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'c8456382fec13bf8b9a429ca199780b242d7992e', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
387
387
|
}
|
|
388
388
|
get host() { return this; }
|
|
389
389
|
static get watchers() { return {
|
|
@@ -56,7 +56,7 @@ const SallaSocial$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocial extends
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
const linksArray = this.getLinksArray();
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'd084cee5461e8e68ca735b86b6d453fe761280ad' }, h("ul", { key: 'e83912816c1b2f2ec1f00f1991b2ca1afd21ffe5', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
60
60
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
61
61
|
.replace(/\{type\}/g, link.type)
|
|
62
62
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -32,7 +32,7 @@ const SallaTabContent = /*@__PURE__*/ proxyCustomElement(class SallaTabContent e
|
|
|
32
32
|
's-tabs-content': true,
|
|
33
33
|
's-tabs-content-selected': this.isSelected
|
|
34
34
|
};
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '12884a255f05baac9d70e8b0d2144a369fdd3cfc', class: classes }, h("slot", { key: '331d86d51ec576614e69e7190ab3cd9c31ed9117' })));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return sallaTabContentCss; }
|
|
38
38
|
}, [4, "salla-tab-content", {
|
|
@@ -58,7 +58,7 @@ const SallaTabHeader = /*@__PURE__*/ proxyCustomElement(class SallaTabHeader ext
|
|
|
58
58
|
's-tabs-active': this.isSelected,
|
|
59
59
|
};
|
|
60
60
|
return [
|
|
61
|
-
h("div", { key: '
|
|
61
|
+
h("div", { key: 'd9f961d47da1347b5b5f4677b3a3905f073b7b63', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '056593968bd13d806fa34a481e5ab773e23e8084' })),
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
static get style() { return sallaTabHeaderCss; }
|
|
@@ -51,7 +51,7 @@ const SallaTabs = /*@__PURE__*/ proxyCustomElement(class SallaTabs extends HTMLE
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
return [
|
|
54
|
-
h("div", { key: '
|
|
54
|
+
h("div", { key: '84647185ccebd52494bfff8cf9468a833dfda468', class: "s-tabs" }, h("div", { key: 'bfec0faae20e236920197fc9a518cb3fae7e820e', class: "s-tabs-header" }, h("slot", { key: '51c0297a5c75395e867e7621780fd030253393dc', name: "header" })), h("div", { key: 'b3c155ba7de23b62de2f23d0b3ac4232937f7a57', class: "s-tabs-content-wrapper" }, h("slot", { key: '2d1d90a7bed705c01efb05a8ab1ea5be543d71dc', name: "content" })))
|
|
55
55
|
];
|
|
56
56
|
}
|
|
57
57
|
get host() { return this; }
|
|
@@ -144,7 +144,7 @@ const SallaTelInput = /*@__PURE__*/ proxyCustomElement(class SallaTelInput exten
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '6e279f9a491d7ee129f4ccb7f64017c17bbb2229', class: "s-tel-input" }, h("input", { key: '5b0eabc113b9a766218be76e055d2cbc2f83365a', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'f609b8bf28bceb61d06f9eaf3d06c26a4cabcc4e', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '10bc24025a5932b85bfa5a1ede6e203e33dddb6f', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
148
148
|
}
|
|
149
149
|
componentDidLoad() {
|
|
150
150
|
this.initPromise = this.initTelInput();
|
|
@@ -32,7 +32,7 @@ const SallaTooltip = /*@__PURE__*/ proxyCustomElement(class SallaTooltip extends
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'c2172752ccc5634d2223042d359571d4ba4e6816', class: "s-tooltip-container" }, h("div", { key: 'b37b92c725bdad1ff3fc10caedd2fe98b506f5e7', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
36
36
|
}
|
|
37
37
|
get el() { return this; }
|
|
38
38
|
static get style() { return sallaTooltipCss; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
|
|
6
|
-
const sallaTrustBadgesCss = "/*!twlt*/.
|
|
6
|
+
const sallaTrustBadgesCss = "/*!twlt*/.s-trust-badges-wrapper{display:flex;align-items:center}.s-trust-badges-wrapper>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))}.s-trust-badges-wrapper:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-trust-badges-label{margin-bottom:0.25rem;font-size:0.875rem;line-height:1.25rem}.s-trust-badges-number{font-size:0.875rem;line-height:1.25rem}";
|
|
7
7
|
|
|
8
8
|
const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadges extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -15,172 +15,14 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
15
15
|
this.dark = false;
|
|
16
16
|
this.commercialRegisterLabel = '';
|
|
17
17
|
this.freelanceLabel = '';
|
|
18
|
-
this.cachedChain = [];
|
|
19
|
-
this.enforceVisibility = () => {
|
|
20
|
-
const host = this.hostEl;
|
|
21
|
-
if (!host || !host.isConnected)
|
|
22
|
-
return;
|
|
23
|
-
const badgeData = this.getBadgeData();
|
|
24
|
-
if (!badgeData)
|
|
25
|
-
return;
|
|
26
|
-
if (this.isHostVisible(host))
|
|
27
|
-
return;
|
|
28
|
-
for (const el of this.getAncestorChain(host)) {
|
|
29
|
-
const computed = getComputedStyle(el);
|
|
30
|
-
if (computed.display === 'none') {
|
|
31
|
-
el.style.setProperty('display', 'flex', 'important');
|
|
32
|
-
}
|
|
33
|
-
if (computed.visibility === 'hidden' || computed.visibility === 'collapse') {
|
|
34
|
-
el.style.setProperty('visibility', 'visible', 'important');
|
|
35
|
-
}
|
|
36
|
-
if (parseFloat(computed.opacity) < SallaTrustBadges.OPACITY_THRESHOLD) {
|
|
37
|
-
el.style.setProperty('opacity', '1', 'important');
|
|
38
|
-
}
|
|
39
|
-
if (computed.contentVisibility === 'hidden') {
|
|
40
|
-
el.style.setProperty('content-visibility', 'visible', 'important');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
this.runEnforce = () => {
|
|
45
|
-
this.clearEnforceTimers();
|
|
46
|
-
this.enforceVisibility();
|
|
47
|
-
};
|
|
48
18
|
}
|
|
49
19
|
componentWillLoad() {
|
|
50
20
|
this.initializeTranslations();
|
|
51
21
|
}
|
|
52
|
-
|
|
53
|
-
await salla.onReady();
|
|
54
|
-
if (!this.isVisibilityEnforced())
|
|
55
|
-
return;
|
|
56
|
-
this.setupVisibilityGuard();
|
|
57
|
-
this.scheduleEnforce();
|
|
58
|
-
}
|
|
59
|
-
componentDidRender() {
|
|
60
|
-
this.scheduleEnforce();
|
|
61
|
-
}
|
|
62
|
-
disconnectedCallback() {
|
|
63
|
-
this.attrObserver?.disconnect();
|
|
64
|
-
this.attrObserver = undefined;
|
|
65
|
-
this.moveObserver?.disconnect();
|
|
66
|
-
this.moveObserver = undefined;
|
|
67
|
-
this.cachedChain = [];
|
|
68
|
-
this.clearEnforceTimers();
|
|
69
|
-
}
|
|
70
|
-
// Visibility enforcement is a KSA-only legal requirement.
|
|
22
|
+
// The badge image is a KSA-only legal requirement.
|
|
71
23
|
isVisibilityEnforced() {
|
|
72
24
|
return salla.config.get('store.store_country') === 'SA';
|
|
73
25
|
}
|
|
74
|
-
getAncestorChain(host) {
|
|
75
|
-
const chain = [];
|
|
76
|
-
let el = host;
|
|
77
|
-
while (el) {
|
|
78
|
-
chain.push(el);
|
|
79
|
-
if (el === document.documentElement)
|
|
80
|
-
break;
|
|
81
|
-
el = el.parentElement;
|
|
82
|
-
}
|
|
83
|
-
return chain;
|
|
84
|
-
}
|
|
85
|
-
didChainChange(host) {
|
|
86
|
-
const now = this.getAncestorChain(host);
|
|
87
|
-
if (now.length !== this.cachedChain.length)
|
|
88
|
-
return true;
|
|
89
|
-
for (let i = 0; i < now.length; i++) {
|
|
90
|
-
if (now[i] !== this.cachedChain[i])
|
|
91
|
-
return true;
|
|
92
|
-
}
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
isHostVisible(host) {
|
|
96
|
-
return typeof host.checkVisibility === 'function'
|
|
97
|
-
? host.checkVisibility({
|
|
98
|
-
contentVisibilityAuto: true,
|
|
99
|
-
opacityProperty: true,
|
|
100
|
-
visibilityProperty: true,
|
|
101
|
-
})
|
|
102
|
-
: this.isVisibleFallback(host);
|
|
103
|
-
}
|
|
104
|
-
isVisibleFallback(host) {
|
|
105
|
-
let el = host;
|
|
106
|
-
while (el) {
|
|
107
|
-
const cs = getComputedStyle(el);
|
|
108
|
-
if (cs.display === 'none')
|
|
109
|
-
return false;
|
|
110
|
-
if (cs.visibility === 'hidden' || cs.visibility === 'collapse')
|
|
111
|
-
return false;
|
|
112
|
-
if (parseFloat(cs.opacity) < SallaTrustBadges.OPACITY_THRESHOLD)
|
|
113
|
-
return false;
|
|
114
|
-
if (cs.contentVisibility === 'hidden')
|
|
115
|
-
return false;
|
|
116
|
-
if (el === document.documentElement)
|
|
117
|
-
break;
|
|
118
|
-
el = el.parentElement;
|
|
119
|
-
}
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
clearEnforceTimers() {
|
|
123
|
-
if (this.enforceTimer !== undefined) {
|
|
124
|
-
clearTimeout(this.enforceTimer);
|
|
125
|
-
this.enforceTimer = undefined;
|
|
126
|
-
}
|
|
127
|
-
if (this.maxWaitTimer !== undefined) {
|
|
128
|
-
clearTimeout(this.maxWaitTimer);
|
|
129
|
-
this.maxWaitTimer = undefined;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
scheduleEnforce() {
|
|
133
|
-
if (!this.isVisibilityEnforced())
|
|
134
|
-
return;
|
|
135
|
-
// Debounce waits for an entrance animation to settle; maxWait bounds it so endless chain mutations can't starve the repair.
|
|
136
|
-
if (this.enforceTimer !== undefined)
|
|
137
|
-
clearTimeout(this.enforceTimer);
|
|
138
|
-
this.enforceTimer = setTimeout(this.runEnforce, SallaTrustBadges.ENFORCE_DEBOUNCE_MS);
|
|
139
|
-
if (this.maxWaitTimer === undefined) {
|
|
140
|
-
this.maxWaitTimer = setTimeout(this.runEnforce, SallaTrustBadges.ENFORCE_MAX_WAIT_MS);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
setupVisibilityGuard() {
|
|
144
|
-
const host = this.hostEl;
|
|
145
|
-
if (!host || typeof MutationObserver === 'undefined')
|
|
146
|
-
return;
|
|
147
|
-
this.attrObserver?.disconnect();
|
|
148
|
-
this.moveObserver?.disconnect();
|
|
149
|
-
this.attrObserver = new MutationObserver(() => {
|
|
150
|
-
const h = this.hostEl;
|
|
151
|
-
if (!h || !h.isConnected)
|
|
152
|
-
return;
|
|
153
|
-
if (this.isHostVisible(h))
|
|
154
|
-
return;
|
|
155
|
-
this.scheduleEnforce();
|
|
156
|
-
});
|
|
157
|
-
this.attachAttrObserver(host);
|
|
158
|
-
this.moveObserver = new MutationObserver(() => {
|
|
159
|
-
const h = this.hostEl;
|
|
160
|
-
if (!h || !h.isConnected)
|
|
161
|
-
return;
|
|
162
|
-
if (!this.didChainChange(h))
|
|
163
|
-
return;
|
|
164
|
-
this.attachAttrObserver(h);
|
|
165
|
-
this.scheduleEnforce();
|
|
166
|
-
});
|
|
167
|
-
this.moveObserver.observe(document.documentElement, {
|
|
168
|
-
childList: true,
|
|
169
|
-
subtree: true,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
attachAttrObserver(host) {
|
|
173
|
-
if (!this.attrObserver)
|
|
174
|
-
return;
|
|
175
|
-
this.attrObserver.disconnect();
|
|
176
|
-
this.cachedChain = this.getAncestorChain(host);
|
|
177
|
-
for (const el of this.cachedChain) {
|
|
178
|
-
this.attrObserver.observe(el, {
|
|
179
|
-
attributes: true,
|
|
180
|
-
attributeFilter: ['style', 'class', 'hidden'],
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
26
|
initializeTranslations() {
|
|
185
27
|
salla.lang.onLoaded(() => {
|
|
186
28
|
// Set translations synchronously
|
|
@@ -228,16 +70,12 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
228
70
|
}
|
|
229
71
|
return (h(Host, { class: `s-trust-badges-wrapper ${this.dark ? 'dark' : ''}` }, this.isVisibilityEnforced() ? h("img", { class: "s-trust-badges-image", width: "55", height: "55", src: badgeData.imageUrl, alt: badgeData.label }) : null, h("div", { class: "s-trust-badges-content" }, h("p", { class: "s-trust-badges-label" }, badgeData.label), h("b", { class: "s-trust-badges-number" }, badgeData.number))));
|
|
230
72
|
}
|
|
231
|
-
get hostEl() { return this; }
|
|
232
73
|
static get style() { return sallaTrustBadgesCss; }
|
|
233
74
|
}, [0, "salla-trust-badges", {
|
|
234
75
|
"dark": [4],
|
|
235
76
|
"commercialRegisterLabel": [32],
|
|
236
77
|
"freelanceLabel": [32]
|
|
237
78
|
}]);
|
|
238
|
-
SallaTrustBadges$1.OPACITY_THRESHOLD = 0.1;
|
|
239
|
-
SallaTrustBadges$1.ENFORCE_DEBOUNCE_MS = 1500;
|
|
240
|
-
SallaTrustBadges$1.ENFORCE_MAX_WAIT_MS = 3000;
|
|
241
79
|
function defineCustomElement$1() {
|
|
242
80
|
if (typeof customElements === "undefined") {
|
|
243
81
|
return;
|
|
@@ -559,7 +559,7 @@ const SallaUserSettings$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserSett
|
|
|
559
559
|
return (h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeleteModal() }, this.capitalizeText(this.deleteAccount)));
|
|
560
560
|
}
|
|
561
561
|
render() {
|
|
562
|
-
return (h(Host, { key: '
|
|
562
|
+
return (h(Host, { key: 'ec31f48a8214240020804541d58e1745c429f2a5', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '1a4fb3a3e47729891772838df0dca41f52e5d017', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'f965243eca4953d588ea6ef27a581f00839482ff' }, h("div", { key: 'd08fb75de39b78c02455b9ede326e0563a675762', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '4bacfb410376c98a14c7289968293a5c06520bbd', innerHTML: UserCancel })), h("div", { key: '61bbccd47940a87db9faee8a6a305aff0b5f0783', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '3b02ec766d677d37d09df8ae91fae883b3e8b35d', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'da7358399c5e1e8a94082585820f44e2de9d352d', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: 'f64e96e150cd78ed41b104d845774ae31187a33e', class: "s-toggle" }, h("input", { key: '69b07baebf7c0869c37b29a920851be99dbfddc8', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '94e8675dcb56084c0581fb26f96ce0122c8898e5', class: "s-toggle-switcher" })))))), h("div", { key: '940db4113264ca36dc5283d17597a85d85c4b5b4', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'f6c8e5cbebb295826be0bfac8ae427df9cf692bf' }, h("div", { key: 'c81a3c392df36b97777d74521482266a9444a79c', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '1a5a19818579890be2ecb12848e30cf034f8569b', innerHTML: Bullhorn })), h("div", { key: '5849731b90184af7225d120b5e1077e49301e379', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '3aeda4ebfa9715d81272dd4be1e5b223f43d79fe', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '60db45c279de365c10ae40ba486afd8609f5d2b2', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '1b855ffd24570fe90badbd18bbab2c8032f320b7', class: "s-toggle" }, h("input", { key: '9cdd0d736ed9baf0f5628803a9a4b93c5389cc51', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '35ba9556185bb4991fc91b343573e723cd888115', class: "s-toggle-switcher" }))))), this.isDeleteAccountEnabled ? (h("div", { class: "s-user-settings-section s-user-settings-section-delete-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, this.renderUserDeleteIcon()), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deleteAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.isDeletePending ? this.deleteAccountPending : this.deleteAccountDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, this.renderDeleteSectionAction())))) : (h("div", { class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, h("span", { innerHTML: UserOff })), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount)))))), this.isDeleteAccountEnabled ? (h("salla-modal", { id: "salla-user-settings-delete-modal", width: "xs", centered: true, showBack: this.currentStep === 'otp', isClosable: this.currentStep !== 'success', iconStyle: this.currentStep === 'success' ? 'success' : undefined, onModalVisibilityChanged: e => this.handleModalVisibilityChanged(e), onModalBack: () => this.goBackFromOtp(), ref: modal => (this.confirmationModal = modal) }, this.currentStep !== 'success' ? (h("span", { slot: "icon", class: "s-user-settings-delete-icon" }, this.renderUserDeleteIcon())) : null, h("div", { key: this.currentStep, class: "s-user-settings-delete-step" }, this.renderDeleteStep()))) : (h("salla-modal", { width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => (this.confirmationModal = modal) }, h("span", { slot: "icon", class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { class: "s-user-settings-confirmation" }, h("div", { class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { class: "s-user-settings-confirmation-actions" }, h("salla-button", { width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { fill: "outline", loading: this.buttonLoading, width: "wide", onClick: () => this.confirmDeactivateAccount() }, this.capitalizeText(this.deactivateAccount))))))));
|
|
563
563
|
}
|
|
564
564
|
static get style() { return sallaUserSettingsCss; }
|
|
565
565
|
}, [0, "salla-user-settings", {
|
|
@@ -320,7 +320,7 @@ const SallaWishlistActions$1 = /*@__PURE__*/ proxyCustomElement(class SallaWishl
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
render() {
|
|
323
|
-
return (h(Host, { key: '
|
|
323
|
+
return (h(Host, { key: 'f98d4568e05ea8ada4b2128764ece4b8ecf0e9b1' }, h("div", { key: '178e589f317fc00edfc2d96cb8d9b50313271061', class: "s-wishlist-actions" }, h("div", { key: 'be8dd06107f7771e665ae7bb5662a98ef6ed844f', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '4b22a0f0b996013adc598b4b5c7a7e85f59ae9cb', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: 'beb6be8e267af9b64fb8986a00cbe582d3089bca', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: '11a5a5f0817b073fd77f843eeaea7821fe39b603', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '5b7bbbcc99d112e2fc8c22370c086cc07096f671', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'df1dfe257dab464c24bf4c30ed40013fbf9bb6bb', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: '288e753722bd5001240cb9a20b766268343a1a2b', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'c3b23ff2f73fb4d8dda9ecf7e66c672db22af1f1', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '168954288e17549aca31b030701b2527f3dfe29a', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '233853081fe20fbe460c8a59cd986346bdf86a7e' }, h("button", { key: '51503bb20856bc0db7256fdad7e14782218c2d8b', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: '3de41498ab832ca59b13eb3ceacea085bd739c99' }, h("button", { key: '02f19350401c0cea15cf4fbfb40b9fd3201a775f', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '5b50b216a0b3f26705bfb9d5fb08289171bfb9db', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'a0526c7a5a42b3d227e8ee60ccae567539a78b32', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: 'a4674671b6ebb3f24a89175094c179e28edd5356', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: 'ac840ff8d4097a8a8a88a7b2b69616a2774a34ca', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: 'e237aad2710b60f89a063851c5073973bcfcde16', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: 'f843c9b25131632ecd59b82848105dbc0d60e050', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: 'aebdee1c3b1128bde388ad3525ddb8b8e2224f6c', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: 'cc978cf0b71194497525e691da25809246bbf15e', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '06693bd6ecea8b470bf63c7de4f5e0ffad4dd96b', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
324
324
|
}
|
|
325
325
|
get host() { return this; }
|
|
326
326
|
static get style() { return sallaWishlistActionsCss; }
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var PendingOrdersIcon = `<!-- Generated by IcoMoon.io -->
|
|
4
|
+
var Cart = `<!-- Generated by IcoMoon.io -->
|
|
7
5
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">
|
|
8
6
|
<title>cart</title>
|
|
9
7
|
<path d="M15.426 28.084c0-1.412-0.85-2.684-2.156-3.226-1.305-0.54-2.807-0.241-3.805 0.758-0.999 0.998-1.298 2.5-0.758 3.805 0.54 1.303 1.815 2.155 3.226 2.155 1.928-0.003 3.49-1.564 3.492-3.492h0.001zM10.597 28.084h0.001c0-0.54 0.326-1.027 0.825-1.235 0.498-0.206 1.074-0.091 1.455 0.29 0.383 0.382 0.497 0.957 0.29 1.456-0.208 0.5-0.695 0.825-1.235 0.825-0.355 0-0.695-0.142-0.944-0.391-0.251-0.251-0.392-0.591-0.392-0.946h-0.001l0.001 0.001zM28.23 28.084c0-1.412-0.85-2.684-2.155-3.226-1.305-0.54-2.807-0.241-3.806 0.758s-1.297 2.5-0.756 3.805c0.54 1.303 1.813 2.155 3.226 2.155 1.927-0.003 3.49-1.564 3.491-3.492zM23.401 28.084c0-0.54 0.326-1.027 0.825-1.235 0.5-0.206 1.075-0.091 1.457 0.29s0.497 0.957 0.289 1.456c-0.206 0.5-0.693 0.825-1.233 0.825-0.738 0-1.337-0.599-1.337-1.337l-0.001 0.001zM1.953 0.234l-0.342-0.059c-0.29-0.064-0.594-0.004-0.839 0.166-0.247 0.169-0.414 0.436-0.463 0.734-0.050 0.3 0.023 0.607 0.201 0.85s0.444 0.402 0.738 0.44l0.341 0.059c1.825 0.324 3.248 1.794 3.548 3.662l1.981 12.369h-0.001c0.218 1.387 0.913 2.651 1.96 3.563s2.379 1.412 3.754 1.41h14.242c0.601 0 1.088-0.498 1.088-1.112s-0.487-1.112-1.088-1.112h-14.242c-1.679-0.001-3.139-1.183-3.525-2.854h11.463c1.614 0.004 3.188-0.518 4.493-1.49 1.305-0.973 2.271-2.346 2.762-3.918l1.298-4.136c0.145-0.455 0.065-0.953-0.213-1.336-0.278-0.385-0.72-0.608-1.187-0.602h-20.467l-0.181-1.141c-0.218-1.367-0.849-2.631-1.802-3.615-0.954-0.983-2.184-1.64-3.518-1.878h-0.001zM26.946 9.096l-0.993 3.169v-0.001c-0.353 1.122-1.044 2.101-1.975 2.796s-2.056 1.067-3.208 1.067h-11.833l-1.125-7.042 19.134 0.011z"></path>
|
|
10
8
|
</svg>
|
|
11
9
|
`;
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
export { Cart as C };
|