@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CCvjaZrV.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
7
7
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const SallaHook = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
|
|
7
7
|
|
|
@@ -181,7 +181,7 @@ const SallaInstallment = class {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
isValidPrice(price) {
|
|
184
|
-
const pricePattern = /^\d+(\.\d{1,
|
|
184
|
+
const pricePattern = /^\d+(\.\d{1,3})?$/;
|
|
185
185
|
const isValid = pricePattern.test(price);
|
|
186
186
|
const isGreaterThanZero = parseFloat(price) > 0;
|
|
187
187
|
return isValid && isGreaterThanZero;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const SallaLocalizationModal = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { s as setTranslations } from './translations-B-Rj6b9M.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
7
|
+
import { T as TrackedPromise } from './tracked-promise-BRNUnrUG.js';
|
|
8
8
|
|
|
9
9
|
const sallaLoyaltyProgramCss = "";
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
5
|
-
import { c as closeModals, f as formattedPointsJsx } from './functions-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
|
+
import { c as closeModals, f as formattedPointsJsx } from './functions-B0NK3Lby.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
8
8
|
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-
|
|
4
|
+
import { h, r as registerInstance } from './index-CCvjaZrV.js';
|
|
5
5
|
import { s as setTranslations } from './translations-B-Rj6b9M.js';
|
|
6
|
-
import { n as normalizeLoyaltyData, c as closeModals } from './functions-
|
|
6
|
+
import { n as normalizeLoyaltyData, c as closeModals } from './functions-B0NK3Lby.js';
|
|
7
7
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
8
8
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
9
9
|
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
10
10
|
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
11
11
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
12
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
12
|
+
import { T as TrackedPromise } from './tracked-promise-BRNUnrUG.js';
|
|
13
13
|
|
|
14
14
|
var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
|
|
15
15
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
|
+
import { s as setTranslations } from './translations-B-Rj6b9M.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 = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
registerInstance(this, hostRef);
|
|
17
|
+
this.pointsData = null;
|
|
18
|
+
this.productId = null;
|
|
19
|
+
}
|
|
20
|
+
async componentWillLoad() {
|
|
21
|
+
try {
|
|
22
|
+
await salla.onReady();
|
|
23
|
+
await salla.lang.onLoaded();
|
|
24
|
+
await setTranslations();
|
|
25
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
26
|
+
if (!this.productId) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const response = await salla.api
|
|
30
|
+
.request(`/loyalty/products/${this.productId}/points`)
|
|
31
|
+
.catch(() => null);
|
|
32
|
+
this.pointsData = response?.data || null;
|
|
33
|
+
}
|
|
34
|
+
catch (e) {
|
|
35
|
+
salla?.logger?.warn?.('salla-loyalty-points-banner: init failed', e);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
if (!this.productId || !this.pointsData?.points) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
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'))))));
|
|
43
|
+
}
|
|
44
|
+
get host() { return getElement(this); }
|
|
45
|
+
};
|
|
46
|
+
SallaLoyaltyPointsBanner.style = sallaLoyaltyPointsBannerCss;
|
|
47
|
+
|
|
48
|
+
export { SallaLoyaltyPointsBanner as salla_loyalty_points_banner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-
|
|
4
|
+
import { h, r as registerInstance } from './index-CCvjaZrV.js';
|
|
5
5
|
import { s as setTranslations } from './translations-B-Rj6b9M.js';
|
|
6
|
-
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-
|
|
6
|
+
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-B0NK3Lby.js';
|
|
7
7
|
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
8
8
|
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
9
9
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
10
10
|
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
11
11
|
import { S as SIGiftSharing } from './gift-sharing-0-eTJXSD.js';
|
|
12
12
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
13
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
13
|
+
import { T as TrackedPromise } from './tracked-promise-BRNUnrUG.js';
|
|
14
14
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
15
15
|
|
|
16
16
|
var SICartUpload = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
5
|
-
import { c as closeModals } from './functions-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h } from './index-CCvjaZrV.js';
|
|
5
|
+
import { c as closeModals } from './functions-B0NK3Lby.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
|
|
8
8
|
const sallaLoyaltyProgramCss = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CCvjaZrV.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
6
6
|
|
|
7
7
|
const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
6
6
|
|
|
7
7
|
var Edit = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaMultipleBundleProductCartCss = "";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CCvjaZrV.js';
|
|
5
5
|
import { T as TagMoneyIcon } from './tag-money-CJUR4sUM.js';
|
|
6
6
|
import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
import { S as SITag } from './tag-cgSL_BIo.js';
|
|
7
7
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
var copyIcon = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
import { a as getOrderEditProductMaxQuantity } from './helpers-DR_vlSvU.js';
|
|
6
6
|
import './interfaces-CoQJOPRz.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaOrderEditProductCardCss = ":host{display:block;min-width:0}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
import { g as getOrderItemSelectedOptions, a as getOrderEditProductMaxQuantity, c as clampOrderEditQuantity, u as updateOrderItems, r as removeOrderItems, m as mergePayloadItems, b as cloneOrderEditProduct, f as findMergeableItem, d as updateAddedPayloadList, e as upsertPayloadUpdateList, h as createAddedOrderItem, i as buildSavePayload } from './helpers-DR_vlSvU.js';
|
|
6
6
|
import './interfaces-CoQJOPRz.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CCvjaZrV.js';
|
|
5
5
|
import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
|
|
6
6
|
import { S as SICheck } from './check-BZp0rKEO.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CCvjaZrV.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
|
|
7
7
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
|
|
6
6
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CCvjaZrV.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|
|
7
7
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
@@ -427,6 +427,13 @@ const SallaProductsList = class {
|
|
|
427
427
|
getSource() {
|
|
428
428
|
return Helper.getProductsSource(this.source);
|
|
429
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* Partial product strips (mega menu, offers drawer, related products, JSON payload, …)
|
|
432
|
+
* must not set `response.title` — only the main catalog grid should update the listing title.
|
|
433
|
+
*/
|
|
434
|
+
isAuxiliaryProductsListSource() {
|
|
435
|
+
return ['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource());
|
|
436
|
+
}
|
|
430
437
|
getSourceValue() {
|
|
431
438
|
return this.currentCategoryIdFilter ? this.currentCategoryIdFilter : Helper.getProductsSourceValue(this.source, this.sourceValue);
|
|
432
439
|
}
|
|
@@ -642,7 +649,7 @@ const SallaProductsList = class {
|
|
|
642
649
|
.then(async () => {
|
|
643
650
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
644
651
|
this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
|
|
645
|
-
this.hasInfiniteScroll = !
|
|
652
|
+
this.hasInfiniteScroll = !this.isAuxiliaryProductsListSource() && !this.limit;
|
|
646
653
|
let searchParams = new URLSearchParams(window.location.search);
|
|
647
654
|
try {
|
|
648
655
|
this.sortBy = this.sortBy || searchParams.get('sort') || searchParams.get('by');
|
|
@@ -759,28 +766,28 @@ const SallaProductsList = class {
|
|
|
759
766
|
return [];
|
|
760
767
|
}
|
|
761
768
|
let source = this.getSource();
|
|
762
|
-
let title = '';
|
|
763
|
-
//help the developer to know the current page title
|
|
764
769
|
if (response.cursor?.current === 1) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
770
|
+
if (!this.isAuxiliaryProductsListSource()) {
|
|
771
|
+
let title = Helper.getPageTitleForSource(source);
|
|
772
|
+
try {
|
|
773
|
+
if (this.getSource() === 'search') {
|
|
774
|
+
title = salla.lang.get('common.elements.search_about', { 'word': this.getSourceValue() });
|
|
775
|
+
}
|
|
776
|
+
else if (!title) {
|
|
777
|
+
let catId = this.parsedFilters.category_id || this.getSourceValue()[0];
|
|
778
|
+
// get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
|
|
779
|
+
title = response.filters?.find(filter => filter.key === 'category_id')?.values?.find(cat => cat.key === catId)?.value ?? '';
|
|
780
|
+
this.filtersSnapshot = response.filters;
|
|
781
|
+
}
|
|
782
|
+
title += (title ? ' - ' : '') + salla.lang.choice('blocks.header.products_count', response.data?.length);
|
|
783
|
+
if (response.data.length === 15) {
|
|
784
|
+
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
785
|
+
}
|
|
786
|
+
response.title = title;
|
|
775
787
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
title = title.replace(response.data.length, salla.lang.get('common.elements.more_than') + ' ' + response.data.length);
|
|
788
|
+
catch (e) {
|
|
789
|
+
salla.logger.error('Error::falid to handle response', e);
|
|
779
790
|
}
|
|
780
|
-
response.title = title;
|
|
781
|
-
}
|
|
782
|
-
catch (e) {
|
|
783
|
-
salla.logger.error('Error::falid to handle response', e);
|
|
784
791
|
}
|
|
785
792
|
//inject the SEO schema
|
|
786
793
|
//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
|