@salla.sa/twilight-components 2.14.508 → 2.14.510
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-C1mPvQ8T.js → filepond-COZHgu78.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B-pZ8apM.js → filepond-plugin-file-poster-Bi4mWImr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CsE7s9Zn.js → filepond-plugin-file-validate-size-CtrIas22.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-pm3Q3QSJ.js → filepond-plugin-file-validate-type-Djj5o2ks.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DLXp4kE0.js → filepond-plugin-image-edit-CaVm_-Xi.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-hH92QKy-.js → filepond-plugin-image-exif-orientation-BD44-lrC.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CVbeEopx.js → filepond-plugin-image-preview-BlHYB_rk.js} +1 -1
- package/dist/cjs/{functions-CRoHuI_r.js → functions-D7e0oMZu.js} +1 -1
- package/dist/cjs/{index-hhUDuquL.js → index-D6MQobeP.js} +6 -6
- package/dist/cjs/{index-Bz-aFSt9.js → index-KhpPkTL1.js} +1 -1
- 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-basket-gap.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 +36 -16
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +12 -17
- 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_2.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 -2
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.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-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +36 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +26 -3
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +28 -8
- 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/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise--XbBsK1N.js → tracked-promise-Dmb45-BD.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-D_g2rKwM.js → vanilla-picker-B_OQkkn3.js} +1 -1
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +36 -15
- package/dist/collection/components/salla-comments/salla-comments.css +2 -5
- package/dist/collection/components/salla-comments/salla-comments.js +6 -3
- package/dist/collection/components/salla-products-list/salla-products-list.js +25 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +35 -5
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +7 -3
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +64 -9
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +15 -31
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +2 -11
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-coupons.js +36 -15
- package/dist/components/salla-comment-factors2.js +1 -1
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +29 -20
- package/dist/components/salla-products-list2.js +25 -2
- package/dist/components/salla-products-slider2.js +35 -5
- package/dist/components/salla-review-factors-tags.js +1 -141
- package/dist/components/salla-review-factors-tags2.js +173 -0
- package/dist/components/salla-reviews-summary2.js +13 -16
- package/dist/esm/{filepond-CA6zTz9c.js → filepond-B1eTr-KK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DOWZmTt9.js → filepond-plugin-file-poster-exJROlFk.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CW4aTVdl.js → filepond-plugin-file-validate-size-CZY_F4BF.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DiGUQ5qM.js → filepond-plugin-file-validate-type-D8z0FHfz.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BOu5ykhi.js → filepond-plugin-image-edit-CACbacvT.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C9OxiFhh.js → filepond-plugin-image-exif-orientation-DwS9XuCo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BCRRj5t-.js → filepond-plugin-image-preview-BYy-d2mY.js} +1 -1
- package/dist/esm/{functions-Cdhve8oP.js → functions-DEUWeLq4.js} +1 -1
- package/dist/esm/{index-DWPgHXOD.js → index-Bt0ajKaf.js} +6 -6
- package/dist/esm/{index-DMTmdoWu.js → index-FMb5OkaH.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +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-basket-gap.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 +36 -16
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +12 -17
- 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_2.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 -2
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.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-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +36 -6
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +26 -3
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +28 -8
- 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/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-BCGZPTbE.js → tracked-promise-T29mWxDS.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DFTSHsGD.js → vanilla-picker-Dpp89BQ6.js} +1 -1
- package/dist/twilight/{p-b6fd1b52.entry.js → p-055187ca.entry.js} +1 -1
- package/dist/twilight/{p-3e4915d1.entry.js → p-09ea780c.entry.js} +1 -1
- package/dist/twilight/{p-29bad38b.entry.js → p-0adbdc90.entry.js} +1 -1
- package/dist/twilight/{p-39249883.entry.js → p-1071ea00.entry.js} +1 -1
- package/dist/twilight/{p-01a74537.entry.js → p-139c80a0.entry.js} +1 -1
- package/dist/twilight/{p-c1b27d26.entry.js → p-1b0d555a.entry.js} +1 -1
- package/dist/twilight/{p-82d622c6.entry.js → p-1e225a23.entry.js} +1 -1
- package/dist/twilight/{p-5261d916.entry.js → p-1f3d6151.entry.js} +1 -1
- package/dist/twilight/{p-08c1f879.entry.js → p-22712655.entry.js} +1 -1
- package/dist/twilight/{p-8b646ef9.entry.js → p-22d6c097.entry.js} +1 -1
- package/dist/twilight/{p-409967bd.entry.js → p-23bfb6be.entry.js} +1 -1
- package/dist/twilight/{p-4810a1b1.entry.js → p-277d5788.entry.js} +1 -1
- package/dist/twilight/{p-6a8c68d3.entry.js → p-2a4b20fa.entry.js} +1 -1
- package/dist/twilight/{p-86f7baf1.entry.js → p-2e6b6fbb.entry.js} +1 -1
- package/dist/twilight/{p-2442ae2d.entry.js → p-2f7ddf17.entry.js} +1 -1
- package/dist/twilight/{p-6feca279.entry.js → p-300e6aef.entry.js} +1 -1
- package/dist/twilight/{p-2718fe0c.entry.js → p-301e3802.entry.js} +1 -1
- package/dist/twilight/{p-6dc098ce.entry.js → p-346af34c.entry.js} +1 -1
- package/dist/twilight/{p-f99acb35.entry.js → p-37e88d81.entry.js} +1 -1
- package/dist/twilight/{p-a138bee9.entry.js → p-41269041.entry.js} +1 -1
- package/dist/twilight/{p-f5327d06.entry.js → p-4136f4d5.entry.js} +1 -1
- package/dist/twilight/p-42fc42d6.entry.js +4 -0
- package/dist/twilight/{p-72e4cb1c.entry.js → p-4328bd24.entry.js} +1 -1
- package/dist/twilight/{p-123a3a37.entry.js → p-44c94e17.entry.js} +1 -1
- package/dist/twilight/{p-b094fd03.entry.js → p-457be53a.entry.js} +1 -1
- package/dist/twilight/{p-ea20010a.entry.js → p-49c926d2.entry.js} +1 -1
- package/dist/twilight/{p-a9a85cfe.entry.js → p-4e7b8137.entry.js} +1 -1
- package/dist/twilight/{p-d140a35a.entry.js → p-4eb47f77.entry.js} +1 -1
- package/dist/twilight/{p-8e9b1b2b.entry.js → p-4f61e580.entry.js} +1 -1
- package/dist/twilight/{p-f83489a2.entry.js → p-5255bb4a.entry.js} +1 -1
- package/dist/twilight/{p-17c02185.entry.js → p-549b56f5.entry.js} +1 -1
- package/dist/twilight/{p-541f7f57.entry.js → p-57919fb4.entry.js} +1 -1
- package/dist/twilight/{p-5cbea591.entry.js → p-5a62369e.entry.js} +1 -1
- package/dist/twilight/{p-70adb6de.entry.js → p-5b9c3427.entry.js} +1 -1
- package/dist/twilight/{p-3d973988.entry.js → p-5e02c7e7.entry.js} +1 -1
- package/dist/twilight/{p-1b858716.entry.js → p-5e1140fb.entry.js} +1 -1
- package/dist/twilight/{p-911d2800.entry.js → p-5e851bce.entry.js} +1 -1
- package/dist/twilight/{p-c8a60c05.entry.js → p-5f2f9351.entry.js} +1 -1
- package/dist/twilight/{p-cadedd90.entry.js → p-65ba2211.entry.js} +1 -1
- package/dist/twilight/{p-f35812bf.entry.js → p-67bd9271.entry.js} +1 -1
- package/dist/twilight/{p-f98dd619.entry.js → p-6dd674c3.entry.js} +1 -1
- package/dist/twilight/{p-f5d273a4.entry.js → p-6ed50846.entry.js} +1 -1
- package/dist/twilight/{p-ec75d885.entry.js → p-70a1619e.entry.js} +1 -1
- package/dist/twilight/{p-04a34073.entry.js → p-70a9d197.entry.js} +1 -1
- package/dist/twilight/{p-af7962e9.entry.js → p-75500766.entry.js} +1 -1
- package/dist/twilight/{p-ee54773e.entry.js → p-774fece9.entry.js} +1 -1
- package/dist/twilight/{p-88015898.entry.js → p-7992cf55.entry.js} +1 -1
- package/dist/twilight/{p-196e416c.entry.js → p-7d5855f2.entry.js} +1 -1
- package/dist/twilight/{p-e82fb471.entry.js → p-7d978fbc.entry.js} +1 -1
- package/dist/twilight/{p-66d7dc4b.entry.js → p-7dfe0786.entry.js} +1 -1
- package/dist/twilight/p-7ebd07e6.entry.js +4 -0
- package/dist/twilight/{p-33314f4c.entry.js → p-86ec92b8.entry.js} +1 -1
- package/dist/twilight/{p-de78fa6c.entry.js → p-8775397b.entry.js} +1 -1
- package/dist/twilight/p-8a0d3cc9.entry.js +4 -0
- package/dist/twilight/{p-ac7bd839.entry.js → p-8a80f76c.entry.js} +1 -1
- package/dist/twilight/{p-c069565d.entry.js → p-8db02f76.entry.js} +1 -1
- package/dist/twilight/{p-3cab158c.entry.js → p-90de004a.entry.js} +1 -1
- package/dist/twilight/{p-ccb12c91.entry.js → p-91804117.entry.js} +1 -1
- package/dist/twilight/{p-72b9eac4.entry.js → p-9310e773.entry.js} +1 -1
- package/dist/twilight/{p-a8ddd1bb.entry.js → p-95b32475.entry.js} +1 -1
- package/dist/twilight/{p-27ccf3c2.entry.js → p-97bb4320.entry.js} +1 -1
- package/dist/twilight/{p-48f7b6db.entry.js → p-98b482a2.entry.js} +1 -1
- package/dist/twilight/p-9c12fd69.entry.js +4 -0
- package/dist/twilight/{p-ae695102.entry.js → p-9c220b6d.entry.js} +1 -1
- package/dist/twilight/p-9cbf61c6.entry.js +4 -0
- package/dist/twilight/{p-B2IpqWj1.js → p-BBv-zo85.js} +2 -2
- package/dist/twilight/{p-Dd1m1dz2.js → p-BF-dDqac.js} +1 -1
- package/dist/twilight/{p-CtvAJfAB.js → p-BFxb7lGH.js} +1 -1
- package/dist/twilight/{p-CPEhvySG.js → p-BUfV-mlp.js} +1 -1
- package/dist/twilight/p-Bt0ajKaf.js +5 -0
- package/dist/twilight/{p-BcTcBNfQ.js → p-C1E96uk_.js} +1 -1
- package/dist/twilight/p-CUg7C93N.js +4 -0
- package/dist/twilight/{p-b7vjgdh1.js → p-CdRScS-B.js} +1 -1
- package/dist/twilight/{p-XUX4U548.js → p-CgGcK4mo.js} +1 -1
- package/dist/twilight/{p-3fOwWicU.js → p-DInaMMrI.js} +1 -1
- package/dist/twilight/{p-DuCwWaQ_.js → p-DSxQpYYV.js} +1 -1
- package/dist/twilight/{p-BPbju0nD.js → p-NoY5Pdvf.js} +1 -1
- package/dist/twilight/{p-7b2aed14.entry.js → p-a660aacc.entry.js} +1 -1
- package/dist/twilight/{p-6d284b59.entry.js → p-a7e8ac45.entry.js} +1 -1
- package/dist/twilight/{p-8e5d089a.entry.js → p-a8f28e45.entry.js} +1 -1
- package/dist/twilight/{p-8f5159fa.entry.js → p-aea5b09b.entry.js} +1 -1
- package/dist/twilight/{p-851d8872.entry.js → p-afd24c2b.entry.js} +1 -1
- package/dist/twilight/{p-9d021d6e.entry.js → p-b09fcdb4.entry.js} +1 -1
- package/dist/twilight/{p-793f5e44.entry.js → p-b197fad7.entry.js} +1 -1
- package/dist/twilight/{p-9fb43cf0.entry.js → p-b37ea19f.entry.js} +1 -1
- package/dist/twilight/{p-34396806.entry.js → p-b626976f.entry.js} +1 -1
- package/dist/twilight/{p-ee2fea82.entry.js → p-bd847c2e.entry.js} +1 -1
- package/dist/twilight/{p-2f131202.entry.js → p-c5d7a901.entry.js} +1 -1
- package/dist/twilight/{p-df2ac369.entry.js → p-cfc4cfaa.entry.js} +1 -1
- package/dist/twilight/{p-8308bef2.entry.js → p-d172feb2.entry.js} +1 -1
- package/dist/twilight/{p-80d9f3f2.entry.js → p-d18e08bd.entry.js} +1 -1
- package/dist/twilight/{p-2a2585f6.entry.js → p-d4b2ce41.entry.js} +1 -1
- package/dist/twilight/{p-72aaf959.entry.js → p-d60ce89d.entry.js} +1 -1
- package/dist/twilight/{p-74a27cf4.entry.js → p-dd87bf9c.entry.js} +1 -1
- package/dist/twilight/{p-20c2aebb.entry.js → p-e13fc06b.entry.js} +1 -1
- package/dist/twilight/{p-38656e34.entry.js → p-e232c59b.entry.js} +1 -1
- package/dist/twilight/{p-51e42995.entry.js → p-e2693453.entry.js} +1 -1
- package/dist/twilight/{p-bb05f144.entry.js → p-e3e9a105.entry.js} +1 -1
- package/dist/twilight/{p-26cc4a6c.entry.js → p-e57d1b21.entry.js} +1 -1
- package/dist/twilight/{p-5bce4517.entry.js → p-e8070f83.entry.js} +1 -1
- package/dist/twilight/{p-12d9c95b.entry.js → p-e8a86f16.entry.js} +1 -1
- package/dist/twilight/{p-d263e364.entry.js → p-ea0ca518.entry.js} +1 -1
- package/dist/twilight/{p-80207cbe.entry.js → p-f0d1222d.entry.js} +1 -1
- package/dist/twilight/{p-3039ea2d.entry.js → p-f61c0f39.entry.js} +1 -1
- package/dist/twilight/{p-caa2055b.entry.js → p-f6efad0a.entry.js} +1 -1
- package/dist/twilight/{p-eb3706da.entry.js → p-f7a0c179.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-coupons/salla-cart-coupons.d.ts +5 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +1 -1
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +13 -0
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +13 -0
- package/dist/types/components/salla-review-factors-tags/salla-review-factors-tags.d.ts +8 -2
- package/dist/types/components/salla-reviews-summary/salla-reviews-summary.d.ts +0 -2
- package/dist/types/components.d.ts +12 -2
- package/package.json +5 -5
- package/dist/twilight/p-0b72c43b.entry.js +0 -4
- package/dist/twilight/p-0fd7d436.entry.js +0 -4
- package/dist/twilight/p-1d21e83d.entry.js +0 -4
- package/dist/twilight/p-3d7a7be6.entry.js +0 -4
- package/dist/twilight/p-4dde6f7b.entry.js +0 -4
- package/dist/twilight/p-DWPgHXOD.js +0 -5
- package/dist/twilight/p-zvJtEDoB.js +0 -4
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { R as Rate } from './star2.js';
|
|
6
|
+
|
|
7
|
+
const CACHE_TTL = 5 * 60 * 1000;
|
|
8
|
+
const orderCache = new Map();
|
|
9
|
+
const inFlightRequests = new Map();
|
|
10
|
+
function normalizeList(value) {
|
|
11
|
+
if (!value) {
|
|
12
|
+
return [];
|
|
13
|
+
}
|
|
14
|
+
return Array.isArray(value) ? value : Object.values(value);
|
|
15
|
+
}
|
|
16
|
+
function getProductRatings(rating) {
|
|
17
|
+
if (!rating) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
return [
|
|
21
|
+
...normalizeList(rating.product),
|
|
22
|
+
...normalizeList(rating.products),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
function extractFactors(source) {
|
|
26
|
+
if (!source) {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
for (const key of ['factor_reviews', 'review_factors', 'factors']) {
|
|
30
|
+
const value = source[key];
|
|
31
|
+
if (Array.isArray(value) && value.length) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
function findProductRating(productRatings, ratingId, productId, itemId) {
|
|
38
|
+
return productRatings.find((productRating) => {
|
|
39
|
+
if (ratingId && Number(productRating.id ?? productRating.feedback_id) === Number(ratingId)) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
if (itemId && Number(productRating.order_item_id) === Number(itemId)) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
if (productId && Number(productRating.product_id ?? productRating.product?.id) === Number(productId)) {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function resolveReviewFactors(order, ratingId, productId, itemId) {
|
|
52
|
+
const productRatings = getProductRatings(order?.rating);
|
|
53
|
+
const productRating = findProductRating(productRatings, ratingId, productId, itemId);
|
|
54
|
+
return extractFactors(productRating);
|
|
55
|
+
}
|
|
56
|
+
async function fetchOrder(orderId) {
|
|
57
|
+
if (!orderId) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const cached = orderCache.get(orderId);
|
|
61
|
+
if (cached && Date.now() - cached.timestamp <= CACHE_TTL) {
|
|
62
|
+
return cached.data;
|
|
63
|
+
}
|
|
64
|
+
const pending = inFlightRequests.get(orderId);
|
|
65
|
+
if (pending) {
|
|
66
|
+
return pending;
|
|
67
|
+
}
|
|
68
|
+
const request = (async () => {
|
|
69
|
+
try {
|
|
70
|
+
const response = await salla.api.request(`orders/${orderId}`, '', 'get');
|
|
71
|
+
const data = response?.data ?? response;
|
|
72
|
+
orderCache.set(orderId, { data, timestamp: Date.now() });
|
|
73
|
+
return data;
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
orderCache.delete(orderId);
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
inFlightRequests.delete(orderId);
|
|
81
|
+
}
|
|
82
|
+
})();
|
|
83
|
+
inFlightRequests.set(orderId, request);
|
|
84
|
+
return request;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const sallaReviewFactorsTagsCss = ":host{display:inline-flex}.s-review-factors-tags-factors{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:flex-start;margin-bottom:0.6rem}.s-review-factors-tags-factor-tag{display:inline-flex;align-items:center;gap:0.25rem;border-radius:999px;border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);font-size:0.85rem;line-height:1;padding:0.4rem 0.65rem}.s-review-factors-tags-factor-rating{font-weight:600;color:var(--color-primary) !important}.s-review-factors-tags-factor-star{display:inline-flex;width:0.8rem;height:0.8rem;fill:var(--color-primary) !important}.s-review-factors-tags-factor-star svg{width:100%;height:100%}.s-review-factors-tags-factor-name{color:var(--main-text-color) !important;font-weight:unset !important}";
|
|
88
|
+
|
|
89
|
+
const SallaReviewFactorsTags = /*@__PURE__*/ proxyCustomElement(class SallaReviewFactorsTags extends HTMLElement {
|
|
90
|
+
constructor() {
|
|
91
|
+
super();
|
|
92
|
+
this.__registerHost();
|
|
93
|
+
this.loadedFactors = [];
|
|
94
|
+
}
|
|
95
|
+
async componentWillLoad() {
|
|
96
|
+
await salla.onReady();
|
|
97
|
+
await this.loadFactors();
|
|
98
|
+
}
|
|
99
|
+
async onPropsChange() {
|
|
100
|
+
await this.loadFactors();
|
|
101
|
+
}
|
|
102
|
+
getDisplayFactors() {
|
|
103
|
+
if (this.factors?.length) {
|
|
104
|
+
return this.factors;
|
|
105
|
+
}
|
|
106
|
+
return this.loadedFactors;
|
|
107
|
+
}
|
|
108
|
+
async loadFactors() {
|
|
109
|
+
if (this.factors?.length) {
|
|
110
|
+
this.loadedFactors = [];
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (!this.orderId) {
|
|
114
|
+
this.loadedFactors = [];
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
const order = await fetchOrder(this.orderId);
|
|
119
|
+
this.loadedFactors = resolveReviewFactors(order, this.ratingId, this.productId, this.itemId);
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
console.error('[salla-review-factors-tags] failed to load order rating factors', error);
|
|
123
|
+
this.loadedFactors = [];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
renderFactorTags() {
|
|
127
|
+
const factors = this.getDisplayFactors();
|
|
128
|
+
if (!factors.length) {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Rate }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
132
|
+
}
|
|
133
|
+
render() {
|
|
134
|
+
return (h(Host, { key: 'b9df42d369cd5a7c66d1275202a883f6dc8ac594', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
135
|
+
}
|
|
136
|
+
static get watchers() { return {
|
|
137
|
+
"factors": ["onPropsChange"],
|
|
138
|
+
"orderId": ["onPropsChange"],
|
|
139
|
+
"ratingId": ["onPropsChange"],
|
|
140
|
+
"productId": ["onPropsChange"],
|
|
141
|
+
"itemId": ["onPropsChange"]
|
|
142
|
+
}; }
|
|
143
|
+
static get style() { return sallaReviewFactorsTagsCss; }
|
|
144
|
+
}, [0, "salla-review-factors-tags", {
|
|
145
|
+
"factors": [16],
|
|
146
|
+
"orderId": [2, "order-id"],
|
|
147
|
+
"ratingId": [2, "rating-id"],
|
|
148
|
+
"productId": [2, "product-id"],
|
|
149
|
+
"itemId": [2, "item-id"],
|
|
150
|
+
"loadedFactors": [32]
|
|
151
|
+
}, undefined, {
|
|
152
|
+
"factors": ["onPropsChange"],
|
|
153
|
+
"orderId": ["onPropsChange"],
|
|
154
|
+
"ratingId": ["onPropsChange"],
|
|
155
|
+
"productId": ["onPropsChange"],
|
|
156
|
+
"itemId": ["onPropsChange"]
|
|
157
|
+
}]);
|
|
158
|
+
function defineCustomElement() {
|
|
159
|
+
if (typeof customElements === "undefined") {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const components = ["salla-review-factors-tags"];
|
|
163
|
+
components.forEach(tagName => { switch (tagName) {
|
|
164
|
+
case "salla-review-factors-tags":
|
|
165
|
+
if (!customElements.get(tagName)) {
|
|
166
|
+
customElements.define(tagName, SallaReviewFactorsTags);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
} });
|
|
170
|
+
}
|
|
171
|
+
defineCustomElement();
|
|
172
|
+
|
|
173
|
+
export { SallaReviewFactorsTags as S, defineCustomElement as d };
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { R as Rate } from './star2.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$3 } from './salla-progress-bar2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './salla-rating-stars2.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './salla-review-factors-tags2.js';
|
|
8
9
|
|
|
9
|
-
const sallaReviewsSummaryCss = ":host{display:block}.s-reviews-summary-overall-section{display:flex;flex-direction:column;align-items:flex-start;gap:0.35rem;padding:0 0.5rem}.s-reviews-summary-overall-label{color:#111827;font-size:1.15rem;font-weight:600;line-height:1.3;margin-bottom:0.75rem}.s-reviews-summary-overall-row{display:inline-flex;align-items:flex-start;gap:0.7rem}.s-reviews-summary-factors{
|
|
10
|
+
const sallaReviewsSummaryCss = ":host{display:block}.s-reviews-summary-main-container{justify-content:space-between;padding-left:1.5rem;padding-right:1.5rem}.s-reviews-summary-overall-section{display:flex;flex-direction:column;align-items:flex-start;gap:0.35rem;padding:0 0.5rem}.s-reviews-summary-overall-label{color:#111827;font-size:1.15rem;font-weight:600;line-height:1.3;margin-bottom:0.75rem}.s-reviews-summary-overall-row{display:inline-flex;align-items:flex-start;gap:0.7rem}.s-reviews-summary-factors{max-width:24rem}.s-reviews-summary-rows{display:flex !important;flex-direction:column !important;gap:1.3rem !important}@media (min-width: 640px){.s-reviews-summary-header{gap:1.25rem !important}}";
|
|
10
11
|
|
|
11
12
|
const SallaReviewsSummary = /*@__PURE__*/ proxyCustomElement(class SallaReviewsSummary extends HTMLElement {
|
|
12
13
|
constructor() {
|
|
@@ -45,7 +46,6 @@ const SallaReviewsSummary = /*@__PURE__*/ proxyCustomElement(class SallaReviewsS
|
|
|
45
46
|
});
|
|
46
47
|
this.basedOnLabel = salla.lang.get('blocks.comments.based_on');
|
|
47
48
|
this.recommendedLabel = salla.lang.get('blocks.comments.recommended');
|
|
48
|
-
this.overallRatingLabel = salla.lang.get('blocks.comments.overall_rating');
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
async loadSummary() {
|
|
@@ -69,13 +69,6 @@ const SallaReviewsSummary = /*@__PURE__*/ proxyCustomElement(class SallaReviewsS
|
|
|
69
69
|
console.error('Error loading reviews summary:', error);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
renderFactorTags() {
|
|
73
|
-
const factors = this.data?.factors || [];
|
|
74
|
-
if (!factors.length) {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
return (h("div", { class: "s-reviews-summary-factors" }, factors.map(factor => (h("div", { class: "s-reviews-summary-factor-tag" }, h("span", { class: "s-reviews-summary-factor-name" }, factor.name), h("span", { class: "s-reviews-summary-factor-star", innerHTML: Rate }), h("span", { class: "s-reviews-summary-factor-rating" }, factor.rating || ''))))));
|
|
78
|
-
}
|
|
79
72
|
renderRecommendation() {
|
|
80
73
|
if (!this.showRecommendation || !this.data?.recommendation) {
|
|
81
74
|
return null;
|
|
@@ -101,9 +94,9 @@ const SallaReviewsSummary = /*@__PURE__*/ proxyCustomElement(class SallaReviewsS
|
|
|
101
94
|
};
|
|
102
95
|
const reviewElements = Object.keys(ratings).reverse().map((rating) => {
|
|
103
96
|
const percentage = ratings[rating];
|
|
104
|
-
return (h("div", { key: rating, class: "s-reviews-summary-row" }, h("div", { class: "s-reviews-summary-row-rate" }, rating, " ", h("span", { innerHTML: Rate })), h("salla-progress-bar", { class: "s-reviews-summary-progress", value: percentage, target: 100, hideUnits: true, height: '
|
|
97
|
+
return (h("div", { key: rating, class: "s-reviews-summary-row" }, h("div", { class: "s-reviews-summary-row-rate" }, rating, " ", h("span", { innerHTML: Rate })), h("salla-progress-bar", { class: "s-reviews-summary-progress", value: percentage, target: 100, hideUnits: true, height: '20px' }), h("span", { class: "s-reviews-summary-percentage" }, percentage, "%")));
|
|
105
98
|
});
|
|
106
|
-
return (h(Host, { class: "s-reviews-summary-wrapper" }, h("div", { class: "s-reviews-summary-header" }, h("div", { class: "s-reviews-summary-overall-section items-start" }, h("
|
|
99
|
+
return (h(Host, { class: "s-reviews-summary-wrapper s-reviews-summary-main-container" }, h("div", { class: "s-reviews-summary-header" }, h("div", { class: "s-reviews-summary-overall-section items-start" }, h("div", { class: "s-reviews-summary-overall-row" }, h("h3", { class: "s-reviews-summary-average" }, this.data.rating), h("div", null, h("salla-rating-stars", { size: 'large', value: this.data.rating }), h("p", { class: "s-reviews-summary-count" }, this.basedOnLabel, " ", salla.helpers.number(salla.lang.choice('pages.rating.reviews', this.data.count)))))), !!this.data?.factors?.length && (h("div", { class: "s-reviews-summary-factors" }, h("salla-review-factors-tags", { factors: this.data.factors }))), this.renderRecommendation()), h("div", { class: "s-reviews-summary-rows" }, reviewElements)));
|
|
107
100
|
}
|
|
108
101
|
static get style() { return sallaReviewsSummaryCss; }
|
|
109
102
|
}, [0, "salla-reviews-summary", {
|
|
@@ -112,7 +105,6 @@ const SallaReviewsSummary = /*@__PURE__*/ proxyCustomElement(class SallaReviewsS
|
|
|
112
105
|
"canRender": [32],
|
|
113
106
|
"basedOnLabel": [32],
|
|
114
107
|
"recommendedLabel": [32],
|
|
115
|
-
"overallRatingLabel": [32],
|
|
116
108
|
"showRatingSummary": [32],
|
|
117
109
|
"recommendationOnly": [32],
|
|
118
110
|
"showRecommendation": [32]
|
|
@@ -121,7 +113,7 @@ function defineCustomElement() {
|
|
|
121
113
|
if (typeof customElements === "undefined") {
|
|
122
114
|
return;
|
|
123
115
|
}
|
|
124
|
-
const components = ["salla-reviews-summary", "salla-progress-bar", "salla-rating-stars"];
|
|
116
|
+
const components = ["salla-reviews-summary", "salla-progress-bar", "salla-rating-stars", "salla-review-factors-tags"];
|
|
125
117
|
components.forEach(tagName => { switch (tagName) {
|
|
126
118
|
case "salla-reviews-summary":
|
|
127
119
|
if (!customElements.get(tagName)) {
|
|
@@ -130,10 +122,15 @@ function defineCustomElement() {
|
|
|
130
122
|
break;
|
|
131
123
|
case "salla-progress-bar":
|
|
132
124
|
if (!customElements.get(tagName)) {
|
|
133
|
-
defineCustomElement$
|
|
125
|
+
defineCustomElement$3();
|
|
134
126
|
}
|
|
135
127
|
break;
|
|
136
128
|
case "salla-rating-stars":
|
|
129
|
+
if (!customElements.get(tagName)) {
|
|
130
|
+
defineCustomElement$2();
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case "salla-review-factors-tags":
|
|
137
134
|
if (!customElements.get(tagName)) {
|
|
138
135
|
defineCustomElement$1();
|
|
139
136
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-Bt0ajKaf.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|