@salla.sa/twilight-components 2.14.585 → 2.14.587
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-CEJhKIt0.js → filepond-BF8Q2gfH.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster--o39rSi6.js → filepond-plugin-file-poster-CDZXoVge.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BaE73veC.js → filepond-plugin-file-validate-size-M6dKiRMH.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-A3B81gzI.js → filepond-plugin-file-validate-type-BSTQI9uG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CtzQ8SoY.js → filepond-plugin-image-edit-h3hJm3qv.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DCSIkiBY.js → filepond-plugin-image-exif-orientation-CXkq3_oT.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BkOXIK9J.js → filepond-plugin-image-preview-BP4-WdE7.js} +1 -1
- package/dist/cjs/{index-C1lKW2pp.js → index-DN51eLtp.js} +3 -3
- package/dist/cjs/{intlTelInput-C2sAClFU.js → intlTelInput-Cgao3Jc8.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +99 -22
- 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-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 +12 -12
- 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 +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_9.cjs.entry.js +3 -3
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +2 -2
- 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 +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-gift-card-redeem.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-options-modal.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 +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +24 -3
- 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 +2 -2
- package/dist/cjs/salla-product-card.cjs.entry.js +14 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +19 -4
- 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 +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
- 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-product-card.cjs.entry.js +3 -3
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- 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 +13 -2
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- 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 +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/salla-wishlist-summary.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Dlx0WMya.js → vanilla-picker-BAqDsAyV.js} +1 -1
- package/dist/collection/components/salla-contacts/salla-contacts.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.css +3 -0
- package/dist/collection/components/salla-payments/salla-payments.js +22 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +13 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-products-list/salla-products-list.css +3 -0
- package/dist/collection/components/salla-products-list/salla-products-list.js +17 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +20 -6
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-search-product-card/salla-search-product-card.js +2 -2
- 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-tiered-offer/salla-tiered-offer.js +12 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- 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 +3 -3
- package/dist/components/salla-contacts.js +1 -1
- package/dist/components/salla-payments.js +23 -2
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +13 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-products-list2.js +18 -3
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +98 -21
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-search-product-card2.js +2 -2
- 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-tiered-offer.js +12 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/docs.d.ts +443 -0
- package/dist/docs.json +29077 -0
- package/dist/esm/{filepond-DO_tVx7Z.js → filepond-Xi2-pJA0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CLUYF4ow.js → filepond-plugin-file-poster-DduYF-sA.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-2uJOz1fq.js → filepond-plugin-file-validate-size-BkPirl0j.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-QZ36jPaD.js → filepond-plugin-file-validate-type-BIX8_1CI.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Oyjbx1VR.js → filepond-plugin-image-edit--1Sv5xxH.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CZZUTjbL.js → filepond-plugin-image-exif-orientation-Dss_DgF7.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-B4ob6BCt.js → filepond-plugin-image-preview-CaA89Pn1.js} +1 -1
- package/dist/esm/{index-AYwDRYpw.js → index-BtdIfJF8.js} +3 -3
- package/dist/esm/{intlTelInput-DTDyxq7t.js → intlTelInput-DxHIK3cL.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +99 -22
- 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-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 +12 -12
- 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 +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_9.entry.js +3 -3
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +2 -2
- 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 +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-gift-card-redeem.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-options-modal.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 +1 -1
- package/dist/esm/salla-payments.entry.js +24 -3
- 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 +2 -2
- package/dist/esm/salla-product-card.entry.js +14 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +19 -4
- 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 +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +2 -2
- 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-product-card.entry.js +3 -3
- package/dist/esm/salla-search.entry.js +1 -1
- 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 +13 -2
- package/dist/esm/salla-tooltip.entry.js +2 -2
- 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 +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/salla-wishlist-summary.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-Cgkc0m_N.js → vanilla-picker-CdDrNNAM.js} +1 -1
- package/dist/twilight/{p-8bb23a72.entry.js → p-072455fd.entry.js} +1 -1
- package/dist/twilight/{p-bdde64af.entry.js → p-09f65942.entry.js} +1 -1
- package/dist/twilight/{p-194bee78.entry.js → p-0b975744.entry.js} +1 -1
- package/dist/twilight/{p-d85bd672.entry.js → p-0d58eb8e.entry.js} +1 -1
- package/dist/twilight/{p-a45b7ab9.entry.js → p-14545c2e.entry.js} +1 -1
- package/dist/twilight/{p-3f45c1ad.entry.js → p-15b4d61d.entry.js} +1 -1
- package/dist/twilight/{p-54761c87.entry.js → p-1f48b187.entry.js} +1 -1
- package/dist/twilight/{p-2800db73.entry.js → p-20b122f5.entry.js} +1 -1
- package/dist/twilight/{p-687e1957.entry.js → p-20edfe7d.entry.js} +1 -1
- package/dist/twilight/{p-b2cd85be.entry.js → p-22bf309f.entry.js} +1 -1
- package/dist/twilight/p-24ebf9d6.entry.js +4 -0
- package/dist/twilight/{p-59dba4cc.entry.js → p-26479dee.entry.js} +1 -1
- package/dist/twilight/{p-03240694.entry.js → p-2a5844fa.entry.js} +1 -1
- package/dist/twilight/{p-b2518289.entry.js → p-3212b345.entry.js} +1 -1
- package/dist/twilight/{p-f1b5e1d0.entry.js → p-32f6ea11.entry.js} +1 -1
- package/dist/twilight/{p-22d8c66b.entry.js → p-340621ed.entry.js} +1 -1
- package/dist/twilight/{p-39cbfcc1.entry.js → p-344e9465.entry.js} +1 -1
- package/dist/twilight/{p-fa25c093.entry.js → p-357c7c69.entry.js} +1 -1
- package/dist/twilight/{p-79f7c717.entry.js → p-3b37eccc.entry.js} +1 -1
- package/dist/twilight/{p-f4e97600.entry.js → p-3b566d5d.entry.js} +1 -1
- package/dist/twilight/{p-1608ca3d.entry.js → p-410af88a.entry.js} +1 -1
- package/dist/twilight/{p-1cdabb19.entry.js → p-41b0367e.entry.js} +1 -1
- package/dist/twilight/{p-0a134a2b.entry.js → p-49d4a3c2.entry.js} +1 -1
- package/dist/twilight/{p-b6745060.entry.js → p-4e5bde43.entry.js} +1 -1
- package/dist/twilight/{p-2a586909.entry.js → p-506f1716.entry.js} +1 -1
- package/dist/twilight/{p-4139eb21.entry.js → p-565f74fe.entry.js} +1 -1
- package/dist/twilight/{p-fe698953.entry.js → p-56b50c65.entry.js} +1 -1
- package/dist/twilight/{p-946fa2c6.entry.js → p-56f3be75.entry.js} +1 -1
- package/dist/twilight/{p-a5dcd24a.entry.js → p-5710d065.entry.js} +1 -1
- package/dist/twilight/p-573899dc.entry.js +4 -0
- package/dist/twilight/{p-1d8c5d8f.entry.js → p-58a66109.entry.js} +1 -1
- package/dist/twilight/{p-35e3328a.entry.js → p-5afc95a7.entry.js} +1 -1
- package/dist/twilight/{p-01f636b2.entry.js → p-5d8cc35c.entry.js} +1 -1
- package/dist/twilight/{p-6b7d42a4.entry.js → p-5f7532b3.entry.js} +1 -1
- package/dist/twilight/{p-14439a37.entry.js → p-60a35744.entry.js} +1 -1
- package/dist/twilight/{p-807683b2.entry.js → p-646d3f8f.entry.js} +1 -1
- package/dist/twilight/{p-bbb3afc2.entry.js → p-67a08021.entry.js} +1 -1
- package/dist/twilight/{p-303da6f8.entry.js → p-6b9c1c5d.entry.js} +1 -1
- package/dist/twilight/{p-e94ca368.entry.js → p-6de41bdc.entry.js} +1 -1
- package/dist/twilight/{p-a4c24c91.entry.js → p-6ed2c97c.entry.js} +1 -1
- package/dist/twilight/{p-0abbef90.entry.js → p-773de9cc.entry.js} +1 -1
- package/dist/twilight/{p-f4e13356.entry.js → p-7944abc5.entry.js} +1 -1
- package/dist/twilight/{p-52901f3d.entry.js → p-799027c5.entry.js} +1 -1
- package/dist/twilight/{p-CPZ9Cyjs.js → p-7Z5IAwod.js} +1 -1
- package/dist/twilight/{p-42b362f0.entry.js → p-7c1d3130.entry.js} +1 -1
- package/dist/twilight/{p-b9941cd1.entry.js → p-80818114.entry.js} +1 -1
- package/dist/twilight/{p-05d07114.entry.js → p-80a7d4af.entry.js} +1 -1
- package/dist/twilight/{p-c04d0a0c.entry.js → p-84588994.entry.js} +1 -1
- package/dist/twilight/{p-dd51fb5e.entry.js → p-89cbcd3c.entry.js} +1 -1
- package/dist/twilight/{p-fdc4d86e.entry.js → p-8bf2a280.entry.js} +1 -1
- package/dist/twilight/{p-3444f32b.entry.js → p-8dac352c.entry.js} +1 -1
- package/dist/twilight/{p-99d94c03.entry.js → p-93064a1f.entry.js} +1 -1
- package/dist/twilight/{p-1704f9f1.entry.js → p-9661b909.entry.js} +1 -1
- package/dist/twilight/{p-c62884b5.entry.js → p-97ead14b.entry.js} +1 -1
- package/dist/twilight/{p-a7d41221.entry.js → p-98c519f7.entry.js} +1 -1
- package/dist/twilight/{p-f359ca64.entry.js → p-9d3d89f8.entry.js} +1 -1
- package/dist/twilight/{p-DDUkN0Su.js → p-Bc26pjHG.js} +1 -1
- package/dist/twilight/{p-CV6u89f0.js → p-BiGEqBIB.js} +1 -1
- package/dist/twilight/{p-CSUtBvKU.js → p-BjKw2hiE.js} +1 -1
- package/dist/twilight/{p-AYwDRYpw.js → p-BtdIfJF8.js} +2 -2
- package/dist/twilight/{p-CaLozk__.js → p-CKp7_rq_.js} +1 -1
- package/dist/twilight/p-D9PZqqzV.js +9 -0
- package/dist/twilight/{p-rSl3OdaO.js → p-DetotZcx.js} +1 -1
- package/dist/twilight/{p-DoXzH35M.js → p-DwNLIufU.js} +1 -1
- package/dist/twilight/{p-De55WukT.js → p-ShShhGeu.js} +1 -1
- package/dist/twilight/{p-b09ef1a0.entry.js → p-a0ad482e.entry.js} +1 -1
- package/dist/twilight/{p-1a0dada8.entry.js → p-a244a4f2.entry.js} +1 -1
- package/dist/twilight/p-a6c0154a.entry.js +4 -0
- package/dist/twilight/{p-e2d8071a.entry.js → p-a71b30fa.entry.js} +1 -1
- package/dist/twilight/{p-c0f29c04.entry.js → p-a9857ca3.entry.js} +1 -1
- package/dist/twilight/{p-161eebfe.entry.js → p-ae543e87.entry.js} +1 -1
- package/dist/twilight/{p-b61296d3.entry.js → p-af6932b0.entry.js} +1 -1
- package/dist/twilight/{p-1ef3f26c.entry.js → p-b199478b.entry.js} +1 -1
- package/dist/twilight/{p-7d36b069.entry.js → p-b1f146d6.entry.js} +1 -1
- package/dist/twilight/{p-7b339d4b.entry.js → p-b492dd6a.entry.js} +1 -1
- package/dist/twilight/{p-0cb8bc93.entry.js → p-b5b70b36.entry.js} +1 -1
- package/dist/twilight/{p-c05c4720.entry.js → p-b677ddca.entry.js} +1 -1
- package/dist/twilight/{p-e3974b7c.entry.js → p-bbfa65b5.entry.js} +1 -1
- package/dist/twilight/{p-07f3d023.entry.js → p-bce91b93.entry.js} +1 -1
- package/dist/twilight/{p-564426a3.entry.js → p-bd84e964.entry.js} +1 -1
- package/dist/twilight/{p-78b4744b.entry.js → p-be824cd2.entry.js} +1 -1
- package/dist/twilight/{p-a85d05d9.entry.js → p-c1caf8cb.entry.js} +1 -1
- package/dist/twilight/{p-0d2ac4d7.entry.js → p-c317b529.entry.js} +1 -1
- package/dist/twilight/{p-84f586c6.entry.js → p-c3d67706.entry.js} +1 -1
- package/dist/twilight/{p-9e37bac0.entry.js → p-c495c15f.entry.js} +1 -1
- package/dist/twilight/{p-85c488d1.entry.js → p-c571954d.entry.js} +1 -1
- package/dist/twilight/{p-31e2773a.entry.js → p-c61fce7a.entry.js} +1 -1
- package/dist/twilight/p-c64aaef9.entry.js +4 -0
- package/dist/twilight/{p-4d69e279.entry.js → p-cbe828f7.entry.js} +1 -1
- package/dist/twilight/{p-acda0c48.entry.js → p-cec14ad5.entry.js} +1 -1
- package/dist/twilight/{p-1d93f3b3.entry.js → p-cf1ea038.entry.js} +1 -1
- package/dist/twilight/{p-4500d73c.entry.js → p-d3a3216f.entry.js} +1 -1
- package/dist/twilight/p-d46adde4.entry.js +4 -0
- package/dist/twilight/{p-74f26eba.entry.js → p-d720d65e.entry.js} +1 -1
- package/dist/twilight/{p-8a1b1124.entry.js → p-df4e13e9.entry.js} +1 -1
- package/dist/twilight/{p-178ee77e.entry.js → p-e3a2bf70.entry.js} +1 -1
- package/dist/twilight/{p-93cd8edf.entry.js → p-e519da79.entry.js} +1 -1
- package/dist/twilight/{p-763c484c.entry.js → p-e583bb7d.entry.js} +1 -1
- package/dist/twilight/{p-59182ad3.entry.js → p-e9174da7.entry.js} +1 -1
- package/dist/twilight/{p-f1f648fd.entry.js → p-e9ab3ead.entry.js} +1 -1
- package/dist/twilight/{p-f2f9583c.entry.js → p-f318c73c.entry.js} +1 -1
- package/dist/twilight/{p-4a75e76d.entry.js → p-f32f8e51.entry.js} +1 -1
- package/dist/twilight/{p-b441862b.entry.js → p-f3cd8cf5.entry.js} +1 -1
- package/dist/twilight/{p-65e644bd.entry.js → p-f4d02219.entry.js} +1 -1
- package/dist/twilight/{p-60cd4998.entry.js → p-f97885ed.entry.js} +1 -1
- package/dist/twilight/{p-79283712.entry.js → p-fcbd0395.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +11 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +9 -0
- package/package.json +5 -5
- package/dist/twilight/p-54483689.entry.js +0 -4
- package/dist/twilight/p-54a63d62.entry.js +0 -4
- package/dist/twilight/p-5acc1781.entry.js +0 -4
- package/dist/twilight/p-DTRk8sgv.js +0 -9
- package/dist/twilight/p-a93e543a.entry.js +0 -4
- package/dist/twilight/p-d3e8c9d3.entry.js +0 -4
|
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
import "@salla.sa/applepay/src/index";
|
|
6
6
|
import { resolveApplePayOrderOptions, appendOrderOptionsToPayload, reportProductOptionsValiditySync, } from "../salla-order-options-modal/apple-pay-order-options";
|
|
7
7
|
import { injectFreeProductsIntoPayload } from "../salla-order-options-modal/free-product-payload";
|
|
8
|
-
import { applePayMerchantId, canCompleteApplePay, ensureApplePaySdk } from "@salla.sa/applepay/src/apple-pay-support";
|
|
8
|
+
import { applePayMerchantId, canCompleteApplePay, ensureApplePaySdk, resolveApplePayNetworks } from "@salla.sa/applepay/src/apple-pay-support";
|
|
9
9
|
export class SallaQuickBuy {
|
|
10
10
|
constructor() {
|
|
11
11
|
/**
|
|
@@ -125,6 +125,17 @@ export class SallaQuickBuy {
|
|
|
125
125
|
resolveCheckoutType() {
|
|
126
126
|
return this.applePayOnly && !this.productId ? 'mini_checkout' : 'buy_now';
|
|
127
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* The backend's networks for this attempt, never widened with a default set.
|
|
130
|
+
* An empty array is the backend's answer, not a blank, so only an unset prop defers to config.
|
|
131
|
+
*
|
|
132
|
+
* The prop is typed `string[]`, but mini-checkout property-binds the raw backend value, which
|
|
133
|
+
* PHP serializes as an object when its keys are non-sequential — spreading that throws. Route
|
|
134
|
+
* it through the same normalizer the rest of the package uses.
|
|
135
|
+
*/
|
|
136
|
+
resolveSupportedNetworks() {
|
|
137
|
+
return resolveApplePayNetworks(this.supportedNetworks);
|
|
138
|
+
}
|
|
128
139
|
async settlePayment() {
|
|
129
140
|
//use this way to get quantity too
|
|
130
141
|
let data = this.host.getElementSallaData();
|
|
@@ -171,8 +182,7 @@ export class SallaQuickBuy {
|
|
|
171
182
|
currency: this.currency || salla.config.get('store.settings.buy_now.currency') || 'SAR', // SAR
|
|
172
183
|
requiredShippingContactFields: this.getRequiredShippingContactFields(),
|
|
173
184
|
shippingMethods: this.isRequireShipping ? [] : undefined,
|
|
174
|
-
supportedNetworks:
|
|
175
|
-
? this.supportedNetworks : salla.config.get('store.settings.buy_now.supportedNetworks'),
|
|
185
|
+
supportedNetworks: this.resolveSupportedNetworks(),
|
|
176
186
|
supportedCountries: (Array.isArray(this.supportedCountries) && this.supportedCountries.length)
|
|
177
187
|
? this.supportedCountries : salla.config.get('store.settings.buy_now.supportedCountries'),
|
|
178
188
|
countryCode: salla.config.get('store.store_country') || 'SA',
|
|
@@ -305,7 +315,10 @@ export class SallaQuickBuy {
|
|
|
305
315
|
const canMakePayments = typeof window !== 'undefined' && !!window.ApplePaySession?.canMakePayments?.();
|
|
306
316
|
const storeHasApplePay = salla?.config?.get?.('store.settings.payments')?.includes?.('apple_pay') ?? true;
|
|
307
317
|
const isSallaGateway = salla?.config?.get?.('store.settings.is_salla_gateway', false) ?? true;
|
|
308
|
-
|
|
318
|
+
// No networks means nothing to charge with, so don't show the button — canMakePayments()
|
|
319
|
+
// alone would light it up on Safari.
|
|
320
|
+
this.isApplePayActive = canMakePayments && storeHasApplePay && isSallaGateway
|
|
321
|
+
&& !!this.resolveSupportedNetworks().length;
|
|
309
322
|
const runInit = async () => {
|
|
310
323
|
if (!this.productId && salla?.config?.get && salla.url?.is_page) {
|
|
311
324
|
this.productId = salla.config.get('page.id');
|
|
@@ -344,7 +357,8 @@ export class SallaQuickBuy {
|
|
|
344
357
|
// (non-Safari browsers / non-Apple devices via the QR-code fallback). The
|
|
345
358
|
// helper loads Apple's JS SDK and awaits it before probing, so this is a
|
|
346
359
|
// stable answer on first load (no race against the async script fetch).
|
|
347
|
-
this.isApplePayActive = storeAllowsApplePay
|
|
360
|
+
this.isApplePayActive = storeAllowsApplePay
|
|
361
|
+
&& await canCompleteApplePay(this.currency, this.resolveSupportedNetworks());
|
|
348
362
|
};
|
|
349
363
|
return new Promise((resolve) => {
|
|
350
364
|
if (typeof salla?.onReady === 'function') {
|
|
@@ -356,7 +370,7 @@ export class SallaQuickBuy {
|
|
|
356
370
|
});
|
|
357
371
|
}
|
|
358
372
|
render() {
|
|
359
|
-
return h(Host, { key: '
|
|
373
|
+
return h(Host, { key: '8d1d37acada1f9cdbe6913d01a97fe881facc7af' }, this.quickBuyButton());
|
|
360
374
|
}
|
|
361
375
|
quickBuyButton() {
|
|
362
376
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: '7e833e08405a9153759b958e9c6979fd83c5aec1', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '85e33a2160a62e2fb3e376f6e20d223d53ced8fe', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '8b21485de56e57dceb9facb044bd6bad1ad866f3', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -47,7 +47,7 @@ export class SallaReviewFactorsTags {
|
|
|
47
47
|
return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Star2 }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '766916fb7639bd23e8fa070c53cb19a32e9fe8aa', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "salla-review-factors-tags"; }
|
|
53
53
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
|
|
|
142
142
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("host", { key: '
|
|
145
|
+
return (h("host", { key: '96f61882e9ff5d63084b474e887f18852664cee1' }, h("div", { key: '4ed5c60cad490df10f749b1f9c5c85be4b4694a9', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'b010c63dc5c5b75b62f51ad629f1e3aa92aee545', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: '5d878bce5aeadaebbe9af6ecfdeb13492554155a', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '86946adf82cc42d2b0950da6b787f445f701f707', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '61a02b3c57c025f33f8316410ecc3a21a9c93600', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '04e135e9ec5bbcd4ce52aea7ef002385108b0606', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
146
146
|
this.wrapper = el;
|
|
147
147
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
148
148
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -109,7 +109,7 @@ export class SallaSearchProductCard {
|
|
|
109
109
|
// 's-search-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
110
110
|
};
|
|
111
111
|
const hrefProp = this.productData?.url ? { href: this.productData.url } : {};
|
|
112
|
-
return (h(Host, { key: '
|
|
112
|
+
return (h(Host, { key: '96d5601bdfaf30f7455567d1b749882a1bacca89', id: `search-product-${this.productData?.id}`, class: classes }, this.productData?.url ? (h("a", { class: "s-search-product-card-overlay-link", "aria-label": this.productData?.name, ...hrefProp })) : null, h("div", { key: '3fe75c253a2658366445b9e8f49f8d1fefbbb203', class: "s-search-product-card-image" }, h("img", { key: '916d235df1545379d39c5645dd552dd9280d36ba', class: `s-search-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url) ? 'contain' : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), this.getProductBadge()), h("div", { key: 'e473015b3d9f5efe0aeffb304811e29c5c9cd4e6', class: "s-search-product-card-content" }, h("div", { key: 'f0c30273f378ba36d5e7a9c407b44112c7bcc132', class: "s-search-product-card-content-main" }, h("h3", { key: '747a97b3c73bee3cd301d4bd1e6904f3aef6f5fb', class: "s-search-product-card-content-title" }, this.getDisplayTitle()), this.productData?.subtitle ? (h("p", { class: "s-search-product-card-content-subtitle" }, this.productData?.subtitle)) : null), !!this.showDonationAmount && !!this.productData?.donation
|
|
113
113
|
? [
|
|
114
114
|
h("salla-progress-bar", { donation: this.productData?.donation }),
|
|
115
115
|
h("div", { class: "s-search-product-card-donation-input" }, this.productData?.donation?.can_donate
|
|
@@ -124,7 +124,7 @@ export class SallaSearchProductCard {
|
|
|
124
124
|
]
|
|
125
125
|
: null),
|
|
126
126
|
]
|
|
127
|
-
: null, h("div", { key: '
|
|
127
|
+
: null, h("div", { key: '87970771b9c073248e115e55d9d0848d7e319ec2', class: "s-search-product-card-content-sub" }, this.getProductPrice(), this.productData?.is_out_of_stock ? (h("span", { class: "s-search-product-card-out-of-stock-label" }, this.outOfStock)) : null), this.productData?.rating?.stars ? (h("div", { class: "s-search-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))) : null), !this.hideAddBtn ? (h("div", { class: "s-search-product-card-content-footer" }, h("salla-add-product-button", { ref: el => (this.addBtn = el), "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, this.renderAddToCartLabel()))) : null));
|
|
128
128
|
}
|
|
129
129
|
componentDidLoad() {
|
|
130
130
|
document.lazyLoadInstance?.update(this.host?.querySelectorAll('.lazy'));
|
|
@@ -188,18 +188,18 @@ export class SallaSearchableDropdown {
|
|
|
188
188
|
render() {
|
|
189
189
|
const hasSelection = this.selectedItem != null;
|
|
190
190
|
const listboxId = `${this.inputId}-listbox`;
|
|
191
|
-
return (h(Host, { key: '
|
|
191
|
+
return (h(Host, { key: 'fc53e02e434040f760889983d900670231a40e48', class: "s-searchable-dropdown" }, h("div", { key: '86e6866e107164130b3db2ec1771bc88d0b97278', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: 'a3c11751fd38c9ac88ecec24e2ac610a9c22d485', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '793e54f5dad4e402cfbaf9eb86302d524ef8c3f0', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'ba6be33f8cf0361868f38e03298a6f7ca65a014d', class: {
|
|
192
192
|
's-searchable-dropdown-trigger': true,
|
|
193
193
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
194
194
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
195
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
195
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: 'ee33669d9dceb59ba57a4ab884bd4bd361482fef', class: {
|
|
196
196
|
'sicon-keyboard_arrow_down': true,
|
|
197
197
|
's-searchable-dropdown-trigger-icon': true,
|
|
198
198
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
199
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
199
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '53beca7bfb0cb44612cbfead759c0681a77a0853', class: {
|
|
200
200
|
's-searchable-dropdown-panel': true,
|
|
201
201
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
202
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
202
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'b301dbd407c1128bc9baaed95bc5059d06047c09', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '3cb244ca449a075cbaa70e79a3ce5366eef2f570', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '7fe5017de091ad8a4453d3a67c5200411f55a660', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '05180ea74c8bbb95c9f19c3346b01c46f2faaa1e', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
203
203
|
}
|
|
204
204
|
renderListContent() {
|
|
205
205
|
if (this.searching || this.loading) {
|
|
@@ -22,7 +22,7 @@ export class SallaSkeleton {
|
|
|
22
22
|
's-skeleton-item': true,
|
|
23
23
|
's-skeleton-item-circular': this.type == 'circle',
|
|
24
24
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '085e0afda0f8804a7365d56c84a59dc6ac97f942', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: 'a83a649343db0f91c18b6815c6c4d40254902aa9', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'd62bc20c62af5bcea93835bc1ec2436f65f7e427' }, h("ul", { key: '33b410148ef6c60dd09237c7ec38f82aa3e9973d', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -355,7 +355,7 @@ export class SallaSocialShare {
|
|
|
355
355
|
})));
|
|
356
356
|
}
|
|
357
357
|
render() {
|
|
358
|
-
return (h("div", { key: '
|
|
358
|
+
return (h("div", { key: '5034ca70b89748c6bba5ede29e52f2d75d2f5565', class: "s-social-share-wrapper" }, h("slot", { key: '8a40e07046e2cab0032ce0e6927266c5d621a0a8', name: "widget" }, h("salla-button", { key: '120f97de2259ead0f48281a26fae5d32e7ac7ab7', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '4abea4fffcb76c64e9a0caffd5bffc3ad4676fd0', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
359
359
|
}
|
|
360
360
|
static get is() { return "salla-social-share"; }
|
|
361
361
|
static get originalStyleUrls() {
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '88c4bbda1dc7e40ba888ca1345d0727c91a83250', class: classes }, h("slot", { key: '1d2a205130b90702aa4a8f4a8d801bfce486cfe8' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: '39c79315b0099749cdbc425e3810d003fe3d8bd0', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '60bba7ace2e4bcd8a8a44d0f5e4d6d2731954d51' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: '6d2a815bfe8a75d43da4d1708696b5d6ec95e8c2', class: "s-tabs" }, h("div", { key: 'ea65e1291c1356e06071eaed0b851ac7e91e079b', class: "s-tabs-header" }, h("slot", { key: '2e1e61be1e7ed54023d30b9dd288fb65b5cfb22a', name: "header" })), h("div", { key: '57382fa798d7b902bef9732ddaf9dedae138af24', class: "s-tabs-content-wrapper" }, h("slot", { key: 'a8fa63931304c16a82ce8cd44132f0e5d751fa76', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -138,7 +138,7 @@ export class SallaTelInput {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '49a93bc12f1f33f07e1ab6e859c6ae7b9e902eaa', class: "s-tel-input" }, h("input", { key: '041b007715f41d89c55762f2c31eca2be83dc5a7', 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: 'a44f133dc52d8ff2e8bc32286fde1492bf1706f8', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'f2518dc05cc82c3d01bae282a552665bf1dfcf37', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
142
142
|
}
|
|
143
143
|
componentDidLoad() {
|
|
144
144
|
this.initPromise = this.initTelInput();
|
|
@@ -107,7 +107,18 @@ export class SallaTieredOffer {
|
|
|
107
107
|
}
|
|
108
108
|
componentDidLoad() {
|
|
109
109
|
salla.event.on("cart::updated", async (updatedCart) => {
|
|
110
|
-
|
|
110
|
+
// A guest with no cart yet still emits `cart::updated`; `fetchTieredOfferData`
|
|
111
|
+
// rethrows the `CartNotCreated` rejection (unlike componentWillLoad, this
|
|
112
|
+
// listener isn't awaited by Stencil), so an uncaught throw here becomes an
|
|
113
|
+
// unhandledrejection. Degrade to "keep current render" instead of crashing.
|
|
114
|
+
let offerData = null;
|
|
115
|
+
try {
|
|
116
|
+
offerData = await this.fetchTieredOfferData();
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
salla.logger.warn('salla-tiered-offer:: ', error);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
111
122
|
if (!offerData)
|
|
112
123
|
return;
|
|
113
124
|
if (!this.tieredOfferData) {
|
|
@@ -27,7 +27,7 @@ export class SallaTooltip {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '4027073cb58fa70679f54f6009ed1ca95fd3f3d0', class: "s-tooltip-container" }, h("div", { key: 'ea50ad74b456fa3c89cfef2b69b2c9d5630d63bd', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "salla-tooltip"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -532,7 +532,7 @@ export class SallaUserSettings {
|
|
|
532
532
|
return (h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeleteModal() }, this.capitalizeText(this.deleteAccount)));
|
|
533
533
|
}
|
|
534
534
|
render() {
|
|
535
|
-
return (h(Host, { key: '
|
|
535
|
+
return (h(Host, { key: '5af97017b32c6b8789b60e8a2e30a15ba4d8477d', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '835038947364b40e7efcf0c7c059235655a8d1c8', class: "s-user-settings-section" }, h("salla-list-tile", { key: '303eb0f1b1624c488ecda6550e64e0221aaf0727' }, h("div", { key: '7b3d9cd8967c4139529d60fbffea08037c852d23', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '968433f7a41307f38c5ea4cd05264731cceedbd2', innerHTML: UserCancel })), h("div", { key: 'd5466cbe2245d66b5f019433999390e4cec62ce9', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '6d5663c3611e7b021f2d408932898b17ffd3d98f', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'cb64527fa93d77a52b39553a65e54b10f82d1bad', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '3c037a26665521c4f0f7a6c8c20755b8dc722b0d', class: "s-toggle" }, h("input", { key: '8a3454fb2daad2c329b2b619800a123768eb9fab', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '76777c45a35cf3917f3e9c6d2a4a15b1261cd785', class: "s-toggle-switcher" })))))), h("div", { key: '15427b60443b04774cd70421fd37a671f0765e73', class: "s-user-settings-section" }, h("salla-list-tile", { key: '9bafd59734c5e9141d6b2abb776641cafbe3ddbd' }, h("div", { key: '2235eafe07811ca7d3b9a9b2399db2ff21342f06', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '72df8d5640a9a9cffb9eab797ab4cda77e175d85', innerHTML: Bullhorn })), h("div", { key: 'afd7c492733050578a306e939b689832cf98ae59', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '5a6183f46e951ec89210fea99b9bc4016e223cb0', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'f0e2144728aa006c1dd778f28dd0dfb60cdb92d1', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '32930f9fc4a23fe80bfe8815672a590993622796', class: "s-toggle" }, h("input", { key: '3489e6c33afe5613f806841151c057692809fb76', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'e7b329ba0465670b9a5611864e0f4ef5a0a120ae', 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))))))));
|
|
536
536
|
}
|
|
537
537
|
static get is() { return "salla-user-settings"; }
|
|
538
538
|
static get originalStyleUrls() {
|
|
@@ -325,7 +325,7 @@ export class SallaWishlistActions {
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
render() {
|
|
328
|
-
return (h(Host, { key: '
|
|
328
|
+
return (h(Host, { key: '61c6a2e14015d947090f2c2c848977df899417fb' }, h("div", { key: '96af391ef77ddf0c4b477ed9e3dc272267dbf0ab', class: "s-wishlist-actions" }, h("div", { key: 'cecf6a71e609ef57cb255a9a1538550d036b76b3', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: 'e1b8aeb3f396a3125772f368245d2b384e5c13a0', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '99104aa4f4c392a95b781c008cd192981f6477d3', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: '306baf236e5b70406a1507f55a137944319d233f', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '22b2f5bcedbf93547aaf8071e6b8f406c075e57d', 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: 'fa0322e898cfbe8125b8fc2a74dc8b620b76c37a', 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: 'f4f9106b4c43287de0eef8f2a135a1ceb1551776', 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: '3b42d3b19bfc1fd4c85f41fd832d81fdda649536', 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: 'a32f7df4a58647fed593d2c0806e0f10f36f9a8d', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '58f6ad4c35ccedcee83d8517a6a549c6861306ab' }, h("button", { key: '1d2f7ea94db7eb8cf675ee8bdc9bdb04aa65ea27', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'd48456d10a95533bd0c3c6426f3ef412694aca50' }, h("button", { key: '145f23f0d740b51a82e5c8e206742d7c5d055c80', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: 'df8e17259b4401a3e3272ef3c934dff72ea4a440', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: '2db4523127fe580cbf77a12038b841019aeea35e', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: 'b0f6283a55c38780098b99c131a9cfcd26519bbf', 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: '776667fa68873ab872bf7995b5f452c1b6727491', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: 'c381c9b7f400a863b2287aabbf7292476e5a3ff4', 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: '3692e38fc5cda70722624ade0ce63ad33856980e', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '89463fcaa83f4d16499f2b8ae5e4bcd6e61ba15b', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: 'a51008ff77697dd851998b19f860b13e295b3256', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '5b57eb53be2cecef981492cf00af3ea7b43b9da9', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
329
329
|
}
|
|
330
330
|
static get is() { return "salla-wishlist-actions"; }
|
|
331
331
|
static get originalStyleUrls() {
|