@salla.sa/twilight-components 2.14.537 → 2.14.539
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/{cancel-B5SbMYEk.js → cancel-De6vslRA.js} +2 -2
- package/dist/cjs/{check-BnVBPQNp.js → check-x3w3-gpj.js} +2 -2
- package/dist/cjs/{filepond-BKilDzmk.js → filepond-CIpOpiw6.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DMIbAyAM.js → filepond-plugin-file-poster-CPV_SZrj.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-NaEK453w.js → filepond-plugin-file-validate-size-C_XGylG1.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C4fSQyfm.js → filepond-plugin-file-validate-type-CmVS48lk.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-M4p4znH2.js → filepond-plugin-image-edit-KfqhH5F9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BmZUQ1qY.js → filepond-plugin-image-exif-orientation-BfRIDxO-.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DQeJbx48.js → filepond-plugin-image-preview-DlvO4sHZ.js} +1 -1
- package/dist/cjs/{gift-DbNivqYO.js → gift-CJ-3Yw_x.js} +2 -2
- package/dist/cjs/{gift-sharing-BE0uszUm.js → gift-sharing-CStz46FA.js} +2 -2
- package/dist/cjs/{index-B_5gLFr2.js → index-CMDyFi6Q.js} +112 -66
- package/dist/cjs/{intlTelInput-B5hswC8S.js → intlTelInput-BK34b4sR.js} +1 -1
- package/dist/cjs/{iphone-x-qC21wCLj.js → iphone-x-B683VspR.js} +2 -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 +10 -10
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +8 -8
- package/dist/cjs/salla-advertisement.cjs.entry.js +2 -2
- package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
- package/dist/cjs/salla-badge.cjs.entry.js +2 -2
- package/dist/cjs/salla-basket-gap.cjs.entry.js +2 -2
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +16 -16
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +42 -39
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +4 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +15 -13
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-contacts.cjs.entry.js +2 -2
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +2 -2
- package/dist/cjs/{salla-count-down_2.cjs.entry.js → salla-count-down.cjs.entry.js} +2 -210
- package/dist/cjs/salla-custom-fields.cjs.entry.js +2 -2
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +4 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +4 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +7 -7
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +2 -2
- package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +5 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +980 -0
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +27 -0
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +7 -4
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +4 -4
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +4 -4
- package/dist/cjs/salla-map_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-menu.cjs.entry.js +2 -2
- package/dist/cjs/salla-metadata.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +2 -2
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +172 -0
- package/dist/cjs/salla-offer-modal.cjs.entry.js +6 -7
- package/dist/cjs/salla-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-branch.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-cancel.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-options-modal_2.cjs.entry.js +367 -0
- package/dist/cjs/salla-order-shipments.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-orders.cjs.entry.js +5 -3
- package/dist/cjs/salla-payments.cjs.entry.js +2 -2
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +2 -2
- package/dist/cjs/salla-products-list.cjs.entry.js +5 -3
- package/dist/cjs/salla-products-slider.cjs.entry.js +167 -0
- package/dist/cjs/salla-quick-order.cjs.entry.js +6 -6
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +5 -5
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +2 -2
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +2 -2
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
- package/dist/cjs/salla-user-menu.cjs.entry.js +6 -6
- package/dist/cjs/salla-user-profile.cjs.entry.js +2 -2
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +2 -2
- package/dist/cjs/salla-wallet.cjs.entry.js +5 -3
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/{cart2-B98PSAFN.js → tag-BH5n_Nx3.js} +9 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DcX-oQDe.js → vanilla-picker-DYTpjTDj.js} +1 -1
- package/dist/collection/collection-manifest.json +20 -0
- package/dist/collection/components/salla-accordion/salla-accordion.css +233 -0
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.css +248 -1
- package/dist/collection/components/salla-advertisement/salla-advertisement.css +53 -2
- package/dist/collection/components/salla-alert/salla-alert.css +57 -2
- package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.css +123 -2
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.css +15 -2
- package/dist/collection/components/salla-badge/salla-badge.css +72 -0
- package/dist/collection/components/salla-basket-gap/salla-basket-gap.css +282 -2
- package/dist/collection/components/salla-booking-field/salla-booking-field.css +108 -2
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.css +273 -2
- package/dist/collection/components/salla-bought-together/salla-bought-together.css +139 -2
- package/dist/collection/components/salla-breadcrumb/salla-breadcrumb.css +49 -2
- package/dist/collection/components/salla-bullet-delivery/helpers.js +14 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +1170 -5
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +20 -19
- package/dist/collection/components/salla-button/salla-button.css +681 -2
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.css +344 -2
- package/dist/collection/components/salla-cart-item-offers/salla-cart-item-offers.css +108 -2
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.css +43 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +308 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +10 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +39 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.css +48 -0
- package/dist/collection/components/salla-comment-form/salla-comment-form.css +94 -2
- package/dist/collection/components/salla-comments/salla-comments.css +626 -2
- package/dist/collection/components/salla-comments/salla-comments.js +2 -2
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.css +293 -2
- package/dist/collection/components/salla-contacts/salla-contacts.css +105 -2
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.css +91 -2
- package/dist/collection/components/salla-count-down/salla-count-down.css +395 -2
- package/dist/collection/components/salla-custom-fields/salla-custom-fields.css +86 -2
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +88 -2
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.css +452 -0
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +10 -0
- package/dist/collection/components/salla-drawer/salla-drawer.css +403 -0
- package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +2 -2
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +277 -2
- package/dist/collection/components/salla-filters/salla-filters.css +199 -2
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.css +169 -2
- package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.css +140 -0
- package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.js +10 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +593 -2
- package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +107 -2
- package/dist/collection/components/salla-installment/salla-installment.css +8 -2
- package/dist/collection/components/salla-list-tile/salla-list-tile.css +190 -0
- package/dist/collection/components/salla-loading/salla-loading.css +13 -2
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +170 -0
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +11 -1
- package/dist/collection/components/salla-login-modal/salla-login-modal.css +8 -2
- package/dist/collection/components/salla-loyalty/salla-loyalty.css +377 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.css +36 -0
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.css +365 -0
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +11 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.css +1621 -2
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.css +156 -2
- package/dist/collection/components/salla-map/salla-map.css +88 -2
- package/dist/collection/components/salla-menu/salla-menu.css +175 -2
- package/dist/collection/components/salla-metadata/salla-metadata.css +49 -0
- package/dist/collection/components/salla-modal/salla-modal.css +556 -2
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +342 -2
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +190 -2
- package/dist/collection/components/salla-notifications/salla-notifications.css +217 -0
- package/dist/collection/components/salla-notifications/salla-notifications.js +2 -2
- package/dist/collection/components/salla-offer/salla-offer.css +961 -2
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +514 -2
- package/dist/collection/components/salla-order-branch/salla-order-branch.css +269 -2
- package/dist/collection/components/salla-order-cancel/salla-order-cancel.css +283 -2
- package/dist/collection/components/salla-order-details/salla-order-details.css +319 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +773 -2
- package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.css +50 -2
- package/dist/collection/components/salla-order-shipments/salla-order-shipments.css +110 -2
- package/dist/collection/components/salla-order-summary/salla-order-summary.css +117 -2
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +116 -2
- package/dist/collection/components/salla-orders/salla-orders.css +367 -2
- package/dist/collection/components/salla-orders/salla-orders.js +2 -2
- package/dist/collection/components/salla-payments/salla-payments.css +40 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.css +121 -0
- package/dist/collection/components/salla-price-range/salla-price-range.css +146 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.css +188 -2
- package/dist/collection/components/salla-product-card/salla-product-card.css +694 -2
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +42 -2
- package/dist/collection/components/salla-product-options/salla-product-options.css +749 -0
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.css +105 -2
- package/dist/collection/components/salla-products-list/salla-products-list.css +286 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +2 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.css +48 -0
- package/dist/collection/components/salla-progress-bar/salla-progress-bar.css +53 -0
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +47 -2
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.css +32 -2
- package/dist/collection/components/salla-quick-order/salla-quick-order.css +233 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +540 -2
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +91 -2
- package/dist/collection/components/salla-review-card/salla-review-card.css +213 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +45 -2
- package/dist/collection/components/salla-reviews/salla-reviews.css +378 -0
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.css +124 -2
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +118 -2
- package/dist/collection/components/salla-scopes/salla-scopes.css +299 -2
- package/dist/collection/components/salla-search/salla-search.css +298 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.css +508 -0
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +14 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.css +31 -2
- package/dist/collection/components/salla-slider/salla-slider.css +749 -2
- package/dist/collection/components/salla-social/salla-social.css +31 -2
- package/dist/collection/components/salla-social-share/salla-social-share.css +56 -2
- package/dist/collection/components/salla-tabs/salla-tabs.css +233 -2
- package/dist/collection/components/salla-tel-input/salla-tel-input.css +82 -2
- package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.css +305 -2
- package/dist/collection/components/salla-tooltip/salla-tooltip.css +10 -3
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.css +36 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.css +395 -0
- package/dist/collection/components/salla-user-profile/salla-user-profile.css +79 -2
- package/dist/collection/components/salla-user-settings/salla-user-settings.css +299 -2
- package/dist/collection/components/salla-verify/salla-verify.css +226 -2
- package/dist/collection/components/salla-wallet/salla-wallet.css +333 -2
- package/dist/collection/components/salla-wallet/salla-wallet.js +2 -2
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.css +88 -2
- package/dist/collection/global/app.js +60 -0
- package/dist/collection/global/app.ts +60 -0
- package/dist/collection/global/base-css.js +5 -0
- package/dist/collection/global/base-css.ts +2 -0
- package/dist/collection/plugins/build-base-css.js +43 -0
- package/dist/collection/plugins/css-coverage-check.js +363 -0
- package/dist/collection/plugins/tailwind-per-component.js +146 -0
- package/dist/collection/plugins/watch-utilities.js +22 -0
- package/dist/components/index.js +64 -2
- package/dist/components/salla-accordion2.js +1 -1
- package/dist/components/salla-add-product-button2.js +1 -1
- package/dist/components/salla-advertisement.js +1 -1
- package/dist/components/salla-alert.js +1 -1
- package/dist/components/salla-app-install-alert.js +1 -1
- package/dist/components/salla-apps-icons.js +1 -1
- package/dist/components/salla-badge2.js +1 -1
- package/dist/components/salla-basket-gap.js +1 -1
- package/dist/components/salla-booking-field2.js +1 -1
- package/dist/components/salla-bottom-alert.js +1 -1
- package/dist/components/salla-bought-together.js +1 -1
- package/dist/components/salla-breadcrumb.js +1 -1
- package/dist/components/salla-bullet-delivery.js +34 -34
- package/dist/components/salla-button2.js +1 -1
- package/dist/components/salla-cart-coupons.js +1 -1
- package/dist/components/salla-cart-item-offers.js +1 -1
- package/dist/components/salla-cart-summary-card.js +3 -0
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-cashback-banner.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-factors2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +4 -2
- package/dist/components/salla-conditional-offer.js +1 -1
- package/dist/components/salla-contacts.js +1 -1
- package/dist/components/salla-cookies-bar.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-custom-fields.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-delivery-promise.js +3 -0
- package/dist/components/salla-drawer2.js +1 -1
- package/dist/components/salla-edit-order-button.js +1 -1
- package/dist/components/salla-file-upload2.js +1 -1
- package/dist/components/salla-filters-widget2.js +1 -1
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-fulfillment-methods.js +3 -0
- package/dist/components/salla-gifting.js +1 -1
- package/dist/components/salla-infinite-scroll.js +1 -1
- package/dist/components/salla-installment.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +4 -1
- package/dist/components/salla-login-modal2.js +1 -1
- package/dist/components/salla-loyalty-banner.js +1 -1
- package/dist/components/salla-loyalty-exchange-product-card2.js +1 -1
- package/dist/components/salla-loyalty-hero2.js +1 -1
- package/dist/components/salla-loyalty-panel.js +1 -1
- package/dist/components/salla-loyalty-point2.js +1 -1
- package/dist/components/salla-loyalty-points-banner.js +1 -1
- package/dist/components/salla-loyalty-points-history.js +4 -1
- package/dist/components/salla-loyalty-program.js +1 -1
- package/dist/components/salla-loyalty-reward.js +1 -1
- package/dist/components/salla-loyalty.js +1 -1
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +1 -1
- package/dist/components/salla-menu.js +1 -1
- package/dist/components/salla-metadata.js +1 -1
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-next-order-coupon.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-notifications.js +4 -2
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-offer.js +1 -1
- package/dist/components/salla-order-branch.js +1 -1
- package/dist/components/salla-order-cancel.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit.js +1 -1
- package/dist/components/salla-order-options-modal2.js +1 -1
- package/dist/components/salla-order-shipments.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-order-totals-card.js +1 -1
- package/dist/components/salla-orders.js +4 -2
- package/dist/components/salla-payments.js +1 -1
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +1 -1
- 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 +1 -1
- package/dist/components/salla-product-options2.js +1 -1
- package/dist/components/salla-product-size-guide.js +1 -1
- package/dist/components/salla-products-list2.js +4 -2
- package/dist/components/salla-products-slider2.js +1 -1
- package/dist/components/salla-progress-bar2.js +1 -1
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-quick-order.js +1 -1
- package/dist/components/salla-rating-modal-v22.js +1 -1
- package/dist/components/salla-rating-modal.js +1 -1
- package/dist/components/salla-rating-stars2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews-summary2.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-action2.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +1 -1
- package/dist/components/salla-reward-exchange2.js +1 -1
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-searchable-dropdown2.js +7 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-slider2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tiered-offer.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-trust-badges.js +1 -1
- package/dist/components/salla-user-menu.js +1 -1
- package/dist/components/salla-user-profile.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-verify.js +1 -1
- package/dist/components/salla-wallet.js +4 -2
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{cancel-8Tsmrwno.js → cancel-BsLF_HK7.js} +2 -2
- package/dist/esm/{check-BZp0rKEO.js → check-BsXh13x8.js} +2 -2
- package/dist/esm/{filepond-Co-IypIA.js → filepond-DMUE9Fyj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CoRXw3k-.js → filepond-plugin-file-poster-DBZQTm7s.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CGJ0QOyy.js → filepond-plugin-file-validate-size-CrKxdsNW.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DDAxGYz8.js → filepond-plugin-file-validate-type-DvEJrucY.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BTbI51S8.js → filepond-plugin-image-edit-C6ptCg9o.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C0VSH5eq.js → filepond-plugin-image-exif-orientation-IcgeTieF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DZbIdviE.js → filepond-plugin-image-preview-CDMh74os.js} +1 -1
- package/dist/esm/{gift-CXRKXFgT.js → gift-BChI23pG.js} +2 -2
- package/dist/esm/{gift-sharing-0-eTJXSD.js → gift-sharing-DxkgAGoT.js} +2 -2
- package/dist/esm/{index-BICKbbaT.js → index-CjQzkU95.js} +112 -66
- package/dist/esm/{intlTelInput-CcU6kFYO.js → intlTelInput-Dsx2z7pR.js} +1 -1
- package/dist/esm/{iphone-x-CciN5Q_x.js → iphone-x-Z7udRKSZ.js} +2 -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 +10 -10
- package/dist/esm/salla-add-product-button_5.entry.js +8 -8
- package/dist/esm/salla-advertisement.entry.js +2 -2
- package/dist/esm/salla-alert_2.entry.js +3 -3
- package/dist/esm/salla-app-install-alert.entry.js +2 -2
- package/dist/esm/salla-apps-icons.entry.js +2 -2
- package/dist/esm/salla-badge.entry.js +2 -2
- package/dist/esm/salla-basket-gap.entry.js +2 -2
- package/dist/esm/salla-booking-field_7.entry.js +16 -16
- package/dist/esm/salla-bullet-delivery_2.entry.js +42 -39
- package/dist/esm/salla-cart-coupons.entry.js +2 -2
- package/dist/esm/salla-cart-item-offers_2.entry.js +5 -5
- package/dist/esm/salla-cart-summary-card.entry.js +4 -1
- package/dist/esm/salla-cashback-banner.entry.js +2 -2
- package/dist/esm/salla-comment-factors.entry.js +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +15 -13
- package/dist/esm/salla-conditional-offer.entry.js +2 -2
- package/dist/esm/salla-contacts.entry.js +2 -2
- package/dist/esm/salla-cookies-bar.entry.js +2 -2
- package/dist/esm/{salla-count-down_2.entry.js → salla-count-down.entry.js} +3 -210
- package/dist/esm/salla-custom-fields.entry.js +2 -2
- package/dist/esm/salla-delivery-promise.entry.js +4 -1
- package/dist/esm/salla-edit-order-button.entry.js +2 -2
- package/dist/esm/salla-filters-widget.entry.js +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +4 -1
- package/dist/esm/salla-gifting.entry.js +7 -7
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +2 -2
- package/dist/esm/salla-list-tile.entry.js +2 -2
- package/dist/esm/salla-localization-modal.entry.js +5 -2
- package/dist/esm/salla-login-modal.entry.js +2 -2
- package/dist/esm/salla-loyalty-banner_10.entry.js +969 -0
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +25 -0
- package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-points-history.entry.js +7 -4
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +4 -4
- package/dist/esm/salla-maintenance-alert.entry.js +4 -4
- package/dist/esm/salla-map_2.entry.js +3 -3
- package/dist/esm/salla-menu.entry.js +2 -2
- package/dist/esm/salla-metadata.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +2 -2
- package/dist/esm/salla-notification-item_2.entry.js +169 -0
- package/dist/esm/salla-offer-modal.entry.js +6 -7
- package/dist/esm/salla-offer.entry.js +2 -2
- package/dist/esm/salla-order-branch.entry.js +2 -2
- package/dist/esm/salla-order-cancel.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/salla-order-edit.entry.js +2 -2
- package/dist/esm/salla-order-options-modal_2.entry.js +364 -0
- package/dist/esm/salla-order-shipments.entry.js +2 -2
- package/dist/esm/salla-order-summary.entry.js +4 -4
- package/dist/esm/salla-order-totals-card.entry.js +2 -2
- package/dist/esm/salla-orders.entry.js +5 -3
- package/dist/esm/salla-payments.entry.js +2 -2
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +2 -2
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-size-guide.entry.js +2 -2
- package/dist/esm/salla-products-list.entry.js +5 -3
- package/dist/esm/salla-products-slider.entry.js +165 -0
- package/dist/esm/salla-quick-order.entry.js +6 -6
- package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-review-factors-tags.entry.js +2 -2
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +5 -5
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +2 -2
- package/dist/esm/salla-tiered-offer.entry.js +2 -2
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +2 -2
- package/dist/esm/salla-user-menu.entry.js +6 -6
- package/dist/esm/salla-user-profile.entry.js +2 -2
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +2 -2
- package/dist/esm/salla-wallet.entry.js +5 -3
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/{cart2-D1s2kXqL.js → tag-DRvZV5oe.js} +8 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-ZYaCOUKK.js → vanilla-picker-oYjMgYry.js} +1 -1
- package/dist/twilight/global/app.ts +60 -0
- package/dist/twilight/global/base-css.ts +2 -0
- package/dist/twilight/p-0a1271e1.entry.js +4 -0
- package/dist/twilight/p-1151ebd7.entry.js +4 -0
- package/dist/twilight/p-116e7555.entry.js +4 -0
- package/dist/twilight/{p-a5d54ce0.entry.js → p-1470e96a.entry.js} +1 -1
- package/dist/twilight/p-14c72ffd.entry.js +4 -0
- package/dist/twilight/p-152c657e.entry.js +4 -0
- package/dist/twilight/p-1754903f.entry.js +4 -0
- package/dist/twilight/{p-e24e104a.entry.js → p-187a502c.entry.js} +1 -1
- package/dist/twilight/p-1c31cec0.entry.js +4 -0
- package/dist/twilight/p-1c369bcf.entry.js +4 -0
- package/dist/twilight/{p-eb1bdbee.entry.js → p-1d2804ac.entry.js} +1 -1
- package/dist/twilight/p-1dd1fef0.entry.js +4 -0
- package/dist/twilight/p-1fb46b43.entry.js +4 -0
- package/dist/twilight/p-236f371d.entry.js +4 -0
- package/dist/twilight/{p-54f5ab92.entry.js → p-250d7ab2.entry.js} +1 -1
- package/dist/twilight/{p-45199451.entry.js → p-27a0a4cc.entry.js} +1 -1
- package/dist/twilight/p-298ff716.entry.js +4 -0
- package/dist/twilight/p-2babb4bd.entry.js +4 -0
- package/dist/twilight/p-2c6c0844.entry.js +4 -0
- package/dist/twilight/p-2e112687.entry.js +4 -0
- package/dist/twilight/p-2e43ddf0.entry.js +4 -0
- package/dist/twilight/p-3052178c.entry.js +4 -0
- package/dist/twilight/p-31c36417.entry.js +4 -0
- package/dist/twilight/p-331679d8.entry.js +4 -0
- package/dist/twilight/p-37413a02.entry.js +4 -0
- package/dist/twilight/{p-036f67e4.entry.js → p-3b6b3c54.entry.js} +1 -1
- package/dist/twilight/p-3bc64439.entry.js +4 -0
- package/dist/twilight/p-3bdba697.entry.js +4 -0
- package/dist/twilight/{p-3ff03500.entry.js → p-3c22551b.entry.js} +1 -1
- package/dist/twilight/p-3f26f1c5.entry.js +4 -0
- package/dist/twilight/p-40217fcc.entry.js +4 -0
- package/dist/twilight/p-4058b619.entry.js +4 -0
- package/dist/twilight/{p-b4a173be.entry.js → p-437fe6f1.entry.js} +1 -1
- package/dist/twilight/{p-15f20a28.entry.js → p-44cfb2c2.entry.js} +1 -1
- package/dist/twilight/p-4868c03c.entry.js +4 -0
- package/dist/twilight/p-48db7b95.entry.js +4 -0
- package/dist/twilight/p-49e6fe86.entry.js +4 -0
- package/dist/twilight/p-51a860bc.entry.js +4 -0
- package/dist/twilight/p-54d0db9a.entry.js +4 -0
- package/dist/twilight/p-58184ae2.entry.js +4 -0
- package/dist/twilight/p-5b03dca8.entry.js +4 -0
- package/dist/twilight/{p-149e1143.entry.js → p-5bbf829e.entry.js} +1 -1
- package/dist/twilight/{p-b10e56fd.entry.js → p-5d01f25c.entry.js} +1 -1
- package/dist/twilight/p-5e9fb02d.entry.js +4 -0
- package/dist/twilight/p-664f0936.entry.js +4 -0
- package/dist/twilight/{p-e8d773b2.entry.js → p-665bca88.entry.js} +1 -1
- package/dist/twilight/p-67e88dc4.entry.js +4 -0
- package/dist/twilight/p-68c8772a.entry.js +4 -0
- package/dist/twilight/p-699bea26.entry.js +4 -0
- package/dist/twilight/p-6ed4c9bb.entry.js +4 -0
- package/dist/twilight/p-7c74dc6e.entry.js +4 -0
- package/dist/twilight/{p-3c52b097.entry.js → p-7f73ff43.entry.js} +1 -1
- package/dist/twilight/{p-c1caae26.entry.js → p-80ff5572.entry.js} +1 -1
- package/dist/twilight/{p-b8980a7c.entry.js → p-8230c543.entry.js} +38 -38
- package/dist/twilight/p-82c12191.entry.js +4 -0
- package/dist/twilight/p-84f35767.entry.js +4 -0
- package/dist/twilight/{p-56f180b1.entry.js → p-8ae7bf96.entry.js} +1 -1
- package/dist/twilight/p-8bce41c8.entry.js +4 -0
- package/dist/twilight/{p-3be661be.entry.js → p-8ef3693b.entry.js} +1 -1
- package/dist/twilight/p-8fa84b87.entry.js +4 -0
- package/dist/twilight/p-91b4a1a0.entry.js +4 -0
- package/dist/twilight/{p-710a3ce8.entry.js → p-997c4966.entry.js} +1 -1
- package/dist/twilight/p-9b6db6a7.entry.js +4 -0
- package/dist/twilight/p-9c7fcbb0.entry.js +4 -0
- package/dist/twilight/p-9fa351ab.entry.js +4 -0
- package/dist/twilight/{p-DwA0FvNE.js → p-B9VKgTTF.js} +1 -1
- package/dist/twilight/{p-CXRKXFgT.js → p-BChI23pG.js} +1 -1
- package/dist/twilight/{p-gy7RAvBD.js → p-BiyhYWus.js} +1 -1
- package/dist/twilight/{p-8Tsmrwno.js → p-BsLF_HK7.js} +1 -1
- package/dist/twilight/{p-BZp0rKEO.js → p-BsXh13x8.js} +1 -1
- package/dist/twilight/{p-BqKKpKiZ.js → p-BtymczNp.js} +1 -1
- package/dist/twilight/{p-BBYplmag.js → p-C1wu6qA1.js} +1 -1
- package/dist/twilight/{p-BMmR9fBv.js → p-C6w35AiQ.js} +1 -1
- package/dist/twilight/{p-CnydhXLD.js → p-CGDRqU6i.js} +1 -1
- package/dist/twilight/{p-BICKbbaT.js → p-CjQzkU95.js} +2 -2
- package/dist/twilight/{p-DGAX-mOJ.js → p-CmQyEOxJ.js} +2 -2
- package/dist/twilight/{p-Dbba1-no.js → p-D2uiOzVz.js} +1 -1
- package/dist/twilight/{p-D1s2kXqL.js → p-DRvZV5oe.js} +1 -1
- package/dist/twilight/{p-CH2gmG7u.js → p-DfJdKB52.js} +1 -1
- package/dist/twilight/{p-0-eTJXSD.js → p-DxkgAGoT.js} +1 -1
- package/dist/twilight/{p-CciN5Q_x.js → p-Z7udRKSZ.js} +1 -1
- package/dist/twilight/p-a1494e64.entry.js +4 -0
- package/dist/twilight/p-a3f00389.entry.js +4 -0
- package/dist/twilight/p-a669483e.entry.js +4 -0
- package/dist/twilight/p-a802826b.entry.js +4 -0
- package/dist/twilight/p-ae536a61.entry.js +4 -0
- package/dist/twilight/p-aeb76c46.entry.js +4 -0
- package/dist/twilight/p-b0e86201.entry.js +4 -0
- package/dist/twilight/p-b1812d5c.entry.js +4 -0
- package/dist/twilight/p-b193c991.entry.js +4 -0
- package/dist/twilight/p-b3fe5e44.entry.js +4 -0
- package/dist/twilight/p-b69e98a8.entry.js +4 -0
- package/dist/twilight/{p-2ac47b6b.entry.js → p-bbe79568.entry.js} +1 -1
- package/dist/twilight/{p-99b6543b.entry.js → p-bf183f3a.entry.js} +1 -1
- package/dist/twilight/p-c254b6fa.entry.js +4 -0
- package/dist/twilight/{p-064d4340.entry.js → p-cb179aba.entry.js} +1 -1
- package/dist/twilight/{p-8ea78b6a.entry.js → p-cc2b960c.entry.js} +1 -1
- package/dist/twilight/p-db02986a.entry.js +4 -0
- package/dist/twilight/{p-5d14a4ee.entry.js → p-dd5800dd.entry.js} +1 -1
- package/dist/twilight/p-e020f1c3.entry.js +4 -0
- package/dist/twilight/p-e701a3dc.entry.js +4 -0
- package/dist/twilight/p-f1eebeda.entry.js +4 -0
- package/dist/twilight/p-f4bdf19e.entry.js +4 -0
- package/dist/twilight/p-f7298462.entry.js +4 -0
- package/dist/twilight/{p-24cb77eb.entry.js → p-fa28a89f.entry.js} +1 -1
- package/dist/twilight/p-faaf4423.entry.js +4 -0
- package/dist/twilight/p-fe7990b7.entry.js +4 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/helpers.d.ts +9 -0
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +1 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +1 -1
- package/dist/types/global/base-css.d.ts +1 -0
- package/package.json +8 -7
- package/dist/cjs/functions-BbsKJYTv.js +0 -102
- package/dist/cjs/percentage-Fs83gq6Q.js +0 -21
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +0 -67
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +0 -305
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +0 -255
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +0 -104
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +0 -134
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +0 -54
- package/dist/cjs/salla-notification-item.cjs.entry.js +0 -20
- package/dist/cjs/salla-notifications.cjs.entry.js +0 -157
- package/dist/cjs/salla-product-card_2.cjs.entry.js +0 -319
- package/dist/cjs/shipping-CPYcgyCL.js +0 -13
- package/dist/cjs/tag-D-PcUR33.js +0 -12
- package/dist/cjs/tracked-promise-FYMkib0n.js +0 -31
- package/dist/cjs/user-add-BCGrddZS.js +0 -13
- package/dist/esm/functions-DBwN_PnC.js +0 -95
- package/dist/esm/percentage-Bs6JxDkg.js +0 -18
- package/dist/esm/salla-loyalty-banner.entry.js +0 -65
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +0 -299
- package/dist/esm/salla-loyalty-hero_2.entry.js +0 -252
- package/dist/esm/salla-loyalty-panel.entry.js +0 -102
- package/dist/esm/salla-loyalty-program.entry.js +0 -132
- package/dist/esm/salla-loyalty-reward.entry.js +0 -52
- package/dist/esm/salla-notification-item.entry.js +0 -18
- package/dist/esm/salla-notifications.entry.js +0 -155
- package/dist/esm/salla-product-card_2.entry.js +0 -316
- package/dist/esm/shipping-CZRcMGA9.js +0 -11
- package/dist/esm/tag-cgSL_BIo.js +0 -10
- package/dist/esm/tracked-promise-BGUdJ_Y7.js +0 -29
- package/dist/esm/user-add-QpH8MU22.js +0 -11
- package/dist/twilight/p-035e0ede.entry.js +0 -4
- package/dist/twilight/p-0a34505a.entry.js +0 -4
- package/dist/twilight/p-123ea3ce.entry.js +0 -4
- package/dist/twilight/p-169db5a8.entry.js +0 -4
- package/dist/twilight/p-182271b9.entry.js +0 -4
- package/dist/twilight/p-1d6e569d.entry.js +0 -4
- package/dist/twilight/p-21eef21b.entry.js +0 -4
- package/dist/twilight/p-22da89fa.entry.js +0 -4
- package/dist/twilight/p-23e937b6.entry.js +0 -4
- package/dist/twilight/p-2b07007d.entry.js +0 -4
- package/dist/twilight/p-2bf03b63.entry.js +0 -4
- package/dist/twilight/p-2c78a0ef.entry.js +0 -4
- package/dist/twilight/p-30660cd8.entry.js +0 -4
- package/dist/twilight/p-34ed76ac.entry.js +0 -4
- package/dist/twilight/p-3eb13818.entry.js +0 -4
- package/dist/twilight/p-3ff42b07.entry.js +0 -4
- package/dist/twilight/p-44a81e6e.entry.js +0 -4
- package/dist/twilight/p-44b0d992.entry.js +0 -4
- package/dist/twilight/p-45982933.entry.js +0 -4
- package/dist/twilight/p-45b975c2.entry.js +0 -4
- package/dist/twilight/p-492415ef.entry.js +0 -4
- package/dist/twilight/p-4c9e1e69.entry.js +0 -4
- package/dist/twilight/p-4f75de82.entry.js +0 -4
- package/dist/twilight/p-4ffb3087.entry.js +0 -4
- package/dist/twilight/p-598c5098.entry.js +0 -4
- package/dist/twilight/p-5c333767.entry.js +0 -4
- package/dist/twilight/p-5c452062.entry.js +0 -4
- package/dist/twilight/p-60901520.entry.js +0 -4
- package/dist/twilight/p-649e1e03.entry.js +0 -4
- package/dist/twilight/p-670e6462.entry.js +0 -4
- package/dist/twilight/p-6a814b15.entry.js +0 -4
- package/dist/twilight/p-6def828f.entry.js +0 -4
- package/dist/twilight/p-70e3120c.entry.js +0 -4
- package/dist/twilight/p-74d7660d.entry.js +0 -4
- package/dist/twilight/p-7518b9d3.entry.js +0 -4
- package/dist/twilight/p-8638175a.entry.js +0 -4
- package/dist/twilight/p-8ea18b13.entry.js +0 -4
- package/dist/twilight/p-95ef5ed3.entry.js +0 -4
- package/dist/twilight/p-9c98fca1.entry.js +0 -4
- package/dist/twilight/p-9ee5b0f7.entry.js +0 -4
- package/dist/twilight/p-BgfpunEY.js +0 -4
- package/dist/twilight/p-Bs6JxDkg.js +0 -4
- package/dist/twilight/p-CZRcMGA9.js +0 -4
- package/dist/twilight/p-QpH8MU22.js +0 -4
- package/dist/twilight/p-a0a248bd.entry.js +0 -4
- package/dist/twilight/p-a0cf8839.entry.js +0 -4
- package/dist/twilight/p-a665082c.entry.js +0 -4
- package/dist/twilight/p-abe7ac70.entry.js +0 -4
- package/dist/twilight/p-ad38c3e0.entry.js +0 -4
- package/dist/twilight/p-adf1ebf6.entry.js +0 -4
- package/dist/twilight/p-aec408ec.entry.js +0 -4
- package/dist/twilight/p-afa12e38.entry.js +0 -4
- package/dist/twilight/p-b17da4d5.entry.js +0 -4
- package/dist/twilight/p-b5ca8b9f.entry.js +0 -4
- package/dist/twilight/p-b5cc3e95.entry.js +0 -4
- package/dist/twilight/p-b725b869.entry.js +0 -4
- package/dist/twilight/p-bba004e0.entry.js +0 -4
- package/dist/twilight/p-bcef7f80.entry.js +0 -4
- package/dist/twilight/p-bdc23bcf.entry.js +0 -4
- package/dist/twilight/p-bfdb98db.entry.js +0 -4
- package/dist/twilight/p-c139be2a.entry.js +0 -4
- package/dist/twilight/p-c47486be.entry.js +0 -4
- package/dist/twilight/p-c861e9f8.entry.js +0 -4
- package/dist/twilight/p-cc6eb9fd.entry.js +0 -4
- package/dist/twilight/p-cdb0d7fb.entry.js +0 -4
- package/dist/twilight/p-cdc3ac03.entry.js +0 -4
- package/dist/twilight/p-cgSL_BIo.js +0 -4
- package/dist/twilight/p-d6941dc6.entry.js +0 -4
- package/dist/twilight/p-dd6ec724.entry.js +0 -4
- package/dist/twilight/p-ddabd5f2.entry.js +0 -4
- package/dist/twilight/p-e7a1f0c1.entry.js +0 -4
- package/dist/twilight/p-eafff38c.entry.js +0 -4
- package/dist/twilight/p-efccc05e.entry.js +0 -4
- package/dist/twilight/p-faec58b8.entry.js +0 -4
- package/dist/twilight/p-fdbe9913.entry.js +0 -4
- package/dist/twilight/p-fde5aae7.entry.js +0 -4
- package/dist/twilight/p-g9J0grSR.js +0 -4
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, h, a as getElement, H as Host } from './index-CjQzkU95.js';
|
|
5
|
+
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
|
+
|
|
7
|
+
const sallaOrderOptionsModalCss = "/*!twlt*/.s-order-options-modal-host .s-modal-header-inner,.s-order-options-modal-host .s-modal-header-content,.s-order-options-modal-host .s-modal-title{text-align:start !important}.s-order-options-modal-apple-pay{display:block;width:100%;--apple-pay-button-width:100%;--apple-pay-button-height:44px;--apple-pay-button-border-radius:0.75rem}.s-order-options-modal-apple-pay-wrap{display:flex;flex-direction:column;gap:0.75rem;width:100%}.s-order-options-modal-apple-pay-total{display:flex;align-items:center;justify-content:space-between;gap:0.5rem}.s-order-options-modal-apple-pay-label,.s-order-options-modal-apple-pay-amount{font-size:1.125rem;line-height:1.5rem;font-weight:700;color:#111827}.static{position:static}.block{display:block}.hidden{display:none}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-order-options-modal-body{display:block}.s-order-options-modal-subtitle{margin-bottom:1rem;font-size:0.875rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-order-options-modal-fields{display:flex;flex-direction:column;gap:1rem}.s-order-options-modal-item{display:block}.s-order-options-modal-footer{display:flex;width:100%;align-items:center}.s-order-options-modal-cta-content{display:flex;align-items:center;gap:0.25rem}.s-order-options-modal-cta-text{font-weight:700}.s-order-options-modal-cta-total{font-weight:700}";
|
|
8
|
+
|
|
9
|
+
const SallaOrderOptionsModal = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.resolveFn = null;
|
|
13
|
+
this.rejectFn = null;
|
|
14
|
+
this.optionsRefs = new Map();
|
|
15
|
+
this.changeHandler = null;
|
|
16
|
+
/** Sync hook for callers that need to act under the submit user gesture (Apple Pay). */
|
|
17
|
+
this.submitCallback = null;
|
|
18
|
+
this.orderOptions = [];
|
|
19
|
+
this.basePrice = 0;
|
|
20
|
+
this.liveTotal = 0;
|
|
21
|
+
this.isSubmitting = false;
|
|
22
|
+
/** Bumped each open() so the inner <salla-product-options> remounts. */
|
|
23
|
+
this.sessionId = 0;
|
|
24
|
+
this.paymentMode = 'default';
|
|
25
|
+
this.title = '';
|
|
26
|
+
this.subtitle = '';
|
|
27
|
+
this.submitLabel = '';
|
|
28
|
+
this.totalLabel = '';
|
|
29
|
+
this.requiredMessage = '';
|
|
30
|
+
this.handleClose = () => {
|
|
31
|
+
if (this.isSubmitting)
|
|
32
|
+
return;
|
|
33
|
+
this.rejectFn?.({ reason: 'dismissed' });
|
|
34
|
+
this.resolveFn = null;
|
|
35
|
+
this.rejectFn = null;
|
|
36
|
+
this.detachChangeListener();
|
|
37
|
+
this.reset();
|
|
38
|
+
};
|
|
39
|
+
salla.lang.onLoaded(() => this.loadTranslations());
|
|
40
|
+
}
|
|
41
|
+
componentWillLoad() {
|
|
42
|
+
this.loadTranslations();
|
|
43
|
+
}
|
|
44
|
+
loadTranslations() {
|
|
45
|
+
this.title = salla.lang.get('blocks.order_options.title');
|
|
46
|
+
this.subtitle = salla.lang.get('blocks.order_options.subtitle');
|
|
47
|
+
this.submitLabel = salla.lang.get('blocks.order_options.continue');
|
|
48
|
+
this.totalLabel = salla.lang.get('blocks.order_options.total');
|
|
49
|
+
this.requiredMessage = salla.lang.get('blocks.order_options.required_message');
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Open the modal. Resolves with selections on submit; rejects on dismiss.
|
|
53
|
+
* `onSubmit` fires sync in the submit click (for Apple Pay user-gesture).
|
|
54
|
+
* `paymentMode: 'apple-pay'` swaps the footer button for <apple-pay-button>.
|
|
55
|
+
*/
|
|
56
|
+
async open(payload) {
|
|
57
|
+
// Normalize here, not in the shared salla-product-options: text/number order options ship no
|
|
58
|
+
// `details`, which product-options dereferences unguarded.
|
|
59
|
+
this.orderOptions = (Array.isArray(payload.orderOptions) ? payload.orderOptions : [])
|
|
60
|
+
.map((o) => ({ ...o, details: o.details ?? [] }));
|
|
61
|
+
this.basePrice = Number(payload.basePrice) || 0;
|
|
62
|
+
this.liveTotal = this.basePrice + this.seedOptionsPrice(this.orderOptions);
|
|
63
|
+
this.isSubmitting = false;
|
|
64
|
+
this.sessionId++;
|
|
65
|
+
this.optionsRefs.clear();
|
|
66
|
+
this.submitCallback = payload.onSubmit ?? null;
|
|
67
|
+
this.paymentMode = payload.paymentMode ?? 'default';
|
|
68
|
+
await this.modal?.open();
|
|
69
|
+
this.attachChangeListener();
|
|
70
|
+
return new Promise((resolve, reject) => {
|
|
71
|
+
this.resolveFn = resolve;
|
|
72
|
+
this.rejectFn = reject;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async close() {
|
|
76
|
+
await this.modal?.close();
|
|
77
|
+
}
|
|
78
|
+
/** Sync walk of inputs — avoids `await` through the @Method that would consume the AP user gesture. */
|
|
79
|
+
collectOrderOptionsSync() {
|
|
80
|
+
const result = [];
|
|
81
|
+
for (const [, el] of this.optionsRefs) {
|
|
82
|
+
if (!el)
|
|
83
|
+
continue;
|
|
84
|
+
const inputs = el.querySelectorAll('[name^="options["],[name*="[options]["]');
|
|
85
|
+
inputs.forEach((input) => {
|
|
86
|
+
if (input instanceof HTMLInputElement && (input.type === 'radio' || input.type === 'checkbox') && !input.checked) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const match = input.name.match(/(?:^|\[)options\]?\[(\d+)\]/);
|
|
90
|
+
if (!match)
|
|
91
|
+
return;
|
|
92
|
+
const raw = input.value;
|
|
93
|
+
if (raw === '' || raw === null || raw === undefined)
|
|
94
|
+
return;
|
|
95
|
+
const numeric = Number(raw);
|
|
96
|
+
result.push({
|
|
97
|
+
id: Number(match[1]),
|
|
98
|
+
value: Number.isFinite(numeric) && raw === String(numeric) ? numeric : raw,
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
/** Sync native validity — keeps the AP user gesture intact. */
|
|
105
|
+
validateSync() {
|
|
106
|
+
let pass = true;
|
|
107
|
+
for (const [, el] of this.optionsRefs) {
|
|
108
|
+
if (!el)
|
|
109
|
+
continue;
|
|
110
|
+
const requiredInputs = el.querySelectorAll('[required]');
|
|
111
|
+
requiredInputs.forEach((input) => {
|
|
112
|
+
// Mirror salla-product-options.reportValidity(): skip hidden/disabled inputs so a
|
|
113
|
+
// required field in a `.hidden` conditional container can't silently block submit.
|
|
114
|
+
if (input.disabled || input.closest('.hidden'))
|
|
115
|
+
return;
|
|
116
|
+
if ('reportValidity' in input && !input.reportValidity())
|
|
117
|
+
pass = false;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return pass;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Sum the per-quantity fee (total_price = additional_price × qty) of any pre-selected details.
|
|
124
|
+
* Uses total_price so the total scales with product quantity; falls back to the per-unit
|
|
125
|
+
* additional_price only when total_price is absent. (CHOD-13172)
|
|
126
|
+
*/
|
|
127
|
+
seedOptionsPrice(orderOptions) {
|
|
128
|
+
let sum = 0;
|
|
129
|
+
orderOptions.forEach((opt) => {
|
|
130
|
+
(opt.details || []).forEach((d) => {
|
|
131
|
+
if (d.is_selected)
|
|
132
|
+
sum += Number(d.total_price ?? d.additional_price) || 0;
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
return sum;
|
|
136
|
+
}
|
|
137
|
+
/** salla.event.on is global — attach per open, detach on close to avoid stacking. */
|
|
138
|
+
attachChangeListener() {
|
|
139
|
+
this.detachChangeListener();
|
|
140
|
+
this.changeHandler = () => this.recomputeTotal();
|
|
141
|
+
salla.event.on('product-options::change', this.changeHandler);
|
|
142
|
+
}
|
|
143
|
+
detachChangeListener() {
|
|
144
|
+
if (!this.changeHandler)
|
|
145
|
+
return;
|
|
146
|
+
salla.event.off('product-options::change', this.changeHandler);
|
|
147
|
+
this.changeHandler = null;
|
|
148
|
+
}
|
|
149
|
+
async recomputeTotal() {
|
|
150
|
+
let selectedPrice = 0;
|
|
151
|
+
for (const [, el] of this.optionsRefs) {
|
|
152
|
+
if (!el)
|
|
153
|
+
continue;
|
|
154
|
+
const selected = typeof el.getSelectedOptions === 'function'
|
|
155
|
+
? await el.getSelectedOptions()
|
|
156
|
+
: [];
|
|
157
|
+
(selected || []).forEach((s) => {
|
|
158
|
+
// total_price already includes the product-quantity multiplier (CHOD-13172).
|
|
159
|
+
selectedPrice += Number(s.total_price ?? s.additional_price) || 0;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
this.liveTotal = this.basePrice + selectedPrice;
|
|
163
|
+
}
|
|
164
|
+
handleSubmit() {
|
|
165
|
+
if (this.isSubmitting)
|
|
166
|
+
return;
|
|
167
|
+
if (!this.validateSync()) {
|
|
168
|
+
salla.notify?.error?.(this.requiredMessage);
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
this.isSubmitting = true;
|
|
172
|
+
const orderOptions = this.collectOrderOptionsSync();
|
|
173
|
+
const total = Math.round(this.liveTotal * 100) / 100;
|
|
174
|
+
// Fire onSubmit BEFORE any await — Apple Pay needs the user gesture.
|
|
175
|
+
try {
|
|
176
|
+
this.submitCallback?.(orderOptions, total);
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
salla?.logger?.warn?.('order-options modal onSubmit threw', err);
|
|
180
|
+
}
|
|
181
|
+
this.resolveFn?.({ orderOptions });
|
|
182
|
+
this.resolveFn = null;
|
|
183
|
+
this.rejectFn = null;
|
|
184
|
+
this.submitCallback = null;
|
|
185
|
+
this.detachChangeListener();
|
|
186
|
+
this.modal?.close().then(() => this.reset());
|
|
187
|
+
this.isSubmitting = false;
|
|
188
|
+
}
|
|
189
|
+
/** Clear options on close so the inner <salla-product-options> unmounts. */
|
|
190
|
+
reset() {
|
|
191
|
+
this.orderOptions = [];
|
|
192
|
+
this.optionsRefs.clear();
|
|
193
|
+
this.liveTotal = 0;
|
|
194
|
+
}
|
|
195
|
+
render() {
|
|
196
|
+
// salla.money returns HTML (sicon-sar icon) → render via innerHTML. Round
|
|
197
|
+
// first so floating-point sum doesn't show as 1174.3799999999999.
|
|
198
|
+
const totalHtml = salla.money(Math.round(this.liveTotal * 100) / 100);
|
|
199
|
+
return (h("salla-modal", { key: 'e84a40e1a27447d58ca5651a7ed76cbcf886495c', ref: el => (this.modal = el), class: "s-order-options-modal-host", width: "md", "modal-title": this.title, onModalVisibilityChanged: (e) => {
|
|
200
|
+
if (!e.detail)
|
|
201
|
+
this.handleClose();
|
|
202
|
+
} }, h("div", { key: 'fafa3cdeb22787d4a02f3fc8afb70770e1c3b4b5', class: "s-order-options-modal-body" }, h("p", { key: 'c563c24e1b8744f3248328ec16a18c5a668e7949', class: "s-order-options-modal-subtitle" }, this.subtitle), h("div", { key: '475599cc47435b077d2321573328321888e60aa6', class: "s-order-options-modal-fields" }, this.orderOptions.length > 0 && (h("salla-product-options", { key: this.sessionId, ref: el => {
|
|
203
|
+
if (!el)
|
|
204
|
+
return;
|
|
205
|
+
this.optionsRefs.set('order-options', el);
|
|
206
|
+
// Without seeding, first multi-select toggle wipes pre-selected defaults.
|
|
207
|
+
el.seedSelectedOptions?.();
|
|
208
|
+
}, "product-id": `order-options-${this.orderOptions[0]?.id}`, "unique-key": "order-options", options: JSON.stringify(this.orderOptions), "hide-out-label": "1", "no-padding": true })))), h("div", { key: 'e00641853937f745c8cc798c7f9e15b389faf540', slot: "footer", class: "s-order-options-modal-footer" }, this.paymentMode === 'apple-pay' ? (h("div", { class: "s-order-options-modal-apple-pay-wrap" }, h("div", { class: "s-order-options-modal-apple-pay-total" }, h("span", { class: "s-order-options-modal-apple-pay-label" }, this.totalLabel), h("span", { class: "s-order-options-modal-apple-pay-amount", innerHTML: totalHtml })), h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', buttonstyle: "black", type: "buy", class: "s-order-options-modal-apple-pay", onClick: () => this.handleSubmit() }))) : (h("salla-button", { type: "button", color: "primary", fill: "solid", width: "wide", loading: this.isSubmitting, onClick: () => this.handleSubmit() }, h("span", { class: "s-order-options-modal-cta-content" }, h("span", { class: "s-order-options-modal-cta-text" }, this.submitLabel), h("span", { class: "s-order-options-modal-cta-total", innerHTML: totalHtml })))))));
|
|
209
|
+
}
|
|
210
|
+
get host() { return getElement(this); }
|
|
211
|
+
};
|
|
212
|
+
SallaOrderOptionsModal.style = sallaOrderOptionsModalCss;
|
|
213
|
+
|
|
214
|
+
var Heart = `<!-- Generated by IcoMoon.io -->
|
|
215
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
216
|
+
<title>heart</title>
|
|
217
|
+
<path d="M23.333 2.267c-3.547 0-5.779 1.605-7.333 3.061-1.555-1.456-3.787-3.061-7.333-3.061-5.955 0-8.667 5.045-8.667 9.733 0 8.503 10.147 14.735 15.513 16.841 0.156 0.061 0.321 0.092 0.487 0.092s0.331-0.031 0.487-0.092c5.367-2.107 15.513-8.339 15.513-16.841 0-4.688-2.712-9.733-8.667-9.733zM16 26.161c-5.537-2.309-13.333-7.799-13.333-14.161 0-3.517 1.856-7.067 6-7.067 2.983 0 4.656 1.451 6.384 3.203 0.5 0.508 1.399 0.508 1.899 0 1.728-1.752 3.401-3.203 6.384-3.203 4.144 0 6 3.549 6 7.067 0 6.363-7.796 11.852-13.333 14.161z"></path>
|
|
218
|
+
</svg>
|
|
219
|
+
`;
|
|
220
|
+
|
|
221
|
+
const sallaProductCardCss = "/*!twlt*/.s-product-card-image::before{font-family:\"sallaicons\";content:\"\\ec1f\" !important}.s-product-card-content-pie-svg circle{transition:stroke-dashoffset 1s linear;-webkit-transition:stroke-dashoffset 1s linear;-moz-transition:stroke-dashoffset 1s linear;-ms-transition:stroke-dashoffset 1s linear;-o-transition:stroke-dashoffset 1s linear;stroke:#E8EDF2;stroke-width:2px;stroke-linecap:round;fill:none}.s-product-card-content-pie-svg-bar{stroke:var(--color-primary) !important;stroke-dasharray:100 100;stroke-dashoffset:100}.text-xl{font-size:1.25rem;line-height:1.75rem}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}.has-error .s-form-control,.has-error .s-tel-input-control,.has-error .s-datetime-picker-input{border-color:#ff443a;color:#ff443a}.s-form-control{display:block;width:100%;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-form-control:focus{border-color:var(--color-primary);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.s-product-card-entry{position:relative;display:flex;height:100%;justify-content:space-between;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-product-card-shadow:hover{box-shadow:5px 10px 30px #2b2d340d}.s-product-card-out-of-stock img.loaded{--tw-grayscale:grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-product-card-overlay{position:absolute;top:0px;bottom:0px;left:0px;right:0px;--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));opacity:0.5;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:700ms}.s-product-card-overlay:hover{opacity:0.4}.s-product-card-vertical{flex-direction:column}.s-product-card-vertical .s-product-card-image{flex:1 1 0%;border-top-left-radius:var(--s-radius, 0.25rem);border-top-right-radius:var(--s-radius, 0.25rem)}.s-product-card-vertical .s-product-card-wishlist-btn{position:absolute;top:0.5rem;right:0.5rem;opacity:0.75}.s-product-card-vertical .s-product-card-wishlist-btn:hover{opacity:1}@media (min-width: 768px){.s-product-card-vertical .s-product-card-wishlist-btn{right:0.5rem}}.s-product-card-vertical .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.5rem;right:unset}@media (min-width: 768px){.s-product-card-vertical .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.5rem;right:unset}}.s-product-card-minimal .s-product-card-wishlist-btn{position:absolute;top:0px;right:0px;opacity:0.75}.s-product-card-minimal .s-product-card-wishlist-btn:hover{opacity:1}@media (min-width: 768px){.s-product-card-minimal .s-product-card-wishlist-btn{right:0px}}.s-product-card-minimal .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;right:unset}@media (min-width: 768px){.s-product-card-minimal .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;right:unset}}.s-product-card-minimal .s-product-card-image{width:8rem}@media (min-width: 640px){.s-product-card-minimal .s-product-card-image{width:14rem}}@media (min-width: 1024px){.s-product-card-minimal .s-product-card-image{width:7rem}}.s-product-card-minimal .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.s-product-card-minimal .s-product-card-content{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden;padding:1.25rem}.s-product-card-minimal .s-product-card-wishlist-btn button{margin:0px;background-color:transparent}.s-product-card-minimal .s-product-card-wishlist-btn button svg,.s-product-card-full-image .s-product-card-wishlist-btn button svg{height:1rem;width:1rem;fill:#fff}.s-product-card-vertical .s-product-card-wishlist-btn button{margin:0px;--tw-bg-opacity:1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1)) !important}.s-product-card-wishlist-btn button:hover svg{fill:#4b5563}.s-product-card-fit-height .s-product-card-image{height:11rem;max-height:15rem}.s-product-card-quantity{position:absolute;bottom:0.25rem;left:50%;z-index:1;max-width:calc(100% - 60px);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-quantity{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-promotion-title{position:absolute;top:1rem;left:0px;z-index:1;max-width:calc(100% - 60px);border-top-right-radius:var(--s-radius, 0.25rem);border-bottom-right-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-promotion-title{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-promotion-title:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px;left:unset;border-top-left-radius:var(--s-radius, 0.25rem);border-bottom-left-radius:var(--s-radius, 0.25rem);border-top-right-radius:0px;border-bottom-right-radius:0px}.s-product-card-out-badge{position:absolute;bottom:0.5rem;left:50%;z-index:1;max-width:calc(100% - 60px);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(153 153 153 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-out-badge{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-image{position:relative;height:100%;width:100%;flex-shrink:0;overflow:hidden;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-product-card-image::before{position:absolute;top:50%;left:50%;display:inline-block;--tw-translate-x:-50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:1.875rem;line-height:2.25rem;content:var(--tw-content);--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-product-card-image:hover{opacity:0.9}.s-product-card-image img{height:100%;width:100%;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}.s-product-card-image img.lazy{opacity:0}.s-product-card-image img.loaded{position:relative;opacity:1}.s-product-card-content{position:relative;display:flex;flex-direction:column;padding:0.75rem}@media (min-width: 640px){.s-product-card-content{padding:1.25rem}}.s-product-card-content-title{margin-bottom:0.625rem;max-width:100%;line-height:1.5rem}.s-product-card-content-subtitle{margin-bottom:0.625rem;font-size:0.875rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-product-card-special .s-product-card-content-main,special .s-product-card-content-sub{padding-right:6rem}.s-product-card-special .s-product-card-content-main:where([dir=\"rtl\"],[dir=\"rtl\"] *),special .s-product-card-content-sub:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:6rem;padding-right:0px}.s-product-card-donation-input{flex:1 1 0%}.s-product-card-donation-input label{margin-bottom:0.625rem;display:block;font-size:0.875rem;line-height:1.25rem}.s-product-card-donation-input label span{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-product-card-content-title a{display:block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-product-card-content-title a:hover{color:var(--color-primary)}.s-product-card-content-sub{margin-bottom:1.25rem;display:flex;width:100%;align-items:center;justify-content:space-between}.s-product-card-rating{display:flex;align-items:center}.s-product-card-rating>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem * var(--tw-space-x-reverse));margin-left:calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-product-card-rating{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-product-card-rating:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-product-card-rating span svg{margin-bottom:3px;height:1rem;width:1rem;fill:#fbbf24}.s-product-card-content-footer{margin-top:auto;display:flex;align-items:center}.s-product-card-sale-price>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem * var(--tw-space-x-reverse));margin-left:calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-product-card-sale-price:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-product-card-sale-price h4{display:inline-block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-product-card-sale-price span{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-product-card-starting-price{display:flex;width:100%;align-items:center;justify-content:space-between}.s-product-card-starting-price h4{display:inline-block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-product-card-price{font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-product-card-image-cover{object-fit:cover}.s-product-card-image-contain{object-fit:contain}.s-product-card-content-pie{position:absolute;top:0.625rem;right:1.25rem;display:flex;height:72px;width:72px;align-items:center;justify-content:center;color:var(--color-primary)}.s-product-card-content-pie:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:1.25rem;right:unset}.s-product-card-content-pie span{position:absolute;top:43%;left:50%;display:flex;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:0.75rem;line-height:1rem;line-height:1;--tw-text-opacity:1;color:rgb(124 128 130 / var(--tw-text-opacity, 1))}.s-product-card-content-pie span b{font-size:1.25rem;line-height:1.75rem;font-weight:700;color:var(--color-primary)}.s-product-card-content-extra-padding{padding-right:6rem}.s-product-card-content-extra-padding:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:6rem;padding-right:0px}.s-product-card-wishlist-added svg{fill:#ef4444}.s-product-card-horizontal .s-product-card-image{height:auto;width:8rem}@media (min-width: 640px){.s-product-card-horizontal .s-product-card-image{width:14rem}}.s-product-card-horizontal .s-product-card-image:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:var(--s-radius, 0.25rem);border-bottom-left-radius:var(--s-radius, 0.25rem)}.s-product-card-horizontal .s-product-card-image:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:var(--s-radius, 0.25rem);border-bottom-right-radius:var(--s-radius, 0.25rem)}.s-product-card-horizontal .s-product-card-quantity{max-width:unset}.s-product-card-horizontal .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.s-product-card-horizontal .s-product-card-promotion-title{max-width:unset}.s-product-card-horizontal .s-product-card-out-badge{max-width:unset}.s-product-card-horizontal .s-product-card-content{margin-bottom:0.625rem;width:100%}.s-product-card-full-image{height:20rem;overflow:hidden}@media (min-width: 768px){.s-product-card-full-image{height:auto}}.s-product-card-full-image .s-product-card-content{position:absolute;bottom:0px;z-index:10;width:100%;padding-left:2.5rem;padding-right:2.5rem;padding-top:1.25rem;padding-bottom:1.75rem}.s-product-card-full-image img{position:relative;height:100%;width:100%;overflow:hidden;border-radius:var(--s-radius, 0.25rem)}.s-product-card-full-image img:hover{opacity:0.9}.s-product-card-full-image .s-product-card-image a{height:100%;width:100%}.s-product-card-full-image .s-product-card-content-title a{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-content-title a:hover{color:var(--color-primary)}.s-product-card-full-image .s-product-card-content-subtitle{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-price{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-sale-price{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-sale-price span{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-image-full{width:100%}.s-product-card-compact{display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:0.75rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0px;padding-right:0px;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-product-card-compact .s-product-card-content-footer{margin-top:0px;flex-shrink:0}.s-product-card-compact .s-add-product-button-compact salla-button .s-button-btn{height:2rem;border-radius:0.375rem;border-width:1px;border-color:var(--color-primary);background-color:transparent;padding-left:0.75rem;padding-right:0.75rem;font-size:0.75rem;line-height:1rem;font-weight:500;color:var(--color-primary);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-product-card-compact .s-add-product-button-compact salla-button .s-button-btn:hover{border-color:var(--color-primary);background-color:var(--color-primary);--tw-bg-opacity:0.1;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content{min-width:0px;flex:1 1 0%;padding:0px;text-align:right}.s-product-card-compact .s-product-card-content-main{margin-bottom:0.25rem}.s-product-card-compact .s-product-card-content-title{font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.25;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;display:block}.s-product-card-compact .s-product-card-content-subtitle{margin-top:0.25rem;display:none;font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-sub{display:flex;align-items:center;justify-content:flex-start;gap:0.5rem;font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-sub h4{margin:0px;font-weight:400}.s-product-card-compact .s-product-card-content-sub .s-product-card-price{font-weight:400}.s-product-card-compact .s-product-card-image{height:5rem;width:5rem;flex-shrink:0;border-radius:0.375rem}.s-product-card-compact .s-product-card-image img{height:100%;width:100%;border-radius:0.375rem;object-fit:cover}.s-product-card-compact .s-product-card-promotion-title{display:none}";
|
|
222
|
+
|
|
223
|
+
const SallaProductCard = class {
|
|
224
|
+
constructor(hostRef) {
|
|
225
|
+
registerInstance(this, hostRef);
|
|
226
|
+
// Store configs
|
|
227
|
+
salla.onReady(() => {
|
|
228
|
+
this.fitImageHeight = salla.config.get('store.settings.product.fit_type');
|
|
229
|
+
salla.wishlist.event.onAdded((_res, id) => this.toggleFavoriteIcon(true, id));
|
|
230
|
+
salla.wishlist.event.onRemoved((_res, id) => this.toggleFavoriteIcon(false, id));
|
|
231
|
+
this.placeholder = salla.url.asset(salla.config.get('theme.settings.placeholder'));
|
|
232
|
+
});
|
|
233
|
+
// Language
|
|
234
|
+
salla.lang.onLoaded(() => {
|
|
235
|
+
this.remained = salla.lang.get('pages.products.remained');
|
|
236
|
+
this.donationAmount = salla.lang.get('pages.products.donation_amount');
|
|
237
|
+
this.startingPrice = salla.lang.get('pages.products.starting_price');
|
|
238
|
+
this.addToCart = salla.lang.get('pages.cart.add_to_cart');
|
|
239
|
+
this.outOfStock = salla.lang.get('pages.products.out_of_stock');
|
|
240
|
+
});
|
|
241
|
+
// Parse product data
|
|
242
|
+
if (!this.product) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
try {
|
|
246
|
+
this.productData = typeof this.product == 'object' ? this.product : JSON.parse(this.product);
|
|
247
|
+
}
|
|
248
|
+
catch (e) {
|
|
249
|
+
salla.log('Bad json passed via product prop');
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// Private Methods
|
|
253
|
+
initCircleBar() {
|
|
254
|
+
let qty = this.productData.quantity, total = this.productData.quantity > 100 ? this.productData.quantity * 2 : 100, roundPercent = (qty / total) * 100, bar = this.pie.querySelector('.s-product-card-content-pie-svg-bar'), strokeDashOffsetValue = 100 - roundPercent;
|
|
255
|
+
bar.style.strokeDashoffset = strokeDashOffsetValue;
|
|
256
|
+
}
|
|
257
|
+
toggleFavoriteIcon(isAdded = true, id = null) {
|
|
258
|
+
if (id && id !== this.productData.id) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
this.wishlistBtn?.classList.toggle('s-product-card-wishlist-added', isAdded);
|
|
262
|
+
}
|
|
263
|
+
isInWishlist() {
|
|
264
|
+
return salla.storage.get('salla::wishlist', []).includes(this.productData?.id);
|
|
265
|
+
}
|
|
266
|
+
async handleWishlistClick() {
|
|
267
|
+
const wasInWishlist = this.isInWishlist();
|
|
268
|
+
this.toggleFavoriteIcon(!wasInWishlist);
|
|
269
|
+
try {
|
|
270
|
+
await salla.wishlist.toggle(this.productData.id);
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
this.toggleFavoriteIcon(wasInWishlist);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
formatDate(date) {
|
|
277
|
+
let d = new Date(date);
|
|
278
|
+
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
279
|
+
}
|
|
280
|
+
getProductBadge() {
|
|
281
|
+
if (this.productData.promotion_title) {
|
|
282
|
+
return h("div", { class: "s-product-card-promotion-title" }, this.productData.promotion_title);
|
|
283
|
+
}
|
|
284
|
+
if (this.showQuantity && this.productData?.quantity) {
|
|
285
|
+
return h("div", { class: "s-product-card-quantity" }, this.remained, " ", salla.helpers.number(this.productData?.quantity));
|
|
286
|
+
}
|
|
287
|
+
if (this.showQuantity && this.productData?.is_out_of_stock) {
|
|
288
|
+
return h("div", { class: "s-product-card-out-badge" }, this.outOfStock);
|
|
289
|
+
}
|
|
290
|
+
return '';
|
|
291
|
+
}
|
|
292
|
+
getPriceFormat(price) {
|
|
293
|
+
if (!price || price == 0) {
|
|
294
|
+
return salla.config.get('store.settings.product.show_price_as_dash') ? '-' : '';
|
|
295
|
+
}
|
|
296
|
+
return salla.money(price);
|
|
297
|
+
}
|
|
298
|
+
getProductPrice() {
|
|
299
|
+
if (this.productData.is_on_sale) {
|
|
300
|
+
return h("div", { class: "s-product-card-sale-price" }, h("h4", { innerHTML: this.getPriceFormat(this.productData.sale_price) }), h("span", { innerHTML: this.getPriceFormat(this.productData?.regular_price) }));
|
|
301
|
+
}
|
|
302
|
+
if (this.productData.starting_price) {
|
|
303
|
+
return h("div", { class: "s-product-card-starting-price" }, h("p", null, this.startingPrice), h("h4", { innerHTML: this.getPriceFormat(this.productData?.starting_price) }));
|
|
304
|
+
}
|
|
305
|
+
return h("h4", { class: "s-product-card-price", innerHTML: this.getPriceFormat(this.productData?.price) });
|
|
306
|
+
}
|
|
307
|
+
render() {
|
|
308
|
+
const classes = {
|
|
309
|
+
's-product-card-entry': true,
|
|
310
|
+
's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
|
|
311
|
+
's-product-card-horizontal': this.horizontal && !this.fullImage && !this.minimal,
|
|
312
|
+
's-product-card-fit-height': this.fitImageHeight && !this.isSpecial && !this.fullImage && !this.minimal,
|
|
313
|
+
's-product-card-special': this.isSpecial,
|
|
314
|
+
's-product-card-full-image': this.fullImage,
|
|
315
|
+
's-product-card-minimal': this.minimal,
|
|
316
|
+
's-product-card-compact': this.compact,
|
|
317
|
+
's-product-card-donation': this.productData?.donation,
|
|
318
|
+
's-product-card-shadow': this.shadowOnHover,
|
|
319
|
+
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
320
|
+
};
|
|
321
|
+
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
322
|
+
return (h(Host, { key: 'c5a6d2bc2fcf23da1a41ab8b19b2e981fb111e30', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: 'e8d5105e4dbe367c612d62ef1dd6c95d04f440b0', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '8714997fcb48ef0eaabdf0a52cb775514e53db56', ...hrefProp }, h("img", { key: 'eebd3c1dde0894037a7723c46e2f07f6a5aef939', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
323
|
+
? 'contain'
|
|
324
|
+
: this.fitImageHeight
|
|
325
|
+
? this.fitImageHeight
|
|
326
|
+
: '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 && h("a", { key: '72e240315320e976dcad8d3f027711b9c1d7bcf1', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
327
|
+
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() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '2f0186ffc102488824cd7c346f4e07439474fc26', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
328
|
+
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
329
|
+
: '', h("div", { key: 'd50ea0726d25bf3b551050e906fc615bc682e694', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: 'e4f39676d661a01d1aa6352cac7be6e764fa8687', class: "s-product-card-content-title" }, h("a", { key: '0aacc2e00a0db730d1e803da34336085082df75d', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
330
|
+
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
331
|
+
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
332
|
+
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
333
|
+
[h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", h("span", null, "*")), h("input", { type: "text", onInput: e => {
|
|
334
|
+
salla.helpers.inputDigitsOnly(e.target);
|
|
335
|
+
this.addBtn.donatingAmount = e.target.value;
|
|
336
|
+
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
337
|
+
: '')]
|
|
338
|
+
: '', h("div", { key: '445a1e16fee6ebb6ab5012aca324d3845991d13e', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
339
|
+
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
|
|
340
|
+
: ''), this.isSpecial && this.productData.discount_ends
|
|
341
|
+
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
342
|
+
: '', !this.hideAddBtn && !this.compact ?
|
|
343
|
+
h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { fill: "outline", width: "wide", ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
|
|
344
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick(), "data-id": "{{ product.id }}" }, h("span", { class: "text-xl", innerHTML: Heart }))
|
|
345
|
+
: '')
|
|
346
|
+
: ''), !this.hideAddBtn && this.compact ?
|
|
347
|
+
h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)))
|
|
348
|
+
: ''));
|
|
349
|
+
}
|
|
350
|
+
componentDidLoad() {
|
|
351
|
+
document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
|
|
352
|
+
if (this.productData?.quantity && this.isSpecial) {
|
|
353
|
+
this.initCircleBar();
|
|
354
|
+
}
|
|
355
|
+
if (!salla.config.isGuest() && salla.storage.get('salla::wishlist', []).includes(this.productData?.id)) {
|
|
356
|
+
this.toggleFavoriteIcon();
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
static get assetsDirs() { return ["assets"]; }
|
|
360
|
+
get host() { return getElement(this); }
|
|
361
|
+
};
|
|
362
|
+
SallaProductCard.style = sallaProductCardCss;
|
|
363
|
+
|
|
364
|
+
export { SallaOrderOptionsModal as salla_order_options_modal, SallaProductCard as salla_product_card };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CjQzkU95.js';
|
|
5
5
|
import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -33,7 +33,7 @@ class LatestRequest {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const sallaOrderShipmentsCss = "
|
|
36
|
+
const sallaOrderShipmentsCss = "/*!twlt*/:host{display:block}.s-order-shipments-wrapper{display:block}.s-order-shipments-empty{display:none}.s-order-shipments-list{display:flex;flex-wrap:wrap;gap:1rem}.s-order-shipments-card{display:flex;min-width:16rem;flex:1 1 0%;flex-basis:25%;flex-direction:column;gap:0.75rem;border-radius:1rem;background-color:var(--color-surface);padding:1rem;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-order-shipments-header{display:flex;gap:0.5rem}.s-order-shipments-title{font-size:15px;font-weight:700;color:var(--color-text-primary)}.s-order-shipments-logo{height:3rem;width:3rem;flex-shrink:0;border-radius:9999px;object-fit:cover}.s-order-shipments-info{display:flex;flex-wrap:wrap;align-items:center;column-gap:0.75rem;row-gap:0.5rem;font-size:13px;color:var(--color-text-secondary)}.s-order-shipments-tracking{display:inline-flex;align-items:center;gap:0.25rem}.s-order-shipments-placeholder{color:var(--color-text-secondary)}.s-order-shipments-copy{display:inline-flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;padding:0px;color:currentColor}.s-order-shipments-copy svg{height:0.875rem;width:0.875rem;fill:currentColor}.s-order-shipments-items{display:flex;gap:0.5rem;overflow-x:auto}.s-order-shipments-item{display:inline-flex;height:4.5rem;width:4.5rem;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:0.75rem;border-width:1px;border-color:var(--color-border);padding:0.375rem}.s-order-shipments-item img{display:block;height:100%;width:100%;object-fit:contain}.s-order-shipments-item-name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;padding-left:0.25rem;padding-right:0.25rem;text-align:center;font-size:10px;line-height:1.25;color:var(--color-text-secondary)}";
|
|
37
37
|
|
|
38
38
|
const SallaOrderShipments = class {
|
|
39
39
|
constructor(hostRef) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CjQzkU95.js';
|
|
5
5
|
import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
|
|
6
|
-
import {
|
|
6
|
+
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
7
7
|
|
|
8
8
|
var iconFileArchive = `<!-- 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">
|
|
@@ -26,7 +26,7 @@ var iconCreditCard = `<!-- Generated by IcoMoon.io -->
|
|
|
26
26
|
</svg>
|
|
27
27
|
`;
|
|
28
28
|
|
|
29
|
-
const sallaOrderSummaryCss = "
|
|
29
|
+
const sallaOrderSummaryCss = "/*!twlt*/:host{display:block}.s-order-summary-wrapper{display:grid;gap:0.625rem}.s-order-summary-item{border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));padding:1.25rem;text-align:start}.s-order-summary-item-title{font-weight:bold;margin-bottom:1.25rem;unicode-bidi:plaintext}.s-order-summary-item-download{font-size:0.875rem;line-height:1.25rem;font-weight:700;color:var(--color-primary)}.s-order-summary-code-item-wrapper{margin-bottom:0.5rem;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-border-opacity:1;border-bottom-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-bottom:0.5rem}.s-order-summary-code-item-wrapper:last-child{margin-bottom:0px;border-width:0px;padding-bottom:0px}@media (min-width: 768px){.s-order-summary-code-item-wrapper{display:flex}}.s-order-summary-code-item-wrapper p{display:flex;align-items:center;font-size:1rem;line-height:1.5rem;line-height:1}.s-order-summary-digital-item-wrapper{display:flex;justify-content:space-between;padding-top:1rem;padding-bottom:1rem}.s-order-summary-digital-item-wrapper:last-child{padding-bottom:0px}.s-order-summary-item-copy-button span svg{pointer-events:none;display:inline;height:12px;width:12px;vertical-align:baseline}.s-order-summary-item-copy-button span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-item-copy-button span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-code-item-wrapper p span svg{display:inline;height:1.25rem;width:1.25rem;fill:#6b7280;vertical-align:baseline}.s-order-summary-code-item-wrapper p span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-code-item-wrapper p span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-digital-item-wrapper div span:last-of-type{display:inline-block}.s-order-summary-digital-item-wrapper span svg{display:inline-block;height:14px;width:14px;vertical-align:baseline}.s-order-summary-digital-item-wrapper span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-digital-item-wrapper span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-item-copy-button.copied .s-button-text{--tw-text-opacity:1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.s-order-summary-digital-item-wrapper .s-order-summary-item-download span{position:relative;top:1px}.s-order-summary-digital-item-wrapper .s-order-summary-item-download span svg{margin-left:0px;margin-right:0px;height:18px;width:18px;--tw-translate-y:2px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:var(--color-primary)}";
|
|
30
30
|
|
|
31
31
|
const SallaOrderSummary = class {
|
|
32
32
|
constructor(hostRef) {
|
|
@@ -85,7 +85,7 @@ const SallaOrderSummary = class {
|
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
return (h("ul", { key: 'd699111d423dbb47469d813f64e5f956f5860522', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
88
|
-
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ?
|
|
88
|
+
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? iconCheck : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
89
89
|
this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
|
|
90
90
|
}
|
|
91
91
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CjQzkU95.js';
|
|
5
5
|
|
|
6
|
-
const sallaOrderTotalsCardCss = "
|
|
6
|
+
const sallaOrderTotalsCardCss = "/*!twlt*/:host{display:block}.s-order-totals-card-wrapper{display:block}.s-order-totals-card-panel{border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.s-order-totals-card-flow{display:flow-root}.s-order-totals-card-list{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-order-totals-card-list>.s-order-totals-card-row{border-bottom-width:1px}.s-order-totals-card-list>.s-order-totals-card-row:last-child{border-bottom-width:0px}.s-order-totals-card-row{display:block}.s-order-totals-card-row-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1.25rem;padding-bottom:1.25rem}.s-order-totals-card-label{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-order-totals-card-value{font-weight:500}.s-order-totals-card-discount{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-order-totals-card-tax-value{font-weight:500;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-order-totals-card-total{margin-left:-1.5rem;margin-right:-1.5rem;border-radius:0.375rem;background-color:var(--color-border);padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-total-label{font-size:1rem;line-height:1.5rem;font-weight:500}.s-order-totals-card-total-value{font-size:1rem;line-height:1.5rem;font-weight:500}.s-order-totals-card-refund{margin-left:-1.5rem;margin-right:-1.5rem;border-left-width:4px;--tw-border-opacity:1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-refund:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-left-width:0px;border-right-width:4px}.s-order-totals-card-refund-label{display:flex;align-items:center;gap:0.5rem;--tw-text-opacity:1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.s-order-totals-card-refund-icon{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-order-totals-card-refund-value{font-weight:500;--tw-text-opacity:1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}";
|
|
7
7
|
|
|
8
8
|
const SallaOrderTotalsCard = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CjQzkU95.js';
|
|
5
5
|
import { H as Helper } from './Helper-CBmYxrzX.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
8
|
-
const sallaOrdersCss = "
|
|
8
|
+
const sallaOrdersCss = "/*!twlt*/:host{display:block}.relative{position:relative}.table{display:table}.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-orders-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-orders-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-orders-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-orders-mobile-title{display:none}}.s-orders-reference-id{display:none}@media (min-width: 768px){.s-orders-reference-id{display:inline-block}}.s-orders-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-orders-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-orders-copy-to-clipboard-button{display:none}}.s-orders-copy-to-clipboard-button salla-button{position:relative}.s-orders-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-orders-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-orders-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-orders-status-container{margin-left:0px;margin-right:0px}}.s-orders-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-orders-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-orders-status-container i{margin-top:0.25rem}.s-orders-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-orders-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-orders-status-rated{font-size:1.125rem;line-height:1.75rem}.s-orders-status-rated:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:1rem}.s-orders-status-rated:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:1rem}.s-orders-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-orders-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-orders-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-orders-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-orders-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-orders-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-orders-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-orders-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-orders-table-head{display:table-header-group}}.s-orders-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-orders-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-orders-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-orders-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-orders-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-orders-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-orders-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-orders-table-tbody-tr-shadow:hover{box-shadow:5px 10px 30px #2b2d340d}.s-orders-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-orders-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-orders-table-tbody-tr-td{height:5rem;width:auto}.s-orders-table-tbody-tr-td:last-child{text-align:end}.s-orders-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-orders-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-orders-table-tbody-tr-td:first-child{font-weight:700}.s-orders-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem}@media (min-width: 768px){.s-orders-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-orders-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-orders-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-orders-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}";
|
|
9
|
+
|
|
10
|
+
const sallaInfiniteScrollCss = "/*!twlt*/.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-infinite-scroll-wrapper{margin-top:1rem;text-align:center}.s-infinite-scroll-last{margin:0px;text-align:center}.s-infinite-scroll-error{margin:0px;text-align:center}";
|
|
9
11
|
|
|
10
12
|
const SallaOrder = class {
|
|
11
13
|
constructor(hostRef) {
|
|
@@ -230,6 +232,6 @@ const SallaOrder = class {
|
|
|
230
232
|
}
|
|
231
233
|
get host() { return getElement(this); }
|
|
232
234
|
};
|
|
233
|
-
SallaOrder.style = sallaOrdersCss;
|
|
235
|
+
SallaOrder.style = sallaOrdersCss + sallaInfiniteScrollCss;
|
|
234
236
|
|
|
235
237
|
export { SallaOrder as salla_orders };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CjQzkU95.js';
|
|
5
5
|
|
|
6
|
-
const sallaPaymentsCss = "
|
|
6
|
+
const sallaPaymentsCss = "/*!twlt*/:host{display:block}.static{position:static}.s-payments-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:0.5rem}.s-payments-list:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-payments-list-item{display:flex;height:2rem;width:3rem;align-items:center;justify-content:center;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.25rem}.s-payments-list-item img{max-height:100%;object-fit:contain}.s-payments-sbc-image{height:1.5rem;border-radius:0.125rem;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-payments-sbc-image:hover{opacity:0.8}";
|
|
7
7
|
|
|
8
8
|
const SallaPayments = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CjQzkU95.js';
|
|
5
5
|
|
|
6
6
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -10,7 +10,7 @@ var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
|
10
10
|
</svg>
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
|
-
const sallaPlaceholderCss = "";
|
|
13
|
+
const sallaPlaceholderCss = "/*!twlt*/.inline{display:inline}.contents{display:contents}.s-bullet-delivery-placeholder.s-placeholder-wrapper{margin-top:1rem !important;margin-bottom:1rem !important}.s-loyalty-confirmation-modal-content .s-placeholder-title{margin-bottom:0.75rem}.s-loyalty-confirmation-modal-content .s-placeholder-icon svg b{--tw-text-opacity:1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.s-loyalty-confirmation-modal-content .s-placeholder-description{padding-left:1.25rem;padding-right:1.25rem}.s-placeholder-title{margin-bottom:0.25rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-placeholder-description{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-placeholder-icon{margin-bottom:1rem;fill:#e5e7eb}.s-placeholder-align-left{text-align:left}.s-placeholder-align-center{text-align:center}.s-placeholder-align-right{text-align:right}.s-placeholder-align-right>.s-placeholder-icon{display:flex;align-items:center;justify-content:flex-end}.s-placeholder-align-right>.s-placeholder-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){justify-content:flex-start}.s-placeholder-align-center>.s-placeholder-icon{display:flex;align-items:center;justify-content:center}.s-placeholder-icon-xs>svg{height:1.5rem;width:1.5rem}.s-placeholder-icon-sm>svg{height:2.5rem;width:2.5rem}.s-placeholder-icon-md>svg{height:3.5rem;width:3.5rem}.s-placeholder-icon-lg>svg{height:4rem;width:4rem}.s-placeholder-icon-xl>svg{height:5rem;width:5rem}.s-placeholder-icon-xxl>svg{height:6rem;width:6rem}.s-placeholder-icon-xxxl>svg{height:7rem;width:7rem}.s-placeholder-icon-xs>i{font-size:20px}.s-placeholder-icon-sm>i{font-size:35px}.s-placeholder-icon-md>i{font-size:45px}.s-placeholder-icon-lg>i{font-size:58px}.s-placeholder-icon-xl>i{font-size:75px}.s-placeholder-icon-xxl>i{font-size:85px}.s-placeholder-icon-xxxl>i{font-size:100px}.s-placeholder-wrapper{margin-top:3rem;margin-bottom:3rem;display:block}.s-scopes-wrap .s-placeholder-wrapper{display:flex;height:12rem;flex-direction:column;align-items:center;justify-content:center}";
|
|
14
14
|
|
|
15
15
|
const SallaPlaceholder = class {
|
|
16
16
|
constructor(hostRef) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CjQzkU95.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
import { a as arrowRight } from './arrow-right-B9q7ymSg.js';
|
|
7
7
|
|
|
8
|
-
const sallaPriceRangeCss = "
|
|
8
|
+
const sallaPriceRangeCss = "/*!twlt*/:host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}.relative{position:relative}.flex{display:flex}.w-full{width:100%}.max-w-xl{max-width:36rem}.items-center{align-items:center}.justify-center{justify-content:center}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-price-range-input{pointer-events:none;position:absolute;z-index:20;height:0.5rem;width:100%;cursor:pointer;appearance:none;opacity:0}.s-price-range-bar{position:absolute;left:0px;right:0px;bottom:0px;top:0px;z-index:10;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-price-range-bar-container{position:relative;z-index:10;height:0.5rem}.s-price-range-active-bar{position:absolute;top:0px;bottom:0px;z-index:20;border-radius:0.375rem;background-color:var(--color-primary)}.s-price-range-left-handle{position:absolute;top:0px;left:0px;z-index:30;margin-top:-0.25rem;margin-left:-0px;height:1rem;width:1rem;cursor:pointer;border-radius:9999px;background-color:var(--color-primary);--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-price-range-right-handle{position:absolute;top:0px;right:0px;z-index:30;margin-top:-0.25rem;margin-right:-0px;height:1rem;width:1rem;cursor:pointer;border-radius:9999px;background-color:var(--color-primary);--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-price-range-inputs{display:flex;align-items:center;justify-content:flex-start;gap:0.5rem;padding-top:1rem}.s-price-range-number-input{width:6rem;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:2.25rem;text-align:center;font-size:0.875rem;line-height:1.25rem}.s-price-range-number-input:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.s-price-range-gray-text{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-price-range-currency{pointer-events:none;position:absolute;top:0px;bottom:0px;left:0px;display:flex;align-items:center;padding-left:0.5rem;padding-right:0.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.s-price-range-currency{font-size:0.875rem;line-height:1.25rem}}.s-price-range-relative{position:relative}";
|
|
9
9
|
|
|
10
10
|
const SallaPriceRange = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CjQzkU95.js';
|
|
5
5
|
|
|
6
|
-
const sallaProductCardEmbedCss = "
|
|
6
|
+
const sallaProductCardEmbedCss = "/*!twlt*/@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}.visible{visibility:visible}.block{display:block}.flow-root{display:flow-root}.s-product-card-embed-card{display:block;max-width:12rem;shape-outside:margin-box}.s-product-card-embed-card custom-salla-product-card{--tw-shadow:0 0 28px 0px rgba(0 0 0 / .1);--tw-shadow-colored:0 0 28px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-product-card-embed-card-align-center{margin-left:auto;margin-right:auto}.s-product-card-embed-card-align-left{float:left;margin-right:1ch}.s-product-card-embed-card-align-right{float:right;margin-left:1ch}.s-product-card-embed-fallback{display:block}article:has(salla-product-card-embed)::after{clear:both;display:block;--tw-content:'';content:var(--tw-content)}";
|
|
7
7
|
|
|
8
8
|
const SallaProductCardEmbed = class {
|
|
9
9
|
constructor(hostRef) {
|