@salla.sa/twilight-components 2.14.461 → 2.14.463
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-DDAGSiBu.js → filepond-XQ49P28a.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-nmHjxMAB.js → filepond-plugin-file-poster-BPQxaVwU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BtQEm835.js → filepond-plugin-file-validate-size-B9ApyJPA.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DZh74oiy.js → filepond-plugin-file-validate-type-Bcpy1-Yx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CTGzmH1f.js → filepond-plugin-image-edit-DpTpDHd0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D851LeUg.js → filepond-plugin-image-exif-orientation-BpFgVfuH.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BcbCu3xH.js → filepond-plugin-image-preview-Cb8nl-Sk.js} +1 -1
- package/dist/cjs/{functions-JSbmlqCR.js → functions-BWxgjDLr.js} +1 -1
- package/dist/cjs/{index-B382wYR4.js → index-C8A5Jog8.js} +1 -1
- package/dist/cjs/{index-BbEaNgXt.js → index-erFsk7OI.js} +6 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -4
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +9 -15
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -5
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +96 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +4 -7
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-map.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-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 +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +29 -12
- 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 +10 -10
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +6 -7
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-B0hsrPu_.js → tracked-promise-CAEeCapf.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CuSFaj7m.js → vanilla-picker-B9ah_1w1.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +99 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -10
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -4
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +28 -11
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +6 -7
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cashback-banner.js +0 -2
- package/dist/components/salla-loyalty-banner.js +0 -2
- package/dist/components/salla-loyalty-hero2.js +3 -3
- package/dist/components/salla-loyalty-panel.js +0 -2
- package/dist/components/salla-loyalty-point2.js +4 -10
- package/dist/components/salla-loyalty-points-banner.js +0 -2
- package/dist/components/salla-loyalty-points-history.d.ts +11 -0
- package/dist/components/salla-loyalty-points-history.js +129 -0
- package/dist/components/salla-loyalty-program.js +1 -4
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-products-list2.js +28 -11
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +3 -3
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-menu.js +6 -7
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-n7Tk1X1s.js → filepond-AAIlCdAO.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BSnp0vvZ.js → filepond-plugin-file-poster-CzcSk93x.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CoYRMYw6.js → filepond-plugin-file-validate-size-DRV8qwBW.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-qCOXsTrd.js → filepond-plugin-file-validate-type-CelZ69Kz.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DXpVwYXm.js → filepond-plugin-image-edit-B-hHZqmA.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BWH5RIuD.js → filepond-plugin-image-exif-orientation-BgxjrMAY.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-D2-j0VSU.js → filepond-plugin-image-preview-h6BWEU-G.js} +1 -1
- package/dist/esm/{functions-C0YAccvF.js → functions-Dg0XXbIV.js} +1 -1
- package/dist/esm/{index-CWoBHtob.js → index-BlGD97H6.js} +1 -1
- package/dist/esm/{index-DZJfoSMn.js → index-CgKcWLpf.js} +6 -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 +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +12 -12
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -3
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -4
- package/dist/esm/salla-loyalty-hero_2.entry.js +9 -15
- package/dist/esm/salla-loyalty-panel.entry.js +3 -5
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -3
- package/dist/esm/salla-loyalty-points-history.entry.js +94 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +4 -7
- package/dist/esm/salla-loyalty-reward.entry.js +4 -4
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.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 +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card_2.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +29 -12
- 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 +10 -10
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +6 -7
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-GcOA8b3a.js → tracked-promise-B-7sMH4T.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BpADmZjj.js → vanilla-picker-BcjrIc-C.js} +1 -1
- package/dist/twilight/{p-05f84e06.entry.js → p-02e79512.entry.js} +1 -1
- package/dist/twilight/{p-f4c8cace.entry.js → p-050d10dd.entry.js} +1 -1
- package/dist/twilight/{p-d04feb4a.entry.js → p-07e779b2.entry.js} +1 -1
- package/dist/twilight/{p-ebfbda5f.entry.js → p-0bb1836f.entry.js} +1 -1
- package/dist/twilight/{p-759ec1b2.entry.js → p-0bf29eb6.entry.js} +1 -1
- package/dist/twilight/{p-adb26a1f.entry.js → p-0fbd5e22.entry.js} +1 -1
- package/dist/twilight/{p-38e27a00.entry.js → p-17ae88c3.entry.js} +1 -1
- package/dist/twilight/p-17bceaf3.entry.js +4 -0
- package/dist/twilight/p-18123ac7.entry.js +4 -0
- package/dist/twilight/p-1c078509.entry.js +4 -0
- package/dist/twilight/p-1f8d103f.entry.js +4 -0
- package/dist/twilight/{p-2a900c4e.entry.js → p-23d41e5a.entry.js} +1 -1
- package/dist/twilight/{p-92bdfae5.entry.js → p-2ef068f6.entry.js} +1 -1
- package/dist/twilight/p-30cdc70c.entry.js +4 -0
- package/dist/twilight/{p-ed4a6e2d.entry.js → p-3173408c.entry.js} +1 -1
- package/dist/twilight/{p-c785365c.entry.js → p-31aa72b6.entry.js} +1 -1
- package/dist/twilight/{p-17d10d15.entry.js → p-323be2a0.entry.js} +1 -1
- package/dist/twilight/{p-ed061a5a.entry.js → p-34881ede.entry.js} +1 -1
- package/dist/twilight/{p-20ccbbe4.entry.js → p-37e5e4ba.entry.js} +1 -1
- package/dist/twilight/{p-c177ec39.entry.js → p-39a27ca2.entry.js} +1 -1
- package/dist/twilight/{p-3355b043.entry.js → p-3d5d09e5.entry.js} +1 -1
- package/dist/twilight/{p-457c98ed.entry.js → p-43f6d3aa.entry.js} +1 -1
- package/dist/twilight/{p-78ea4116.entry.js → p-46a9e49d.entry.js} +1 -1
- package/dist/twilight/p-49953509.entry.js +4 -0
- package/dist/twilight/{p-fbea393e.entry.js → p-49fef2a0.entry.js} +1 -1
- package/dist/twilight/{p-e9029b24.entry.js → p-4bd6f468.entry.js} +1 -1
- package/dist/twilight/{p-6deac135.entry.js → p-4e8fb0e3.entry.js} +1 -1
- package/dist/twilight/{p-4391b061.entry.js → p-520b00c7.entry.js} +1 -1
- package/dist/twilight/p-53b100a6.entry.js +4 -0
- package/dist/twilight/{p-ab681e13.entry.js → p-55178df6.entry.js} +1 -1
- package/dist/twilight/p-5642a30a.entry.js +4 -0
- package/dist/twilight/{p-8494470d.entry.js → p-5fe17bc8.entry.js} +1 -1
- package/dist/twilight/{p-c443a332.entry.js → p-6419fdff.entry.js} +1 -1
- package/dist/twilight/{p-8640b282.entry.js → p-65e1db2e.entry.js} +1 -1
- package/dist/twilight/p-67a831d2.entry.js +4 -0
- package/dist/twilight/{p-dc85db79.entry.js → p-684678f7.entry.js} +1 -1
- package/dist/twilight/{p-aa6980d3.entry.js → p-6868565b.entry.js} +1 -1
- package/dist/twilight/{p-60d8f39b.entry.js → p-68e221fb.entry.js} +1 -1
- package/dist/twilight/{p-aaa589b3.entry.js → p-6b25dc69.entry.js} +1 -1
- package/dist/twilight/{p-04755a75.entry.js → p-6fa42874.entry.js} +1 -1
- package/dist/twilight/p-70eced14.entry.js +4 -0
- package/dist/twilight/{p-28654655.entry.js → p-71f024e8.entry.js} +1 -1
- package/dist/twilight/{p-95916068.entry.js → p-77a23292.entry.js} +1 -1
- package/dist/twilight/{p-348ba7bc.entry.js → p-7b35061c.entry.js} +1 -1
- package/dist/twilight/{p-a2ef6d82.entry.js → p-7c4ee058.entry.js} +1 -1
- package/dist/twilight/{p-b17dff86.entry.js → p-7f27897e.entry.js} +1 -1
- package/dist/twilight/{p-3d72203e.entry.js → p-7f5f48f6.entry.js} +1 -1
- package/dist/twilight/{p-72cac49f.entry.js → p-84e636d1.entry.js} +1 -1
- package/dist/twilight/{p-57b49cdf.entry.js → p-8517f731.entry.js} +1 -1
- package/dist/twilight/{p-36b19d00.entry.js → p-86aa1fbf.entry.js} +1 -1
- package/dist/twilight/{p-ef824ee1.entry.js → p-8c72f4cc.entry.js} +1 -1
- package/dist/twilight/{p-723fd41b.entry.js → p-8dabf108.entry.js} +1 -1
- package/dist/twilight/{p-e3c42341.entry.js → p-8fc7f3d6.entry.js} +1 -1
- package/dist/twilight/{p-0707d2f3.entry.js → p-904617da.entry.js} +1 -1
- package/dist/twilight/{p-154982a2.entry.js → p-9176d7ce.entry.js} +1 -1
- package/dist/twilight/{p-ac27db7b.entry.js → p-9387dd90.entry.js} +1 -1
- package/dist/twilight/{p-e8514ae6.entry.js → p-99106873.entry.js} +1 -1
- package/dist/twilight/p-9b4fc23f.entry.js +4 -0
- package/dist/twilight/{p-0377ee4a.entry.js → p-9c28210e.entry.js} +1 -1
- package/dist/twilight/{p-AfEAfJ98.js → p-Bo2jQzcR.js} +1 -1
- package/dist/twilight/{p-D3Knumjd.js → p-BzGCvVEm.js} +1 -1
- package/dist/twilight/{p-q7sRVQkm.js → p-CC2-QEDL.js} +1 -1
- package/dist/twilight/{p-BGvyt9d0.js → p-CH7wsBUY.js} +1 -1
- package/dist/twilight/{p-DZJfoSMn.js → p-CgKcWLpf.js} +1 -1
- package/dist/twilight/{p-DPrVo6nK.js → p-CwWt5HLh.js} +1 -1
- package/dist/twilight/p-DBqJzNYt.js +4 -0
- package/dist/twilight/p-DPoo7VAM.js +9 -0
- package/dist/twilight/{p-DtRKnFMd.js → p-HVfj7cvk.js} +1 -1
- package/dist/twilight/{p-CzKVU0uc.js → p-KXvNwMUI.js} +1 -1
- package/dist/twilight/{p-3cea9d02.entry.js → p-a34163a9.entry.js} +1 -1
- package/dist/twilight/{p-d4bf9b9a.entry.js → p-a7055743.entry.js} +1 -1
- package/dist/twilight/{p-CL6oN_Q7.js → p-aZStLvlC.js} +1 -1
- package/dist/twilight/{p-7cdd0edd.entry.js → p-ab581ba2.entry.js} +1 -1
- package/dist/twilight/{p-BJydaLla.js → p-alpadDPN.js} +1 -1
- package/dist/twilight/{p-5d8e2e4e.entry.js → p-b0219eab.entry.js} +1 -1
- package/dist/twilight/p-b111e9fa.entry.js +4 -0
- package/dist/twilight/{p-92a92648.entry.js → p-b60cbdfb.entry.js} +1 -1
- package/dist/twilight/p-b6cefa97.entry.js +4 -0
- package/dist/twilight/{p-4e1dd088.entry.js → p-b987e3af.entry.js} +1 -1
- package/dist/twilight/{p-d88387cf.entry.js → p-baeac8aa.entry.js} +1 -1
- package/dist/twilight/{p-d993f567.entry.js → p-bba4aa09.entry.js} +1 -1
- package/dist/twilight/p-c246a042.entry.js +4 -0
- package/dist/twilight/{p-8e29f889.entry.js → p-c522db75.entry.js} +1 -1
- package/dist/twilight/{p-d369971e.entry.js → p-c92bc81e.entry.js} +1 -1
- package/dist/twilight/{p-b8879670.entry.js → p-ca869069.entry.js} +12 -12
- package/dist/twilight/{p-8bdb3374.entry.js → p-cd49d0b1.entry.js} +1 -1
- package/dist/twilight/{p-f7c7dd70.entry.js → p-cd86a347.entry.js} +1 -1
- package/dist/twilight/{p-30532b9c.entry.js → p-cdfbcd5c.entry.js} +1 -1
- package/dist/twilight/{p-0bba3324.entry.js → p-d076e173.entry.js} +1 -1
- package/dist/twilight/{p-c8376047.entry.js → p-d68546db.entry.js} +1 -1
- package/dist/twilight/{p-23d3fe72.entry.js → p-dd363a06.entry.js} +1 -1
- package/dist/twilight/{p-3c726469.entry.js → p-de185a77.entry.js} +1 -1
- package/dist/twilight/p-e197f3d2.entry.js +4 -0
- package/dist/twilight/p-e6a66265.entry.js +4 -0
- package/dist/twilight/{p-a77699f6.entry.js → p-eaedd514.entry.js} +1 -1
- package/dist/twilight/{p-15674f9e.entry.js → p-f0fc32fb.entry.js} +1 -1
- package/dist/twilight/{p-098f1fae.entry.js → p-f66cc02e.entry.js} +1 -1
- package/dist/twilight/p-f6a7c273.entry.js +4 -0
- package/dist/twilight/{p-f3a8ffbe.entry.js → p-f770e708.entry.js} +1 -1
- package/dist/twilight/{p-4f28f97c.entry.js → p-fade3b90.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-loyalty-points-history/salla-loyalty-points-history.d.ts +12 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +3 -2
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +0 -1
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +2 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
- package/dist/types/components.d.ts +13 -0
- package/package.json +5 -5
- package/dist/cjs/translations-BHyDCj-Y.js +0 -306
- package/dist/collection/components/salla-loyalty-program/translations.js +0 -302
- package/dist/components/translations.js +0 -304
- package/dist/esm/translations-dn_hTofo.js +0 -304
- package/dist/twilight/p-173db748.entry.js +0 -4
- package/dist/twilight/p-23de0e4d.entry.js +0 -4
- package/dist/twilight/p-28472b7d.entry.js +0 -4
- package/dist/twilight/p-4bd6e04e.entry.js +0 -4
- package/dist/twilight/p-60ed6a43.entry.js +0 -4
- package/dist/twilight/p-6585f570.entry.js +0 -4
- package/dist/twilight/p-6fcbb71a.entry.js +0 -4
- package/dist/twilight/p-7f8842a6.entry.js +0 -4
- package/dist/twilight/p-8e0cb0b4.entry.js +0 -4
- package/dist/twilight/p-BuQQcHl4.js +0 -4
- package/dist/twilight/p-D1YyLASn.js +0 -9
- package/dist/twilight/p-c74ccdee.entry.js +0 -4
- package/dist/twilight/p-ce20b220.entry.js +0 -4
- package/dist/twilight/p-d9bc10fa.entry.js +0 -4
- package/dist/twilight/p-dn_hTofo.js +0 -4
- package/dist/twilight/p-e18d93d6.entry.js +0 -4
- package/dist/twilight/p-f44362e9.entry.js +0 -4
- package/dist/twilight/p-fcb5ea5d.entry.js +0 -4
- package/dist/twilight/p-fe4866b6.entry.js +0 -4
- package/dist/types/components/salla-loyalty-program/translations.d.ts +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCartCss = "";
|
|
9
9
|
|
|
@@ -36,7 +36,7 @@ const SallaMultipleBundleProductCart = class {
|
|
|
36
36
|
return (index.h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, index.h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, index.h("div", { class: "s-multiple-bundle-product-cart-header-content" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, index.h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, index.h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, index.h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, index.h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (index.h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, index.h("span", null, salla.lang.get('pages.products.number_of_pieces')), index.h("span", null, product?.quantity_in_group))))), !hasOptions && (index.h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: 'a0659e5dc8eb5e44d0a25e53cea017008a04ed4d', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '2bcfa463149fe7890418a3ef12308ca17d41cb34', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
40
40
|
return section.products.map(product => {
|
|
41
41
|
const bundleContext = {
|
|
42
42
|
sectionId: section.id,
|
|
@@ -412,9 +412,9 @@ const SallaMultipleBundleProductDetails = class {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
render() {
|
|
415
|
-
return (index.h(index.Host, { key: '
|
|
415
|
+
return (index.h(index.Host, { key: 'dc22c848445385e667a2da109021b9dc9b413a6c', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: 'a52743fee0af7cf1b99bd0459a85d335ca637e5d', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index$1) => {
|
|
416
416
|
return (index.h("salla-accordion", { key: section.id, collapsed: index$1 === 0 ? false : true }, index.h("salla-accordion-head", null, this.renderAccordionHeader(section)), index.h("salla-accordion-body", null, index.h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index$1, selectedProducts: this.selectedProducts, selectionLimit: this.getEffectiveMax(section), isSelectionLocked: this.isProductSelectionLocked(section), onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
417
|
-
})), index.h("salla-multiple-bundle-product-options-modal", { key: '
|
|
417
|
+
})), index.h("salla-multiple-bundle-product-options-modal", { key: '4bda97c2a9db2cd1f2764e4f5a2e44fb0a013fa0' })));
|
|
418
418
|
}
|
|
419
419
|
get host() { return index.getElement(this); }
|
|
420
420
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
|
|
8
8
|
|
|
9
9
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -481,7 +481,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
481
481
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
482
482
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
483
483
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
484
|
-
return (index.h(index.Host, { key: '
|
|
484
|
+
return (index.h(index.Host, { key: '1df1d7538fceee9a656f19cbf145388a3e0c03cc' }, index.h("salla-modal", { key: 'da6d318edcc4415ec3b680172da56d82efe65fbc', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, index.h("div", { key: '1e34ee440889932fc24cfe9d9def9acd9d07a42b', slot: "loading" }, index.h("salla-skeleton", { key: '94a8be3dde042a84187a01305c8decf53bf7e3f3', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '2ac8b7c57ad95e22430f76a0ab22aff1d31f8558', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
485
485
|
centeredSlides: true,
|
|
486
486
|
centeredSlidesBounds: true,
|
|
487
487
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -489,13 +489,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
489
489
|
watchSlidesProgress: true,
|
|
490
490
|
direction: 'vertical',
|
|
491
491
|
spaceBetween: 10,
|
|
492
|
-
} }, index.h("div", { key: '
|
|
492
|
+
} }, index.h("div", { key: '599e310ed8d87b526c75463dd9a1b1ff9bd2442e', slot: "items" }, this.product?.images &&
|
|
493
493
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, class: "swiper-slide" }, index.h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index$1 + 1}`, loading: "lazy", onError: e => {
|
|
494
494
|
e.target.style.display = 'none';
|
|
495
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '
|
|
495
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: 'df1833370d4e7a8424b0cefe5f6aa1eff68e263e', slot: "thumbs" }, this.product?.images &&
|
|
496
496
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, "data-caption": `${this.product?.name} - Image ${index$1 + 1}` }, index.h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index$1 + 1}`, alt: image.alt || `${this.product?.name} - ${index$1 + 1}`, onError: e => {
|
|
497
497
|
e.target.style.display = 'none';
|
|
498
|
-
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '
|
|
498
|
+
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '3f7379d1620184a14f88b1123b67f6a9a225fe14', slot: "footer" }, index.h("div", { key: '26ad5d460d95cdce3d6fa28fcf7a04b0e3f97d3e', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: '4f497db16b75e813d813fd92bd2f30ed02514000', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
499
499
|
? salla.lang.get('common.elements.saving')
|
|
500
500
|
: salla.lang.get('common.elements.save')))))));
|
|
501
501
|
}
|
|
@@ -641,7 +641,7 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
render() {
|
|
644
|
-
return (index.h(index.Host, { key: '
|
|
644
|
+
return (index.h(index.Host, { key: '808d7d1f9d880d2bad293fa61ef5e7330385f15b' }, index.h("salla-slider", { key: 'bf820de07ea7936d283574d8d2b58c1cc8ccb0df', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, index.h("div", { key: '8d551793d840ffddc64049efba32277d0bbf0c96', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
645
645
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
646
646
|
const isLocked = isChecked && this.isSelectionLocked;
|
|
647
647
|
const isDisabled = this.isProductSelectionDisabled(product, isChecked);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -58,7 +58,7 @@ const SallaMultipleBundleProduct = class {
|
|
|
58
58
|
this.parseProducts(this.bundleSections);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (index.h(index.Host, { key: '
|
|
61
|
+
return (index.h(index.Host, { key: '01cf070eb724f3b0df553e3253fda1d0c4fde0b9', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
62
62
|
}
|
|
63
63
|
static get watchers() { return {
|
|
64
64
|
"bundleSections": ["parseProducts"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaNotificationsCss = "";
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ const SallaNotificationItem = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return index.h("a", { key: '
|
|
15
|
+
return index.h("a", { key: 'd66908ce0dd914e309469279a1014ff734f6c0b2', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, index.h("span", { key: '0d6f0ebb3400bcc91f2bbdf7e941e018662e8835', class: "s-notifications-item-icon" }, index.h("i", { key: 'd9965899d4699070681117423401d7488a16f066', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), index.h("div", { key: '055a4e763f4a1ee02b52bd1d6935e57402acfa76', class: "s-notifications-item-content" }, index.h("div", { key: '646a9220ad2c1a9fae0b9384a84a60ad69d39c68', class: "s-notifications-item-content-leading" }, index.h("h4", { key: '9b9c4256f50cd376b01b836196a1f0fff89b6840' }, this.notification.title), index.h("p", { key: '4475ca9bee33fb9c64433320101345c7db7e28c6' }, this.notification.sub_title)), index.h("span", { key: 'd2c8301ad12ef86ba05fa805d9ecbea249a44ee1', class: "s-notifications-item-content-trailing" }, index.h("i", { key: '297c8695ee366dc336bf30dd59465806375825fc', class: "sicon-time s-notifications-item-content-trailing-icon" }), index.h("span", { key: 'beb9945695448ec9e6e25e9e856177a641a5a769' }, this.notification.date))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
SallaNotificationItem.style = sallaNotificationsCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
var tag = require('./tag-D-PcUR33.js');
|
|
9
9
|
var cart2 = require('./cart2-B98PSAFN.js');
|
|
@@ -206,7 +206,7 @@ const SallaOfferModal = class {
|
|
|
206
206
|
// '</div>';
|
|
207
207
|
// }
|
|
208
208
|
render() {
|
|
209
|
-
return index.h("salla-modal", { key: '
|
|
209
|
+
return index.h("salla-modal", { key: 'c68955859f31495533b6bb1117e8be3a6c22ffce', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, index.h("div", { key: 'd0c3cbc73474a14596eb2a4c35e10ddddc5ed34a', slot: 'loading' }, index.h("div", { key: '22ebc107df02d1474f648cbd50aecd9590f70fbf', class: "s-offer-modal-skeleton" }, index.h("div", { key: 'ed0661aca73a455a98f9971a5fc89e8793e8ac14', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'bea3b9e7fe4654d7186d8f0f27388e784421379b', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '9c377374ec1449341a45127a52dfc53fdb4425f0', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'edcd738b120797e2b2a351390fc58a49fc386776', height: '10px', width: '30%' })), index.h("div", { key: 'fa7df3dc0b6a22fad433bfc678081f1e2ccdc057', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: cart2.SICart2 }))))), index.h("div", { key: '6a4d8744bad91f54b4a87b929c81747295b00992', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '4b15a6c159a681f0b030244c923e94bfa44af479', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '79323272fb8977650644dee28d7c7295ac77aacf', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
210
210
|
? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
211
211
|
index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
212
212
|
: '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaOrderDetailsCss = "";
|
|
9
9
|
|
|
@@ -39,7 +39,7 @@ const SallaOrderDetails = class {
|
|
|
39
39
|
];
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return index.h(index.Host, { key: '
|
|
42
|
+
return index.h(index.Host, { key: '9c662f4c829a24386a4fa83f83f261996c72086f', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
43
43
|
}
|
|
44
44
|
static get watchers() { return {
|
|
45
45
|
"orderDetails": ["parseOrderDetailsData"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaOrderEditProductCardCss = ":host{display:block;min-width:0}";
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ const SallaOrderEditProductCard = class {
|
|
|
33
33
|
const product = this.productData;
|
|
34
34
|
const productName = product?.name || salla.lang.getWithDefault('common.elements.product', 'منتج');
|
|
35
35
|
const price = product?.price;
|
|
36
|
-
return (index.h(index.Host, { key: '
|
|
36
|
+
return (index.h(index.Host, { key: '922736be2f3fec4f6c41c724590d2790fb5a5940' }, index.h("button", { key: 'b690f3dbd307937d4b68790f417a7d9a820b56f1', type: "button", class: "s-order-edit-product-card", onClick: () => this.handleSelectProduct() }, index.h("div", { key: 'f846d7e31c7c3d067909d65db3457ac061c93264', class: "s-order-edit-product-card-media" }, product?.image?.url ? (index.h("img", { src: product.image.url, alt: product.image.alt || productName, class: "s-order-edit-product-card-image" })) : (index.h("div", { class: "s-order-edit-product-card-placeholder" }, index.h("i", { class: "sicon-shopping-bag" })))), index.h("div", { key: 'b1243ae5df15e3e783b139dcf593f85b72624015', class: "s-order-edit-product-card-content" }, index.h("h3", { key: '50c7b8edb40dd88fcb1ac4267b1ba88c5b2b92b2', class: "s-order-edit-product-card-title" }, productName), price != null && (index.h("p", { key: '6dea7fefab83a9839146acfb89e7a532adaa6559', class: "s-order-edit-product-card-price", innerHTML: salla.money(price) }))))));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
SallaOrderEditProductCard.style = sallaOrderEditProductCardCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var swapStroke = require('./swap-stroke-CYGxjKIS.js');
|
|
8
8
|
var check = require('./check-BnVBPQNp.js');
|
|
9
9
|
|
|
@@ -86,7 +86,7 @@ const SallaOrderSummary = class {
|
|
|
86
86
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (index.h("ul", { key: '
|
|
89
|
+
return (index.h("ul", { key: 'e26e13231b72707a39a6fd83561247bea05aa490', class: "s-order-summary-wrapper" }, this.noItemFound ? index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "title" })) :
|
|
90
90
|
this.order_items.map((item) => (this.isDigitalCard(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (index.h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, index.h("p", null, index.h("span", { innerHTML: iconCreditCard }), index.h("span", null, code.code)), index.h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, index.h("span", { innerHTML: this.codeCopied === code.code ? check.SICheck : swapStroke.iconCopy }), index.h("span", null, this.copy_text))))))) :
|
|
91
91
|
this.isDigitalProduct(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), index.h("ul", null, item.files.map((file) => (index.h("li", { class: "s-order-summary-digital-item-wrapper" }, index.h("div", null, index.h("span", { innerHTML: iconFileArchive }), index.h("span", null, file.name)), index.h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, index.h("span", { innerHTML: iconDownload }), index.h("span", null, this.download_text)))))))) : null))));
|
|
92
92
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaPaymentsCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -36,12 +36,12 @@ const SallaPayments = class {
|
|
|
36
36
|
render() {
|
|
37
37
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
38
38
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '2d3a652f9eb7fc3a07d79be1aa4ac08df349e4bc', class: "s-payments-list-wrap" }, index.h("ul", { key: '62ed1989e85b2b89bd1f1ad370806dc1c8f67454', class: "s-payments-list" }, madeInKSA && index.h("li", { key: 'a77bdb50ba28249d0b587e3aba0beb392cb1db59', class: "s-payments-list-item" }, index.h("img", { key: '3aa60ab4ee98cf8efe3e3a17f2c2363038b76b24', width: 58, height: 58, decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
40
40
|
index.h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
41
41
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
42
42
|
index.h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
43
43
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
44
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && index.h("div", { key: '
|
|
44
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && index.h("div", { key: 'c1d56e4217afdb48f955a5133156a1708c91da52', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
45
45
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
46
46
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
47
47
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -43,7 +43,7 @@ const SallaPlaceholder = class {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h(index.Host, { key: '
|
|
46
|
+
return (index.h(index.Host, { key: 'ccc65b60efc14d78b46b838f089cf09ed849d136', class: this.alignmentClass() }, index.h("div", { key: 'b174990bfedc2e979ca0484552015abc112795d1', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), index.h("div", { key: '51ec34810a25ae77f797754419c6dc5f0afcfbaa', class: "s-placeholder-title" }, index.h("slot", { key: '3e0c9987b7477e8145436098f024dde49bd76162', name: 'title' }, index.h("span", { key: '618dfc6b328f2f5c82a16357ecf403b740e67778' }, salla.lang.get('common.elements.no_options')))), index.h("div", { key: '005e68bcb52eca86ea3368ce750e1b7f9cfda50e', class: "s-placeholder-description" }, index.h("slot", { key: '5e2b860c11a35e93658c153ea2eb2efb9683900b', name: 'description' }, index.h("span", { key: '903012cd214bb068e591ca9280f4c95762672e9c' }, salla.lang.get('common.errors.empty_results'))))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var arrowLeft = require('./arrow-left-xSEmRpp6.js');
|
|
8
8
|
|
|
9
9
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|
|
@@ -159,9 +159,9 @@ const SallaPriceRange = class {
|
|
|
159
159
|
this.maxPrice = value === undefined ? '' : value;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: 'ab96e0b292966af5dea7627ed2cfae7aa6cf42d2' }, this.filterValues.map((filterValue, index$1) => {
|
|
163
163
|
return index.h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index$1}`, key: index$1 }, index.h("input", { id: `${this.option.key}-${index$1}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), index.h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
164
|
-
}), index.h("div", { key: '
|
|
164
|
+
}), index.h("div", { key: '5d958a76e7878542fd8090229570ed9baf9ca2ea', class: "flex justify-center items-center" }, index.h("div", { key: '1c500632705c5006b901a809368ce85a16709afb', class: "relative max-w-xl w-full" }, index.h("div", { key: 'd29b5185bf50c5582920b54716005e8756de05bd', class: "s-price-range-inputs" }, index.h("div", { key: 'bd41a6602d5f3f434ba7d7ee4b8c92900d27c6b9', class: "s-price-range-relative" }, index.h("div", { key: 'd61027acbb26d6754d4406aa07c11101fd8c4005', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), index.h("input", { key: 'b368eabded71a6631943b5cd12624418df07afe8', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), index.h("div", { key: '0b7b3750d740e929fe0c3f120185d153cb9f6a8e', class: "s-price-range-gray-text" }, " -"), index.h("div", { key: '148ebe3d2b5a52d013ab9ca6aef02342c5acb3fa', class: "s-price-range-relative" }, index.h("div", { key: '205c13dd92d5784fc2b1551b56a0ec5e329e0854', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), index.h("input", { key: 'a4b8886ae87387e891f286931b58a3340920a0e0', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), index.h("salla-button", { key: '221241ca34ed2e7aec47b57b609718e68ccd5060', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, index.h("span", { key: 'b277d7c12f44eba76b967055e79a12ed7e492e4d', innerHTML: this.isRTL ? arrowLeft.arrowLeft : arrowRight })))))));
|
|
165
165
|
}
|
|
166
166
|
componentDidLoad() {
|
|
167
167
|
this.isReady = true;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
const sallaProductCardEmbedCss = "@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{display:block}";
|
|
9
9
|
|
|
@@ -85,7 +85,7 @@ const SallaProductCardEmbed = class {
|
|
|
85
85
|
's-product-card-embed-card-align-right': this.align === 'right',
|
|
86
86
|
's-product-card-embed-card-align-center': this.align === 'center',
|
|
87
87
|
};
|
|
88
|
-
return (index.h(index.Host, { key: '
|
|
88
|
+
return (index.h(index.Host, { key: 'a742a11dc2926fb941f44d1b3fd5cc3b4a207822' }, this.hasError && index.h("span", { key: 'c554a3b1971fa0b646611d24b7000bed921114d8', class: "s-product-card-embed-fallback" }), index.h("div", { key: 'cb0551a374e4ed68496bfa436adf6424febbd681', class: cardClasses, ref: (el) => {
|
|
89
89
|
this.cardContainer = el;
|
|
90
90
|
} })));
|
|
91
91
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var star2 = require('./star2-R146a27p.js');
|
|
8
8
|
var Helper = require('./Helper-CgGR9Qf8.js');
|
|
9
9
|
require('./anime.es-BqW8JHZi.js');
|
|
@@ -116,14 +116,14 @@ const SallaProductCard = class {
|
|
|
116
116
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
117
117
|
};
|
|
118
118
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: '789fbb35499a12f08dab69a6be3559eebea03381', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: '9cb05484a39b108348e3b2070d63c503681ef417', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '1805be53cb3a3cf1068752121b846178d6b9340f', ...hrefProp }, index.h("img", { key: 'bf9183ed961e8fe5207548ce1e8146064b69675d', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
120
120
|
? 'contain'
|
|
121
121
|
: this.fitImageHeight
|
|
122
122
|
? this.fitImageHeight
|
|
123
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '
|
|
124
|
-
index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '
|
|
123
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '567e6766ff7516ff409d9f86dc3cba7a51508d57', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
124
|
+
index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: 'b36b0e6bdb8af5b1cf38d416b9f64038fa1f17ae', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
125
125
|
index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
126
|
-
: '', index.h("div", { key: '
|
|
126
|
+
: '', index.h("div", { key: '93258adb3ca7ff5d3a89a118c7642b8b1264e045', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: 'fdf1c66e6533f3b092ad66e66875cbb2e213e6ad', class: "s-product-card-content-title" }, index.h("a", { key: 'cd3476f564e8ed4050b909c33926a5d44bf8fb5a', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
127
127
|
index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
128
128
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
129
129
|
[index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -132,7 +132,7 @@ const SallaProductCard = class {
|
|
|
132
132
|
this.addBtn.donatingAmount = e.target.value;
|
|
133
133
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
134
134
|
: '')]
|
|
135
|
-
: '', index.h("div", { key: '
|
|
135
|
+
: '', index.h("div", { key: 'b32c488819742ae8dd56147f4285424d381a3df4', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
136
136
|
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: star2.Star }), index.h("span", null, this.productData.rating.stars))
|
|
137
137
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
138
138
|
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -53,11 +53,11 @@ const SallaProductSizeGuide = class {
|
|
|
53
53
|
return index.h("salla-placeholder", { alignment: "center", iconSize: "xl" }, index.h("div", { slot: "title" }, this.placeholder_title), index.h("div", { slot: "description" }, this.placeholder_description));
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h("salla-modal", { key: '
|
|
56
|
+
return (index.h("salla-modal", { key: 'de368aff05a19d87eb4e99f4e1d7eee36155f435', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, index.h("span", { key: 'c4ab31b3e6ef2751761ca2db27554f7f5bf057fc', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: '17cfceb5ccb0546928f87f956267e9d0c11017ac', slot: "loading" }, index.h("div", { key: '4f4e20a62396d7825315203ffd22a72030e821b1', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: 'd9132b26634ae1997dad9f1229b248c2cd76fff0', height: '15px', width: '25%' }), index.h("div", { key: '1b6a236851eef6e7caf7b7a0e84e591824b4e4ef', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: 'bae06741881b57b4eb853f1256a22f9393d9cea4', height: '40px' }), index.h("salla-skeleton", { key: 'fdeb75a853f89df154b69dbd48fc8e233561af59', height: '40px' }), index.h("salla-skeleton", { key: 'd0be70bc141f04fd24adc86c56eec3a5e896f2d4', height: '40px' }), index.h("salla-skeleton", { key: 'c5146addbf2d5b9bda05170a9743cad0e08d8674', height: '40px' })), index.h("div", { key: '04dbbffe2de708c984c5d0966aa2b86c0051bd14', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: '320fb33a2e5d9ee1f4b87c18b3f3dd13de180d4f', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'f06aeac8e2f8ea86ec9b1c5c6f2b31172f23209f', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '1accf852a34edcac77a77151ebf67ba8e05cc729', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: '42d4c3364779a6ee130339e37affe2e0c590e6a7', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '13064a231460414b4a0abd19dda41b01ac1ee04f', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'd5a50f96ca3bab125503f836cd883cfb98ca135d', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: '11cd2ed36d9754c32173f14cd7d5ea99fc2b5577', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: 'a5b3a192d0e38dc13a025b8b8e0aba767f35611b', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: 'dddcb26038e180fb5b686b29d286316d4314909f', height: '10px', width: '30%' })))), index.h("slot", { key: '43a08b9b6e64955b726b832f0849617ac31d4c25', name: "header" }), !this.hasError && !!this.guides ?
|
|
57
57
|
[
|
|
58
58
|
index.h("salla-tabs", null, this.guides.map((guide) => index.h("salla-tab-header", { slot: "header", name: guide.name }, index.h("span", null, guide.name))), this.guides.map((guide) => index.h("salla-tab-content", { slot: "content", name: guide.name }, index.h("div", { innerHTML: guide.description }))))
|
|
59
59
|
]
|
|
60
|
-
: this.showPlaceholder(), index.h("slot", { key: '
|
|
60
|
+
: this.showPlaceholder(), index.h("slot", { key: '5ae0956ca1f9313b5ef3d01dbdcab32f2e975e05', name: "footer" })));
|
|
61
61
|
}
|
|
62
62
|
get host() { return index.getElement(this); }
|
|
63
63
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-erFsk7OI.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-CgGR9Qf8.js');
|
|
@@ -85,7 +85,6 @@ const SallaProductsList = class {
|
|
|
85
85
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
86
86
|
// Create a deep copy of the filters object to avoid mutating the original object
|
|
87
87
|
this.parsedFilters = JSON.parse(JSON.stringify(filters));
|
|
88
|
-
this.filtersSnapshot = this.parsedFilters;
|
|
89
88
|
if (this.currentPage?.slug == "product.index" && this.parsedFilters && this.parsedFilters.category_id) {
|
|
90
89
|
this.currentCategoryIdFilter = [this.parsedFilters.category_id];
|
|
91
90
|
}
|
|
@@ -119,6 +118,31 @@ const SallaProductsList = class {
|
|
|
119
118
|
isFilterable() {
|
|
120
119
|
return salla.config.get('store.settings.product.filters') && this.filtersResults;
|
|
121
120
|
}
|
|
121
|
+
getCachedFilters() {
|
|
122
|
+
if (!Array.isArray(this.filtersSnapshot) || !this.filtersSnapshot.length) {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
return JSON.parse(JSON.stringify(this.filtersSnapshot));
|
|
126
|
+
}
|
|
127
|
+
emitFilters(response) {
|
|
128
|
+
if (!this.isFilterable()) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (response.filters) {
|
|
132
|
+
this.filtersResults = true;
|
|
133
|
+
this.filtersSnapshot = JSON.parse(JSON.stringify(response.filters));
|
|
134
|
+
salla.event.emit('filters::fetched', { filters: response.filters });
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const cachedFilters = response.cursor?.current > 1 ? this.getCachedFilters() : null;
|
|
138
|
+
if (cachedFilters) {
|
|
139
|
+
this.filtersResults = true;
|
|
140
|
+
salla.event.emit('filters::fetched', { filters: cachedFilters });
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
this.filtersSnapshot = [];
|
|
144
|
+
salla.event.emit('filters::hidden');
|
|
145
|
+
}
|
|
122
146
|
isSourceWithoutValue() {
|
|
123
147
|
return ['offers', 'latest', 'sales', 'wishlist', 'top-rated', 'reorder'].includes(this.getSource());
|
|
124
148
|
}
|
|
@@ -407,8 +431,9 @@ const SallaProductsList = class {
|
|
|
407
431
|
if (storedState) {
|
|
408
432
|
try {
|
|
409
433
|
const { pageIndex, nextPage, currentPageData } = JSON.parse(storedState);
|
|
410
|
-
if (filetrsState !== 'undefined') {
|
|
434
|
+
if (filetrsState && filetrsState !== 'undefined') {
|
|
411
435
|
const filters = JSON.parse(filetrsState);
|
|
436
|
+
this.filtersSnapshot = JSON.parse(JSON.stringify(filters));
|
|
412
437
|
salla.event.emit('filters::fetched', { filters });
|
|
413
438
|
}
|
|
414
439
|
this.page = pageIndex;
|
|
@@ -780,7 +805,6 @@ const SallaProductsList = class {
|
|
|
780
805
|
let catId = this.parsedFilters.category_id || this.getSourceValue()[0];
|
|
781
806
|
// get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
|
|
782
807
|
title = response.filters?.find(filter => filter.key === 'category_id')?.values?.find(cat => cat.key === catId)?.value ?? '';
|
|
783
|
-
this.filtersSnapshot = response.filters;
|
|
784
808
|
}
|
|
785
809
|
title += (title ? ' - ' : '') + salla.lang.choice('blocks.header.products_count', response.data?.length);
|
|
786
810
|
if (response.data.length === 15) {
|
|
@@ -803,14 +827,7 @@ const SallaProductsList = class {
|
|
|
803
827
|
salla.event.emit('salla-products-list::products.fetched', response);
|
|
804
828
|
this.productsFetched.emit(response);
|
|
805
829
|
//💡 when source is related, cursor will not be existed
|
|
806
|
-
|
|
807
|
-
this.filtersResults = true;
|
|
808
|
-
this.filtersSnapshot = JSON.parse(JSON.stringify(response.filters));
|
|
809
|
-
salla.event.emit('filters::fetched', { filters: response.filters });
|
|
810
|
-
}
|
|
811
|
-
else if (this.isFilterable()) {
|
|
812
|
-
salla.event.emit('filters::hidden');
|
|
813
|
-
}
|
|
830
|
+
this.emitFilters(response);
|
|
814
831
|
//because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
|
|
815
832
|
if (shouldBuildNextPage) {
|
|
816
833
|
this.nextPage = await this.resolveNextPageFromCursor(response);
|