@salla.sa/twilight-components 2.14.432 → 2.14.434
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-B_l27yye.js → filepond-CWW6qAlB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DZOhW2iP.js → filepond-plugin-file-poster-tqITvQar.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BNaYb1U3.js → filepond-plugin-file-validate-size-BfDaORpj.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cw8Znb0V.js → filepond-plugin-file-validate-type-DW0ppYcG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DxnD0wqH.js → filepond-plugin-image-edit-c9ML3iba.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DlLc6bZg.js → filepond-plugin-image-exif-orientation-XTmaoGOO.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-LS71z4pj.js → filepond-plugin-image-preview-BNlkC9-r.js} +1 -1
- package/dist/cjs/{functions-Bli1zuDJ.js → functions-BW_9N8hU.js} +1 -1
- package/dist/cjs/{index-fxto0lmo.js → index-DGugEE5Q.js} +1 -1
- package/dist/cjs/{index-Bkq8qG-X.js → index-zPj2BUIM.js} +10 -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 +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-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 +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +77 -0
- 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 +2 -2
- 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 +50 -0
- 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_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 +28 -21
- 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 +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-Bg3_0LpQ.js → tracked-promise-BOij5kTl.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C1EOe3vj.js → vanilla-picker-Drd6dUY6.js} +1 -1
- package/dist/collection/assets/svg/money.svg +3 -0
- package/dist/collection/assets/svg/star-filled.svg +10 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +0 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +74 -0
- package/dist/collection/components/salla-installment/salla-installment.js +1 -1
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.css +0 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +54 -0
- package/dist/collection/components/salla-products-list/salla-products-list.js +27 -20
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cashback-banner.d.ts +11 -0
- package/dist/components/salla-cashback-banner.js +96 -0
- package/dist/components/salla-installment.js +1 -1
- package/dist/components/salla-loyalty-points-banner.d.ts +11 -0
- package/dist/components/salla-loyalty-points-banner.js +69 -0
- package/dist/components/salla-products-list2.js +27 -20
- package/dist/esm/{filepond-HXomeZen.js → filepond-B8ZU0S2U.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D4H-PD_s.js → filepond-plugin-file-poster-CbvNpFBW.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BS0ly_Mw.js → filepond-plugin-file-validate-size-Dvk6NFzB.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-COwvXqLN.js → filepond-plugin-file-validate-type-BHnSvKf9.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-yo1lYVPu.js → filepond-plugin-image-edit-C3-HEwrk.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-AQpLyT8N.js → filepond-plugin-image-exif-orientation-CkNQRZPb.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BTSkXVkI.js → filepond-plugin-image-preview-BiSvHi1n.js} +1 -1
- package/dist/esm/{functions-5z0tDgRf.js → functions-B0NK3Lby.js} +1 -1
- package/dist/esm/{index-BuJQW042.js → index-BMlmyi0X.js} +1 -1
- package/dist/esm/{index-BJ40PU3w.js → index-CCvjaZrV.js} +10 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +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-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 +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +75 -0
- 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 +2 -2
- 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 +48 -0
- 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_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +28 -21
- 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 +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-C8cy0NIq.js → tracked-promise-BRNUnrUG.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CkNepO2l.js → vanilla-picker-Ce-g_3Yg.js} +1 -1
- package/dist/twilight/{p-3f05e331.entry.js → p-06bfa777.entry.js} +1 -1
- package/dist/twilight/{p-6130f608.entry.js → p-0a1ca9c1.entry.js} +1 -1
- package/dist/twilight/{p-2d62cc4c.entry.js → p-0aa893d7.entry.js} +1 -1
- package/dist/twilight/{p-acfddda1.entry.js → p-0b9688d0.entry.js} +1 -1
- package/dist/twilight/{p-e6b3c87c.entry.js → p-174dc0a4.entry.js} +1 -1
- package/dist/twilight/p-1b978866.entry.js +4 -0
- package/dist/twilight/p-1c3358af.entry.js +4 -0
- package/dist/twilight/{p-3f9a1902.entry.js → p-1cdc7af0.entry.js} +1 -1
- package/dist/twilight/{p-ad2ed5eb.entry.js → p-1d011c4a.entry.js} +1 -1
- package/dist/twilight/{p-77c95706.entry.js → p-1e2b99ff.entry.js} +1 -1
- package/dist/twilight/{p-5f4c249f.entry.js → p-204f8cc8.entry.js} +1 -1
- package/dist/twilight/{p-956ac53f.entry.js → p-24b0c91d.entry.js} +1 -1
- package/dist/twilight/{p-51b24d07.entry.js → p-269b7e54.entry.js} +1 -1
- package/dist/twilight/{p-fabe4232.entry.js → p-27aae413.entry.js} +1 -1
- package/dist/twilight/{p-5d077c6a.entry.js → p-2822dff4.entry.js} +1 -1
- package/dist/twilight/{p-a18652ed.entry.js → p-28df3b47.entry.js} +1 -1
- package/dist/twilight/p-298e860b.entry.js +4 -0
- package/dist/twilight/{p-43bee891.entry.js → p-2b03d8dd.entry.js} +1 -1
- package/dist/twilight/{p-0632dfef.entry.js → p-2e3879e2.entry.js} +1 -1
- package/dist/twilight/{p-e0ec707c.entry.js → p-36adc8b6.entry.js} +1 -1
- package/dist/twilight/{p-c8fb4dfa.entry.js → p-4445fe22.entry.js} +1 -1
- package/dist/twilight/{p-b191a231.entry.js → p-444c78ba.entry.js} +1 -1
- package/dist/twilight/{p-646e8f52.entry.js → p-448852e5.entry.js} +1 -1
- package/dist/twilight/{p-9119f35f.entry.js → p-46fc566b.entry.js} +1 -1
- package/dist/twilight/{p-f863328c.entry.js → p-4a1ea811.entry.js} +1 -1
- package/dist/twilight/{p-a0005be9.entry.js → p-4aa09288.entry.js} +1 -1
- package/dist/twilight/{p-178aae87.entry.js → p-541847cd.entry.js} +1 -1
- package/dist/twilight/{p-275770d0.entry.js → p-5b94c9ec.entry.js} +1 -1
- package/dist/twilight/{p-79eea339.entry.js → p-5b9c52ed.entry.js} +1 -1
- package/dist/twilight/{p-6296eebd.entry.js → p-634115cb.entry.js} +1 -1
- package/dist/twilight/{p-fc4090bd.entry.js → p-69d37822.entry.js} +1 -1
- package/dist/twilight/{p-df6636a5.entry.js → p-69ffd7f4.entry.js} +1 -1
- package/dist/twilight/{p-6676e7ab.entry.js → p-741d0133.entry.js} +1 -1
- package/dist/twilight/{p-f26e212f.entry.js → p-742ea83d.entry.js} +1 -1
- package/dist/twilight/p-76fd5e24.entry.js +4 -0
- package/dist/twilight/p-78d4e07b.entry.js +4 -0
- package/dist/twilight/{p-1a423637.entry.js → p-81108b40.entry.js} +1 -1
- package/dist/twilight/{p-2c17ff06.entry.js → p-84d0de81.entry.js} +1 -1
- package/dist/twilight/{p-bb90ddc2.entry.js → p-88d72e17.entry.js} +1 -1
- package/dist/twilight/{p-9ce261f7.entry.js → p-8960b0d5.entry.js} +1 -1
- package/dist/twilight/{p-dacde914.entry.js → p-89e9172e.entry.js} +1 -1
- package/dist/twilight/{p-c632b364.entry.js → p-8a86e1be.entry.js} +1 -1
- package/dist/twilight/{p-9e7bd84a.entry.js → p-946e111f.entry.js} +1 -1
- package/dist/twilight/{p-5cde2cb8.entry.js → p-9719b3ae.entry.js} +1 -1
- package/dist/twilight/{p-Bun3xE9B.js → p-9b-9ka47.js} +1 -1
- package/dist/twilight/{p-02011d32.entry.js → p-9e739b68.entry.js} +1 -1
- package/dist/twilight/{p-9899dfe6.entry.js → p-9e980184.entry.js} +1 -1
- package/dist/twilight/{p-CYaVURSO.js → p-BO0AhOgw.js} +1 -1
- package/dist/twilight/{p-BJ40PU3w.js → p-CCvjaZrV.js} +2 -2
- package/dist/twilight/{p-D1RS-zwD.js → p-CavpTJbV.js} +1 -1
- package/dist/twilight/{p-CFkS_w5i.js → p-CfnUG35R.js} +1 -1
- package/dist/twilight/p-D3EEMM4Q.js +4 -0
- package/dist/twilight/{p-0AWfiLtG.js → p-DJRGxZpg.js} +1 -1
- package/dist/twilight/{p-NA2JPuRY.js → p-DNvjzv3i.js} +1 -1
- package/dist/twilight/{p-BS8JieU8.js → p-DQV39xyV.js} +1 -1
- package/dist/twilight/{p-vXUmTMNT.js → p-DSNYrBKg.js} +1 -1
- package/dist/twilight/{p-_aEM4nUi.js → p-DXHIK3BO.js} +1 -1
- package/dist/twilight/{p-bfa0b7fe.entry.js → p-a4633c90.entry.js} +1 -1
- package/dist/twilight/{p-e4fc772b.entry.js → p-a64f6f5e.entry.js} +1 -1
- package/dist/twilight/{p-bad7f522.entry.js → p-aa68a8aa.entry.js} +1 -1
- package/dist/twilight/{p-f058cd4d.entry.js → p-aa77176a.entry.js} +1 -1
- package/dist/twilight/{p-ca8e26b3.entry.js → p-ad9ec8cf.entry.js} +1 -1
- package/dist/twilight/p-adfdecf5.entry.js +4 -0
- package/dist/twilight/{p-d42cdc1a.entry.js → p-afc9e2ec.entry.js} +1 -1
- package/dist/twilight/{p-00aed63b.entry.js → p-afdc1db1.entry.js} +1 -1
- package/dist/twilight/{p-BY64RkRn.js → p-asWgwDKm.js} +1 -1
- package/dist/twilight/{p-7ca4d215.entry.js → p-b49e2f80.entry.js} +1 -1
- package/dist/twilight/{p-40d60687.entry.js → p-b4b54b19.entry.js} +1 -1
- package/dist/twilight/{p-079fd3e3.entry.js → p-b4fc1ab3.entry.js} +1 -1
- package/dist/twilight/{p-8b207eb9.entry.js → p-b878dafc.entry.js} +1 -1
- package/dist/twilight/{p-9ca58cda.entry.js → p-b95d6343.entry.js} +1 -1
- package/dist/twilight/{p-ccf24f28.entry.js → p-ba00b2a5.entry.js} +1 -1
- package/dist/twilight/{p-1ed63470.entry.js → p-bc7c8a73.entry.js} +1 -1
- package/dist/twilight/{p-a37100ea.entry.js → p-bd227ed6.entry.js} +1 -1
- package/dist/twilight/{p-7af14cb7.entry.js → p-be938ae4.entry.js} +1 -1
- package/dist/twilight/{p-2976acab.entry.js → p-bfc9043f.entry.js} +1 -1
- package/dist/twilight/{p-15105c61.entry.js → p-c12d9d20.entry.js} +1 -1
- package/dist/twilight/{p-c5523e29.entry.js → p-c37148ce.entry.js} +1 -1
- package/dist/twilight/{p-d9d151cc.entry.js → p-c41e0c6a.entry.js} +1 -1
- package/dist/twilight/{p-ce9405a3.entry.js → p-c548c109.entry.js} +1 -1
- package/dist/twilight/{p-5cd47a2a.entry.js → p-c7571a96.entry.js} +1 -1
- package/dist/twilight/{p-e386a27c.entry.js → p-c958ebbc.entry.js} +1 -1
- package/dist/twilight/{p-ad4ce4d9.entry.js → p-cb2717ce.entry.js} +1 -1
- package/dist/twilight/{p-9854f087.entry.js → p-ced59ca2.entry.js} +1 -1
- package/dist/twilight/{p-f60083f9.entry.js → p-d0a50136.entry.js} +1 -1
- package/dist/twilight/{p-e36cf20c.entry.js → p-d1784e5f.entry.js} +1 -1
- package/dist/twilight/{p-6cd60db0.entry.js → p-d8dda828.entry.js} +1 -1
- package/dist/twilight/{p-0fbe0573.entry.js → p-da9007ce.entry.js} +1 -1
- package/dist/twilight/{p-3279bfe3.entry.js → p-e0089ff0.entry.js} +1 -1
- package/dist/twilight/{p-f2e0e6f0.entry.js → p-e048fb41.entry.js} +1 -1
- package/dist/twilight/{p-fbcde591.entry.js → p-e1bab84d.entry.js} +1 -1
- package/dist/twilight/{p-7e74a3f8.entry.js → p-f19b6300.entry.js} +1 -1
- package/dist/twilight/{p-676224c8.entry.js → p-f4933141.entry.js} +1 -1
- package/dist/twilight/{p-ffff176d.entry.js → p-f85b6b5e.entry.js} +1 -1
- package/dist/twilight/{p-b83da2aa.entry.js → p-fa0241ed.entry.js} +1 -1
- package/dist/twilight/{p-587d868d.entry.js → p-fb997718.entry.js} +1 -1
- package/dist/twilight/{p-ac58bd23.entry.js → p-ff4f4e20.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cashback-banner/salla-cashback-banner.d.ts +20 -0
- package/dist/types/components/salla-loyalty-points-banner/salla-loyalty-points-banner.d.ts +12 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
- package/dist/types/components.d.ts +26 -0
- package/package.json +5 -5
- package/dist/twilight/p-2ad11831.entry.js +0 -4
- package/dist/twilight/p-460383f6.entry.js +0 -4
- package/dist/twilight/p-8afcb7d2.entry.js +0 -4
- package/dist/twilight/p-Cln8qx5Q.js +0 -4
- package/dist/twilight/p-a7b03950.entry.js +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaCashbackBanner extends Components.SallaCashbackBanner, HTMLElement {}
|
|
4
|
+
export const SallaCashbackBanner: {
|
|
5
|
+
prototype: SallaCashbackBanner;
|
|
6
|
+
new (): SallaCashbackBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { s as setTranslations } from './translations.js';
|
|
6
|
+
|
|
7
|
+
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<g clip-path="url(#clip0_5667_2008)">
|
|
9
|
+
<path d="M9.00003 0.935974C9.37203 0.935974 9.72003 1.06797 10.044 1.33197C10.344 1.57197 10.596 1.90797 10.8 2.33997L12.114 5.00397C12.174 5.09997 12.27 5.19897 12.402 5.30097C12.534 5.40297 12.66 5.46597 12.78 5.48997L15.174 5.88597C15.618 5.95797 15.996 6.10197 16.308 6.31797C16.644 6.54597 16.869 6.83697 16.983 7.19097C17.097 7.54497 17.082 7.91397 16.938 8.29797C16.806 8.64597 16.578 8.98797 16.254 9.32397L14.4 11.196C14.316 11.28 14.247 11.409 14.193 11.583C14.139 11.757 14.13 11.91 14.166 12.042L14.688 14.364C14.808 14.88 14.832 15.342 14.76 15.75C14.676 16.206 14.475 16.551 14.157 16.785C13.839 17.019 13.452 17.106 12.996 17.046C12.588 16.998 12.156 16.836 11.7 16.56L9.45003 15.21C9.34203 15.15 9.19203 15.12 9.00003 15.12C8.80803 15.12 8.65803 15.15 8.55003 15.21L6.30003 16.56C5.84403 16.836 5.41203 16.998 5.00403 17.046C4.54803 17.106 4.16103 17.016 3.84303 16.776C3.52503 16.536 3.32403 16.194 3.24003 15.75C3.16803 15.342 3.19203 14.88 3.31203 14.364L3.83403 12.042C3.85803 11.91 3.84603 11.757 3.79803 11.583C3.75003 11.409 3.68403 11.28 3.60003 11.196L1.74603 9.32397C1.41003 8.98797 1.18203 8.64597 1.06203 8.29797C0.918027 7.91397 0.900027 7.54497 1.00803 7.19097C1.11603 6.83697 1.34403 6.54597 1.69203 6.31797C1.99203 6.10197 2.37003 5.95797 2.82603 5.88597L5.22003 5.48997C5.32803 5.46597 5.45103 5.40297 5.58903 5.30097C5.72703 5.19897 5.82003 5.09997 5.86803 5.00397L7.18203 2.33997C7.39803 1.90797 7.65603 1.57197 7.95603 1.33197C8.28003 1.06797 8.62803 0.935974 9.00003 0.935974Z" fill="white"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<clipPath id="clip0_5667_2008">
|
|
13
|
+
<rect width="18" height="18" fill="white"/>
|
|
14
|
+
</clipPath>
|
|
15
|
+
</defs>
|
|
16
|
+
</svg>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const sallaCashbackBannerCss = "";
|
|
20
|
+
|
|
21
|
+
const SallaCashbackBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaCashbackBanner extends HTMLElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.__registerHost();
|
|
25
|
+
this.cashbackData = null;
|
|
26
|
+
this.productId = null;
|
|
27
|
+
}
|
|
28
|
+
async componentWillLoad() {
|
|
29
|
+
try {
|
|
30
|
+
await salla.onReady();
|
|
31
|
+
await salla.lang.onLoaded();
|
|
32
|
+
await setTranslations();
|
|
33
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
34
|
+
if (!this.productId) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const response = await salla.api
|
|
38
|
+
.request(`/products/${this.productId}/cashback-offer`)
|
|
39
|
+
.catch(() => null);
|
|
40
|
+
this.cashbackData = response?.data || null;
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
salla?.logger?.warn?.('salla-cashback-banner: init failed', e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
getPaymentMethodsText(methods = []) {
|
|
47
|
+
return methods
|
|
48
|
+
.map(method => String(method || '').trim())
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.map(method => salla.lang.get(`pages.checkout.${method}`) || method)
|
|
51
|
+
.join(', ');
|
|
52
|
+
}
|
|
53
|
+
getCashbackMessage() {
|
|
54
|
+
const includedMethods = this.cashbackData?.payment_method_restrictions?.included ?? [];
|
|
55
|
+
if (includedMethods.length) {
|
|
56
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product_payment_method', {
|
|
57
|
+
payment_method: this.getPaymentMethodsText(includedMethods),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product');
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
if (!this.productId || !Number(this.cashbackData?.amount)) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const cashbackValue = this.cashbackData.amount;
|
|
67
|
+
const currency = this.cashbackData.currency;
|
|
68
|
+
const cashbackMessage = this.getCashbackMessage();
|
|
69
|
+
const cashbackType = this.cashbackData.offer_type;
|
|
70
|
+
return (h(Host, null, h("div", { class: "s-cashback-banner-container" }, h("div", { class: "s-cashback-banner-icon" }, h("span", { class: "s-cashback-banner-inner-icon", innerHTML: StarFilledIcon })), h("p", null, h("span", { class: "s-cashback-banner-label" }, salla.lang.get('pages.loyalty_program.earn'), ' '), h("span", { class: "s-cashback-banner-value" }, cashbackType === "percentage" ? "+" : "", cashbackValue, " ", ['SAR', 'ر.س'].includes(currency) ? h("i", { class: "sicon-sar" }) : currency, ' '), h("span", { class: "s-cashback-banner-label" }, cashbackMessage)))));
|
|
71
|
+
}
|
|
72
|
+
get host() { return this; }
|
|
73
|
+
static get style() { return sallaCashbackBannerCss; }
|
|
74
|
+
}, [0, "salla-cashback-banner", {
|
|
75
|
+
"cashbackData": [32],
|
|
76
|
+
"productId": [32]
|
|
77
|
+
}]);
|
|
78
|
+
function defineCustomElement$1() {
|
|
79
|
+
if (typeof customElements === "undefined") {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const components = ["salla-cashback-banner"];
|
|
83
|
+
components.forEach(tagName => { switch (tagName) {
|
|
84
|
+
case "salla-cashback-banner":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
customElements.define(tagName, SallaCashbackBanner$1);
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
} });
|
|
90
|
+
}
|
|
91
|
+
defineCustomElement$1();
|
|
92
|
+
|
|
93
|
+
const SallaCashbackBanner = SallaCashbackBanner$1;
|
|
94
|
+
const defineCustomElement = defineCustomElement$1;
|
|
95
|
+
|
|
96
|
+
export { SallaCashbackBanner, defineCustomElement };
|
|
@@ -182,7 +182,7 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
isValidPrice(price) {
|
|
185
|
-
const pricePattern = /^\d+(\.\d{1,
|
|
185
|
+
const pricePattern = /^\d+(\.\d{1,3})?$/;
|
|
186
186
|
const isValid = pricePattern.test(price);
|
|
187
187
|
const isGreaterThanZero = parseFloat(price) > 0;
|
|
188
188
|
return isValid && isGreaterThanZero;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaLoyaltyPointsBanner extends Components.SallaLoyaltyPointsBanner, HTMLElement {}
|
|
4
|
+
export const SallaLoyaltyPointsBanner: {
|
|
5
|
+
prototype: SallaLoyaltyPointsBanner;
|
|
6
|
+
new (): SallaLoyaltyPointsBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { s as setTranslations } from './translations.js';
|
|
6
|
+
|
|
7
|
+
var MoneyIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M8.76604 2.86201C9.31804 2.61001 9.93304 2.41501 10.611 2.27701C11.289 2.13901 12 2.07001 12.744 2.07001C13.572 2.07001 14.364 2.15401 15.12 2.32201C15.84 2.49001 16.356 2.81401 16.668 3.29401C16.932 3.70201 17.064 4.26001 17.064 4.96801V13.032C17.064 13.416 16.95 13.752 16.722 14.04C16.506 14.304 16.227 14.493 15.885 14.607C15.543 14.721 15.204 14.742 14.868 14.67C14.196 14.514 13.488 14.436 12.744 14.436C12.084 14.436 11.442 14.502 10.818 14.634C10.23 14.754 9.70204 14.922 9.23404 15.138C8.68204 15.39 8.06704 15.585 7.38904 15.723C6.71104 15.861 6.00004 15.93 5.25604 15.93C4.42804 15.93 3.63604 15.846 2.88004 15.678C2.18404 15.522 1.68004 15.21 1.36804 14.742C1.08004 14.322 0.936035 13.752 0.936035 13.032V4.96801C0.936035 4.58401 1.05004 4.24801 1.27804 3.96001C1.49404 3.69601 1.77304 3.50701 2.11504 3.39301C2.45704 3.27901 2.79604 3.25801 3.13204 3.33001C3.80404 3.48601 4.51204 3.56401 5.25604 3.56401C5.91604 3.56401 6.55804 3.49801 7.18204 3.36601C7.77004 3.24601 8.29804 3.07801 8.76604 2.86201ZM11.25 9.00001C11.25 8.59201 11.148 8.21701 10.944 7.87501C10.74 7.53301 10.467 7.26001 10.125 7.05601C9.78304 6.85201 9.40804 6.75001 9.00004 6.75001C8.59204 6.75001 8.21704 6.85201 7.87504 7.05601C7.53304 7.26001 7.26004 7.53301 7.05604 7.87501C6.85204 8.21701 6.75004 8.59201 6.75004 9.00001C6.75004 9.40801 6.85204 9.78301 7.05604 10.125C7.26004 10.467 7.53304 10.74 7.87504 10.944C8.21704 11.148 8.59204 11.25 9.00004 11.25C9.40804 11.25 9.78304 11.148 10.125 10.944C10.467 10.74 10.74 10.467 10.944 10.125C11.148 9.78301 11.25 9.40801 11.25 9.00001ZM14.328 7.79401C14.076 7.75801 13.812 7.73401 13.536 7.72201C13.38 7.71001 13.245 7.75501 13.131 7.85701C13.017 7.95901 12.954 8.08801 12.942 8.24401C12.93 8.40001 12.975 8.53501 13.077 8.64901C13.179 8.76301 13.308 8.82601 13.464 8.83801C13.704 8.85001 13.938 8.87401 14.166 8.91001C14.322 8.93401 14.463 8.90101 14.589 8.81101C14.715 8.72101 14.787 8.59801 14.805 8.44201C14.823 8.28601 14.787 8.14501 14.697 8.01901C14.607 7.89301 14.484 7.81801 14.328 7.79401ZM4.53604 9.16201C4.29604 9.15001 4.06204 9.12601 3.83404 9.09001C3.67804 9.06601 3.53704 9.09901 3.41104 9.18901C3.28504 9.27901 3.21304 9.40201 3.19504 9.55801C3.17704 9.71401 3.21304 9.85501 3.30304 9.98101C3.39304 10.107 3.51604 10.182 3.67204 10.206C3.92404 10.242 4.18804 10.266 4.46404 10.278C4.62004 10.29 4.75504 10.245 4.86904 10.143C4.98304 10.041 5.04604 9.91201 5.05804 9.75601C5.07004 9.60001 5.02504 9.46501 4.92304 9.35101C4.82104 9.23701 4.69204 9.17401 4.53604 9.16201Z" fill="white"/>
|
|
9
|
+
</svg>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
const sallaLoyaltyPointsBannerCss = "";
|
|
13
|
+
|
|
14
|
+
const SallaLoyaltyPointsBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPointsBanner extends HTMLElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
this.pointsData = null;
|
|
19
|
+
this.productId = null;
|
|
20
|
+
}
|
|
21
|
+
async componentWillLoad() {
|
|
22
|
+
try {
|
|
23
|
+
await salla.onReady();
|
|
24
|
+
await salla.lang.onLoaded();
|
|
25
|
+
await setTranslations();
|
|
26
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
27
|
+
if (!this.productId) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const response = await salla.api
|
|
31
|
+
.request(`/loyalty/products/${this.productId}/points`)
|
|
32
|
+
.catch(() => null);
|
|
33
|
+
this.pointsData = response?.data || null;
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
salla?.logger?.warn?.('salla-loyalty-points-banner: init failed', e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
if (!this.productId || !this.pointsData?.points) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return (h(Host, null, h("div", { class: "s-loyalty-points-banner-container" }, h("div", { class: "s-loyalty-points-banner-icon" }, h("span", { class: "s-loyalty-points-banner-inner-icon", innerHTML: MoneyIcon })), h("p", null, h("span", { class: "s-loyalty-points-banner-label" }, salla.lang.get('pages.loyalty_program.earn'), ' '), h("span", { class: "s-loyalty-points-banner-label" }, `+${this.pointsData.points}`, " "), h("span", { class: "s-loyalty-points-banner-label" }, salla.lang.get('pages.loyalty_program.loyalty_point'), ' '), h("span", { class: "s-loyalty-points-banner-description" }, salla.lang.get('pages.loyalty_program.on_order_total_when_purchase'))))));
|
|
44
|
+
}
|
|
45
|
+
get host() { return this; }
|
|
46
|
+
static get style() { return sallaLoyaltyPointsBannerCss; }
|
|
47
|
+
}, [0, "salla-loyalty-points-banner", {
|
|
48
|
+
"pointsData": [32],
|
|
49
|
+
"productId": [32]
|
|
50
|
+
}]);
|
|
51
|
+
function defineCustomElement$1() {
|
|
52
|
+
if (typeof customElements === "undefined") {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const components = ["salla-loyalty-points-banner"];
|
|
56
|
+
components.forEach(tagName => { switch (tagName) {
|
|
57
|
+
case "salla-loyalty-points-banner":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
customElements.define(tagName, SallaLoyaltyPointsBanner$1);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
defineCustomElement$1();
|
|
65
|
+
|
|
66
|
+
const SallaLoyaltyPointsBanner = SallaLoyaltyPointsBanner$1;
|
|
67
|
+
const defineCustomElement = defineCustomElement$1;
|
|
68
|
+
|
|
69
|
+
export { SallaLoyaltyPointsBanner, defineCustomElement };
|
|
@@ -428,6 +428,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
428
428
|
getSource() {
|
|
429
429
|
return Helper.getProductsSource(this.source);
|
|
430
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* Partial product strips (mega menu, offers drawer, related products, JSON payload, …)
|
|
433
|
+
* must not set `response.title` — only the main catalog grid should update the listing title.
|
|
434
|
+
*/
|
|
435
|
+
isAuxiliaryProductsListSource() {
|
|
436
|
+
return ['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource());
|
|
437
|
+
}
|
|
431
438
|
getSourceValue() {
|
|
432
439
|
return this.currentCategoryIdFilter ? this.currentCategoryIdFilter : Helper.getProductsSourceValue(this.source, this.sourceValue);
|
|
433
440
|
}
|
|
@@ -643,7 +650,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
643
650
|
.then(async () => {
|
|
644
651
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
645
652
|
this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
|
|
646
|
-
this.hasInfiniteScroll = !
|
|
653
|
+
this.hasInfiniteScroll = !this.isAuxiliaryProductsListSource() && !this.limit;
|
|
647
654
|
let searchParams = new URLSearchParams(window.location.search);
|
|
648
655
|
try {
|
|
649
656
|
this.sortBy = this.sortBy || searchParams.get('sort') || searchParams.get('by');
|
|
@@ -760,28 +767,28 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
760
767
|
return [];
|
|
761
768
|
}
|
|
762
769
|
let source = this.getSource();
|
|
763
|
-
let title = '';
|
|
764
|
-
//help the developer to know the current page title
|
|
765
770
|
if (response.cursor?.current === 1) {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
771
|
+
if (!this.isAuxiliaryProductsListSource()) {
|
|
772
|
+
let title = Helper.getPageTitleForSource(source);
|
|
773
|
+
try {
|
|
774
|
+
if (this.getSource() === 'search') {
|
|
775
|
+
title = salla.lang.get('common.elements.search_about', { 'word': this.getSourceValue() });
|
|
776
|
+
}
|
|
777
|
+
else if (!title) {
|
|
778
|
+
let catId = this.parsedFilters.category_id || this.getSourceValue()[0];
|
|
779
|
+
// get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
|
|
780
|
+
title = response.filters?.find(filter => filter.key === 'category_id')?.values?.find(cat => cat.key === catId)?.value ?? '';
|
|
781
|
+
this.filtersSnapshot = response.filters;
|
|
782
|
+
}
|
|
783
|
+
title += (title ? ' - ' : '') + salla.lang.choice('blocks.header.products_count', response.data?.length);
|
|
784
|
+
if (response.data.length === 15) {
|
|
785
|
+
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
786
|
+
}
|
|
787
|
+
response.title = title;
|
|
776
788
|
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
789
|
+
catch (e) {
|
|
790
|
+
salla.logger.error('Error::falid to handle response', e);
|
|
780
791
|
}
|
|
781
|
-
response.title = title;
|
|
782
|
-
}
|
|
783
|
-
catch (e) {
|
|
784
|
-
salla.logger.error('Error::falid to handle response', e);
|
|
785
792
|
}
|
|
786
793
|
//inject the SEO schema
|
|
787
794
|
//handleResponse works only on the infinite-scroll and infinite scroll works only on the categories pages and main latest-page ..etc, so no need to add condition
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|