@salla.sa/twilight-components 2.14.509 → 2.14.510
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-Dn8WkI9_.js → filepond-COZHgu78.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-mufjzLbD.js → filepond-plugin-file-poster-Bi4mWImr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BC6t5UPj.js → filepond-plugin-file-validate-size-CtrIas22.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CaQ5Kqok.js → filepond-plugin-file-validate-type-Djj5o2ks.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DvSmfnUl.js → filepond-plugin-image-edit-CaVm_-Xi.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Br5ovpCW.js → filepond-plugin-image-exif-orientation-BD44-lrC.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C71ogaak.js → filepond-plugin-image-preview-BlHYB_rk.js} +1 -1
- package/dist/cjs/{functions-DgFPxTJv.js → functions-D7e0oMZu.js} +1 -1
- package/dist/cjs/{index-CeEhEVDJ.js → index-D6MQobeP.js} +2 -2
- package/dist/cjs/{index-DHuZTkix.js → index-KhpPkTL1.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 +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- 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-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +36 -16
- 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_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +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-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 +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 +36 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +26 -3
- 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 +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DDnavSzb.js → tracked-promise-Dmb45-BD.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CyrLIKBL.js → vanilla-picker-B_OQkkn3.js} +1 -1
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +36 -15
- package/dist/collection/components/salla-products-list/salla-products-list.js +25 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +35 -5
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-coupons.js +36 -15
- package/dist/components/salla-products-list2.js +25 -2
- package/dist/components/salla-products-slider2.js +35 -5
- package/dist/esm/{filepond-Cu0hGP46.js → filepond-B1eTr-KK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DBfLrjkx.js → filepond-plugin-file-poster-exJROlFk.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cq0e60aE.js → filepond-plugin-file-validate-size-CZY_F4BF.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CpRmNAFC.js → filepond-plugin-file-validate-type-D8z0FHfz.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C-7yhkPK.js → filepond-plugin-image-edit-CACbacvT.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CTn5LeXC.js → filepond-plugin-image-exif-orientation-DwS9XuCo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BsETbqVf.js → filepond-plugin-image-preview-BYy-d2mY.js} +1 -1
- package/dist/esm/{functions-DtC2lEvS.js → functions-DEUWeLq4.js} +1 -1
- package/dist/esm/{index-BEjZOd--.js → index-Bt0ajKaf.js} +2 -2
- package/dist/esm/{index-DskkoO4T.js → index-FMb5OkaH.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- 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-basket-gap.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +36 -16
- 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_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +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-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 +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 +36 -6
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +26 -3
- 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 +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-DzdT8znx.js → tracked-promise-T29mWxDS.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DzKX2qA5.js → vanilla-picker-Dpp89BQ6.js} +1 -1
- package/dist/twilight/{p-557609aa.entry.js → p-055187ca.entry.js} +1 -1
- package/dist/twilight/{p-858f485b.entry.js → p-09ea780c.entry.js} +1 -1
- package/dist/twilight/{p-3350c805.entry.js → p-0adbdc90.entry.js} +1 -1
- package/dist/twilight/{p-8f982a91.entry.js → p-1071ea00.entry.js} +1 -1
- package/dist/twilight/{p-2643952e.entry.js → p-139c80a0.entry.js} +1 -1
- package/dist/twilight/{p-193cccd3.entry.js → p-1b0d555a.entry.js} +1 -1
- package/dist/twilight/{p-113e7032.entry.js → p-1e225a23.entry.js} +1 -1
- package/dist/twilight/{p-3ccbdb7a.entry.js → p-1f3d6151.entry.js} +1 -1
- package/dist/twilight/{p-925af19b.entry.js → p-22712655.entry.js} +1 -1
- package/dist/twilight/{p-42c57314.entry.js → p-22d6c097.entry.js} +1 -1
- package/dist/twilight/{p-3791a8d0.entry.js → p-23bfb6be.entry.js} +1 -1
- package/dist/twilight/{p-62abd25a.entry.js → p-277d5788.entry.js} +1 -1
- package/dist/twilight/{p-6ba99048.entry.js → p-2a4b20fa.entry.js} +1 -1
- package/dist/twilight/{p-d66af968.entry.js → p-2e6b6fbb.entry.js} +1 -1
- package/dist/twilight/{p-41ac2dc0.entry.js → p-2f7ddf17.entry.js} +1 -1
- package/dist/twilight/{p-b25fd5f0.entry.js → p-300e6aef.entry.js} +1 -1
- package/dist/twilight/{p-384febda.entry.js → p-301e3802.entry.js} +1 -1
- package/dist/twilight/{p-6d970be9.entry.js → p-346af34c.entry.js} +1 -1
- package/dist/twilight/{p-fc18bd83.entry.js → p-37e88d81.entry.js} +1 -1
- package/dist/twilight/{p-758894b7.entry.js → p-41269041.entry.js} +1 -1
- package/dist/twilight/{p-2c7e18c5.entry.js → p-4136f4d5.entry.js} +1 -1
- package/dist/twilight/{p-de07b85c.entry.js → p-42fc42d6.entry.js} +1 -1
- package/dist/twilight/{p-4317eeb9.entry.js → p-4328bd24.entry.js} +1 -1
- package/dist/twilight/{p-0a3e9f94.entry.js → p-44c94e17.entry.js} +1 -1
- package/dist/twilight/{p-b847e008.entry.js → p-457be53a.entry.js} +1 -1
- package/dist/twilight/{p-734dfd28.entry.js → p-49c926d2.entry.js} +1 -1
- package/dist/twilight/{p-8fcc4bb0.entry.js → p-4e7b8137.entry.js} +1 -1
- package/dist/twilight/{p-8ddfe69e.entry.js → p-4eb47f77.entry.js} +1 -1
- package/dist/twilight/{p-d76f186c.entry.js → p-4f61e580.entry.js} +1 -1
- package/dist/twilight/{p-3d44e1e9.entry.js → p-5255bb4a.entry.js} +1 -1
- package/dist/twilight/{p-4d76cd8f.entry.js → p-549b56f5.entry.js} +1 -1
- package/dist/twilight/{p-09cd7f70.entry.js → p-57919fb4.entry.js} +1 -1
- package/dist/twilight/{p-86df9649.entry.js → p-5a62369e.entry.js} +1 -1
- package/dist/twilight/{p-d53f9574.entry.js → p-5b9c3427.entry.js} +1 -1
- package/dist/twilight/{p-6c3b50e2.entry.js → p-5e02c7e7.entry.js} +1 -1
- package/dist/twilight/{p-74c84c67.entry.js → p-5e1140fb.entry.js} +1 -1
- package/dist/twilight/{p-33756c72.entry.js → p-5e851bce.entry.js} +1 -1
- package/dist/twilight/{p-37310557.entry.js → p-5f2f9351.entry.js} +1 -1
- package/dist/twilight/{p-0959b41c.entry.js → p-65ba2211.entry.js} +1 -1
- package/dist/twilight/{p-da441555.entry.js → p-67bd9271.entry.js} +1 -1
- package/dist/twilight/{p-effae25c.entry.js → p-6dd674c3.entry.js} +1 -1
- package/dist/twilight/{p-48cf6b68.entry.js → p-6ed50846.entry.js} +1 -1
- package/dist/twilight/{p-9807935d.entry.js → p-70a1619e.entry.js} +1 -1
- package/dist/twilight/{p-ed698e64.entry.js → p-70a9d197.entry.js} +1 -1
- package/dist/twilight/{p-27acb426.entry.js → p-75500766.entry.js} +1 -1
- package/dist/twilight/{p-9eade28d.entry.js → p-774fece9.entry.js} +1 -1
- package/dist/twilight/{p-f3f0ee9b.entry.js → p-7992cf55.entry.js} +1 -1
- package/dist/twilight/{p-296df4c6.entry.js → p-7d5855f2.entry.js} +1 -1
- package/dist/twilight/{p-12c571d7.entry.js → p-7d978fbc.entry.js} +1 -1
- package/dist/twilight/{p-518b6032.entry.js → p-7dfe0786.entry.js} +1 -1
- package/dist/twilight/p-7ebd07e6.entry.js +4 -0
- package/dist/twilight/{p-52c0a1b5.entry.js → p-86ec92b8.entry.js} +1 -1
- package/dist/twilight/{p-0950cbbb.entry.js → p-8775397b.entry.js} +1 -1
- package/dist/twilight/{p-03505fdd.entry.js → p-8a0d3cc9.entry.js} +1 -1
- package/dist/twilight/p-8a80f76c.entry.js +4 -0
- package/dist/twilight/{p-abd00b41.entry.js → p-8db02f76.entry.js} +1 -1
- package/dist/twilight/{p-bec996fb.entry.js → p-90de004a.entry.js} +1 -1
- package/dist/twilight/{p-bbb48f58.entry.js → p-91804117.entry.js} +1 -1
- package/dist/twilight/{p-fef39c48.entry.js → p-9310e773.entry.js} +1 -1
- package/dist/twilight/{p-8c6730a9.entry.js → p-95b32475.entry.js} +1 -1
- package/dist/twilight/{p-804cfed5.entry.js → p-97bb4320.entry.js} +1 -1
- package/dist/twilight/{p-7e4fea4b.entry.js → p-98b482a2.entry.js} +1 -1
- package/dist/twilight/p-9c12fd69.entry.js +4 -0
- package/dist/twilight/{p-30d6436e.entry.js → p-9c220b6d.entry.js} +1 -1
- package/dist/twilight/p-9cbf61c6.entry.js +4 -0
- package/dist/twilight/{p-Da0xrmo3.js → p-BBv-zo85.js} +2 -2
- package/dist/twilight/{p-Dv2SelMn.js → p-BF-dDqac.js} +1 -1
- package/dist/twilight/{p-CxQVHI3A.js → p-BFxb7lGH.js} +1 -1
- package/dist/twilight/{p-CCH8joDb.js → p-BUfV-mlp.js} +1 -1
- package/dist/twilight/p-Bt0ajKaf.js +5 -0
- package/dist/twilight/{p-BTVc7r-Z.js → p-C1E96uk_.js} +1 -1
- package/dist/twilight/p-CUg7C93N.js +4 -0
- package/dist/twilight/{p-CGahPnsw.js → p-CdRScS-B.js} +1 -1
- package/dist/twilight/{p-BDLhoSt2.js → p-CgGcK4mo.js} +1 -1
- package/dist/twilight/{p-COwpiJQt.js → p-DInaMMrI.js} +1 -1
- package/dist/twilight/p-DSxQpYYV.js +9 -0
- package/dist/twilight/{p-D2_JplO8.js → p-NoY5Pdvf.js} +1 -1
- package/dist/twilight/{p-725eeeed.entry.js → p-a660aacc.entry.js} +1 -1
- package/dist/twilight/{p-d6d8d12e.entry.js → p-a7e8ac45.entry.js} +1 -1
- package/dist/twilight/{p-8c03c0d2.entry.js → p-a8f28e45.entry.js} +1 -1
- package/dist/twilight/{p-27252d50.entry.js → p-aea5b09b.entry.js} +1 -1
- package/dist/twilight/{p-a476f7b2.entry.js → p-afd24c2b.entry.js} +1 -1
- package/dist/twilight/{p-e1842675.entry.js → p-b09fcdb4.entry.js} +1 -1
- package/dist/twilight/{p-fa7c213b.entry.js → p-b197fad7.entry.js} +1 -1
- package/dist/twilight/{p-8b9c8776.entry.js → p-b37ea19f.entry.js} +1 -1
- package/dist/twilight/{p-62a86556.entry.js → p-b626976f.entry.js} +1 -1
- package/dist/twilight/{p-7edc5c88.entry.js → p-bd847c2e.entry.js} +1 -1
- package/dist/twilight/{p-d6fbb91c.entry.js → p-c5d7a901.entry.js} +1 -1
- package/dist/twilight/{p-1bec8b0a.entry.js → p-cfc4cfaa.entry.js} +1 -1
- package/dist/twilight/{p-25f8d253.entry.js → p-d172feb2.entry.js} +1 -1
- package/dist/twilight/{p-b6322bba.entry.js → p-d18e08bd.entry.js} +1 -1
- package/dist/twilight/{p-017a1a77.entry.js → p-d4b2ce41.entry.js} +1 -1
- package/dist/twilight/{p-ad8eda9d.entry.js → p-d60ce89d.entry.js} +1 -1
- package/dist/twilight/{p-69758093.entry.js → p-dd87bf9c.entry.js} +1 -1
- package/dist/twilight/{p-e69c2c35.entry.js → p-e13fc06b.entry.js} +1 -1
- package/dist/twilight/{p-05f01920.entry.js → p-e232c59b.entry.js} +1 -1
- package/dist/twilight/{p-8d199be5.entry.js → p-e2693453.entry.js} +1 -1
- package/dist/twilight/{p-21870458.entry.js → p-e3e9a105.entry.js} +1 -1
- package/dist/twilight/{p-516e9179.entry.js → p-e57d1b21.entry.js} +1 -1
- package/dist/twilight/{p-6681db6a.entry.js → p-e8070f83.entry.js} +1 -1
- package/dist/twilight/{p-e78fe137.entry.js → p-e8a86f16.entry.js} +1 -1
- package/dist/twilight/{p-1df6827d.entry.js → p-ea0ca518.entry.js} +1 -1
- package/dist/twilight/{p-b2789ab4.entry.js → p-f0d1222d.entry.js} +1 -1
- package/dist/twilight/{p-1c03607d.entry.js → p-f61c0f39.entry.js} +1 -1
- package/dist/twilight/{p-5201eb4f.entry.js → p-f6efad0a.entry.js} +1 -1
- package/dist/twilight/{p-47a7f1a5.entry.js → p-f7a0c179.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-coupons/salla-cart-coupons.d.ts +5 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +13 -0
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +13 -0
- package/package.json +5 -5
- package/dist/twilight/p--UKCKF-7.js +0 -4
- package/dist/twilight/p-19388aef.entry.js +0 -4
- package/dist/twilight/p-5958986c.entry.js +0 -4
- package/dist/twilight/p-BEjZOd--.js +0 -5
- package/dist/twilight/p-Dw58JgkP.js +0 -9
- package/dist/twilight/p-c4f379a8.entry.js +0 -4
- package/dist/twilight/p-e7b03751.entry.js +0 -4
|
@@ -3,6 +3,8 @@ export declare class SallaCartCoupons {
|
|
|
3
3
|
host: HTMLElement;
|
|
4
4
|
availableCoupons: Coupon[];
|
|
5
5
|
cartTotal: number;
|
|
6
|
+
/** False until a sub_total is read from storage or the server — guards isEligible. */
|
|
7
|
+
cartTotalReady: boolean;
|
|
6
8
|
currentCoupon: string;
|
|
7
9
|
couponInputValue: string;
|
|
8
10
|
couponError: string;
|
|
@@ -40,6 +42,9 @@ export declare class SallaCartCoupons {
|
|
|
40
42
|
* entirely and let refreshFromServer/cart::updated populate the chips from the server.
|
|
41
43
|
*/
|
|
42
44
|
private seedFromStorage;
|
|
45
|
+
/** SDK caches summary fields separately from the cart object (see cart.js updated()). */
|
|
46
|
+
private seedTotalsFromSummaryStorage;
|
|
47
|
+
private syncCartTotal;
|
|
43
48
|
/**
|
|
44
49
|
* Fetch the cart fresh from the server (salla.cart.details -> CartPresenter::forApi) and
|
|
45
50
|
* seed the applied codes + total from its authoritative payload (cart.coupons). Falls back
|
|
@@ -236,4 +236,17 @@ export declare class SallaProductsList {
|
|
|
236
236
|
render(): any;
|
|
237
237
|
private init;
|
|
238
238
|
private handleResponse;
|
|
239
|
+
/**
|
|
240
|
+
* Allows bundles to modify or replace products before they are appended.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* salla.hooks.registerHook(
|
|
244
|
+
* 'salla-products-list',
|
|
245
|
+
* 'beforeAppendItems',
|
|
246
|
+
* async (ctx) => {
|
|
247
|
+
* ctx.items = ctx.items.filter((item) => item.is_available);
|
|
248
|
+
* },
|
|
249
|
+
* );
|
|
250
|
+
*/
|
|
251
|
+
private applyBeforeAppendItems;
|
|
239
252
|
}
|
|
@@ -108,5 +108,18 @@ export declare class SallaProductsSlider {
|
|
|
108
108
|
private canRender;
|
|
109
109
|
private getSource;
|
|
110
110
|
private getSourceValue;
|
|
111
|
+
/**
|
|
112
|
+
* Allows bundles to modify or replace products before they are rendered.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* salla.hooks.registerHook(
|
|
116
|
+
* 'salla-products-slider',
|
|
117
|
+
* 'beforeAppendItems',
|
|
118
|
+
* async (ctx) => {
|
|
119
|
+
* ctx.items = ctx.items.filter((item) => item.is_available);
|
|
120
|
+
* },
|
|
121
|
+
* );
|
|
122
|
+
*/
|
|
123
|
+
private applyBeforeAppendItems;
|
|
111
124
|
render(): any;
|
|
112
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.510",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@googlemaps/markerclusterer": "2.6.2",
|
|
84
|
-
"@salla.sa/applepay": "2.14.
|
|
85
|
-
"@salla.sa/twilight": "2.14.
|
|
86
|
-
"@salla.sa/twilight-tailwind-theme": "2.14.
|
|
84
|
+
"@salla.sa/applepay": "2.14.510",
|
|
85
|
+
"@salla.sa/twilight": "2.14.510",
|
|
86
|
+
"@salla.sa/twilight-tailwind-theme": "2.14.510",
|
|
87
87
|
"@salla.sa/ui-address-autocomplete-widget": "1.2.1",
|
|
88
88
|
"@salla.sa/ui-google-map-render": "1.2.1",
|
|
89
89
|
"@types/node": "^20.4.8",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"vanilla-lazyload": "^17.8.5",
|
|
105
105
|
"vanilla-picker": "^2.12.2"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "13df0a63868d84e9d748dee16140902f6d8596cd"
|
|
108
108
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{f as t}from"./p-BEjZOd--.js";function r(r,s={}){return s=Object.assign({initialData:void 0,initialStatus:"idle"},s),(i,e)=>{const o=Object.assign((function(...s){const i=r=>{Object.assign(this[e],r),t(this)};return i({status:"pending",error:void 0}),r.call(this,...s).then((t=>(i({status:"success",data:t,error:void 0}),t)),(t=>(i({status:"error",error:t}),Promise.reject(t))))}),{status:s.initialStatus,data:s.initialData,error:void 0});Object.defineProperty(i,e,{value:o})}}export{r as T}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as d,h as t,H as r}from"./p-BEjZOd--.js";const c=class{constructor(t){e(this,t),this.orderEditProductSelected=d(this,"orderEditProductSelected")}get productData(){if(!this.product)return{};if("object"==typeof this.product)return this.product;try{return JSON.parse(this.product)}catch(e){return{}}}handleSelectProduct(){this.orderEditProductSelected.emit({product:this.productData})}render(){const e=this.productData,d=e?.name||salla.lang.getWithDefault("common.elements.product","منتج"),c=e?.price;return t(r,{key:"7669432a4756da446e16d9a3093a067767c5dd9d"},t("button",{key:"d998dde2a1dc4eae7444fd398910c3a0699730f8",type:"button",class:"s-order-edit-product-card",onClick:()=>this.handleSelectProduct()},t("div",{key:"6a0e6eec84de332598d94be87b49564eeb2cfbc2",class:"s-order-edit-product-card-media"},e?.image?.url?t("img",{src:e.image.url,alt:e.image.alt||d,class:"s-order-edit-product-card-image"}):t("div",{class:"s-order-edit-product-card-placeholder"},t("i",{class:"sicon-shopping-bag"}))),t("div",{key:"4eeb9f7430c19f8e792b0f6856fb86a2f265eb95",class:"s-order-edit-product-card-content"},t("h3",{key:"840ae549097a53f1f297673d69e3155792a4097e",class:"s-order-edit-product-card-title"},d),null!=c&&t("p",{key:"32732854ca599fe446d0b47883b892ac17d90cae",class:"s-order-edit-product-card-price",innerHTML:salla.money(c)}))))}};c.style=":host{display:block;min-width:0}";export{c as salla_order_edit_product_card}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as s,h as a,H as t,a as o}from"./p-BEjZOd--.js";const i=class{constructor(a){s(this,a),this.availableCoupons=[],this.cartTotal=0,this.currentCoupon="",this.couponInputValue="",this.couponError="",this.isApplying=!1,this.appliedCoupons=[],this.multiCoupon=!1,this.isHandlingInternalError=!1,this.cartUpdatedHandler=s=>{this.cartTotal=s?.summary?.sub_total??s?.sub_total??s?.total??this.cartTotal,(this.multiCoupon?Array.isArray(s?.coupons):s&&"coupon"in s)&&this.syncAppliedFromCart(s),this.couponError=""},this.couponAddedHandler=()=>{this.isApplying||this.isHandlingInternalError||this.refreshFromServer()},this.couponAdditionFailedHandler=s=>{this.isApplying||this.isHandlingInternalError||this.showCouponError(s?.message||salla.lang.get("pages.cart.coupon_application_error"))},this.couponDeletedHandler=()=>{this.isApplying||this.isHandlingInternalError||this.refreshFromServer()},this.onKeyUp=s=>{"Enter"===s.key&&this.couponButtonRef?.click(),this.couponError=""},this.onInput=s=>{this.couponInputValue=s.target.value}}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),this.multiCoupon=!!salla.config.get("store.settings.cart.multi_coupon"),this.loadCouponsData(),this.seedFromStorage(),this.loadCartTotal(),this.setupCartEventListeners()}setupCartEventListeners(){salla.event.on("cart::updated",this.cartUpdatedHandler),salla.event.on("cart::coupon.added",this.couponAddedHandler),salla.event.on("cart::coupon.addition.failed",this.couponAdditionFailedHandler),salla.event.on("cart::coupon.deleted",this.couponDeletedHandler)}disconnectedCallback(){salla.event.off("cart::updated",this.cartUpdatedHandler),salla.event.off("cart::coupon.added",this.couponAddedHandler),salla.event.off("cart::coupon.addition.failed",this.couponAdditionFailedHandler),salla.event.off("cart::coupon.deleted",this.couponDeletedHandler)}async selectCoupon(s){const a=this.availableCoupons.find((a=>a.code===s));if(a){if(!this.isEligible(a))throw new Error("Coupon not eligible: minimum cart amount not met");try{await this.applyCoupon(s),this.host.dispatchEvent(new CustomEvent("salla::cart-coupons.coupon.selected",{detail:a,bubbles:!0}))}catch(s){throw s}}return a}async loadCouponsData(){try{const s=await salla.api.request("coupons"),a=s?.data,t=Array.isArray(a)?a:Array.isArray(a?.data)?a.data:[];this.availableCoupons=t}catch(s){console.warn("Failed to load coupons:",s),this.availableCoupons=[]}}async loadCartTotal(){this.multiCoupon&&await this.refreshFromServer()}seedFromStorage(){if(this.multiCoupon)return;const s=salla.storage.get("cart");s&&"object"==typeof s&&"coupon"in s&&this.applyCart(s)}async refreshFromServer(){try{const s=await salla.cart.details(),a=s?.data?.cart??s?.data??s;if(a&&"object"==typeof a&&(Array.isArray(a.coupons)||"coupon"in a))return void this.applyCart(a)}catch(s){}const s=salla.storage.get("cart");s&&this.applyCart(s)}applyCart(s){this.cartTotal=s?.summary?.sub_total??s?.sub_total??this.cartTotal,this.syncAppliedFromCart(s)}syncAppliedFromCart(s){this.currentCoupon=s?.coupon||"",this.multiCoupon?this.appliedCoupons=Array.isArray(s?.coupons)?s.coupons.filter(Boolean):this.currentCoupon?[this.currentCoupon]:[]:(this.couponInputValue=this.currentCoupon,this.appliedCoupons=this.currentCoupon?[this.currentCoupon]:[])}async handleApplyClick(){if(this.isApplying)return;const s=this.couponInputValue.trim();if(s){this.isApplying=!0,this.isHandlingInternalError=!0;try{await salla.cart.addCoupon(s),await this.refreshFromServer(),this.couponInputValue=""}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}else this.showCouponError(salla.lang.get("pages.cart.enter_coupon_code"))}async handleCouponButtonClick(){if(this.isApplying)return;const s=!!this.currentCoupon;if(s||this.couponInputValue.trim()){this.isApplying=!0,this.isHandlingInternalError=!0;try{s?await salla.cart.deleteCoupon():await salla.cart.addCoupon(this.couponInputValue.trim()),await this.refreshFromServer()}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}else this.showCouponError(salla.lang.get("pages.cart.enter_coupon_code"))}async removeCoupon(s){if(!this.isApplying){this.isApplying=!0,this.isHandlingInternalError=!0;try{this.multiCoupon?await salla.cart.deleteCoupon(s):await salla.cart.deleteCoupon(),await this.refreshFromServer()}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}}showCouponError(s){this.couponError=s}handleCouponClick(s){this.applyCoupon(s.code,!1).catch((()=>{}))}async applyCoupon(s,a=!0){if(this.isApplying){if(a)throw new Error("Coupon application already in progress")}else{this.couponInputValue=s,this.couponError="",this.isApplying=!0,this.isHandlingInternalError=!0;try{await salla.cart.addCoupon(s.trim()),await this.refreshFromServer(),this.multiCoupon&&(this.couponInputValue="")}catch(s){if(this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error")),a)throw s}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}}formatMainAmount(s){if("percentage"===s.type)return`${salla.helpers.number("object"==typeof s.amount?s.amount.amount:s.amount)}%`;{const t="object"==typeof s.amount?s.amount:{amount:s.amount,currency:s.minimum_amount?.currency||salla.config.get("store.currency.code","SAR")};return a("span",{innerHTML:salla.money(t.amount,t.currency)})}}isEligible(s){return!(s.minimum_amount&&this.cartTotal<parseFloat(s.minimum_amount.amount))}renderCouponCard(s){const t=this.isEligible(s);return a("div",{class:"s-cart-coupons-slide-one-fourth swiper-slide"},a("div",{class:"s-cart-coupons-card "+(!t||this.isApplying?"s-cart-coupons-disabled":""),onClick:()=>t&&!this.isApplying&&this.handleCouponClick(s)},a("div",{class:"s-cart-coupons-top-section"},a("div",{class:"s-cart-coupons-discount-values"},a("div",{class:"s-cart-coupons-main-amount"},this.formatMainAmount(s)),s.free_shipping?a("div",{class:"s-cart-coupons-secondary-info"},"+ ",salla.lang.get("pages.cart.free_shipping")):s.maximum_amount&&a("div",{class:"s-cart-coupons-secondary-info"},salla.lang.get("pages.cart.up_to")," ",a("span",{innerHTML:salla.money(s.maximum_amount.amount,s.maximum_amount.currency)}))),a("div",{class:"s-cart-coupons-code"},s.code)),a("div",{class:"s-cart-coupons-divider"}),a("div",{class:"s-cart-coupons-bottom-section"},a("div",{class:"s-cart-coupons-terms"},null!=s.remaining_days&&a("div",{class:"s-cart-coupons-expiry "+(s.remaining_days<=3?"s-cart-coupons-expiry-warning":"")},0===s.remaining_days?salla.lang.get("pages.cart.expires_today"):`${salla.lang.get("pages.cart.expires_after")} ${s.remaining_days} ${salla.lang.get("pages.cart.day")}`),s.minimum_amount&&parseFloat(s.minimum_amount.amount)>0&&a("div",{class:"s-cart-coupons-minimum"},salla.lang.get("pages.cart.minimum")," ",a("span",{innerHTML:salla.money(s.minimum_amount.amount,s.minimum_amount.currency)}))),a("div",{class:"s-cart-coupons-action"},t?salla.lang.get("pages.cart.save_coupon"):salla.lang.get("pages.cart.coupon_not_compatible")))))}render(){return a(t,{key:"30a1ee00e7ec27d12012823347cbcf3c477834e5"},a("div",{key:"6f84298e9ebd6c50c84fb9a3736d734996e39c33",class:"s-cart-coupons-wrapper"},a("div",{key:"b95a1c2b29d2fed54fdf143eac8e37add062668b",class:"s-cart-coupons-input-section"},a("label",{key:"e6711fae70db31f8a5987cb58f0488e974394e1c",htmlFor:"coupon-input",class:"s-cart-coupons-coupon-label"},salla.lang.get("pages.cart.have_coupon")),a("div",{key:"824b806c6aa40fb039f659fe81f6cb7686f46b10",class:"s-cart-coupons-coupon-input-container"},this.multiCoupon?[a("input",{type:"text",id:"coupon-input",name:"coupon",class:"form-input "+(this.couponError?"s-coupon-input-error":""),placeholder:salla.lang.get("pages.cart.coupon_placeholder"),value:this.couponInputValue,disabled:this.isApplying,onInput:this.onInput,onKeyUp:this.onKeyUp,"aria-label":salla.lang.get("pages.cart.apply_coupon"),key:"coupon-input"}),a("salla-button",{ref:s=>this.couponButtonRef=s,class:"s-cart-coupons-coupon-button s-cart-coupons-coupon-button-apply",color:"primary",loading:this.isApplying,"loader-position":"center",onClick:()=>this.handleApplyClick(),key:"apply-button"},a("span",null,salla.lang.get("pages.cart.save_coupon")))]:[a("input",{type:"text",id:"coupon-input",name:"coupon",class:"form-input "+(this.couponError?"s-coupon-input-error":""),placeholder:salla.lang.get("pages.cart.coupon_placeholder"),value:this.couponInputValue,disabled:!!this.currentCoupon||this.isApplying,onInput:this.onInput,onKeyUp:this.onKeyUp,"aria-label":salla.lang.get("pages.cart.apply_coupon"),key:"coupon-input"}),a("salla-button",{ref:s=>this.couponButtonRef=s,class:"s-cart-coupons-coupon-button "+(this.currentCoupon?"s-cart-coupons-coupon-button-remove":"s-cart-coupons-coupon-button-apply"),color:this.currentCoupon?"danger":"primary",loading:this.isApplying,"loader-position":"center",onClick:()=>this.handleCouponButtonClick(),key:"apply-button"},this.currentCoupon?a("i",{class:"sicon-cancel"}):a("span",null,salla.lang.get("pages.cart.save_coupon")))]),this.couponError&&a("span",{key:"0f3b36e8192777fb7e7d0a065fe720c009065f9d",class:"s-cart-coupons-coupon-error"},this.couponError),this.multiCoupon&&this.appliedCoupons.length>0&&a("div",{key:"b680e30bd1ae49db5e304440431cdc89c6e5d051",class:"s-cart-coupons-applied-list"},this.appliedCoupons.map((s=>a("div",{class:"s-cart-coupons-applied-item",key:s},a("span",{class:"s-cart-coupons-applied-code"},s),a("button",{type:"button",class:"s-cart-coupons-applied-remove","aria-label":`${salla.lang.get("pages.cart.delete")} ${s}`,disabled:this.isApplying,onClick:()=>this.removeCoupon(s)},a("i",{class:"sicon-cancel"}))))))),this.availableCoupons&&this.availableCoupons.length>0&&a("salla-slider",{key:"a2d312dbf6e997939f54c7867ef0d98091bbde4a",type:"carousel",showControls:!1,class:"s-cart-coupons-slider"},a("div",{key:"b474dcbdeabc26bef5ecba94dd78ef72a60950df",slot:"items"},this.availableCoupons.map((s=>this.renderCouponCard(s)))))))}get host(){return o(this)}};i.style='.s-cart-coupons-applied-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.s-cart-coupons-applied-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;border-inline-start:3px solid #10b981}.s-cart-coupons-applied-code{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#111827}.s-cart-coupons-applied-code::before{content:"";width:7px;height:7px;border-radius:9999px;background:#10b981}.s-cart-coupons-applied-remove{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;color:#ef4444;background:transparent;border:0;border-radius:9999px;cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease}.s-cart-coupons-applied-remove:hover{background:#fef2f2}.s-cart-coupons-applied-remove:disabled{opacity:0.5;cursor:not-allowed}';export{i as salla_cart_coupons}
|