@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
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-BICKbbaT.js';
|
|
5
|
-
import { c as closeModals, f as formattedPointsJsx, i as isUnitOrder } from './functions-DBwN_PnC.js';
|
|
6
|
-
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
|
-
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
8
|
-
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
9
|
-
import { S as SITag } from './tag-cgSL_BIo.js';
|
|
10
|
-
import { e as email } from './mail-DzAIgzdz.js';
|
|
11
|
-
import { S as SICalendar } from './calendar-BkmanTR_.js';
|
|
12
|
-
import { S as SIiPhoneX } from './iphone-x-CciN5Q_x.js';
|
|
13
|
-
import { L as Location } from './location-BO5AoBAP.js';
|
|
14
|
-
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
15
|
-
|
|
16
|
-
const sallaLoyaltyProgramCss$1 = "@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";
|
|
17
|
-
|
|
18
|
-
const SallaLoyaltyHero = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
registerInstance(this, hostRef);
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return (h(Host, { key: '19347b04f3e2fc0cb836d9ecd6ebc398826aca95' }, h("section", { key: 'd992b7e5c6f8ccd14690b63f12de75791751d3b6', class: "s-loyalty-program-hero-container" }, h("div", { key: 'cf825f4b816979494f33c08383d10ad3b702db81', class: "s-loyalty-program-hero-background", style: {
|
|
24
|
-
backgroundImage: `url(${this.image})`,
|
|
25
|
-
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '5343c2d5b4924c75594143390624fb68c2f4e94f', class: {
|
|
26
|
-
's-loyalty-program-hero-content': true,
|
|
27
|
-
's-loyalty-program-hero-white': !!this.image,
|
|
28
|
-
's-loyalty-program-hero-gray': !this.image,
|
|
29
|
-
} }, h("div", { key: 'd0e05e9d51c05583ac8a12fa1ad53b328c3eeca7' }, h("h1", { key: '05a1b89d759a8391af6c46b4e54df00d2238091f', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: 'fc0d510acceccf3995c91b0d4dd920ea7d111e72', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '41cb521612af4f4a0b3d6fedbcc9bced4f8014f6', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '498075813fc055f742211520ab75961892ef8bc1', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: '44c09c20dd161053f77773ee1ca550df2acb3ad6', name: "action" }))), h("div", { key: '9e0b48babcdb5c36bdadbdfeb8d03008069c2cc6', class: "s-loyalty-program-hero-footer" }, h("div", { key: '82659f4658331af320986e78a54222dd4c199281', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '4565ba9bd31891fc806418ee4440117f2fdb7c56', name: "crosspoint" }))))));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
SallaLoyaltyHero.style = sallaLoyaltyProgramCss$1;
|
|
33
|
-
|
|
34
|
-
var SIStore = `<!-- Generated by IcoMoon.io -->
|
|
35
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
36
|
-
<title>store</title>
|
|
37
|
-
<path d="M27.25 16c-1.539-0.010-2.899-0.765-3.741-1.921l-0.009-0.013c-0.844 1.178-2.209 1.936-3.75 1.936s-2.906-0.758-3.741-1.922l-0.009-0.014c-0.844 1.178-2.209 1.936-3.75 1.936s-2.906-0.758-3.741-1.922l-0.009-0.014c-0.851 1.169-2.211 1.924-3.748 1.934h-0.002c-2.64-0.075-4.751-2.233-4.751-4.884 0-0.041 0.001-0.081 0.002-0.122l-0 0.006c0-0.086 0.011-0.169 0.032-0.249l-0.002 0.007 2-8c0.112-0.439 0.504-0.758 0.97-0.758h26c0.466 0 0.858 0.319 0.968 0.751l0.002 0.007 2 8c0.019 0.073 0.030 0.156 0.030 0.242v0c0.001 0.034 0.001 0.075 0.001 0.116 0 2.651-2.111 4.809-4.744 4.884l-0.007 0zM23.5 10c0.552 0 1 0.448 1 1v0c-0.006 0.069-0.010 0.149-0.010 0.23 0 1.522 1.234 2.756 2.756 2.756s2.756-1.234 2.756-2.756c0-0.040-0.001-0.080-0.003-0.12l0 0.006-1.782-7.116h-24.436l-1.782 7.116c0 0.003-0 0.007-0 0.011 0 1.544 1.217 2.804 2.744 2.873l0.006 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1s1 0.448 1 1v0c-0.002 0.035-0.002 0.076-0.002 0.117 0 1.547 1.217 2.81 2.746 2.883l0.007 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1s1 0.448 1 1v0c-0.002 0.035-0.002 0.076-0.002 0.117 0 1.547 1.217 2.81 2.746 2.883l0.007 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1v0zM13 30h-10c-0.552 0-1-0.448-1-1v0-14.46c0-0.552 0.448-1 1-1s1 0.448 1 1v0 13.46h9c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM29 30h-10c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h9v-13.46c0-0.552 0.448-1 1-1s1 0.448 1 1v0 14.46c0 0.552-0.448 1-1 1v0zM19 30c-0.552 0-1-0.448-1-1v0-7h-4v7c0 0.552-0.448 1-1 1s-1-0.448-1-1v0-8c0-0.552 0.448-1 1-1v0h6c0.552 0 1 0.448 1 1v0 8c0 0.552-0.448 1-1 1v0z"></path>
|
|
38
|
-
</svg>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
var SIChatConversationAlt = `<!-- Generated by IcoMoon.io -->
|
|
42
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
43
|
-
<title>chat-conversation-alt</title>
|
|
44
|
-
<path d="M17.333 14.667h-8c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h8c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM22.667 8h-13.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h13.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM28 0h-24c-2.205 0-4 1.795-4 4v17.333c0 2.205 1.795 4 4 4h6.027l4.932 6.167c0.253 0.316 0.636 0.5 1.041 0.5s0.788-0.184 1.041-0.5l4.932-6.167h6.027c2.205 0 4-1.795 4-4v-17.333c0-2.205-1.795-4-4-4zM29.333 21.333c0 0.735-0.597 1.333-1.333 1.333h-6.667c-0.405 0-0.788 0.184-1.041 0.5l-4.292 5.365-4.292-5.365c-0.253-0.316-0.636-0.5-1.041-0.5h-6.667c-0.736 0-1.333-0.599-1.333-1.333v-17.333c0-0.735 0.597-1.333 1.333-1.333h24c0.736 0 1.333 0.599 1.333 1.333z"></path>
|
|
45
|
-
</svg>
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
var SILink1 = `<!-- Generated by IcoMoon.io -->
|
|
49
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
50
|
-
<title>link1</title>
|
|
51
|
-
<path d="M16.541 19.873c-0.489 0.205-0.825 0.68-0.825 1.233 0 0.184 0.037 0.359 0.105 0.519l-0.003-0.009c0.064 0.151 0.101 0.326 0.101 0.51 0 0.368-0.149 0.702-0.391 0.943v0l-3.771 3.772c-0.483 0.482-1.149 0.781-1.885 0.781s-1.403-0.298-1.885-0.781l-2.829-2.828c-0.483-0.483-0.781-1.149-0.781-1.886s0.299-1.403 0.781-1.886l3.776-3.771c0.244-0.24 0.578-0.388 0.948-0.388 0.183 0 0.357 0.036 0.516 0.102l-0.009-0.003c0.15 0.064 0.325 0.101 0.509 0.101 0.736 0 1.334-0.597 1.334-1.334 0-0.553-0.337-1.027-0.816-1.229l-0.009-0.003c-0.449-0.187-0.97-0.295-1.517-0.295-1.107 0-2.11 0.445-2.841 1.165l0-0-3.776 3.771c-0.963 0.966-1.559 2.299-1.559 3.771s0.596 2.805 1.559 3.771l2.829 2.828c0.965 0.965 2.298 1.562 3.771 1.562s2.806-0.597 3.771-1.562l3.772-3.771c0.723-0.725 1.171-1.726 1.171-2.832 0-0.551-0.111-1.076-0.312-1.555l0.010 0.026c-0.206-0.488-0.68-0.824-1.232-0.824-0.184 0-0.359 0.037-0.518 0.104l0.009-0.003z"></path>
|
|
52
|
-
<path d="M10.343 21.655c0.243 0.238 0.576 0.384 0.943 0.384s0.7-0.147 0.943-0.385l-0 0 10.372-10.371c0.232-0.24 0.374-0.566 0.374-0.926 0-0.736-0.597-1.333-1.333-1.333-0.36 0-0.687 0.143-0.927 0.375l-10.372 10.37c-0.241 0.241-0.39 0.575-0.39 0.943s0.149 0.701 0.39 0.943v0z"></path>
|
|
53
|
-
<path d="M28.728 6.099l-2.828-2.828c-0.966-0.963-2.299-1.559-3.771-1.559s-2.805 0.596-3.771 1.559l-3.772 3.771c-0.723 0.725-1.171 1.726-1.171 2.831 0 0.551 0.111 1.076 0.313 1.554l-0.010-0.026c0.206 0.488 0.68 0.824 1.233 0.824 0.737 0 1.334-0.597 1.334-1.334 0-0.184-0.037-0.359-0.104-0.518l0.003 0.009c-0.063-0.15-0.1-0.324-0.1-0.506 0-0.368 0.149-0.7 0.389-0.942l3.771-3.771c0.483-0.483 1.149-0.781 1.886-0.781s1.403 0.299 1.886 0.781l2.828 2.828c0.483 0.483 0.781 1.149 0.781 1.886s-0.299 1.403-0.781 1.886v0l-3.776 3.764c-0.244 0.24-0.579 0.388-0.948 0.388-0.183 0-0.357-0.036-0.515-0.102l0.009 0.003c-0.151-0.064-0.326-0.101-0.51-0.101-0.737 0-1.334 0.597-1.334 1.334 0 0.553 0.336 1.027 0.815 1.229l0.009 0.003c0.45 0.189 0.974 0.298 1.523 0.298 1.106 0 2.109-0.445 2.838-1.167l3.77-3.77c0.965-0.966 1.562-2.301 1.562-3.775 0-1.471-0.595-2.803-1.557-3.769l0 0z"></path>
|
|
54
|
-
</svg>
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
var SIUser = `<!-- Generated by IcoMoon.io -->
|
|
58
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
59
|
-
<title>user</title>
|
|
60
|
-
<path d="M16 16c4.412 0 8-3.588 8-8s-3.588-8-8-8-8 3.588-8 8 3.588 8 8 8zM16 2.667c2.941 0 5.333 2.392 5.333 5.333s-2.392 5.333-5.333 5.333-5.333-2.392-5.333-5.333 2.392-5.333 5.333-5.333zM16 18.667c-7.476 0-13.333 3.66-13.333 8.333v3.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-3.667c0-3.019 4.984-5.667 10.667-5.667s10.667 2.648 10.667 5.667v3.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-3.667c0-4.673-5.857-8.333-13.333-8.333z"></path>
|
|
61
|
-
</svg>
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
var SIMapLocation = `<!-- Generated by IcoMoon.io -->
|
|
65
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
66
|
-
<title>map-location</title>
|
|
67
|
-
<path d="M24.667 8.013v-0.013c0-0.736-0.597-1.327-1.333-1.327s-1.333 0.604-1.333 1.34 0.597 1.333 1.333 1.333 1.333-0.597 1.333-1.333zM30.667 18.667c-0.736 0-1.333 0.596-1.333 1.333v8.701l-7.879-3.135c-0.308-0.127-0.651-0.127-0.961-0.011l-9.817 3.684-8.009-3.121v-20.351l7.633 2.181c0.708 0.205 1.447-0.209 1.648-0.916 0.203-0.708-0.207-1.447-0.915-1.648l-9.333-2.667c-0.403-0.115-0.836-0.035-1.169 0.217-0.335 0.252-0.531 0.645-0.531 1.064v23.029c0 0.549 0.337 1.043 0.849 1.243l9.333 3.637c0.305 0.12 0.645 0.12 0.952 0.007l9.812-3.68 9.227 3.669c0.16 0.064 0.327 0.095 0.493 0.095 0.263 0 0.525-0.079 0.749-0.231 0.365-0.247 0.584-0.661 0.584-1.103v-10.667c0-0.737-0.597-1.333-1.333-1.333zM23.333 22.667c0.395 0 0.769-0.175 1.023-0.476 0.783-0.935 7.644-9.241 7.644-13.357 0-4.389-2.976-8.833-8.667-8.833-5.689 0-8.667 4.444-8.667 8.833 0 4.116 6.863 12.423 7.645 13.357 0.253 0.301 0.628 0.476 1.021 0.476zM23.333 2.667c4.145 0 6 3.097 6 6.167 0 2.095-3.347 7.027-6 10.385-2.653-3.36-6-8.291-6-10.385 0-3.069 1.856-6.167 6-6.167z"></path>
|
|
68
|
-
</svg>
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
const sallaLoyaltyProgramCss = "@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Dashboard sicons:
|
|
75
|
-
* share - sicon-share-alt
|
|
76
|
-
* order from store - sicon-shopping-basket
|
|
77
|
-
* rate order - sicon-chat-conversation-alt
|
|
78
|
-
* order from app - sicon-iphone-x
|
|
79
|
-
* first order - sicon-add-to-cart
|
|
80
|
-
* pos - sicon-store
|
|
81
|
-
* fill profile - sicon-user-add
|
|
82
|
-
*/
|
|
83
|
-
const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
|
|
84
|
-
const sicons = {
|
|
85
|
-
'FIRST_ORDER_STORE_FOR_UNIT': h("span", { innerHTML: SICart2 }),
|
|
86
|
-
'FIRST_ORDER_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
87
|
-
'FIRST_ORDER_STORE_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
|
|
88
|
-
'FIRST_ORDER_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
89
|
-
'ORDER_FROM_APP_FOR_UNIT': h("span", { innerHTML: SICart2 }),
|
|
90
|
-
'ORDER_FROM_APP_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
91
|
-
'ORDER_FROM_APP_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
|
|
92
|
-
'ORDER_FROM_APP_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
93
|
-
'CONDITION_RATING_SHIPPING_STORE': h("span", { innerHTML: SIStore }),
|
|
94
|
-
'CONDITION_RATING_PRODUCT': h("span", { innerHTML: SIChatConversationAlt }),
|
|
95
|
-
'CONDITION_RATING_SHIPPING_COMPANY': h("span", { innerHTML: SIShipping }),
|
|
96
|
-
'CONDITION_COMPLETE_PERSONAL_INFORMATION_BIRTHDAY': h("span", { innerHTML: SICalendar }),
|
|
97
|
-
'CONDITION_COMPLETE_PERSONAL_INFORMATION_EMAIL': h("span", { innerHTML: email }),
|
|
98
|
-
'CONDITION_COMPLETE_PERSONAL_INFORMATION_MOBILE': h("span", { innerHTML: SIiPhoneX }),
|
|
99
|
-
'CONDITION_COMPLETE_PERSONAL_INFORMATION_GENDER': h("span", { innerHTML: SIUser }),
|
|
100
|
-
'CONDITION_BUY_FROM_STORE_FOR_UNIT': h("span", { innerHTML: SICart2 }),
|
|
101
|
-
'CONDITION_BUY_FROM_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
102
|
-
'CONDITION_BUY_FROM_STORE_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
|
|
103
|
-
'CONDITION_BUY_FROM_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
|
|
104
|
-
'order_from_pos_1': h("span", { innerHTML: SIiPhoneX }),
|
|
105
|
-
'order_from_pos_2': h("span", { innerHTML: Location }),
|
|
106
|
-
'buy_from_pos_1': h("span", { innerHTML: SIMapLocation }),
|
|
107
|
-
'buy_from_pos_2': h("span", { innerHTML: SIiPhoneX }),
|
|
108
|
-
'CONDITION_BUY_FROM_POS_FOR_UNIT': h("span", { innerHTML: SIiPhoneX }),
|
|
109
|
-
'CONDITION_BUY_FROM_POS_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SIiPhoneX }),
|
|
110
|
-
'CONDITION_BUY_FROM_POS_FIX_AMOUNT': h("span", { innerHTML: SIiPhoneX }),
|
|
111
|
-
'CONDITION_BUY_FROM_POS_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SIiPhoneX }),
|
|
112
|
-
'affiliate_link_1': h("span", { innerHTML: SILink1 }),
|
|
113
|
-
'affiliate_link_2': h("span", { innerHTML: SIUserAdd }),
|
|
114
|
-
'affiliate_link_3': h("span", { innerHTML: SICart2 }),
|
|
115
|
-
'CONDITION_AFFILIATE_LINK': h("span", { innerHTML: SILink1 }),
|
|
116
|
-
};
|
|
117
|
-
const SallaLoyaltyPoint = class {
|
|
118
|
-
constructor(hostRef) {
|
|
119
|
-
registerInstance(this, hostRef);
|
|
120
|
-
}
|
|
121
|
-
async handleShareAction(e, point, successText) {
|
|
122
|
-
const isDesktop = window.matchMedia('(min-width: 1024px)').matches;
|
|
123
|
-
// only on mobile/tablet devices
|
|
124
|
-
if ('share' in navigator && !isDesktop) {
|
|
125
|
-
try {
|
|
126
|
-
await navigator.share({
|
|
127
|
-
title: document.title,
|
|
128
|
-
url: point.url,
|
|
129
|
-
});
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
catch (error) { }
|
|
133
|
-
}
|
|
134
|
-
const el = e.target;
|
|
135
|
-
const oldTextContent = el.textContent;
|
|
136
|
-
const temporaryTextContent = successText;
|
|
137
|
-
// fallback to clipboard
|
|
138
|
-
if ('clipboard' in navigator) {
|
|
139
|
-
try {
|
|
140
|
-
await navigator.clipboard.writeText(point.url);
|
|
141
|
-
el.textContent = temporaryTextContent;
|
|
142
|
-
setTimeout(() => {
|
|
143
|
-
el.textContent = oldTextContent;
|
|
144
|
-
}, 5000);
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
catch (error) { }
|
|
148
|
-
}
|
|
149
|
-
// fallback to textarea
|
|
150
|
-
const textarea = document.createElement('textarea');
|
|
151
|
-
textarea.value = point.url;
|
|
152
|
-
textarea.style.opacity = '0';
|
|
153
|
-
this.host.appendChild(textarea);
|
|
154
|
-
textarea.focus();
|
|
155
|
-
textarea.select();
|
|
156
|
-
try {
|
|
157
|
-
const success = document.execCommand('copy');
|
|
158
|
-
if (!success) {
|
|
159
|
-
throw new Error('Failed to copy URL to clipboard');
|
|
160
|
-
}
|
|
161
|
-
el.textContent = temporaryTextContent;
|
|
162
|
-
setTimeout(() => {
|
|
163
|
-
el.textContent = oldTextContent;
|
|
164
|
-
}, 5000);
|
|
165
|
-
}
|
|
166
|
-
catch (error) { }
|
|
167
|
-
this.host.removeChild(textarea);
|
|
168
|
-
}
|
|
169
|
-
handleAction(e, point) {
|
|
170
|
-
e.stopPropagation();
|
|
171
|
-
if (point.is_completed) {
|
|
172
|
-
e.preventDefault();
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
switch (point.type) {
|
|
176
|
-
case 'profile':
|
|
177
|
-
case 'rating': {
|
|
178
|
-
if (!salla.config.isUser()) {
|
|
179
|
-
e.preventDefault();
|
|
180
|
-
closeModals(() => salla.event.dispatch('login::open'));
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
case 'share': {
|
|
186
|
-
if (!salla.config.isUser()) {
|
|
187
|
-
e.preventDefault();
|
|
188
|
-
closeModals(() => salla.event.dispatch('login::open'));
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
e.preventDefault();
|
|
192
|
-
this.handleShareAction(e, point, salla.lang.get('pages.loyalty_program.copied'));
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
getSubHeading(point) {
|
|
198
|
-
switch (point.type) {
|
|
199
|
-
case 'share':
|
|
200
|
-
return (h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_start')), h("p", null, salla.lang.get('pages.loyalty_program.three_simple_steps'))));
|
|
201
|
-
case 'pos':
|
|
202
|
-
return (h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_start')), h("p", null, salla.lang.get('pages.loyalty_program.two_simple_steps'))));
|
|
203
|
-
default:
|
|
204
|
-
return '';
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
getDetails(point) {
|
|
208
|
-
if (point.conditions.filter(c => c.key.endsWith('_BY_CATEGORIES')).length > 0) {
|
|
209
|
-
return (h("div", null, h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_use')), h("p", null, salla.lang.get('pages.loyalty_program.how_to_use_steps'))), h("div", { class: "s-loyalty-program-points-modal-details" }, point.conditions.map((condition) => h("div", { class: "s-loyalty-program-points-chains-wrapper mt-5 mb-5" }, h("div", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key])), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points, isUnitOrder(point))), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name), h("div", null, this.getCategoriesJsx(condition.value)))))))));
|
|
210
|
-
}
|
|
211
|
-
return (h("div", { class: "s-loyalty-program-points-modal-details" }, h("div", { class: "s-loyalty-program-points-chains-wrapper mt-5 mb-5" }, h("ul", { class: "s-loyalty-program-points-chain-list" }, this.point.conditions.map((condition) => h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key]), h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points, isUnitOrder(point), condition.value != null)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))))))));
|
|
212
|
-
}
|
|
213
|
-
getCategoriesJsx(categories) {
|
|
214
|
-
return !categories.length ? '' :
|
|
215
|
-
h("ul", { class: c('reward-details-categories-list') }, categories.map((category) => (h("li", null, h("a", { href: category.url, class: c('reward-details-categories-item') }, h("span", { innerHTML: SITag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))))));
|
|
216
|
-
}
|
|
217
|
-
getTrailingContent(point) {
|
|
218
|
-
switch (point.type) {
|
|
219
|
-
case 'first_order':
|
|
220
|
-
case 'profile':
|
|
221
|
-
return h("p", { class: "s-loyalty-program-points-completed-note" }, salla.lang.get('pages.loyalty_program.one_time_points'));
|
|
222
|
-
default:
|
|
223
|
-
return point.is_completed ? h("p", { class: "s-loyalty-program-points-completed-note" }, salla.lang.get('pages.loyalty_program.one_time_points')) : '';
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
render() {
|
|
227
|
-
return (h("div", { key: '70b7b8ad88f89903726e70b795c2eca98366f601' }, h("div", { key: '32a7d28c05a72d1e2901775ff2148553d70b9c87', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'bc8e79fdf21fb641766b3463e792005decf58fd9', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '75e18d5d494d5b97ee12827230641103e934709c', class: this.point.icon })), h("div", { key: '54e40ceeb2cca3248aaa716b85c9ce8d4a41f8ce', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: 'c6d9718b0a2813cba6f59f2ad019f168ec1cc376', size: "xs", bg: "transparent" }, h("span", { key: '33ac630c37139af3dbae295c56c4a5c7aa74d309', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '3d66b854b326090357f2e8320d8a8ab55cbad146', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'bf1b37473fa7f04ca76b66be840e918c74ae44ed', size: "sm", bg: "transparent" }, h("span", { key: '47f6c81b0e4805606bba918f23a2b94fe535e18e', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: '8cfacb01351d035968e5886bcc18086ef6c52ec5', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
|
|
228
|
-
h("a", { class: {
|
|
229
|
-
's-loyalty-program-points-action': true,
|
|
230
|
-
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
231
|
-
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
232
|
-
} }, salla.lang.get('pages.loyalty_program.completed'))
|
|
233
|
-
: h("a", { href: this.point.url, onClick: e => this.handleAction(e, this.point), class: {
|
|
234
|
-
's-loyalty-program-points-action': true,
|
|
235
|
-
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
236
|
-
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
237
|
-
} }, this.point.description)), h("salla-modal", { key: 'bf3a0db144b8a71c7de03bffa871c83432645cca', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: '9e1c30640a2b21d83648a9829cb3d77694d40f43', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'd27cf7911ca8e895d04b82dc786be5d70549b2e9', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '3b32920aee9989499c97e284a8b2689519a531c9', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '65f13ad9b7d9de8f5e5057f4b168e4276ec752de', class: "s-loyalty-program-points-modal-main" }, h("div", { key: 'b52d6b39659ad570321ed464cbd28679572e349f', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '18fcd876ee08265964fabd469ea2c0f62ee6e87b', class: this.point.icon })), h("salla-badge", { key: 'ce5e68c6e7b93b4b972b912db7a8027a0d7bb719', size: "sm", bg: "light" }, h("span", { key: '6325ab966bfc6abb67f08b6f727b41704328ae5a', innerHTML: SIGift }), h("span", { key: '3278b4faf5a0c51ca2a4d55f544b756827f8592f', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
|
|
238
|
-
h("div", { key: '37a98c643851f1c772584c738c98902e0e960a52', class: "s-loyalty-program-points-modal-details" }, h("div", { key: 'e558373c2726934c68bd1f50a427984756afd0d1', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '018fb529e90d9adc1fd186e06120b175975e0ae3', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
|
|
239
|
-
const stepsArray = Object.values(this.point.steps);
|
|
240
|
-
const isLastItem = idx === stepsArray.length - 1;
|
|
241
|
-
return (h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[step.key]), !isLastItem && h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", null, salla.lang.get(`pages.loyalty_program.step_${idx + 1}`))), h("p", { class: "s-loyalty-program-points-chain-description" }, step.title || step.name))));
|
|
242
|
-
})))), this.getDetails(this.point), h("div", { key: 'dea38fc445b304630d0b4baa122a5a95f35f0d2c', class: "s-loyalty-program-points-modal-details" }, this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: 'a8fbe3f878510dd27ccbe91c0d0253ed17f77fee', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '74e883a658f22fd3f26291efeba30ccc59f52baa', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
|
|
243
|
-
's-loyalty-program-points-action': true,
|
|
244
|
-
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
245
|
-
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
246
|
-
} }, this.point.is_completed ? salla.lang.get('pages.loyalty_program.completed') : this.point.description)))));
|
|
247
|
-
}
|
|
248
|
-
get host() { return getElement(this); }
|
|
249
|
-
};
|
|
250
|
-
SallaLoyaltyPoint.style = sallaLoyaltyProgramCss;
|
|
251
|
-
|
|
252
|
-
export { SallaLoyaltyHero as salla_loyalty_hero, SallaLoyaltyPoint as salla_loyalty_point };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-BICKbbaT.js';
|
|
5
|
-
import { n as normalizeLoyaltyData, c as closeModals } from './functions-DBwN_PnC.js';
|
|
6
|
-
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
7
|
-
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
8
|
-
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
9
|
-
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
10
|
-
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
11
|
-
import { T as TrackedPromise } from './tracked-promise-BGUdJ_Y7.js';
|
|
12
|
-
|
|
13
|
-
var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
|
|
14
|
-
|
|
15
|
-
const sallaLoyaltyProgramCss = "@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";
|
|
16
|
-
|
|
17
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
20
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
else
|
|
22
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
23
|
-
if (d = decorators[i])
|
|
24
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
25
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
-
};
|
|
27
|
-
const sicons = {
|
|
28
|
-
all: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SILayoutGrid }),
|
|
29
|
-
free_shipping: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIShipping }),
|
|
30
|
-
coupon_discount: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIPercentage }),
|
|
31
|
-
free_product: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SICart2 }),
|
|
32
|
-
};
|
|
33
|
-
const SallaLoyaltyPanel = class {
|
|
34
|
-
constructor(hostRef) {
|
|
35
|
-
registerInstance(this, hostRef);
|
|
36
|
-
/**
|
|
37
|
-
* prize to show in details or exchange modals
|
|
38
|
-
*/
|
|
39
|
-
this.currentPrize = null;
|
|
40
|
-
this.currentProductId = null;
|
|
41
|
-
this.handleExchangeSucceeded = () => window.location.reload();
|
|
42
|
-
this.handleResetSucceeded = () => window.location.reload();
|
|
43
|
-
}
|
|
44
|
-
componentWillLoad() {
|
|
45
|
-
return salla.onReady()
|
|
46
|
-
.then(() => salla.lang.onLoaded())
|
|
47
|
-
.then(() => {
|
|
48
|
-
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
49
|
-
salla.event.on('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
50
|
-
// Fetch points if user is logged in
|
|
51
|
-
if (!salla.config.isGuest()) {
|
|
52
|
-
this.points();
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
.catch((error) => salla.logger.error(error));
|
|
56
|
-
}
|
|
57
|
-
disconnectedCallback() {
|
|
58
|
-
salla.event.off('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
59
|
-
salla.event.off('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
const prizesGroups = this.program.data.prizes;
|
|
63
|
-
const prizesCount = this.program.data.prizes_count;
|
|
64
|
-
const customerPoints = (this.points.data ?? this.customerPoints ?? 0);
|
|
65
|
-
if (this.prizeTitle && this.prizePoints != null && this.prizePoints !== '') {
|
|
66
|
-
return (h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: "s-loyalty-program-after-exchange" }, h("div", { slot: "title", class: "s-loyalty-program-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), h("div", { slot: "action", class: "s-loyalty-program-after-exchange-action" }, h("salla-button", { class: "s-loyalty-program-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => salla.loyalty.reset() }, h("span", { innerHTML: SICancel }))))));
|
|
67
|
-
}
|
|
68
|
-
if (!customerPoints || customerPoints === 0) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
return (h("div", { class: "" }, h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: 's-loyalty-program-panel-widget' }, h("div", { slot: "icon", class: "s-loyalty-program-panel-widget-icon", innerHTML: Star }), h("div", { slot: "subtitle" }, salla.lang.get('pages.loyalty_program.cart_total_point_summary', { "balance": customerPoints }), h("salla-button", { shape: "link", color: "primary", onClick: () => {
|
|
72
|
-
if (['error', 'idle'].includes(this.program.status)) {
|
|
73
|
-
this.program();
|
|
74
|
-
}
|
|
75
|
-
this.rewardsModal.open();
|
|
76
|
-
} }, salla.lang.get('pages.loyalty_program.cart_point_exchange_now'))))), h("salla-modal", { id: "loyalty-rewards-modal", isLoading: this.program.status === 'pending', ref: modal => this.rewardsModal = modal, class: "s-loyalty-program-rewards-cart s-loyalty-program-modal", width: "lg", noPadding: true }, h("div", { slot: "loading" }, h("salla-loading", null)), this.program.status === 'success' ? h("div", { class: "s-loyalty-program-rewards-container-cart" }, h("div", { class: "s-loyalty-program-rewards-cart-header" }, h("div", { innerHTML: PrizeImage }), h("div", { class: "s-loyalty-program-panel-content" }, h("h1", null, this.program.data.prize_promotion_title), h("p", null, this.program.data.prize_promotion_description))), h("div", { class: {
|
|
77
|
-
's-loyalty-program-slider-arrows': true,
|
|
78
|
-
's-loyalty-program-tabs-hider': prizesGroups.length < 2 || prizesCount < 2,
|
|
79
|
-
} }, h("salla-tabs", null, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title)))), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":3,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
|
|
80
|
-
this.currentPrize = prize;
|
|
81
|
-
closeModals(() => this.detailsModal.open());
|
|
82
|
-
}, onActionClick: () => {
|
|
83
|
-
this.currentPrize = prize;
|
|
84
|
-
closeModals(() => this.detailsModal.open());
|
|
85
|
-
} })))))))))) : ''), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => { this.currentProductId = null; closeModals(() => this.exchangeModal.open()); }, onProductActionClick: (e) => { this.currentProductId = e.detail.productId; closeModals(() => this.exchangeModal.open()); }, prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize, productId: this.currentProductId }))));
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
__decorate([
|
|
89
|
-
TrackedPromise(async () => {
|
|
90
|
-
const { data } = await salla.loyalty.getProgram();
|
|
91
|
-
return normalizeLoyaltyData(data);
|
|
92
|
-
}, { initialData: { prizes: [], prizes_count: 0 } })
|
|
93
|
-
], SallaLoyaltyPanel.prototype, "program", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
TrackedPromise(async () => {
|
|
96
|
-
const { data } = await salla.loyalty.getPoints();
|
|
97
|
-
return data.points;
|
|
98
|
-
}, { initialData: null })
|
|
99
|
-
], SallaLoyaltyPanel.prototype, "points", void 0);
|
|
100
|
-
SallaLoyaltyPanel.style = sallaLoyaltyProgramCss;
|
|
101
|
-
|
|
102
|
-
export { SallaLoyaltyPanel as salla_loyalty_panel };
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-BICKbbaT.js';
|
|
5
|
-
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-DBwN_PnC.js';
|
|
6
|
-
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
7
|
-
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
8
|
-
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
9
|
-
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
10
|
-
import { S as SIGiftSharing } from './gift-sharing-0-eTJXSD.js';
|
|
11
|
-
import { T as TrackedPromise } from './tracked-promise-BGUdJ_Y7.js';
|
|
12
|
-
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
13
|
-
|
|
14
|
-
var SICartUpload = `<!-- Generated by IcoMoon.io -->
|
|
15
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
16
|
-
<title>cart-upload</title>
|
|
17
|
-
<path d="M14.545 7.669l3.121-2.732v9.729c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-9.728l3.121 2.732c0.253 0.22 0.567 0.329 0.879 0.329 0.371 0 0.74-0.155 1.004-0.455 0.485-0.555 0.429-1.396-0.125-1.881l-5.333-4.667c-0.503-0.44-1.253-0.44-1.756 0l-5.333 4.667c-0.555 0.484-0.611 1.327-0.125 1.881 0.484 0.552 1.325 0.609 1.881 0.124zM30.647 5.371c-0.713-0.171-1.436 0.267-1.609 0.983l-2.744 11.363c-0.171 0.568-0.684 0.951-1.277 0.951h-12.136c-0.563 0-1.067-0.356-1.256-0.885l-6.035-16.896c-0.189-0.531-0.692-0.885-1.256-0.885h-2.667c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h1.727l5.719 16.012c0.567 1.588 2.081 2.655 3.768 2.655h12.136c1.78 0 3.32-1.145 3.851-2.92l2.763-11.433c0.173-0.716-0.267-1.436-0.983-1.609zM13.667 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM13.667 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333zM24.333 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM24.333 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333z"></path>
|
|
18
|
-
</svg>
|
|
19
|
-
`;
|
|
20
|
-
|
|
21
|
-
const sallaLoyaltyProgramCss = "@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";
|
|
22
|
-
|
|
23
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
24
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
26
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
27
|
-
else
|
|
28
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
29
|
-
if (d = decorators[i])
|
|
30
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
31
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32
|
-
};
|
|
33
|
-
const sicons = {
|
|
34
|
-
all: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SILayoutGrid }),
|
|
35
|
-
free_shipping: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIShipping }),
|
|
36
|
-
coupon_discount: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIPercentage }),
|
|
37
|
-
free_product: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SICart2 }),
|
|
38
|
-
};
|
|
39
|
-
const SallaLoyaltyProgram = class {
|
|
40
|
-
constructor(hostRef) {
|
|
41
|
-
registerInstance(this, hostRef);
|
|
42
|
-
/**
|
|
43
|
-
* prize to show in details or exchange modals
|
|
44
|
-
*/
|
|
45
|
-
this.currentPrize = null;
|
|
46
|
-
this.currentProductId = null;
|
|
47
|
-
/**
|
|
48
|
-
* collapsed state of points list
|
|
49
|
-
*/
|
|
50
|
-
this.collapsed = true;
|
|
51
|
-
this.animatedPoints = 0;
|
|
52
|
-
this.handleExchangeSucceeded = () => {
|
|
53
|
-
this.points();
|
|
54
|
-
this.program();
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
componentWillLoad() {
|
|
58
|
-
return salla.onReady()
|
|
59
|
-
.then(() => salla.lang.onLoaded())
|
|
60
|
-
.then(() => {
|
|
61
|
-
this.program();
|
|
62
|
-
this.points();
|
|
63
|
-
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
64
|
-
})
|
|
65
|
-
.catch((error) => salla.logger.error(error));
|
|
66
|
-
}
|
|
67
|
-
disconnectedCallback() {
|
|
68
|
-
salla.event.off('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
69
|
-
}
|
|
70
|
-
getOutlineItem(number, title, description) {
|
|
71
|
-
const icons = {
|
|
72
|
-
1: h("span", { innerHTML: SIUserAdd }),
|
|
73
|
-
2: h("span", { innerHTML: SIGiftSharing }),
|
|
74
|
-
3: h("span", { innerHTML: SICartUpload }),
|
|
75
|
-
};
|
|
76
|
-
return (h("li", { class: "s-loyalty-program-item" }, h("div", { class: "s-loyalty-program-content" }, h("span", { class: "s-loyalty-program-icon-container" }, h("span", { class: "s-loyalty-program-text-gradient" }, number), h("span", { class: "s-loyalty-program-icon" }, icons[number])), h("div", { class: "s-loyalty-program-title" }, title), h("div", { class: "s-loyalty-program-description" }, description))));
|
|
77
|
-
}
|
|
78
|
-
render() {
|
|
79
|
-
if (this.program.status === 'error') {
|
|
80
|
-
return h("p", null, salla.lang.get('common.errors.error_occured'));
|
|
81
|
-
}
|
|
82
|
-
const displayedPoints = this.program.data.points.slice(0, this.collapsed ? nearestLowerMultiple(this.program.data.points.length) : this.program.data.points.length);
|
|
83
|
-
const prizesGroups = this.program.data.prizes;
|
|
84
|
-
const prizesCount = this.program.data.prizes_count;
|
|
85
|
-
return (h("div", { class: "s-loyalty-program-container" }, h("salla-loyalty-hero", { name: this.program.data.name, description: this.program.data.description, image: this.program.data.image }, salla.config.isUser()
|
|
86
|
-
? h("div", { slot: "crosspoint", class: "s-loyalty-program-profile-wrapper" }, h("div", { class: "s-loyalty-program-profile-container" }, h("div", { class: "s-loyalty-program-profile-points-section" }, h("h2", { class: "s-loyalty-program-profile-label" }, salla.lang.get('pages.loyalty_program.your_points')), h("p", { class: "s-loyalty-program-profile-points" }, h("span", { class: "s-loyalty-program-profile-points-value" }, !!this.animatedPoints ? this.animatedPoints : this.points.data), "\u00A0", salla.lang.get('pages.loyalty_program.point'))), h("salla-button", { href: salla.url.get('loyalty_points'), fill: "outline", color: "primary" }, salla.lang.get('pages.loyalty_program.view_points_log'))))
|
|
87
|
-
: h("button", { slot: "action", onClick: () => salla.event.dispatch('login::open'), class: {
|
|
88
|
-
's-loyalty-program-login-action': true,
|
|
89
|
-
's-loyalty-program-login-action-dark': !this.program.data.image,
|
|
90
|
-
's-loyalty-program-login-action-light': !!this.program.data.image,
|
|
91
|
-
} }, salla.lang.get('blocks.header.login'))), h("div", { class: "s-loyalty-program-outline-section" }, h("section", { class: "s-loyalty-program-section" }, h("header", { class: "s-loyalty-program-header" }, h("h1", { class: "s-loyalty-program-main-title" }, salla.lang.get('pages.loyalty_program.how_to_start')), h("p", { class: "s-loyalty-program-subtitle" }, salla.lang.get('pages.loyalty_program.three_simple_steps'))), h("ol", { class: "s-loyalty-program-list" }, this.getOutlineItem(1, salla.lang.get('pages.loyalty_program.register'), salla.lang.get('pages.loyalty_program.create_account')), this.getOutlineItem(2, salla.lang.get('pages.loyalty_program.earn_points'), salla.lang.get('pages.loyalty_program.complete_tasks')), this.getOutlineItem(3, salla.lang.get('pages.loyalty_program.redeem_rewards'), salla.lang.get('pages.loyalty_program.enjoy_rewards'))))), h("div", { class: "s-loyalty-program-points-wrapper" }, h("section", { class: "s-loyalty-program-points-section" }, h("header", { class: "s-loyalty-program-points-header" }, h("h1", { class: "s-loyalty-program-points-title" }, this.program.data.promotion_title), h("p", { class: "s-loyalty-program-points-description" }, this.program.data.promotion_description)), h("div", { class: "s-loyalty-program-points-spacer" }), h("ul", { class: {
|
|
92
|
-
's-loyalty-program-points-list-one': this.program.data.points.length === 1,
|
|
93
|
-
's-loyalty-program-points-list-two': this.program.data.points.length === 2,
|
|
94
|
-
's-loyalty-program-points-list-multi': this.program.data.points.length > 2,
|
|
95
|
-
} }, displayedPoints.map(point => (h("li", null, h("salla-loyalty-point", { point: point }))))), h("div", { class: "s-loyalty-program-points-spacer" }), nearestLowerMultiple(this.program.data.points.length) !== this.program.data.points.length && h("button", { class: "s-loyalty-program-points-more-button", onClick: () => this.collapsed = !this.collapsed }, this.collapsed
|
|
96
|
-
? h("span", null, salla.lang.get('pages.loyalty_program.show_more'), "\u00A0\u00A0", h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "+"))
|
|
97
|
-
: h("span", null, salla.lang.get('pages.loyalty_program.show_less'), "\u00A0\u00A0", h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "-"))))), this.program.status !== 'success' ? '' : h("div", { class: "s-loyalty-program-rewards-container s-loyalty-program-slider-arrows-edges" }, h("section", { class: {
|
|
98
|
-
's-loyalty-program-tabs-hider': prizesGroups.length <= 2 || prizesCount <= 4,
|
|
99
|
-
} }, h("h1", { class: "s-loyalty-program-rewards-heading-mobile" }, salla.lang.get('pages.loyalty_program.rewards')), h("salla-tabs", null, h("div", { slot: "header", class: "s-loyalty-program-rewards-tab-items" }, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title))))), h("h1", { slot: "header", class: "s-loyalty-program-rewards-heading-desktop" }, salla.lang.get('pages.loyalty_program.rewards')), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":4,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
|
|
100
|
-
this.currentPrize = prize;
|
|
101
|
-
closeModals(() => this.detailsModal.open());
|
|
102
|
-
}, onActionClick: () => {
|
|
103
|
-
this.currentPrize = prize;
|
|
104
|
-
closeModals(() => this.detailsModal.open());
|
|
105
|
-
} })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => { this.currentProductId = null; closeModals(() => this.exchangeModal.open()); }, onProductActionClick: (e) => { this.currentProductId = e.detail.productId; closeModals(() => this.exchangeModal.open()); }, prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize, productId: this.currentProductId }))))));
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
__decorate([
|
|
109
|
-
TrackedPromise(async function () {
|
|
110
|
-
const { data } = await salla.loyalty.getProgram();
|
|
111
|
-
return normalizeLoyaltyData(data);
|
|
112
|
-
}, { initialData: { points: [], prizes: [], prizes_count: 0 } })
|
|
113
|
-
], SallaLoyaltyProgram.prototype, "program", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
TrackedPromise(async function () {
|
|
116
|
-
const { data } = await salla.loyalty.getPoints();
|
|
117
|
-
anime({
|
|
118
|
-
targets: { value: 0 },
|
|
119
|
-
value: data.points ?? 0,
|
|
120
|
-
round: 1,
|
|
121
|
-
easing: 'easeOutQuad',
|
|
122
|
-
duration: 2000,
|
|
123
|
-
update: (anim) => {
|
|
124
|
-
this.animatedPoints = anim.animations[0].currentValue;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
return data.points;
|
|
128
|
-
})
|
|
129
|
-
], SallaLoyaltyProgram.prototype, "points", void 0);
|
|
130
|
-
SallaLoyaltyProgram.style = sallaLoyaltyProgramCss;
|
|
131
|
-
|
|
132
|
-
export { SallaLoyaltyProgram as salla_loyalty_program };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h } from './index-BICKbbaT.js';
|
|
5
|
-
import { c as closeModals } from './functions-DBwN_PnC.js';
|
|
6
|
-
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
|
-
|
|
8
|
-
const sallaLoyaltyProgramCss = "@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";
|
|
9
|
-
|
|
10
|
-
const SallaLoyaltyReward = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.rewardModalOpen = createEvent(this, "rewardModalOpen");
|
|
14
|
-
this.confirmModalOpen = createEvent(this, "confirmModalOpen");
|
|
15
|
-
this.size = 'md';
|
|
16
|
-
this.isActionClickable = (prize) => {
|
|
17
|
-
switch (prize.key?.toLowerCase()) {
|
|
18
|
-
case 'free_product':
|
|
19
|
-
return prize.is_product_available;
|
|
20
|
-
default:
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.handleActionArea = () => {
|
|
25
|
-
this.rewardModalOpen.emit(this.prize);
|
|
26
|
-
};
|
|
27
|
-
this.handleAction = () => {
|
|
28
|
-
if (!this.isActionClickable(this.prize))
|
|
29
|
-
return;
|
|
30
|
-
if (!salla.config.isUser()) {
|
|
31
|
-
closeModals(() => salla.event.dispatch('login::open'));
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this.confirmModalOpen.emit(this.prize);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return (h("div", { key: '22e55c164715cff3ab89a9d2d0ac98042aee3063', class: {
|
|
41
|
-
's-loyalty-program-reward-container': true,
|
|
42
|
-
's-loyalty-program-reward-xs': this.size === 'xs',
|
|
43
|
-
} }, h("div", { key: 'f4854008846b39552fdce909b497e43c649543ca', onClick: this.handleActionArea, role: "button" }, h("div", { key: 'adc5c0df86193798cc166f6adfa0c2447df0832b', class: "s-loyalty-program-reward-img" }, h("img", { key: '859cc1f77a4be5548ff1caa6820ec40b09af213d', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: '8c7d6248e557108462dfb82ba2974768686734c7', class: "s-loyalty-program-reward-content" }, h("div", { key: 'a2bf4e4971697d3cefb3d14d5ef5fbe4406edd09', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '06640ab8ec19795a8a451274c371e0f77f888fb7', size: "xs" }, h("span", { key: 'f5c90a08e80d106bf11fe45a9c3ace3cedf61af1', innerHTML: SIGift }), h("span", { key: '7feeea4188439c1c23acacf222149e7c59367dc4', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '8e5ef727a8c704b8f0040b752796bc59924ee64c', class: "s-loyalty-program-reward-title" }, h("span", { key: 'fbdd1636477122d629ec2fec71d8a57bc8dfe4cb' }, this.group)), h("div", { key: 'a0d4f204e207be64bdb515e7e4e8ba89235b2693', class: "s-loyalty-program-reward-name" }, h("div", { key: '000794a28c85f67d0c72a4f886c81d303a41f345', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: 'd4c51e1fe48bf9ec23f9c9d0b48b0e2343428d59', class: "p-4" }, h("button", { key: 'ca12fd9a4ee98380ed1db9f7aebbbf1e2906ab79', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
|
|
44
|
-
's-loyalty-program-rewards-action-base': true,
|
|
45
|
-
's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
|
|
46
|
-
's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
|
|
47
|
-
} }, this.isActionClickable(this.prize) ? salla.lang.get('pages.loyalty_program.redeem_reward') : salla.lang.get('pages.loyalty_program.out_of_stock')))));
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
SallaLoyaltyReward.style = sallaLoyaltyProgramCss;
|
|
51
|
-
|
|
52
|
-
export { SallaLoyaltyReward as salla_loyalty_reward };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-BICKbbaT.js';
|
|
5
|
-
|
|
6
|
-
const sallaNotificationsCss = "";
|
|
7
|
-
|
|
8
|
-
const SallaNotificationItem = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return h("a", { key: '59f70f3078b1a7d47bcee6ccd2d472cb8e9e0823', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: '7cfde773f99fd97d2564bb76820fcdc10ddaf1c9', class: "s-notifications-item-icon" }, h("i", { key: 'c7ac49641200f8200d79d801626d819c2ad025d8', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: '7b20a3de69f26d62185121017904ea8b73acde6d', class: "s-notifications-item-content" }, h("div", { key: '03e8f73de33418b41ab3dcec65a6cf916edbf670', class: "s-notifications-item-content-leading" }, h("h4", { key: '94f21a0c414c97f647af33f8ec84d74ec91c6de6' }, this.notification.title), h("p", { key: 'b821d9ba8af890d9d3b96b58488ccfe33ae681a1' }, this.notification.sub_title)), h("span", { key: '5aed923cbcdd3b92178de4660b2940ca1fd1958a', class: "s-notifications-item-content-trailing" }, h("i", { key: '283ce5224c7de7ada8afffb9c3ef43bb17f91944', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: 'b868dc7ecde4155c9827d6ccb2b2ac919525c71b' }, this.notification.date))));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
SallaNotificationItem.style = sallaNotificationsCss;
|
|
17
|
-
|
|
18
|
-
export { SallaNotificationItem as salla_notification_item };
|