@salla.sa/twilight-components 2.14.458 → 2.14.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Helper-CU4Xuiki.js → Helper-CgGR9Qf8.js} +12 -0
- package/dist/cjs/{filepond-feaMFOj_.js → filepond-CGfIHI6f.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BZT9ukbc.js → filepond-plugin-file-poster-BogxH8wL.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size--7D0QTWS.js → filepond-plugin-file-validate-size-DSlzvO7P.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-cLz_UQvD.js → filepond-plugin-file-validate-type-QKvTiG_U.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit--i9lQj9g.js → filepond-plugin-image-edit-CdCoWANz.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DCA1ZCDJ.js → filepond-plugin-image-exif-orientation-CJ84EvSe.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DGipSjOn.js → filepond-plugin-image-preview-BSABZf_n.js} +1 -1
- package/dist/cjs/{functions-45yOAuh2.js → functions-8bJoQsbY.js} +1 -1
- package/dist/cjs/{index-DoKZADm3.js → index-ClIoplYB.js} +2 -2
- package/dist/cjs/{index-D1MNaBOd.js → index-D0dSQBmL.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 +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +19 -9
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +2 -2
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +11 -4
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DBfKp0i-.js → tracked-promise-YbXLxnty.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BlZm-f_Z.js → vanilla-picker-CQ98NxBN.js} +1 -1
- package/dist/collection/Helpers/Helper.js +12 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +5 -1
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +13 -8
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +10 -3
- package/dist/components/Helper.js +12 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-add-product-button2.js +5 -1
- package/dist/components/salla-product-availability2.js +13 -8
- package/dist/components/salla-trust-badges.js +10 -3
- package/dist/esm/{Helper-DFMXF2_h.js → Helper-BXj4f_Qj.js} +12 -0
- package/dist/esm/{filepond-CffxACiY.js → filepond-C4Vtw3hu.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-LzXPemRj.js → filepond-plugin-file-poster-DHC1vUJ9.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BBeG1YQF.js → filepond-plugin-file-validate-size-CBM0hQ0G.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DWCw6g0N.js → filepond-plugin-file-validate-type-BEekNkNc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-0ClTm033.js → filepond-plugin-image-edit-C9OQtxCr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CR7WTm7O.js → filepond-plugin-image-exif-orientation-CmDE8Rj3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CHGE8apT.js → filepond-plugin-image-preview-BZJQYto9.js} +1 -1
- package/dist/esm/{functions-Dd4f5cCM.js → functions-DXqv01Ta.js} +1 -1
- package/dist/esm/{index-DohtU8-7.js → index-COrBCyov.js} +1 -1
- package/dist/esm/{index-BxKt36mx.js → index-iJ5sq_zX.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +19 -9
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +2 -2
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +2 -2
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +2 -2
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +2 -2
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +11 -4
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-tXUCoIr3.js → tracked-promise-BqdEjVrn.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Bn8UZjWt.js → vanilla-picker-sDHf8LOA.js} +1 -1
- package/dist/twilight/{p-CLJJGa4R.js → p--2LAp_Ix.js} +1 -1
- package/dist/twilight/{p-c32e2a71.entry.js → p-0235e63d.entry.js} +1 -1
- package/dist/twilight/p-075e48a4.entry.js +4 -0
- package/dist/twilight/{p-23353fc1.entry.js → p-07ab6222.entry.js} +1 -1
- package/dist/twilight/{p-7708a3e0.entry.js → p-07cfe13f.entry.js} +1 -1
- package/dist/twilight/{p-40f55e09.entry.js → p-099f53cb.entry.js} +1 -1
- package/dist/twilight/{p-2082d185.entry.js → p-1048d417.entry.js} +1 -1
- package/dist/twilight/{p-940f0285.entry.js → p-12e4f4b3.entry.js} +1 -1
- package/dist/twilight/{p-aa0a82ba.entry.js → p-12e99bf3.entry.js} +1 -1
- package/dist/twilight/{p-2d39c870.entry.js → p-147b1b05.entry.js} +1 -1
- package/dist/twilight/{p-f97149c2.entry.js → p-153ae87f.entry.js} +1 -1
- package/dist/twilight/{p-71ff03c7.entry.js → p-1bbdc1be.entry.js} +1 -1
- package/dist/twilight/p-1f2d6697.entry.js +4 -0
- package/dist/twilight/{p-eba31f7c.entry.js → p-234c1e5a.entry.js} +1 -1
- package/dist/twilight/{p-DvUuxBCy.js → p-2YeLvW5I.js} +1 -1
- package/dist/twilight/p-2b558991.entry.js +4 -0
- package/dist/twilight/{p-bfe100b5.entry.js → p-2c1eaa42.entry.js} +1 -1
- package/dist/twilight/{p-865541e7.entry.js → p-3478605e.entry.js} +1 -1
- package/dist/twilight/{p-16abcebc.entry.js → p-38669272.entry.js} +1 -1
- package/dist/twilight/{p-4c1cda26.entry.js → p-38c48529.entry.js} +1 -1
- package/dist/twilight/{p-3737a731.entry.js → p-3dd52ee6.entry.js} +1 -1
- package/dist/twilight/{p-c5fdba11.entry.js → p-46d2ef37.entry.js} +1 -1
- package/dist/twilight/{p-7720867a.entry.js → p-486eec44.entry.js} +1 -1
- package/dist/twilight/{p-c27fbce5.entry.js → p-4a68aa3a.entry.js} +1 -1
- package/dist/twilight/{p-6d99f564.entry.js → p-4bf10fda.entry.js} +1 -1
- package/dist/twilight/{p-d03f573b.entry.js → p-4f009520.entry.js} +1 -1
- package/dist/twilight/{p-3d504212.entry.js → p-53725056.entry.js} +1 -1
- package/dist/twilight/{p-74966aa4.entry.js → p-569c6283.entry.js} +1 -1
- package/dist/twilight/{p-c5acb840.entry.js → p-56f2c80b.entry.js} +1 -1
- package/dist/twilight/{p-67378b91.entry.js → p-570a0386.entry.js} +1 -1
- package/dist/twilight/{p-fb12850b.entry.js → p-59e51761.entry.js} +1 -1
- package/dist/twilight/p-59edb110.entry.js +4 -0
- package/dist/twilight/{p-1dda49a2.entry.js → p-5a502b2d.entry.js} +1 -1
- package/dist/twilight/{p-fd9b57a4.entry.js → p-606cf463.entry.js} +1 -1
- package/dist/twilight/{p-032b3143.entry.js → p-63db0087.entry.js} +1 -1
- package/dist/twilight/{p-4e1e74e7.entry.js → p-68cc082a.entry.js} +1 -1
- package/dist/twilight/{p-44e22a0b.entry.js → p-6959e50c.entry.js} +1 -1
- package/dist/twilight/{p-32d49832.entry.js → p-6a0592ff.entry.js} +1 -1
- package/dist/twilight/{p-dc9d31bd.entry.js → p-710aeaa6.entry.js} +1 -1
- package/dist/twilight/{p-59ce0a62.entry.js → p-77161ea1.entry.js} +1 -1
- package/dist/twilight/{p-23aacddd.entry.js → p-7c274900.entry.js} +1 -1
- package/dist/twilight/{p-b3fca774.entry.js → p-7cb9fdf3.entry.js} +1 -1
- package/dist/twilight/{p-85b3a22f.entry.js → p-8417e475.entry.js} +1 -1
- package/dist/twilight/{p-ab8d1c50.entry.js → p-8784043c.entry.js} +1 -1
- package/dist/twilight/{p-cf71632e.entry.js → p-8efab918.entry.js} +1 -1
- package/dist/twilight/{p-d2b3b6c5.entry.js → p-8fdda3f7.entry.js} +1 -1
- package/dist/twilight/{p-53c1d0b8.entry.js → p-9037aceb.entry.js} +1 -1
- package/dist/twilight/{p-73d8bada.entry.js → p-93cffd7b.entry.js} +1 -1
- package/dist/twilight/{p-87bfae72.entry.js → p-93e20666.entry.js} +1 -1
- package/dist/twilight/{p-ef58d373.entry.js → p-9b32a751.entry.js} +1 -1
- package/dist/twilight/{p-f89ac2c3.entry.js → p-9b6f56a4.entry.js} +1 -1
- package/dist/twilight/{p-e4b91ab1.entry.js → p-9e65633b.entry.js} +1 -1
- package/dist/twilight/{p-CHf8XdiS.js → p-BcbKK1Xp.js} +1 -1
- package/dist/twilight/{p-BEUsRLpS.js → p-CEojVb5V.js} +1 -1
- package/dist/twilight/{p-B37vFXxB.js → p-DLjvTnkG.js} +1 -1
- package/dist/twilight/{p-BJrHiNT7.js → p-DoHbs_Ca.js} +1 -1
- package/dist/twilight/{p-BF2OeDPC.js → p-Doa_Qi4D.js} +2 -2
- package/dist/twilight/{p-CwiIgE9I.js → p-DpeYnqu7.js} +1 -1
- package/dist/twilight/{p-CgUFhQLc.js → p-Mmayo-tO.js} +1 -1
- package/dist/twilight/{p-pXzGsRrE.js → p-YOYH8YN6.js} +1 -1
- package/dist/twilight/{p-1ff67f37.entry.js → p-a1189807.entry.js} +1 -1
- package/dist/twilight/{p-2a763bb1.entry.js → p-a3f1ce8d.entry.js} +1 -1
- package/dist/twilight/{p-e5494d9d.entry.js → p-a83a6645.entry.js} +1 -1
- package/dist/twilight/{p-e7bd71a3.entry.js → p-a89828dd.entry.js} +1 -1
- package/dist/twilight/p-ac7e349a.entry.js +4 -0
- package/dist/twilight/{p-eb970c64.entry.js → p-aec79fff.entry.js} +1 -1
- package/dist/twilight/{p-37b7f9a1.entry.js → p-b0912857.entry.js} +1 -1
- package/dist/twilight/{p-2177b796.entry.js → p-b0afc618.entry.js} +1 -1
- package/dist/twilight/{p-76ebb1f3.entry.js → p-b4b57fd2.entry.js} +1 -1
- package/dist/twilight/{p-bedfe2f1.entry.js → p-b902d2f5.entry.js} +1 -1
- package/dist/twilight/p-ba3fddd7.entry.js +4 -0
- package/dist/twilight/{p-7f6647bd.entry.js → p-bae99ba7.entry.js} +1 -1
- package/dist/twilight/{p-2ec44c82.entry.js → p-bb9ef23e.entry.js} +1 -1
- package/dist/twilight/{p-27ff5ee4.entry.js → p-bec381d0.entry.js} +1 -1
- package/dist/twilight/{p-13fb05be.entry.js → p-c1949223.entry.js} +1 -1
- package/dist/twilight/{p-1833e7f1.entry.js → p-c208e3c7.entry.js} +1 -1
- package/dist/twilight/{p-724f7df5.entry.js → p-c70b165a.entry.js} +1 -1
- package/dist/twilight/{p-c4863bf6.entry.js → p-c7f39c26.entry.js} +1 -1
- package/dist/twilight/{p-820ef744.entry.js → p-c9932aac.entry.js} +1 -1
- package/dist/twilight/{p-23e780a2.entry.js → p-cb7550d3.entry.js} +1 -1
- package/dist/twilight/{p-1c2a1511.entry.js → p-cdeac4d4.entry.js} +1 -1
- package/dist/twilight/{p-0306c8f5.entry.js → p-cf258842.entry.js} +1 -1
- package/dist/twilight/{p-bf991695.entry.js → p-d171d9b7.entry.js} +1 -1
- package/dist/twilight/{p-14818bbc.entry.js → p-d7c9b87f.entry.js} +1 -1
- package/dist/twilight/{p-f28a753d.entry.js → p-d8b6e962.entry.js} +1 -1
- package/dist/twilight/{p-17d04d37.entry.js → p-da9ca18e.entry.js} +1 -1
- package/dist/twilight/{p-c60cecc8.entry.js → p-dbedcb2c.entry.js} +1 -1
- package/dist/twilight/{p-3b627b8f.entry.js → p-dc530376.entry.js} +1 -1
- package/dist/twilight/{p-5ba6fa7b.entry.js → p-dd83f43e.entry.js} +1 -1
- package/dist/twilight/{p-213dfc6e.entry.js → p-ddaa0572.entry.js} +1 -1
- package/dist/twilight/p-e3871a18.entry.js +4 -0
- package/dist/twilight/{p-f5f84c2a.entry.js → p-e824a11d.entry.js} +1 -1
- package/dist/twilight/{p-6e7c61b6.entry.js → p-eec5d968.entry.js} +1 -1
- package/dist/twilight/{p-92a18a14.entry.js → p-f0451bd0.entry.js} +1 -1
- package/dist/twilight/{p-4f02bb67.entry.js → p-f194ed91.entry.js} +1 -1
- package/dist/twilight/{p-7069bc5a.entry.js → p-fcf26add.entry.js} +1 -1
- package/dist/twilight/{p-e7e7acbd.entry.js → p-fe88bea5.entry.js} +1 -1
- package/dist/twilight/{p-CoKgv23c.js → p-gauhE2aA.js} +1 -1
- package/dist/twilight/p-iJ5sq_zX.js +5 -0
- package/dist/twilight/{p-C-xAJPgJ.js → p-quQVhrL_.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/Helper.d.ts +1 -0
- package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +1 -0
- package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
- package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +2 -2
- package/package.json +5 -5
- package/dist/twilight/p-02eb80b8.entry.js +0 -4
- package/dist/twilight/p-0c4cba69.entry.js +0 -4
- package/dist/twilight/p-13de7f9d.entry.js +0 -4
- package/dist/twilight/p-1e0e3caf.entry.js +0 -4
- package/dist/twilight/p-55bdc159.entry.js +0 -4
- package/dist/twilight/p-BxKt36mx.js +0 -5
- package/dist/twilight/p-ae873bb3.entry.js +0 -4
- package/dist/twilight/p-fd54bb1a.entry.js +0 -4
|
@@ -145,6 +145,10 @@ const SallaAddProductButton = /*@__PURE__*/ proxyCustomElement(class SallaAddPro
|
|
|
145
145
|
}
|
|
146
146
|
return this.hostAttributes;
|
|
147
147
|
}
|
|
148
|
+
// optional: fall back to store-configured channels, reading config directly when the SDK helper is missing
|
|
149
|
+
get notifyChannels() {
|
|
150
|
+
return this.channels || salla.api.product.getAvailabilityChannels?.() || Helper.availabilityChannels();
|
|
151
|
+
}
|
|
148
152
|
getQuickBuyBtnAttributes() {
|
|
149
153
|
return {
|
|
150
154
|
...this.getBtnAttributes(),
|
|
@@ -188,7 +192,7 @@ const SallaAddProductButton = /*@__PURE__*/ proxyCustomElement(class SallaAddPro
|
|
|
188
192
|
if (this.hasSubscribedOptions) {
|
|
189
193
|
return h(Host, null, h("salla-product-availability", { ...this.getBtnAttributes(), "is-subscribed": true }, h("span", { class: "s-hidden" }, h("slot", null))));
|
|
190
194
|
}
|
|
191
|
-
if ((this.productStatus === 'out-and-notify' && this.
|
|
195
|
+
if ((this.productStatus === 'out-and-notify' && this.notifyChannels) || this.hasOutOfStockOption) {
|
|
192
196
|
return h(Host, null, h("salla-product-availability", { ...this.getBtnAttributes() }, h("span", { class: "s-hidden" }, h("slot", null))));
|
|
193
197
|
}
|
|
194
198
|
return h(Host, { class: {
|
|
@@ -67,11 +67,17 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
67
67
|
this.channelsWatcher(this.channels);
|
|
68
68
|
this.title_ = this.host.title || salla.lang.get('pages.products.notify_availability_title');
|
|
69
69
|
this.host.removeAttribute('title');
|
|
70
|
-
//todo:: fix this to cover options too
|
|
71
|
-
this.isVisitorSubscribed = !this.notifyOptionsAvailability ? salla.storage.get(`product-${this.productId}-subscribed`) : '';
|
|
72
70
|
}
|
|
73
71
|
channelsWatcher(newValue) {
|
|
74
|
-
|
|
72
|
+
// fall back to store-configured channels, reading config directly when the SDK helper is missing
|
|
73
|
+
let channels = newValue || salla.api.product.getAvailabilityChannels?.() || Helper.availabilityChannels();
|
|
74
|
+
this.channels_ = channels ? channels.split(',') : [];
|
|
75
|
+
}
|
|
76
|
+
// Subscribed via the backend prop, the SDK storage, or the legacy key (older SDK fallback).
|
|
77
|
+
get isSubscribedToProduct() {
|
|
78
|
+
return this.isSubscribed
|
|
79
|
+
|| (!this.notifyOptionsAvailability && (!!salla.api.product.isSubscribedToAvailability?.(this.productId)
|
|
80
|
+
|| !!salla.storage.get(`product-${this.productId}-subscribed`)));
|
|
75
81
|
}
|
|
76
82
|
openModel() {
|
|
77
83
|
this.handleSubmitOptions().then(isSuccess => isSuccess ? this.modal.open() : null);
|
|
@@ -96,7 +102,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
96
102
|
.then(() => salla.api.product.availabilitySubscribe(payload))
|
|
97
103
|
.then(() => {
|
|
98
104
|
if (!this.notifyOptionsAvailability) {
|
|
99
|
-
salla.
|
|
105
|
+
// persisted by salla.api.product.availabilitySubscribe
|
|
100
106
|
this.isSubscribed = true;
|
|
101
107
|
return;
|
|
102
108
|
}
|
|
@@ -140,10 +146,10 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
140
146
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
141
147
|
}
|
|
142
148
|
render() {
|
|
143
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '2da2f2466b07a0d0c1613bf331697cf4acc95004', class: "s-product-availability-wrap" }, this.isSubscribedToProduct
|
|
144
150
|
? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
145
151
|
:
|
|
146
|
-
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.
|
|
152
|
+
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribedToProduct ? '' : this.renderModal()));
|
|
147
153
|
}
|
|
148
154
|
renderModal() {
|
|
149
155
|
return (h("salla-modal", { ref: modal => this.modal = modal, "modal-title": this.title_, subTitle: salla.lang.get('pages.products.notify_availability_subtitle'), width: "sm" }, h("span", { slot: 'icon', class: "s-product-availability-header-icon", innerHTML: BellRing }), h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
|
|
@@ -166,8 +172,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
166
172
|
"productId": [2, "product-id"],
|
|
167
173
|
"isSubscribed": [1028, "is-subscribed"],
|
|
168
174
|
"translationLoaded": [32],
|
|
169
|
-
"title_": [32]
|
|
170
|
-
"isVisitorSubscribed": [32]
|
|
175
|
+
"title_": [32]
|
|
171
176
|
}, undefined, {
|
|
172
177
|
"channels": ["channelsWatcher"]
|
|
173
178
|
}]);
|
|
@@ -50,10 +50,11 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
50
50
|
componentWillLoad() {
|
|
51
51
|
this.initializeTranslations();
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
async componentDidLoad() {
|
|
54
|
+
await salla.onReady();
|
|
55
|
+
if (!this.isVisibilityEnforced())
|
|
56
|
+
return;
|
|
54
57
|
this.setupVisibilityGuard();
|
|
55
|
-
}
|
|
56
|
-
componentDidLoad() {
|
|
57
58
|
this.scheduleEnforce();
|
|
58
59
|
}
|
|
59
60
|
componentDidRender() {
|
|
@@ -67,6 +68,10 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
67
68
|
this.cachedChain = [];
|
|
68
69
|
this.clearEnforceTimers();
|
|
69
70
|
}
|
|
71
|
+
// Visibility enforcement is a KSA-only legal requirement.
|
|
72
|
+
isVisibilityEnforced() {
|
|
73
|
+
return salla.config.get('store.store_country') === 'SA';
|
|
74
|
+
}
|
|
70
75
|
getAncestorChain(host) {
|
|
71
76
|
const chain = [];
|
|
72
77
|
let el = host;
|
|
@@ -136,6 +141,8 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
136
141
|
}
|
|
137
142
|
}
|
|
138
143
|
scheduleEnforce() {
|
|
144
|
+
if (!this.isVisibilityEnforced())
|
|
145
|
+
return;
|
|
139
146
|
// Debounce waits for an entrance animation to settle; maxWait bounds it so endless chain mutations can't starve the repair.
|
|
140
147
|
if (this.enforceTimer !== undefined)
|
|
141
148
|
clearTimeout(this.enforceTimer);
|
|
@@ -429,6 +429,18 @@ class Helper {
|
|
|
429
429
|
script.textContent = JSON.stringify(schema);
|
|
430
430
|
document.head.appendChild(script);
|
|
431
431
|
}
|
|
432
|
+
// Store-configured availability notification channels as a comma string ("email,sms").
|
|
433
|
+
availabilityChannels() {
|
|
434
|
+
let config = salla.config.get('store.settings.product.availability_notify');
|
|
435
|
+
if (!config) {
|
|
436
|
+
return '';
|
|
437
|
+
}
|
|
438
|
+
let channels = [];
|
|
439
|
+
config.email && channels.push('email');
|
|
440
|
+
// sms, mobile and whatsapp all collect a phone number via the same input
|
|
441
|
+
(config.sms || config.mobile || config.whatsapp) && channels.push('sms');
|
|
442
|
+
return channels.join(',');
|
|
443
|
+
}
|
|
432
444
|
}
|
|
433
445
|
var Helper$1 = new Helper;
|
|
434
446
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-iJ5sq_zX.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|