@salla.sa/twilight-components 2.14.458 → 2.14.459
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-DGjKsL4Z.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BZT9ukbc.js → filepond-plugin-file-poster-Q5BPSEn_.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size--7D0QTWS.js → filepond-plugin-file-validate-size-DqTmfsfu.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-cLz_UQvD.js → filepond-plugin-file-validate-type-D526i3dm.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit--i9lQj9g.js → filepond-plugin-image-edit-BDgIU9Go.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DCA1ZCDJ.js → filepond-plugin-image-exif-orientation-Da6QG4_J.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DGipSjOn.js → filepond-plugin-image-preview-CPb3lB8x.js} +1 -1
- package/dist/cjs/{functions-45yOAuh2.js → functions-DIZLPj6n.js} +1 -1
- package/dist/cjs/{index-D1MNaBOd.js → index-C5VZF2SB.js} +1 -1
- package/dist/cjs/{index-DoKZADm3.js → index-DFPCRma5.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +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 +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DBfKp0i-.js → tracked-promise-DcTnHHuS.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BlZm-f_Z.js → vanilla-picker-dGiAD7ic.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/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/esm/{Helper-DFMXF2_h.js → Helper-BXj4f_Qj.js} +12 -0
- package/dist/esm/{filepond-CffxACiY.js → filepond-DcMHeT3j.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-LzXPemRj.js → filepond-plugin-file-poster-KBxuLEbb.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BBeG1YQF.js → filepond-plugin-file-validate-size-BK-MtfMA.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DWCw6g0N.js → filepond-plugin-file-validate-type-crBUzoNT.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-0ClTm033.js → filepond-plugin-image-edit-BTOgfYiD.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CR7WTm7O.js → filepond-plugin-image-exif-orientation-Dooy1jA0.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CHGE8apT.js → filepond-plugin-image-preview-ln9g6gwR.js} +1 -1
- package/dist/esm/{functions-Dd4f5cCM.js → functions-BuD3yG-5.js} +1 -1
- package/dist/esm/{index-DohtU8-7.js → index-D47JMPpe.js} +1 -1
- package/dist/esm/{index-BxKt36mx.js → index-LFMpXt4w.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 +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-tXUCoIr3.js → tracked-promise-DPbO0QsO.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Bn8UZjWt.js → vanilla-picker-DAQGFAt4.js} +1 -1
- package/dist/twilight/{p-23353fc1.entry.js → p-01ae33ac.entry.js} +1 -1
- package/dist/twilight/{p-fd9b57a4.entry.js → p-01f84b1c.entry.js} +1 -1
- package/dist/twilight/{p-c4863bf6.entry.js → p-035ea236.entry.js} +1 -1
- package/dist/twilight/{p-e7bd71a3.entry.js → p-046159e7.entry.js} +1 -1
- package/dist/twilight/{p-fb12850b.entry.js → p-04e86cc4.entry.js} +1 -1
- package/dist/twilight/{p-37b7f9a1.entry.js → p-05989724.entry.js} +1 -1
- package/dist/twilight/{p-92a18a14.entry.js → p-068ab5b3.entry.js} +1 -1
- package/dist/twilight/{p-e4b91ab1.entry.js → p-11f1a28b.entry.js} +1 -1
- package/dist/twilight/p-17970285.entry.js +4 -0
- package/dist/twilight/{p-1e0e3caf.entry.js → p-289e48d4.entry.js} +1 -1
- package/dist/twilight/{p-87bfae72.entry.js → p-2b3591c9.entry.js} +1 -1
- package/dist/twilight/p-2d0bbec1.entry.js +4 -0
- package/dist/twilight/{p-724f7df5.entry.js → p-2e11c53e.entry.js} +1 -1
- package/dist/twilight/{p-3b627b8f.entry.js → p-2e7a103f.entry.js} +1 -1
- package/dist/twilight/{p-1833e7f1.entry.js → p-303b4348.entry.js} +1 -1
- package/dist/twilight/{p-865541e7.entry.js → p-34b5b7d5.entry.js} +1 -1
- package/dist/twilight/{p-bf991695.entry.js → p-355b31ee.entry.js} +1 -1
- package/dist/twilight/{p-73d8bada.entry.js → p-356bbb4f.entry.js} +1 -1
- package/dist/twilight/{p-40f55e09.entry.js → p-37291b15.entry.js} +1 -1
- package/dist/twilight/{p-55bdc159.entry.js → p-3d83750f.entry.js} +1 -1
- package/dist/twilight/{p-76ebb1f3.entry.js → p-40716039.entry.js} +1 -1
- package/dist/twilight/{p-c27fbce5.entry.js → p-426ea2e9.entry.js} +1 -1
- package/dist/twilight/{p-032b3143.entry.js → p-4519a7bc.entry.js} +1 -1
- package/dist/twilight/{p-1ff67f37.entry.js → p-4b55ed30.entry.js} +1 -1
- package/dist/twilight/{p-d2b3b6c5.entry.js → p-4e4dfff9.entry.js} +1 -1
- package/dist/twilight/{p-23e780a2.entry.js → p-525c6230.entry.js} +1 -1
- package/dist/twilight/{p-7f6647bd.entry.js → p-52ac44c5.entry.js} +1 -1
- package/dist/twilight/{p-85b3a22f.entry.js → p-53663091.entry.js} +1 -1
- package/dist/twilight/{p-16abcebc.entry.js → p-5834f1e5.entry.js} +1 -1
- package/dist/twilight/{p-c60cecc8.entry.js → p-5b197d71.entry.js} +1 -1
- package/dist/twilight/{p-4e1e74e7.entry.js → p-5d16469d.entry.js} +1 -1
- package/dist/twilight/{p-820ef744.entry.js → p-5ffdd593.entry.js} +1 -1
- package/dist/twilight/{p-1c2a1511.entry.js → p-619bd683.entry.js} +1 -1
- package/dist/twilight/{p-6d99f564.entry.js → p-627c326c.entry.js} +1 -1
- package/dist/twilight/{p-7069bc5a.entry.js → p-628d1673.entry.js} +1 -1
- package/dist/twilight/{p-53c1d0b8.entry.js → p-6ab24467.entry.js} +1 -1
- package/dist/twilight/{p-3d504212.entry.js → p-6b2c7fd9.entry.js} +1 -1
- package/dist/twilight/{p-02eb80b8.entry.js → p-6b58eb2d.entry.js} +1 -1
- package/dist/twilight/{p-f97149c2.entry.js → p-6e1478a1.entry.js} +1 -1
- package/dist/twilight/{p-d03f573b.entry.js → p-770d84fb.entry.js} +1 -1
- package/dist/twilight/{p-940f0285.entry.js → p-78276ba5.entry.js} +1 -1
- package/dist/twilight/{p-c32e2a71.entry.js → p-795f5e87.entry.js} +1 -1
- package/dist/twilight/{p-f5f84c2a.entry.js → p-7bd6623d.entry.js} +1 -1
- package/dist/twilight/{p-ef58d373.entry.js → p-7cf69f2f.entry.js} +1 -1
- package/dist/twilight/{p-c5acb840.entry.js → p-80141f08.entry.js} +1 -1
- package/dist/twilight/{p-3737a731.entry.js → p-80c8cff1.entry.js} +1 -1
- package/dist/twilight/{p-17d04d37.entry.js → p-84bbc5f0.entry.js} +1 -1
- package/dist/twilight/{p-71ff03c7.entry.js → p-85ca0b80.entry.js} +1 -1
- package/dist/twilight/{p-4f02bb67.entry.js → p-8ae1064c.entry.js} +1 -1
- package/dist/twilight/{p-1dda49a2.entry.js → p-8b37e9f6.entry.js} +1 -1
- package/dist/twilight/{p-aa0a82ba.entry.js → p-8c679c7b.entry.js} +1 -1
- package/dist/twilight/{p-eb970c64.entry.js → p-96b69cc2.entry.js} +1 -1
- package/dist/twilight/{p-f28a753d.entry.js → p-9774320f.entry.js} +1 -1
- package/dist/twilight/{p-CHf8XdiS.js → p-BcbKK1Xp.js} +1 -1
- package/dist/twilight/{p-BF2OeDPC.js → p-BeSwpz9O.js} +1 -1
- package/dist/twilight/{p-CwiIgE9I.js → p-BoSXpmeB.js} +1 -1
- package/dist/twilight/{p-C-xAJPgJ.js → p-C60CVu0N.js} +1 -1
- package/dist/twilight/{p-pXzGsRrE.js → p-CUtmSDDB.js} +1 -1
- package/dist/twilight/{p-CoKgv23c.js → p-CZckMsJI.js} +1 -1
- package/dist/twilight/{p-BJrHiNT7.js → p-CgrzPzoa.js} +1 -1
- package/dist/twilight/{p-BEUsRLpS.js → p-CjEmeOim.js} +1 -1
- package/dist/twilight/{p-DvUuxBCy.js → p-Ck4ltJzi.js} +1 -1
- package/dist/twilight/{p-CLJJGa4R.js → p-DILJJ674.js} +1 -1
- package/dist/twilight/{p-B37vFXxB.js → p-Dh7EHj7d.js} +1 -1
- package/dist/twilight/p-LFMpXt4w.js +5 -0
- package/dist/twilight/{p-b3fca774.entry.js → p-a119c0b5.entry.js} +1 -1
- package/dist/twilight/{p-0c4cba69.entry.js → p-a6734e3a.entry.js} +1 -1
- package/dist/twilight/{p-e5494d9d.entry.js → p-a70406d4.entry.js} +1 -1
- package/dist/twilight/{p-2082d185.entry.js → p-a76b17e2.entry.js} +1 -1
- package/dist/twilight/{p-32d49832.entry.js → p-a9a5c8fa.entry.js} +1 -1
- package/dist/twilight/{p-2177b796.entry.js → p-adab7f42.entry.js} +1 -1
- package/dist/twilight/{p-213dfc6e.entry.js → p-adfecc83.entry.js} +1 -1
- package/dist/twilight/{p-2ec44c82.entry.js → p-b5083002.entry.js} +1 -1
- package/dist/twilight/{p-44e22a0b.entry.js → p-b92bb0e6.entry.js} +1 -1
- package/dist/twilight/{p-7720867a.entry.js → p-bde5b9ac.entry.js} +1 -1
- package/dist/twilight/{p-dc9d31bd.entry.js → p-be894841.entry.js} +1 -1
- package/dist/twilight/{p-4c1cda26.entry.js → p-c1ab48f6.entry.js} +1 -1
- package/dist/twilight/{p-74966aa4.entry.js → p-c2ec7224.entry.js} +1 -1
- package/dist/twilight/{p-67378b91.entry.js → p-c7376a3d.entry.js} +1 -1
- package/dist/twilight/{p-ab8d1c50.entry.js → p-c74934e9.entry.js} +1 -1
- package/dist/twilight/{p-ae873bb3.entry.js → p-ca1140a4.entry.js} +1 -1
- package/dist/twilight/{p-eba31f7c.entry.js → p-cd24514a.entry.js} +1 -1
- package/dist/twilight/{p-14818bbc.entry.js → p-cdc6db50.entry.js} +1 -1
- package/dist/twilight/{p-f89ac2c3.entry.js → p-ce75d101.entry.js} +1 -1
- package/dist/twilight/{p-27ff5ee4.entry.js → p-d4780439.entry.js} +1 -1
- package/dist/twilight/{p-e7e7acbd.entry.js → p-da736b50.entry.js} +1 -1
- package/dist/twilight/{p-cf71632e.entry.js → p-db5c545a.entry.js} +1 -1
- package/dist/twilight/{p-23aacddd.entry.js → p-e2044262.entry.js} +1 -1
- package/dist/twilight/{p-bedfe2f1.entry.js → p-e35e0f54.entry.js} +1 -1
- package/dist/twilight/{p-6e7c61b6.entry.js → p-e49e893c.entry.js} +1 -1
- package/dist/twilight/{p-5ba6fa7b.entry.js → p-e5631806.entry.js} +1 -1
- package/dist/twilight/{p-c5fdba11.entry.js → p-e682012f.entry.js} +1 -1
- package/dist/twilight/{p-59ce0a62.entry.js → p-eea3ae1c.entry.js} +1 -1
- package/dist/twilight/{p-2a763bb1.entry.js → p-f32fa56d.entry.js} +1 -1
- package/dist/twilight/{p-13de7f9d.entry.js → p-f349772e.entry.js} +1 -1
- package/dist/twilight/{p-2d39c870.entry.js → p-f4ecb099.entry.js} +1 -1
- package/dist/twilight/{p-7708a3e0.entry.js → p-fc27afea.entry.js} +1 -1
- package/dist/twilight/{p-0306c8f5.entry.js → p-fc9573b3.entry.js} +1 -1
- package/dist/twilight/{p-bfe100b5.entry.js → p-ff0ce619.entry.js} +1 -1
- package/dist/twilight/{p-CgUFhQLc.js → p-wLMN58-n.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/Helper.d.ts +1 -0
- package/dist/types/components/salla-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/package.json +5 -5
- package/dist/twilight/p-13fb05be.entry.js +0 -4
- package/dist/twilight/p-BxKt36mx.js +0 -5
- 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
|
}]);
|
|
@@ -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-LFMpXt4w.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);
|