@salla.sa/twilight-components 2.14.453 → 2.14.455
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-CI66KMVO.js → filepond-CASXTVVn.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CBGq8ES2.js → filepond-plugin-file-poster-NwV0t9zF.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Hsu_GUsE.js → filepond-plugin-file-validate-size-S-_ZCnL0.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CSvG7Q9E.js → filepond-plugin-file-validate-type-8fAsih_V.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DmkDmRS0.js → filepond-plugin-image-edit-BdKPXtEG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-GPV7AlAH.js → filepond-plugin-image-exif-orientation-iTp4daNS.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CnaFJEOv.js → filepond-plugin-image-preview-D5CX6xww.js} +1 -1
- package/dist/cjs/{functions-Bqin1z7b.js → functions-BlV_viZ0.js} +36 -8
- package/dist/cjs/{index-BZVIkGyK.js → index-BANBu7pv.js} +1 -1
- package/dist/cjs/{index-gD7UGzCL.js → index-CXqniRSt.js} +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +68 -6
- 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 +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +7 -3
- 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 +2 -2
- 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.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 +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +32 -10
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +11 -5
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
- 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 +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- 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 +14 -11
- 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/{tracked-promise-D-r7wmoZ.js → tracked-promise-TlVxYBIU.js} +1 -1
- package/dist/cjs/{translations-DMwpLvqi.js → translations-BHyDCj-Y.js} +12 -0
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Bls8gs8C.js → vanilla-picker-B3HS631p.js} +1 -1
- package/dist/collection/components/salla-bought-together/salla-bought-together.js +67 -5
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +6 -2
- package/dist/collection/components/salla-loyalty-program/functions.js +22 -7
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +31 -9
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +7 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +4 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
- package/dist/collection/components/salla-loyalty-program/translations.js +12 -0
- package/dist/components/functions.js +35 -8
- package/dist/components/index.js +3 -3
- package/dist/components/salla-bought-together.js +67 -5
- package/dist/components/salla-bullet-delivery.js +6 -2
- package/dist/components/salla-loyalty-point2.js +31 -9
- package/dist/components/salla-loyalty-program.js +7 -1
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-reward-action2.js +4 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +3 -3
- package/dist/components/translations.js +12 -0
- package/dist/esm/{filepond-CA-bRwmz.js → filepond-HUxLccYt.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CGF3FiKD.js → filepond-plugin-file-poster-CKU5WMer.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-83VtyXAg.js → filepond-plugin-file-validate-size-BJ7uOb2z.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DK5fI0Pp.js → filepond-plugin-file-validate-type-ZilEA2CP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DiW845Zb.js → filepond-plugin-image-edit-k3H2LHPc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DuJRdepD.js → filepond-plugin-image-exif-orientation-C1fWSMsF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CE3Z4l9U.js → filepond-plugin-image-preview-CBiR7yYc.js} +1 -1
- package/dist/esm/{functions-ByUw56nX.js → functions-BUK_6AVv.js} +36 -9
- package/dist/esm/{index-DuhQONDF.js → index-B27mc3DA.js} +3 -3
- package/dist/esm/{index-CDZKvBjs.js → index-B8tvf2Er.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +68 -6
- 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 +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +7 -3
- 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 +2 -2
- 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.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 +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +32 -10
- package/dist/esm/salla-loyalty-panel.entry.js +4 -4
- package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +11 -5
- package/dist/esm/salla-loyalty-reward.entry.js +4 -4
- 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 +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- 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 +14 -11
- 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/{tracked-promise-D8BEggEx.js → tracked-promise-BhMK_w_-.js} +1 -1
- package/dist/esm/{translations-B-Rj6b9M.js → translations-dn_hTofo.js} +12 -0
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-rczekglZ.js → vanilla-picker-CqDptb8B.js} +1 -1
- package/dist/twilight/{p-759d043a.entry.js → p-0154dd29.entry.js} +1 -1
- package/dist/twilight/{p-0372d190.entry.js → p-01fd4f64.entry.js} +1 -1
- package/dist/twilight/{p-372157de.entry.js → p-025899d4.entry.js} +1 -1
- package/dist/twilight/{p-ff6e1a63.entry.js → p-02c191cb.entry.js} +1 -1
- package/dist/twilight/{p-3cbaa7f2.entry.js → p-033a25d9.entry.js} +1 -1
- package/dist/twilight/{p-c0ad861a.entry.js → p-04555243.entry.js} +1 -1
- package/dist/twilight/{p-59171f9a.entry.js → p-099511cb.entry.js} +1 -1
- package/dist/twilight/{p-4304d8dc.entry.js → p-09fa0a96.entry.js} +1 -1
- package/dist/twilight/{p-86c591e2.entry.js → p-0a5bffbb.entry.js} +1 -1
- package/dist/twilight/{p-d647e29f.entry.js → p-0c369b88.entry.js} +1 -1
- package/dist/twilight/{p-8abe7b8f.entry.js → p-0cce3436.entry.js} +1 -1
- package/dist/twilight/{p-38a6f460.entry.js → p-0d42f5f7.entry.js} +1 -1
- package/dist/twilight/{p-e3736f87.entry.js → p-0d733ece.entry.js} +1 -1
- package/dist/twilight/{p-58fdeedc.entry.js → p-14ca613a.entry.js} +1 -1
- package/dist/twilight/{p-08b7f768.entry.js → p-1952dfe2.entry.js} +1 -1
- package/dist/twilight/{p-cefb9ceb.entry.js → p-1c717064.entry.js} +1 -1
- package/dist/twilight/{p-799f30e2.entry.js → p-1eadcb01.entry.js} +1 -1
- package/dist/twilight/{p-a652277b.entry.js → p-224aeae6.entry.js} +1 -1
- package/dist/twilight/{p-34f6ae6d.entry.js → p-22cdee08.entry.js} +1 -1
- package/dist/twilight/{p-83e6fef8.entry.js → p-27c704c4.entry.js} +1 -1
- package/dist/twilight/{p-11747cf8.entry.js → p-28880d56.entry.js} +1 -1
- package/dist/twilight/p-295ed7eb.entry.js +4 -0
- package/dist/twilight/{p-0a4586ca.entry.js → p-2ad70328.entry.js} +1 -1
- package/dist/twilight/{p-18c8c629.entry.js → p-2f2d596c.entry.js} +1 -1
- package/dist/twilight/{p-2fbde35a.entry.js → p-3194b8f1.entry.js} +1 -1
- package/dist/twilight/{p-c826dc76.entry.js → p-349723b8.entry.js} +1 -1
- package/dist/twilight/{p-54fb9654.entry.js → p-37fa2c33.entry.js} +1 -1
- package/dist/twilight/{p-528b8028.entry.js → p-3869c01a.entry.js} +1 -1
- package/dist/twilight/{p-a4541cb8.entry.js → p-39521cc9.entry.js} +1 -1
- package/dist/twilight/{p-2170acb4.entry.js → p-3a824c45.entry.js} +1 -1
- package/dist/twilight/{p-5d611546.entry.js → p-3ce0ec88.entry.js} +1 -1
- package/dist/twilight/{p-ae0bdaad.entry.js → p-3dcf296d.entry.js} +1 -1
- package/dist/twilight/{p-4d951693.entry.js → p-3fe0b0d9.entry.js} +1 -1
- package/dist/twilight/{p-71970ff4.entry.js → p-4365ccdf.entry.js} +1 -1
- package/dist/twilight/{p-60816f61.entry.js → p-45e86a35.entry.js} +1 -1
- package/dist/twilight/{p-b7756fec.entry.js → p-496b138e.entry.js} +1 -1
- package/dist/twilight/{p-a91f1358.entry.js → p-4cc417ec.entry.js} +1 -1
- package/dist/twilight/{p-f96e2074.entry.js → p-4e340653.entry.js} +1 -1
- package/dist/twilight/{p-f2748268.entry.js → p-52dccf8f.entry.js} +1 -1
- package/dist/twilight/{p-6fc8780f.entry.js → p-5414f877.entry.js} +1 -1
- package/dist/twilight/{p-d3976258.entry.js → p-583fbeac.entry.js} +1 -1
- package/dist/twilight/{p-47a3ce29.entry.js → p-63453993.entry.js} +1 -1
- package/dist/twilight/{p-f0012532.entry.js → p-7054b12e.entry.js} +1 -1
- package/dist/twilight/{p-5c918928.entry.js → p-708c9d55.entry.js} +1 -1
- package/dist/twilight/{p-15682643.entry.js → p-716fa631.entry.js} +1 -1
- package/dist/twilight/{p-453e4a72.entry.js → p-7170bbe5.entry.js} +1 -1
- package/dist/twilight/{p-a0d7c935.entry.js → p-731ddff8.entry.js} +1 -1
- package/dist/twilight/{p-67cc7166.entry.js → p-77adb9d5.entry.js} +1 -1
- package/dist/twilight/{p-5f11aa48.entry.js → p-7d79041c.entry.js} +1 -1
- package/dist/twilight/{p-b06aab6f.entry.js → p-8610d773.entry.js} +1 -1
- package/dist/twilight/{p-26d213c4.entry.js → p-873b3598.entry.js} +1 -1
- package/dist/twilight/{p-e19fe246.entry.js → p-87691e20.entry.js} +1 -1
- package/dist/twilight/{p-9ac8a7ac.entry.js → p-88309e40.entry.js} +1 -1
- package/dist/twilight/{p-1017e250.entry.js → p-8a07799b.entry.js} +1 -1
- package/dist/twilight/{p-40951b40.entry.js → p-8b775b6c.entry.js} +1 -1
- package/dist/twilight/{p-6ff0931f.entry.js → p-8cc38fe2.entry.js} +1 -1
- package/dist/twilight/{p-37f80d28.entry.js → p-8ebc59c6.entry.js} +1 -1
- package/dist/twilight/{p-2a6c1741.entry.js → p-9608cb48.entry.js} +1 -1
- package/dist/twilight/p-9856394d.entry.js +4 -0
- package/dist/twilight/{p-f8a71d06.entry.js → p-9ac73546.entry.js} +1 -1
- package/dist/twilight/{p-576644de.entry.js → p-9ada1f3d.entry.js} +1 -1
- package/dist/twilight/{p-DuhQONDF.js → p-B27mc3DA.js} +2 -2
- package/dist/twilight/{p-BKFpjRDB.js → p-BDVAyd15.js} +1 -1
- package/dist/twilight/{p-BsgWQKc7.js → p-BUeUpASK.js} +1 -1
- package/dist/twilight/{p-B3G9rfPC.js → p-C8a5AE0g.js} +1 -1
- package/dist/twilight/{p-bJly2Q9f.js → p-CJxdBsuY.js} +1 -1
- package/dist/twilight/{p-5g_iyHqw.js → p-D6ttjw8h.js} +1 -1
- package/dist/twilight/{p-CGfi0Jw5.js → p-DNVKaOjC.js} +1 -1
- package/dist/twilight/{p-Dl_ZiF1l.js → p-DXVnxhxo.js} +1 -1
- package/dist/twilight/p-Tj_9K_OT.js +4 -0
- package/dist/twilight/{p-7538d1ca.entry.js → p-a3fb3aa0.entry.js} +1 -1
- package/dist/twilight/{p-cacf40b0.entry.js → p-a5b876da.entry.js} +1 -1
- package/dist/twilight/{p-69d44de0.entry.js → p-a74c0330.entry.js} +1 -1
- package/dist/twilight/{p-b6f8c8c1.entry.js → p-a9200d8b.entry.js} +1 -1
- package/dist/twilight/{p-f7d53109.entry.js → p-acf1d397.entry.js} +1 -1
- package/dist/twilight/{p-a66afb4d.entry.js → p-af896a9c.entry.js} +1 -1
- package/dist/twilight/{p-c95c6d89.entry.js → p-b151943e.entry.js} +1 -1
- package/dist/twilight/{p-3d099804.entry.js → p-bc2df32d.entry.js} +1 -1
- package/dist/twilight/{p-f96e6132.entry.js → p-c014a283.entry.js} +1 -1
- package/dist/twilight/{p-2786dded.entry.js → p-c151d43a.entry.js} +1 -1
- package/dist/twilight/p-c6d833e5.entry.js +4 -0
- package/dist/twilight/p-caa938d4.entry.js +4 -0
- package/dist/twilight/{p-9ab434b1.entry.js → p-cc5f66f2.entry.js} +1 -1
- package/dist/twilight/{p-67c261a1.entry.js → p-df76f90f.entry.js} +1 -1
- package/dist/twilight/p-dn_hTofo.js +4 -0
- package/dist/twilight/{p-ca4473c0.entry.js → p-e0810a73.entry.js} +6 -6
- package/dist/twilight/{p-dcbd726f.entry.js → p-e0d55016.entry.js} +1 -1
- package/dist/twilight/{p-1aee25ae.entry.js → p-e9b8ac57.entry.js} +1 -1
- package/dist/twilight/{p-4f12e7c1.entry.js → p-eb395203.entry.js} +1 -1
- package/dist/twilight/{p-e0e40938.entry.js → p-ef2fbf89.entry.js} +1 -1
- package/dist/twilight/{p-45cd6429.entry.js → p-f1c1c640.entry.js} +1 -1
- package/dist/twilight/{p-795a49f3.entry.js → p-f1c253a9.entry.js} +1 -1
- package/dist/twilight/{p-88b678c5.entry.js → p-f7139cc6.entry.js} +1 -1
- package/dist/twilight/{p-2007425d.entry.js → p-f762c572.entry.js} +1 -1
- package/dist/twilight/{p-f7adbf64.entry.js → p-f8f54860.entry.js} +1 -1
- package/dist/twilight/{p-2c2939d4.entry.js → p-ffe3256d.entry.js} +1 -1
- package/dist/twilight/{p-C4dBxoYB.js → p-kzSVkHK7.js} +1 -1
- package/dist/twilight/{p-D6K__xxx.js → p-oKl48ETd.js} +1 -1
- package/dist/twilight/{p-Cy7YnDlp.js → p-twQLVtaI.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bought-together/salla-bought-together.d.ts +9 -0
- package/dist/types/components/salla-loyalty-program/functions.d.ts +3 -1
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +3 -0
- package/package.json +5 -5
- package/dist/twilight/p-273d6a6e.entry.js +0 -4
- package/dist/twilight/p-4de3236d.entry.js +0 -4
- package/dist/twilight/p-6a0cf220.entry.js +0 -4
- package/dist/twilight/p-B-Rj6b9M.js +0 -4
- package/dist/twilight/p-DmbvyZsW.js +0 -4
- package/dist/twilight/p-ac41b9ff.entry.js +0 -4
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-CXqniRSt.js');
|
|
7
|
+
var functions = require('./functions-BlV_viZ0.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tag = require('./tag-D-PcUR33.js');
|
|
10
10
|
var check = require('./check-BnVBPQNp.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
|
-
var trackedPromise = require('./tracked-promise-
|
|
12
|
+
var trackedPromise = require('./tracked-promise-TlVxYBIU.js');
|
|
13
13
|
|
|
14
14
|
const sallaLoyaltyProgramCss$3 = "";
|
|
15
15
|
|
|
@@ -32,7 +32,10 @@ const SallaRewardAction = class {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
|
|
35
|
+
if (!this.isClickable(this.prize)) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return (index.h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (index.h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
|
|
36
39
|
's-loyalty-program-rewards-action-base': true,
|
|
37
40
|
's-loyalty-program-rewards-action-on': true,
|
|
38
41
|
} }, salla.lang.get('pages.loyalty_program.shop_now'))) : (index.h("button", { onClick: this.handleClick, class: {
|
|
@@ -52,7 +55,7 @@ const SallaRewardCard = class {
|
|
|
52
55
|
this.actionClick = index.createEvent(this, "actionClick");
|
|
53
56
|
}
|
|
54
57
|
render() {
|
|
55
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '8e688793dec09f19093df23deacfd7ecaac100b7', class: "s-loyalty-program-reward-host" }, index.h("div", { key: '12663908467c428e861f999fa6449810207b9399', class: "s-loyalty-program-reward-container" }, index.h("div", { key: '8b01e444f083bafcd1036962113921e876be942a', onClick: (e) => this.areaClick.emit(e), role: "button" }, index.h("div", { key: 'a90032821b870b9fe915a3bdceb5422bacc66c3c', class: "s-loyalty-program-reward-img" }, index.h("img", { key: '70f872cb5c17cb8c05df6cdcd767f5b0b018f182', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), index.h("div", { key: 'af161adc0a211ddb2c3702ee81cc47bf275a8b3d', class: "s-loyalty-program-reward-content" }, index.h("div", { key: '5f420a70d14120075ac394ced39b7d37477b8042', class: "s-loyalty-program-reward-points" }, index.h("salla-badge", { key: '58df0147fce4aa22479474ff4e3b327dca4165c0', size: "xs" }, index.h("span", { key: 'e59fc1b27e38e45560d4469d2e8fad0ef1c80915', innerHTML: gift.SIGift }), index.h("span", { key: '9272311f41a78628c2ff6b78acb25e0b04cc3a95', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), index.h("div", { key: '297b130a68d6b64659a6eb832baccf8a5884db78', class: "s-loyalty-program-reward-title" }, index.h("span", { key: '7e9d42268e77dffb2dda963cc046fb09015c4ee7' }, this.prize.group_title)), index.h("div", { key: 'f70b7369222792657b02909aed7bacf2a61f24f6', class: "s-loyalty-program-reward-name" }, index.h("div", { key: '8f1bd6ffb8190d455006e111a013946b3569c24e', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), index.h("div", { key: 'a5a7d0acba4a00be16db6b277a0a5eb39b88153b', class: "p-4" }, index.h("slot", { key: 'e2fcb1189b103f419884b05518af74cfd1c5eeb7', name: "action" }, index.h("button", { key: 'e0522ba4b684bcabae4483dfd36d00cafb86d511', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
SallaRewardCard.style = sallaLoyaltyProgramCss$2;
|
|
@@ -166,11 +169,11 @@ const SallaRewardDetails = class {
|
|
|
166
169
|
}
|
|
167
170
|
render() {
|
|
168
171
|
const termsAndConditions = this.getTermsAndConditions();
|
|
169
|
-
return (index.h("div", { key: '
|
|
172
|
+
return (index.h("div", { key: '2b8f4348fb0e728665b53db47719686629c1836d', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: '1c838eaa84818ee590a36062b68a505bca8e7c68', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '2912070e266711897fec27c3a3e663677fd605df', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
|
|
170
173
|
: index.h("button", { class: "s-loyalty-program-back-btn", onClick: () => functions.closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, index.h("span", { class: {
|
|
171
174
|
'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
|
|
172
175
|
'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
|
|
173
|
-
} })), this.prize.name)), index.h("div", { key: '
|
|
176
|
+
} })), this.prize.name)), index.h("div", { key: '0d7f102d7031fcae33670435d9fa3a7d40a0fbc4', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: '0aa1b6206852391cae2bdd83452b3ed1dca4ef52', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: 'b8de08abbd4ed24367312ecd8e36b9b203dc24cb', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: 'd327bd9cc47042cc694fda8f38a130686caeaeb6', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: 'dbb6d24e2f647bd93bc2cb2d174c747e8117b1cb', size: "sm", bg: "light" }, index.h("span", { key: '8e78d674f565f2274796a57b218a14f683e29149', innerHTML: gift.SIGift }), index.h("span", { key: '3e959d7d67a899a429c2c2100236527268c98905', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: 'b09d181ad0587d4d6f99020adc2b944778e3d491', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: '7538f340d33fd34fd55728c3df1d43ff676ffa57', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: '927078b3615900c8377c1563f7bfe3b6a4cd28d3', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
|
|
174
177
|
index.h("salla-tab-header", { slot: "header", name: "included", style: {
|
|
175
178
|
display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
|
|
176
179
|
} }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: check.SICheck }), index.h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
|
|
@@ -180,7 +183,7 @@ const SallaRewardDetails = class {
|
|
|
180
183
|
display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
|
|
181
184
|
} }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: cancel.SICancel }), index.h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
|
|
182
185
|
index.h("salla-tab-content", { slot: "content", name: "excluded" }, index.h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
|
|
183
|
-
]))), index.h("salla-reward-action", { key: '
|
|
186
|
+
]))), index.h("salla-reward-action", { key: '0d03ebd0fcf1f7469b75b04d9ad82b71a284d0d1', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
|
|
184
187
|
}
|
|
185
188
|
static get watchers() { return {
|
|
186
189
|
"prize": ["handlePrizeChange"]
|
|
@@ -239,11 +242,11 @@ const SallaRewardExchange = class {
|
|
|
239
242
|
this.reset(0);
|
|
240
243
|
}
|
|
241
244
|
render() {
|
|
242
|
-
return (index.h(index.Host, { key: '
|
|
245
|
+
return (index.h(index.Host, { key: '44934c0c0574ea61c4ef293a9deb796a2d42c02b' }, index.h("div", { key: 'eca62e786a5d13d4578cc5badcd464ee1570541b', class: "s-loyalty-program-exchange-heading" }, index.h("div", { key: '14b346e172b9859449b780ec7c22e81ec2e97a8c', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, index.h("span", { key: '472753cc4742c2b010729ed98cdbf58192b548fa', innerHTML: gift.SIGift })), index.h("h2", { key: 'e77eeb994a91e36a8b04c213484221a6db2f99fd' }, salla.lang.get('pages.loyalty_program.redeem_reward')), index.h("p", { key: '7c9b9d6400ddeeb7a6ad8bdc1a2f364e9d67187b' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", index.h("span", { key: '07eea7e08a596dd284ceb2d60d2489012457585e' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", index.h("span", { key: '70d6c67bd78400626c1e2d91753a494df5e6d94d' }, "(", this.prize.name, ")"))), index.h("div", { key: '49d98bbcbb017bf3f9195734fbb80f1da8559746', class: "s-loyalty-program-exchange-btns" }, index.h("button", { key: 'a1775e84ef7c17effb54b6fdff83bad9ac8cf8ec', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, index.h("span", { key: '28977f2f6990322cb194c19b01feeffd8117d1b8', style: {
|
|
243
246
|
opacity: this.exchange.status !== 'pending' ? '1' : '0',
|
|
244
|
-
} }, salla.lang.get('common.elements.confirm')), index.h("span", { key: '
|
|
247
|
+
} }, salla.lang.get('common.elements.confirm')), index.h("span", { key: '2ff77b13d468e5096d777e0179db9e257468ca53', class: "s-loyalty-program-exchange-loading", style: {
|
|
245
248
|
opacity: this.exchange.status === 'pending' ? '1' : '0',
|
|
246
|
-
} }, index.h("salla-loading", { key: '
|
|
249
|
+
} }, index.h("salla-loading", { key: '415c1d497b93718ac0bc67e18442c28246e589e7', color: "primary", size: 24 }))), index.h("button", { key: '32d1a3f2e221261bd4ff459cc85dec5c780dd5e8', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
|
|
247
250
|
}
|
|
248
251
|
};
|
|
249
252
|
__decorate([
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CXqniRSt.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CXqniRSt.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CXqniRSt.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
9
9
|
|
|
@@ -24,6 +24,14 @@ const translations = {
|
|
|
24
24
|
ar: 'خطوات بسيطة تفصلك عن المزيد من نقاط الولاء!',
|
|
25
25
|
en: 'Two simple steps separate you from great rewards!',
|
|
26
26
|
},
|
|
27
|
+
'pages.loyalty_program.how_to_use': {
|
|
28
|
+
ar: 'آلية الإستخدام',
|
|
29
|
+
en: 'How to use?',
|
|
30
|
+
},
|
|
31
|
+
'pages.loyalty_program.how_to_use_steps': {
|
|
32
|
+
ar: 'يمكنك اكتساب النقاط عند الشراء من التصنيفات المحددة',
|
|
33
|
+
en: 'You can earn points when you purchase from the selected categories.',
|
|
34
|
+
},
|
|
27
35
|
'pages.loyalty_program.register': {
|
|
28
36
|
ar: 'سجِّل',
|
|
29
37
|
en: 'Register',
|
|
@@ -60,6 +68,10 @@ const translations = {
|
|
|
60
68
|
ar: 'نقطة',
|
|
61
69
|
en: 'points',
|
|
62
70
|
},
|
|
71
|
+
'pages.loyalty_program.start_from': {
|
|
72
|
+
ar: 'يبدأ من',
|
|
73
|
+
en: 'Start from',
|
|
74
|
+
},
|
|
63
75
|
'pages.loyalty_program.redeem_reward': {
|
|
64
76
|
ar: 'استبدل النقاط',
|
|
65
77
|
en: 'Redeem Reward',
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -19,6 +19,7 @@ export class SallaBoughtTogether {
|
|
|
19
19
|
this.subtitle = salla.lang.get('pages.products.bought_together_subtitle');
|
|
20
20
|
this.buyTogetherFor = salla.lang.get('pages.products.buy_together_for');
|
|
21
21
|
this.resolvedProductId = 0;
|
|
22
|
+
this.listViewTracked = false;
|
|
22
23
|
salla.lang.onLoaded(() => {
|
|
23
24
|
this.title = salla.lang.get('pages.products.bought_together_title');
|
|
24
25
|
this.subtitle = salla.lang.get('pages.products.bought_together_subtitle');
|
|
@@ -83,6 +84,41 @@ export class SallaBoughtTogether {
|
|
|
83
84
|
this.isLoading = false;
|
|
84
85
|
});
|
|
85
86
|
}
|
|
87
|
+
componentDidRender() {
|
|
88
|
+
if (!this.recommendations.length || this.listViewTracked || this.intersectionObserver)
|
|
89
|
+
return;
|
|
90
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
91
|
+
if (entries.some(e => e.isIntersecting)) {
|
|
92
|
+
this.listViewTracked = true;
|
|
93
|
+
this.intersectionObserver?.disconnect();
|
|
94
|
+
this.intersectionObserver = undefined;
|
|
95
|
+
this.emitListViewed();
|
|
96
|
+
}
|
|
97
|
+
}, { threshold: 0.1 });
|
|
98
|
+
this.intersectionObserver.observe(this.el);
|
|
99
|
+
}
|
|
100
|
+
disconnectedCallback() {
|
|
101
|
+
this.intersectionObserver?.disconnect();
|
|
102
|
+
this.intersectionObserver = undefined;
|
|
103
|
+
}
|
|
104
|
+
emitListViewed() {
|
|
105
|
+
const recommendedProducts = this.recommendations
|
|
106
|
+
.filter(p => !this.isMainProduct(p.id));
|
|
107
|
+
salla.event.emit('salla-bought-together::list.viewed', {
|
|
108
|
+
products: recommendedProducts,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
isMainProduct(id) {
|
|
112
|
+
return String(id) === String(this.resolvedProductId);
|
|
113
|
+
}
|
|
114
|
+
recommendedPosition(productId) {
|
|
115
|
+
const recommendedProducts = this.recommendations.filter(p => !this.isMainProduct(p.id));
|
|
116
|
+
const index = recommendedProducts.findIndex(p => String(p.id) === String(productId));
|
|
117
|
+
return index === -1 ? -1 : index + 1;
|
|
118
|
+
}
|
|
119
|
+
emitProductClicked(product, position) {
|
|
120
|
+
salla.event.emit('salla-bought-together::product.clicked', [{ product, position }]);
|
|
121
|
+
}
|
|
86
122
|
toggleProduct(id) {
|
|
87
123
|
const next = new Set(this.selectedIds);
|
|
88
124
|
next.has(id) ? next.delete(id) : next.add(id);
|
|
@@ -101,12 +137,37 @@ export class SallaBoughtTogether {
|
|
|
101
137
|
if (this.isAdding || !this.selectedIds.size)
|
|
102
138
|
return;
|
|
103
139
|
this.isAdding = true;
|
|
140
|
+
let hasError = false;
|
|
104
141
|
try {
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
142
|
+
// Sequential: addToCartSource is a shared global cleared on each response.
|
|
143
|
+
// Parallel adds race to clear it — only the first response would be suppressed.
|
|
144
|
+
// source:'pdp_fbt' suppresses auto Product Added tracking so we emit it manually below.
|
|
145
|
+
// endpoint:'quickAdd' mirrors quickAdd(id) exactly — no product options required.
|
|
146
|
+
for (const id of Array.from(this.selectedIds)) {
|
|
147
|
+
try {
|
|
148
|
+
if (salla.cart?.api)
|
|
149
|
+
salla.cart.api.addToCartSource = 'pdp_fbt';
|
|
150
|
+
const response = await salla.cart.addItem({ id, endpoint: 'quickAdd', source: 'pdp_fbt' });
|
|
151
|
+
const product = this.recommendations.find(p => p.id === id);
|
|
152
|
+
if (product) {
|
|
153
|
+
const position = this.isMainProduct(id) ? 0 : this.recommendedPosition(id);
|
|
154
|
+
const cartItem = response?.data?.items?.find((i) => String(i.product_id) === String(product.id))
|
|
155
|
+
?? response?.data?.items?.slice(-1)[0];
|
|
156
|
+
salla.event.emit('salla-bought-together::product.added', [{
|
|
157
|
+
product,
|
|
158
|
+
position,
|
|
159
|
+
cartItem,
|
|
160
|
+
cartId: response?.data?.id,
|
|
161
|
+
}]);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
salla.log(error);
|
|
166
|
+
hasError = true;
|
|
167
|
+
}
|
|
109
168
|
}
|
|
169
|
+
if (hasError)
|
|
170
|
+
salla.error(salla.lang.get('common.messages.error'));
|
|
110
171
|
}
|
|
111
172
|
finally {
|
|
112
173
|
this.isAdding = false;
|
|
@@ -122,7 +183,7 @@ export class SallaBoughtTogether {
|
|
|
122
183
|
return this.getSkeletonView();
|
|
123
184
|
if (!this.recommendations.length)
|
|
124
185
|
return null;
|
|
125
|
-
return (h(Host, { class: "s-bought-together-entry" }, h("div", { class: "s-bought-together-header" }, h("h3", { class: "s-bought-together-title" }, this.title), h("p", { class: "s-bought-together-subtitle" }, this.subtitle)), h("div", { class: "s-bought-together-list" }, this.recommendations.map((product) => (h("div", { key: product.id, class: `s-bought-together-item${!this.selectedIds.has(product.id) ? ' s-bought-together-item--unchecked' : ''}` }, h("label", { class: "s-bought-together-checkbox-label" }, h("input", { type: "checkbox", class: "s-bought-together-checkbox", checked: this.selectedIds.has(product.id), onChange: () => this.toggleProduct(product.id) }), h("span", { class: "s-bought-together-checkmark" })), h("a", { class: "s-bought-together-item-link", href: product.url }, h("img", { class: "s-bought-together-item-img", src: product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.image?.alt || product.name, loading: "lazy", decoding: "async", onError: e => {
|
|
186
|
+
return (h(Host, { class: "s-bought-together-entry" }, h("div", { class: "s-bought-together-header" }, h("h3", { class: "s-bought-together-title" }, this.title), h("p", { class: "s-bought-together-subtitle" }, this.subtitle)), h("div", { class: "s-bought-together-list" }, this.recommendations.map((product) => (h("div", { key: product.id, class: `s-bought-together-item${!this.selectedIds.has(product.id) ? ' s-bought-together-item--unchecked' : ''}` }, h("label", { class: "s-bought-together-checkbox-label" }, h("input", { type: "checkbox", class: "s-bought-together-checkbox", checked: this.selectedIds.has(product.id), onChange: () => this.toggleProduct(product.id) }), h("span", { class: "s-bought-together-checkmark" })), h("a", { class: "s-bought-together-item-link", href: product.url, onClick: () => !this.isMainProduct(product.id) && this.emitProductClicked(product, this.recommendedPosition(product.id)) }, h("img", { class: "s-bought-together-item-img", src: product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.image?.alt || product.name, loading: "lazy", decoding: "async", onError: e => {
|
|
126
187
|
e.currentTarget.onerror = null;
|
|
127
188
|
e.currentTarget.src = salla.url.cdn('images/s-empty.png');
|
|
128
189
|
} }), h("span", { class: "s-bought-together-item-name" }, product.name)), h("span", { class: "s-bought-together-item-price", innerHTML: product.price != null ? salla.money(product.price) : '' }))))), h("salla-button", { class: "s-bought-together-btn", disabled: !this.selectedIds.size || this.isAdding, loading: this.isAdding, onClick: () => this.addSelectedToCart() }, h("span", { innerHTML: `${this.buyTogetherFor} ${this.totalPrice}` }))));
|
|
@@ -174,4 +235,5 @@ export class SallaBoughtTogether {
|
|
|
174
235
|
"buyTogetherFor": {}
|
|
175
236
|
};
|
|
176
237
|
}
|
|
238
|
+
static get elementRef() { return "el"; }
|
|
177
239
|
}
|
|
@@ -2221,9 +2221,13 @@ export class SallaBulletDelivery {
|
|
|
2221
2221
|
render() {
|
|
2222
2222
|
if (this.isMobileApp)
|
|
2223
2223
|
return null;
|
|
2224
|
-
return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref:
|
|
2224
|
+
return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref: modal => {
|
|
2225
2225
|
this.modal = modal;
|
|
2226
|
-
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", { class: "s-bullet-delivery-inner" }, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address'
|
|
2226
|
+
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", { class: "s-bullet-delivery-inner" }, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address'
|
|
2227
|
+
? Salla.lang.get('blocks.home.add_address_for_order_delivery')
|
|
2228
|
+
: Salla.lang.get('blocks.home.choose_branch_for_order_pickup')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address'
|
|
2229
|
+
? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping')
|
|
2230
|
+
: Salla.lang.get('blocks.home.choose_branch_for_order_pickup_description'))), this.renderTabs(), this.viewMode === 'main' && this.renderMainView(), this.viewMode === 'add-address' && this.renderAddAddressForm()))));
|
|
2227
2231
|
}
|
|
2228
2232
|
componentDidLoad() {
|
|
2229
2233
|
// Mark component as ready
|
|
@@ -35,19 +35,34 @@ export function brand_path(brand) {
|
|
|
35
35
|
return [brand.name.replace(/\s/g, '-'), `brand-${brand.id}`].join('/');
|
|
36
36
|
}
|
|
37
37
|
export function isUnitOrder(point) {
|
|
38
|
-
for (const condition of
|
|
39
|
-
if (condition.key
|
|
38
|
+
for (const condition of point.conditions) {
|
|
39
|
+
if (condition.key.endsWith('_FOR_UNIT') || condition.key.endsWith('_FOR_UNIT_BY_CATEGORIES')) {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return false;
|
|
44
43
|
}
|
|
45
|
-
export function
|
|
44
|
+
export function isRangePoints(point) {
|
|
45
|
+
for (const condition of point.conditions) {
|
|
46
|
+
if (condition.key.endsWith('_BY_CATEGORIES') && point.conditions.length > 1) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function getPoints(point) {
|
|
52
|
+
if (isRangePoints(point)) {
|
|
53
|
+
return point.conditions.sort((a, b) => a.points - b.points)[0].points;
|
|
54
|
+
}
|
|
55
|
+
return point.points;
|
|
56
|
+
}
|
|
57
|
+
export function formattedPointsJsx(value, isUnit = false, isRange = false) {
|
|
46
58
|
if (typeof value === 'number') {
|
|
47
|
-
|
|
59
|
+
if (isUnit) {
|
|
60
|
+
return h("span", null, isRange ? salla.lang.get('pages.loyalty_program.start_from') : '', " 1 ", salla.config.currency().symbol, " = ", value, " ", salla.lang.get('pages.loyalty_program.point'));
|
|
61
|
+
}
|
|
62
|
+
return h("span", null, isRange ? salla.lang.get('pages.loyalty_program.start_from') : '', " ", value, " ", salla.lang.get('pages.loyalty_program.point'));
|
|
48
63
|
}
|
|
49
64
|
if (isUnitOrder(value)) {
|
|
50
|
-
return h("span", null, "1 ", salla.config.currency().symbol, " = ", value
|
|
65
|
+
return h("span", null, isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '', " 1 ", salla.config.currency().symbol, " = ", getPoints(value), " ", salla.lang.get('pages.loyalty_program.point'));
|
|
51
66
|
}
|
|
52
|
-
return h("span", null, value.
|
|
67
|
+
return h("span", null, isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '', " ", getPoints(value), " ", salla.lang.get('pages.loyalty_program.point'));
|
|
53
68
|
}
|