@salla.sa/twilight-components 2.14.434 → 2.14.436
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-CWW6qAlB.js → filepond-Wti5_45L.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-tqITvQar.js → filepond-plugin-file-poster-CEcJ5Z8G.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BfDaORpj.js → filepond-plugin-file-validate-size-DF7roDpg.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DW0ppYcG.js → filepond-plugin-file-validate-type-ebEnUCPK.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-c9ML3iba.js → filepond-plugin-image-edit-DXUlk4ez.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-XTmaoGOO.js → filepond-plugin-image-exif-orientation-Dix6F0fH.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BNlkC9-r.js → filepond-plugin-image-preview-RrfK4pyW.js} +1 -1
- package/dist/cjs/{functions-BW_9N8hU.js → functions-B_ldeo2w.js} +1 -1
- package/dist/cjs/{index-DGugEE5Q.js → index-B0tCpQwT.js} +1 -1
- package/dist/cjs/{index-zPj2BUIM.js → index-CtaU_fq_.js} +6 -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 +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- 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 +12 -12
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- 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 +12 -3
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-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 +39 -3
- 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 +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-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 +75 -0
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-BOij5kTl.js → tracked-promise-A756VIur.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Drd6dUY6.js → vanilla-picker-CQiZIAeM.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.css +4 -0
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +12 -2
- package/dist/collection/components/salla-installment/salla-installment.css +18 -0
- package/dist/collection/components/salla-installment/salla-installment.js +38 -1
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +0 -0
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +126 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cookies-bar.js +12 -2
- package/dist/components/salla-installment.js +39 -2
- package/dist/components/salla-product-card-embed.d.ts +11 -0
- package/dist/components/salla-product-card-embed.js +97 -0
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-B8ZU0S2U.js → filepond-CoEbdCDU.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CbvNpFBW.js → filepond-plugin-file-poster-CRUf5yOI.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dvk6NFzB.js → filepond-plugin-file-validate-size-Dh-v_1jQ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BHnSvKf9.js → filepond-plugin-file-validate-type-IP11uDbc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C3-HEwrk.js → filepond-plugin-image-edit-D4-JmkRg.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CkNQRZPb.js → filepond-plugin-image-exif-orientation-CSUpG6-2.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BiSvHi1n.js → filepond-plugin-image-preview-DFjGdK1y.js} +1 -1
- package/dist/esm/{functions-B0NK3Lby.js → functions-CjYxeFKq.js} +1 -1
- package/dist/esm/{index-CCvjaZrV.js → index-CXRkZ7fT.js} +6 -2
- package/dist/esm/{index-BMlmyi0X.js → index-n4d2CpMz.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 +2 -2
- 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 +12 -12
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- 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 +12 -3
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-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 +39 -3
- 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 +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-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 +73 -0
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-BRNUnrUG.js → tracked-promise-Bm2kbSUF.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Ce-g_3Yg.js → vanilla-picker-Bkz94Y2w.js} +1 -1
- package/dist/twilight/{p-2e3879e2.entry.js → p-0b27a848.entry.js} +1 -1
- package/dist/twilight/p-0bd4a196.entry.js +4 -0
- package/dist/twilight/{p-f85b6b5e.entry.js → p-0d6f52df.entry.js} +1 -1
- package/dist/twilight/{p-89e9172e.entry.js → p-0de0aa06.entry.js} +1 -1
- package/dist/twilight/{p-fb997718.entry.js → p-13230586.entry.js} +1 -1
- package/dist/twilight/p-151d307d.entry.js +4 -0
- package/dist/twilight/{p-36adc8b6.entry.js → p-1693f4f4.entry.js} +1 -1
- package/dist/twilight/p-1cdb31e0.entry.js +4 -0
- package/dist/twilight/{p-0aa893d7.entry.js → p-1db8b6c9.entry.js} +1 -1
- package/dist/twilight/{p-5b94c9ec.entry.js → p-225d6636.entry.js} +1 -1
- package/dist/twilight/{p-c41e0c6a.entry.js → p-257cc180.entry.js} +1 -1
- package/dist/twilight/{p-84d0de81.entry.js → p-29a25f90.entry.js} +1 -1
- package/dist/twilight/{p-cb2717ce.entry.js → p-2b58a809.entry.js} +1 -1
- package/dist/twilight/{p-bd227ed6.entry.js → p-2ca08600.entry.js} +1 -1
- package/dist/twilight/p-2cc3a9fc.entry.js +4 -0
- package/dist/twilight/{p-1e2b99ff.entry.js → p-2fda9cd0.entry.js} +1 -1
- package/dist/twilight/{p-9e980184.entry.js → p-31266ac3.entry.js} +1 -1
- package/dist/twilight/{p-b95d6343.entry.js → p-3325909f.entry.js} +1 -1
- package/dist/twilight/{p-1b978866.entry.js → p-397a3e3e.entry.js} +1 -1
- package/dist/twilight/{p-ced59ca2.entry.js → p-39dcadee.entry.js} +1 -1
- package/dist/twilight/{p-448852e5.entry.js → p-3a5ee06a.entry.js} +1 -1
- package/dist/twilight/{p-8960b0d5.entry.js → p-3eadc3b9.entry.js} +1 -1
- package/dist/twilight/p-41797816.entry.js +4 -0
- package/dist/twilight/{p-634115cb.entry.js → p-4697fb28.entry.js} +1 -1
- package/dist/twilight/{p-06bfa777.entry.js → p-4b3f9d76.entry.js} +1 -1
- package/dist/twilight/{p-27aae413.entry.js → p-4d0a7b5b.entry.js} +1 -1
- package/dist/twilight/{p-9719b3ae.entry.js → p-56656e4b.entry.js} +1 -1
- package/dist/twilight/{p-28df3b47.entry.js → p-5697ab0c.entry.js} +1 -1
- package/dist/twilight/{p-5b9c52ed.entry.js → p-59dc7e2d.entry.js} +1 -1
- package/dist/twilight/{p-4445fe22.entry.js → p-5f2e7076.entry.js} +1 -1
- package/dist/twilight/{p-2b03d8dd.entry.js → p-6242aa2e.entry.js} +1 -1
- package/dist/twilight/{p-46fc566b.entry.js → p-6337b672.entry.js} +1 -1
- package/dist/twilight/{p-69d37822.entry.js → p-65b6ad4e.entry.js} +1 -1
- package/dist/twilight/{p-ff4f4e20.entry.js → p-66f43ea4.entry.js} +1 -1
- package/dist/twilight/p-6e4a3b29.entry.js +4 -0
- package/dist/twilight/{p-0a1ca9c1.entry.js → p-6e8becaf.entry.js} +1 -1
- package/dist/twilight/{p-be938ae4.entry.js → p-71cbecec.entry.js} +1 -1
- package/dist/twilight/{p-24b0c91d.entry.js → p-735efad8.entry.js} +1 -1
- package/dist/twilight/{p-1d011c4a.entry.js → p-776ee46c.entry.js} +1 -1
- package/dist/twilight/{p-1c3358af.entry.js → p-7a5849dd.entry.js} +1 -1
- package/dist/twilight/p-7cc33cc4.entry.js +4 -0
- package/dist/twilight/{p-946e111f.entry.js → p-7cf101fb.entry.js} +1 -1
- package/dist/twilight/{p-e0089ff0.entry.js → p-7fa8290e.entry.js} +1 -1
- package/dist/twilight/{p-78d4e07b.entry.js → p-818ab9c8.entry.js} +1 -1
- package/dist/twilight/{p-4a1ea811.entry.js → p-82702c5e.entry.js} +1 -1
- package/dist/twilight/{p-da9007ce.entry.js → p-8610801d.entry.js} +1 -1
- package/dist/twilight/{p-8a86e1be.entry.js → p-8a532e8c.entry.js} +1 -1
- package/dist/twilight/{p-ba00b2a5.entry.js → p-8b0ae4d4.entry.js} +1 -1
- package/dist/twilight/{p-a4633c90.entry.js → p-8b853aaa.entry.js} +1 -1
- package/dist/twilight/{p-afdc1db1.entry.js → p-8d3f1e48.entry.js} +1 -1
- package/dist/twilight/{p-1cdc7af0.entry.js → p-8f2cce84.entry.js} +1 -1
- package/dist/twilight/{p-b878dafc.entry.js → p-8fcf38dd.entry.js} +1 -1
- package/dist/twilight/{p-f4933141.entry.js → p-92e8fbd5.entry.js} +1 -1
- package/dist/twilight/{p-f19b6300.entry.js → p-93d045cd.entry.js} +1 -1
- package/dist/twilight/{p-c12d9d20.entry.js → p-949eaeb1.entry.js} +1 -1
- package/dist/twilight/{p-d8dda828.entry.js → p-9638f8a9.entry.js} +1 -1
- package/dist/twilight/{p-444c78ba.entry.js → p-98cadc35.entry.js} +1 -1
- package/dist/twilight/{p-bfc9043f.entry.js → p-9b0ee90c.entry.js} +1 -1
- package/dist/twilight/{p-b4fc1ab3.entry.js → p-9b6c18b7.entry.js} +1 -1
- package/dist/twilight/{p-2822dff4.entry.js → p-9c858396.entry.js} +1 -1
- package/dist/twilight/{p-DXHIK3BO.js → p-BH6o6AC1.js} +1 -1
- package/dist/twilight/p-C539e2Pe.js +4 -0
- package/dist/twilight/{p-asWgwDKm.js → p-C9gsAT5u.js} +1 -1
- package/dist/twilight/{p-DSNYrBKg.js → p-CWnQOeaW.js} +1 -1
- package/dist/twilight/{p-CCvjaZrV.js → p-CXRkZ7fT.js} +1 -1
- package/dist/twilight/{p-DNvjzv3i.js → p-CjUvuHeY.js} +1 -1
- package/dist/twilight/p-CrynMKGQ.js +9 -0
- package/dist/twilight/{p-CavpTJbV.js → p-DEpGaJCA.js} +1 -1
- package/dist/twilight/{p-BO0AhOgw.js → p-DaytWftM.js} +1 -1
- package/dist/twilight/{p-CfnUG35R.js → p-DkX-pHaA.js} +2 -2
- package/dist/twilight/{p-DQV39xyV.js → p-HWsVnxp3.js} +1 -1
- package/dist/twilight/{p-e048fb41.entry.js → p-a44bbd01.entry.js} +1 -1
- package/dist/twilight/{p-81108b40.entry.js → p-a4972d26.entry.js} +1 -1
- package/dist/twilight/{p-a64f6f5e.entry.js → p-aa59849b.entry.js} +1 -1
- package/dist/twilight/{p-541847cd.entry.js → p-ad1b6c21.entry.js} +1 -1
- package/dist/twilight/{p-c958ebbc.entry.js → p-b6416844.entry.js} +1 -1
- package/dist/twilight/{p-88d72e17.entry.js → p-b6468b0a.entry.js} +1 -1
- package/dist/twilight/{p-d1784e5f.entry.js → p-b6b296a0.entry.js} +1 -1
- package/dist/twilight/{p-aa68a8aa.entry.js → p-b9c4413e.entry.js} +1 -1
- package/dist/twilight/{p-b49e2f80.entry.js → p-ba858949.entry.js} +1 -1
- package/dist/twilight/{p-9e739b68.entry.js → p-bbcec7d8.entry.js} +1 -1
- package/dist/twilight/{p-742ea83d.entry.js → p-be682cde.entry.js} +1 -1
- package/dist/twilight/{p-741d0133.entry.js → p-bf41044b.entry.js} +1 -1
- package/dist/twilight/{p-4aa09288.entry.js → p-c228e644.entry.js} +1 -1
- package/dist/twilight/{p-d0a50136.entry.js → p-ca0d816c.entry.js} +1 -1
- package/dist/twilight/{p-c37148ce.entry.js → p-cbe70bb6.entry.js} +1 -1
- package/dist/twilight/{p-ad9ec8cf.entry.js → p-cfef080c.entry.js} +1 -1
- package/dist/twilight/{p-bc7c8a73.entry.js → p-d01a6bbe.entry.js} +1 -1
- package/dist/twilight/{p-69ffd7f4.entry.js → p-d3ba2be4.entry.js} +1 -1
- package/dist/twilight/{p-0b9688d0.entry.js → p-d61bd9db.entry.js} +1 -1
- package/dist/twilight/{p-174dc0a4.entry.js → p-daf77fe4.entry.js} +1 -1
- package/dist/twilight/{p-e1bab84d.entry.js → p-dc1ddf0a.entry.js} +1 -1
- package/dist/twilight/{p-c548c109.entry.js → p-e7cea691.entry.js} +1 -1
- package/dist/twilight/{p-afc9e2ec.entry.js → p-f0be85c8.entry.js} +1 -1
- package/dist/twilight/{p-204f8cc8.entry.js → p-f1d2133e.entry.js} +1 -1
- package/dist/twilight/{p-c7571a96.entry.js → p-f6d0dea1.entry.js} +1 -1
- package/dist/twilight/{p-fa0241ed.entry.js → p-ffc345fe.entry.js} +1 -1
- package/dist/twilight/{p-9b-9ka47.js → p-oYS3F0zi.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +2 -0
- package/dist/types/components/salla-installment/salla-installment.d.ts +7 -0
- package/dist/types/components/salla-product-card-embed/salla-product-card-embed.d.ts +16 -0
- package/dist/types/components.d.ts +29 -0
- package/package.json +5 -5
- package/dist/twilight/p-269b7e54.entry.js +0 -4
- package/dist/twilight/p-298e860b.entry.js +0 -4
- package/dist/twilight/p-76fd5e24.entry.js +0 -4
- package/dist/twilight/p-D3EEMM4Q.js +0 -4
- package/dist/twilight/p-DJRGxZpg.js +0 -9
- package/dist/twilight/p-aa77176a.entry.js +0 -4
- package/dist/twilight/p-adfdecf5.entry.js +0 -4
- package/dist/twilight/p-b4b54b19.entry.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as i,H as e}from"./p-
|
|
4
|
+
import{r as t,h as i,H as e}from"./p-CXRkZ7fT.js";var s,a;!function(t){t.PERCENTAGE="percentage",t.FIXED="fixed",t.FREE_PRODUCT="free_product"}(s||(s={})),function(t){t.PRODUCT_COUNT="products_count",t.PRODUCT_PURCHASE="order_amount"}(a||(a={}));const l=class{constructor(i){t(this,i),this.offer=null,this.products={},this.isLoading=!1,this.canRender=!0}componentWillLoad(){salla.onReady().then((()=>{if(!salla.config.get("store.features")?.includes("conditional-offer")||""!==salla.storage.get("cart")&&!salla.storage.get("cart")?.summary?.count)throw new Error("feature or cart object does not existed")})).then((()=>salla.api.cart.offers())).then((({data:t})=>{if(this.offer=t.find((t=>"conditional"===t.type)),this.offer)return this.isLoading=!0,this.offer.details.discounts.unshift({value:0,min_spend:0}),this.updateInitialOfferValue();this.canRender=!1})).then((()=>{if(this.offer)return this.getProducts()})).then((()=>{this.offer&&salla.event.on("cart::updated",(t=>this.updateOfferValues(t)))})).catch((t=>{this.canRender=!1,salla.logger.warn("salla-conditional-offer:: ",t)})).finally((()=>{this.isLoading=!1}))}getProducts(){const t=this.offer.details.discounts.filter((({type:t})=>t===s.FREE_PRODUCT)).map((({value:t})=>t)).filter(Boolean);if(t.length>0)return salla.product.fetch({source:"selected",source_value:t}).then((t=>{const i=t?.data;if(i&&Array.isArray(i)){const t={...this.products};i.forEach((({id:i,url:e,image:s,name:a,price:l})=>{i&&a&&s?.url&&e&&void 0!==l&&(t[i]={url:e,image:s,name:a,price:l})})),this.products=t}}))}updateInitialOfferValue(){return salla.api.cart.details().then((({data:{cart:t}})=>this.updateOfferValues(t)))}updateOfferValues({items:t,sub_total:i}){const e=this.offer.details.based_on===a.PRODUCT_COUNT?t?.reduce(((t,{quantity:i})=>t+i),0)??0:i;return this.offer={...this.offer,details:{...this.offer?.details,current_value:e}},this.offer}renderTooltip(t){const e=t.value,s=this.products[e];return s?i("salla-tooltip",{class:"absolute left-0 -top-2",targetId:`avatar-product-${e}`,theme:"dark"},i("div",{class:"flex gap-3 text-start"},s?.image?.url&&i("img",{src:s.image.url,alt:s?.image?.alt||s.name||"",class:"w-12 h-12 object-cover rounded-lg flex-shrink-0",loading:"lazy",decoding:"async"}),i("div",{class:"flex-1"},i("div",{class:"leading-tight mb-1"},s.name),i("div",{class:"text-xs text-gray-300",innerHTML:salla.money(s.price)})))):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),null)}getCheckpointContent(t){if(t.type===s.PERCENTAGE)return`${t.value}%`;if(t.type===s.FIXED)return i("span",{innerHTML:salla.money(t.value)});if(t.type!==s.FREE_PRODUCT)return salla.logger.error(`salla-conditional-offer:: unexpected type (${t.type})!`),"";const e=this.products[t.value];return e?i("a",{class:"s-conditional-offer-product-link",href:e.url},i("img",{class:"s-conditional-offer-checkpoint-image-content",loading:"lazy",decoding:"async",alt:e?.image?.alt||"",src:e?.image?.url})):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),"")}getOfferType(t){const i=this.offer.details?.based_on;if(i===a.PRODUCT_COUNT)try{return salla.lang.choice("blocks.header.products_count",t.min_spend)}catch(i){return salla.logger.warn("salla-conditional-offer:: invalid products_count interval",i),`${t.min_spend}`}return i===a.PRODUCT_PURCHASE?salla.money(t.min_spend):(salla.logger.warn(`salla-conditional-offer:: Unexpected offer detail's based_on value: ${i}`),`${t.min_spend}`)}clamp(t,i,e){return Math.max(i,Math.min(t,e))}mapValueRanges(t,i,e,s,a){const l=(t-i)*(a-s)/(e-i)+s;return l===Number.POSITIVE_INFINITY?100:l===Number.NEGATIVE_INFINITY?0:this.clamp(l,0,100)}getCheckPointView(t,e){const a=this.offer.details.discounts.findIndex((({min_spend:i})=>i===t.min_spend)),l=this.mapValueRanges(this.offer.details.current_value,this.offer.details.discounts[a-1]?.min_spend??0,t.min_spend,0,100),n=t.min_spend<=this.offer.details.current_value;return i("div",{class:"s-conditional-offer-checkpoint-container"},e>0?[i("div",{key:"progress-line",class:"s-conditional-offer-progress-line-container"},i("div",{class:"s-conditional-offer-progress-line-inactive"}),i("div",{class:"s-conditional-offer-progress-line-active",style:{width:`${l}%`}})),i("div",{key:"checkpoint",class:"s-conditional-offer-checkpoint "+(n?"s-conditional-offer-active-checkpoint":"")},i("div",{class:"s-conditional-offer-item-avatar-content "+(n?"active":""),id:t.type===s.FREE_PRODUCT?`avatar-product-${t.value}`:`avatar-${t.value??e}`},this.products&&this.getCheckpointContent(t)),this.products&&t.type===s.FREE_PRODUCT&&this.renderTooltip(t),i("div",{class:"s-conditional-offer-checkpoint-label "+(n?"active":""),innerHTML:this.getOfferType(t)}))]:i("div",{key:"label",class:{"s-conditional-offer-checkpoint-label":!0,"first-checkpoint":0===e,active:n,hidden:0===e,"sm:block":0===e},innerHTML:this.getOfferType(t)}))}getLoadingSkeletonView(){return i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-skeleton-inner-container"},i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"30%"})),i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"35%"})),i("div",{class:"s-conditional-offer-skeleton-checkpoints-wrapper"},Array(3).fill(null).map((()=>[i("salla-skeleton",{key:"checkpoint-line",height:"8px"}),i("div",{key:"checkpoint"},i("salla-skeleton",{height:"60px",width:"60px",type:"circle"}))])))))}render(){return this.canRender?this.isLoading?this.getLoadingSkeletonView():this.offer?i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-title-wrapper"},i("div",{class:"s-conditional-offer-title"},this.offer.title),this.offer.description?i("div",{class:"s-conditional-offer-subtitle"},this.offer.description," ",i("i",{class:"sicon-information"})):null),i("div",{class:"s-conditional-offer-progress-container"},this.offer.details.discounts.map(((t,e)=>i("div",{class:{"flex-1":e>0},key:t.min_spend},this.getCheckPointView(t,e)))))):null:null}};l.style=":host{display:block}";export{l as salla_conditional_offer}
|