@salla.sa/twilight-components 2.14.462 → 2.14.464
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-D7zShniv.js → filepond-Dq0RCAR8.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BqO8tLqK.js → filepond-plugin-file-poster-vlhsudC0.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Bdxa3s1T.js → filepond-plugin-file-validate-size-D3o9VZ3s.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-B9q4YU3V.js → filepond-plugin-file-validate-type-CcNddue2.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BZ8ZjH1W.js → filepond-plugin-image-edit-BAkJRbwa.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D-Ua_ckJ.js → filepond-plugin-image-exif-orientation-DoWs2fSc.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CrZfm9_U.js → filepond-plugin-image-preview-Mf0Y50dD.js} +1 -1
- package/dist/cjs/{functions-Dnwp9wka.js → functions-Dq9vX-yL.js} +1 -1
- package/dist/cjs/{index-wTIlAVr3.js → index-C_Y9_ajx.js} +6 -2
- package/dist/cjs/{index-CLNWkNWb.js → index-Du0w5LbB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -4
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +9 -15
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -5
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +96 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +4 -7
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-map.cjs.entry.js +4 -4
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +10 -10
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +6 -7
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DqErlr1h.js → tracked-promise-CM-XtRwn.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-F5duMbuq.js → vanilla-picker-CBWaX0Cc.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +99 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -10
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -4
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +6 -7
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cashback-banner.js +0 -2
- package/dist/components/salla-loyalty-banner.js +0 -2
- package/dist/components/salla-loyalty-hero2.js +3 -3
- package/dist/components/salla-loyalty-panel.js +0 -2
- package/dist/components/salla-loyalty-point2.js +4 -10
- package/dist/components/salla-loyalty-points-banner.js +0 -2
- package/dist/components/salla-loyalty-points-history.d.ts +11 -0
- package/dist/components/salla-loyalty-points-history.js +129 -0
- package/dist/components/salla-loyalty-program.js +1 -4
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +3 -3
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-menu.js +6 -7
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-m6fYB-0k.js → filepond-LG0gqlbt.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BjL05gZe.js → filepond-plugin-file-poster-BrnkCG9Z.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DTeNYd00.js → filepond-plugin-file-validate-size-DkckpuUN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-ZhqN1Gao.js → filepond-plugin-file-validate-type-CyFr8flY.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-P9d3w9sz.js → filepond-plugin-image-edit-DcYtodej.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-rmyn2Wqp.js → filepond-plugin-image-exif-orientation-6Cq0Lw5b.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-yKjApiZb.js → filepond-plugin-image-preview-BxM-QoVi.js} +1 -1
- package/dist/esm/{functions-C_YevJW-.js → functions-D5cnKLmS.js} +1 -1
- package/dist/esm/{index-CeYNqrm6.js → index-BKYdKDFz.js} +6 -2
- package/dist/esm/{index-D9GD5gzh.js → index-Bouj54jE.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +12 -12
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -3
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -4
- package/dist/esm/salla-loyalty-hero_2.entry.js +9 -15
- package/dist/esm/salla-loyalty-panel.entry.js +3 -5
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -3
- package/dist/esm/salla-loyalty-points-history.entry.js +94 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +4 -7
- package/dist/esm/salla-loyalty-reward.entry.js +4 -4
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map.entry.js +4 -4
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card_2.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +10 -10
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +6 -7
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-DmXpObWP.js → tracked-promise-LXHHL-Cj.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-pNOcxfir.js → vanilla-picker-DJDX3Utz.js} +1 -1
- package/dist/twilight/{p-c7caa2cc.entry.js → p-04f7aaca.entry.js} +1 -1
- package/dist/twilight/{p-2d83fd8d.entry.js → p-07f5daee.entry.js} +1 -1
- package/dist/twilight/{p-dff9a1ec.entry.js → p-0a130ee7.entry.js} +1 -1
- package/dist/twilight/{p-6e74026e.entry.js → p-0d34bbae.entry.js} +1 -1
- package/dist/twilight/{p-744b3fae.entry.js → p-0f07f679.entry.js} +1 -1
- package/dist/twilight/{p-6e77cef2.entry.js → p-1287dca6.entry.js} +1 -1
- package/dist/twilight/{p-629e05d2.entry.js → p-1392a936.entry.js} +1 -1
- package/dist/twilight/p-14a55727.entry.js +4 -0
- package/dist/twilight/{p-12a64c34.entry.js → p-185c4279.entry.js} +1 -1
- package/dist/twilight/p-1a8d6e7e.entry.js +4 -0
- package/dist/twilight/{p-46d2e19e.entry.js → p-1d910a33.entry.js} +1 -1
- package/dist/twilight/{p-7469ba2c.entry.js → p-1f8714f1.entry.js} +1 -1
- package/dist/twilight/{p-a6a6f6af.entry.js → p-23430388.entry.js} +1 -1
- package/dist/twilight/{p-66189b02.entry.js → p-24b3181b.entry.js} +1 -1
- package/dist/twilight/{p-68a4b292.entry.js → p-2565b69e.entry.js} +1 -1
- package/dist/twilight/{p-6ad7e526.entry.js → p-25f61041.entry.js} +1 -1
- package/dist/twilight/{p-Cc7oEzty.js → p-2zabQhBT.js} +1 -1
- package/dist/twilight/{p-0d8fac88.entry.js → p-35cbafe9.entry.js} +1 -1
- package/dist/twilight/{p-70bccb5a.entry.js → p-372b9e6e.entry.js} +1 -1
- package/dist/twilight/{p-b8073d30.entry.js → p-39824e30.entry.js} +1 -1
- package/dist/twilight/{p-efc3eb85.entry.js → p-3d8e3443.entry.js} +1 -1
- package/dist/twilight/p-417654a0.entry.js +4 -0
- package/dist/twilight/{p-b77e74a4.entry.js → p-4306a6b4.entry.js} +1 -1
- package/dist/twilight/{p-4368aeb5.entry.js → p-43f76921.entry.js} +1 -1
- package/dist/twilight/{p-2ecf4e6a.entry.js → p-46d41296.entry.js} +1 -1
- package/dist/twilight/{p-ec46c858.entry.js → p-48d73a85.entry.js} +1 -1
- package/dist/twilight/{p-97d9e879.entry.js → p-50857d82.entry.js} +1 -1
- package/dist/twilight/{p-06d466ca.entry.js → p-5247c4b9.entry.js} +12 -12
- package/dist/twilight/{p-39350b98.entry.js → p-541ed35b.entry.js} +1 -1
- package/dist/twilight/{p-395408d0.entry.js → p-5467c80a.entry.js} +1 -1
- package/dist/twilight/p-54c38490.entry.js +4 -0
- package/dist/twilight/p-563f255b.entry.js +4 -0
- package/dist/twilight/{p-fd4588cc.entry.js → p-5875d206.entry.js} +1 -1
- package/dist/twilight/{p-74810e1d.entry.js → p-5acfc339.entry.js} +1 -1
- package/dist/twilight/{p-c66e2e76.entry.js → p-63b0be9c.entry.js} +1 -1
- package/dist/twilight/{p-a8b5376b.entry.js → p-64827a3b.entry.js} +1 -1
- package/dist/twilight/{p-e4c61d13.entry.js → p-67cd787e.entry.js} +1 -1
- package/dist/twilight/{p-ed92c8ab.entry.js → p-68897e83.entry.js} +1 -1
- package/dist/twilight/{p-22eeb058.entry.js → p-6b1a3260.entry.js} +1 -1
- package/dist/twilight/{p-66e6f1b7.entry.js → p-6cbce099.entry.js} +1 -1
- package/dist/twilight/{p-016d2b24.entry.js → p-6cc61795.entry.js} +1 -1
- package/dist/twilight/{p-ddf5c15d.entry.js → p-6e465f07.entry.js} +1 -1
- package/dist/twilight/{p-52f0f36b.entry.js → p-70445d2a.entry.js} +1 -1
- package/dist/twilight/{p-2f8a2a75.entry.js → p-7228e33d.entry.js} +1 -1
- package/dist/twilight/{p-51739559.entry.js → p-73021799.entry.js} +1 -1
- package/dist/twilight/{p-b5267377.entry.js → p-791c3a09.entry.js} +1 -1
- package/dist/twilight/p-79bd0e53.entry.js +4 -0
- package/dist/twilight/{p-77257ae8.entry.js → p-7b70ff0c.entry.js} +1 -1
- package/dist/twilight/{p-fbcb84a4.entry.js → p-812ed11c.entry.js} +1 -1
- package/dist/twilight/{p-07b5f1f0.entry.js → p-840317dd.entry.js} +1 -1
- package/dist/twilight/p-849f5847.entry.js +4 -0
- package/dist/twilight/{p-d0e99086.entry.js → p-89fabe98.entry.js} +1 -1
- package/dist/twilight/p-90a12321.entry.js +4 -0
- package/dist/twilight/{p-5b416a7d.entry.js → p-90d6b296.entry.js} +1 -1
- package/dist/twilight/{p-38dcee02.entry.js → p-94deddd2.entry.js} +1 -1
- package/dist/twilight/{p-b492aa80.entry.js → p-9af2296a.entry.js} +1 -1
- package/dist/twilight/{p-baf272cf.entry.js → p-9bd15b46.entry.js} +1 -1
- package/dist/twilight/{p-BJ8oGcQD.js → p-BFH3xL9X.js} +1 -1
- package/dist/twilight/{p-CeYNqrm6.js → p-BKYdKDFz.js} +1 -1
- package/dist/twilight/{p-BW7tTJ4q.js → p-BkQIaZDO.js} +1 -1
- package/dist/twilight/{p-DM7C3SNh.js → p-BufqyoSJ.js} +1 -1
- package/dist/twilight/{p-CShDziwT.js → p-CQB_V3FA.js} +1 -1
- package/dist/twilight/{p-B0byHRZ3.js → p-DI488WUS.js} +1 -1
- package/dist/twilight/{p-BbnE5BSS.js → p-DLKNNS2k.js} +1 -1
- package/dist/twilight/{p-BRPK56r-.js → p-DWTogPZ7.js} +1 -1
- package/dist/twilight/{p-Dwy4A66P.js → p-DzCA9_B3.js} +1 -1
- package/dist/twilight/{p-BKLK9Y6r.js → p-XrVgBuSq.js} +1 -1
- package/dist/twilight/p-a12bab42.entry.js +4 -0
- package/dist/twilight/p-a801c990.entry.js +4 -0
- package/dist/twilight/{p-08080728.entry.js → p-aa8d7044.entry.js} +1 -1
- package/dist/twilight/{p-976a7c3b.entry.js → p-ae0dce36.entry.js} +1 -1
- package/dist/twilight/{p-6ac73121.entry.js → p-aeedd692.entry.js} +1 -1
- package/dist/twilight/{p-e545619d.entry.js → p-b44abb00.entry.js} +1 -1
- package/dist/twilight/{p-7562b6fe.entry.js → p-b7b76e86.entry.js} +1 -1
- package/dist/twilight/{p-d78c5c6e.entry.js → p-b92ee3f0.entry.js} +1 -1
- package/dist/twilight/{p-a01e3db6.entry.js → p-bcc9afc0.entry.js} +1 -1
- package/dist/twilight/{p-7fa53fa7.entry.js → p-c2a02536.entry.js} +1 -1
- package/dist/twilight/{p-8f27d1fc.entry.js → p-cc14b5db.entry.js} +1 -1
- package/dist/twilight/{p-873b5a0b.entry.js → p-cd4373fa.entry.js} +1 -1
- package/dist/twilight/{p-316bd85f.entry.js → p-cedbdc1a.entry.js} +1 -1
- package/dist/twilight/p-cf0749ee.entry.js +4 -0
- package/dist/twilight/{p-bb3fb45c.entry.js → p-cfe30cc2.entry.js} +1 -1
- package/dist/twilight/p-d162b0a7.entry.js +4 -0
- package/dist/twilight/{p-dbf9a7a6.entry.js → p-d4bb3d7d.entry.js} +1 -1
- package/dist/twilight/{p-f02cb299.entry.js → p-d7bf8853.entry.js} +1 -1
- package/dist/twilight/{p-00b82f9e.entry.js → p-daca1fb8.entry.js} +1 -1
- package/dist/twilight/{p-75c3f81d.entry.js → p-db89bf3f.entry.js} +1 -1
- package/dist/twilight/{p-4155b911.entry.js → p-dd0523be.entry.js} +1 -1
- package/dist/twilight/{p-cf68db97.entry.js → p-ea2c64f6.entry.js} +1 -1
- package/dist/twilight/p-efd2f91b.entry.js +4 -0
- package/dist/twilight/{p-79143f69.entry.js → p-f1ea88f1.entry.js} +1 -1
- package/dist/twilight/p-f47abd29.entry.js +4 -0
- package/dist/twilight/{p-eef72b52.entry.js → p-f4ac1b81.entry.js} +1 -1
- package/dist/twilight/{p-aa97bce4.entry.js → p-f69d1803.entry.js} +1 -1
- package/dist/twilight/p-fa3ca23e.entry.js +4 -0
- package/dist/twilight/{p-31399c5a.entry.js → p-fa8f835e.entry.js} +1 -1
- package/dist/twilight/{p-0777f1aa.entry.js → p-fb41b74c.entry.js} +1 -1
- package/dist/twilight/p-fd59813a.entry.js +4 -0
- package/dist/twilight/{p-99edcd51.entry.js → p-fe20b32b.entry.js} +1 -1
- package/dist/twilight/{p-BCTJfSEq.js → p-iKu9tB2v.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-loyalty-points-history/salla-loyalty-points-history.d.ts +12 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +3 -2
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +0 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
- package/dist/types/components.d.ts +13 -0
- package/package.json +5 -5
- package/dist/cjs/translations-BHyDCj-Y.js +0 -306
- package/dist/collection/components/salla-loyalty-program/translations.js +0 -302
- package/dist/components/translations.js +0 -304
- package/dist/esm/translations-dn_hTofo.js +0 -304
- package/dist/twilight/p-07afae85.entry.js +0 -4
- package/dist/twilight/p-1043d027.entry.js +0 -4
- package/dist/twilight/p-19cef679.entry.js +0 -4
- package/dist/twilight/p-29dbcd53.entry.js +0 -4
- package/dist/twilight/p-4b0fe193.entry.js +0 -4
- package/dist/twilight/p-570d9be5.entry.js +0 -4
- package/dist/twilight/p-5afb837d.entry.js +0 -4
- package/dist/twilight/p-66341808.entry.js +0 -4
- package/dist/twilight/p-896c5d10.entry.js +0 -4
- package/dist/twilight/p-925afa3d.entry.js +0 -4
- package/dist/twilight/p-a52795df.entry.js +0 -4
- package/dist/twilight/p-c56ba8d5.entry.js +0 -4
- package/dist/twilight/p-d84d931d.entry.js +0 -4
- package/dist/twilight/p-dn_hTofo.js +0 -4
- package/dist/twilight/p-e60bd3a0.entry.js +0 -4
- package/dist/twilight/p-f3884673.entry.js +0 -4
- package/dist/types/components/salla-loyalty-program/translations.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
|
|
6
6
|
import { S as SIMail } from './mail-DLNIOD9t.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const sallaCookiesBarCss = ":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}.s-cookies-bar-btn--active{box-shadow:0 0 0 2px rgba(0, 0, 0, 0.08)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const sallaCountDownCss = ".s-count-down-horizontal{background-color:rgba(0, 0, 0, 0.06);background-color:color-mix(in srgb, var(--color-primary) 10%, transparent)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h } from './index-BKYdKDFz.js';
|
|
5
5
|
import { C as CameraIcon } from './camera-C6jIkM-X.js';
|
|
6
6
|
import { F as FormFieldTypes } from './interfaces-OF8QcbMM.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const DEBUG_KEY = 'salla-delivery-promise-debug';
|
|
7
7
|
function log(message, data) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { H as Helper } from './Helper-BXj4f_Qj.js';
|
|
6
6
|
import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
|
|
6
6
|
import { H as Helper } from './Helper-BXj4f_Qj.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-BKYdKDFz.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
7
7
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const SallaHook = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { H as Helper } from './Helper-BXj4f_Qj.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}.s-installment-klarna-wrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;padding:10px}.salla-y .s-installment-klarna-wrapper{border:1px solid var(--color-grey-dark);border-radius:12px}.s-installment-klarna-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const SallaLocalizationModal = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
|
|
7
7
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
5
|
-
import { s as setTranslations } from './translations-dn_hTofo.js';
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BKYdKDFz.js';
|
|
6
5
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
6
|
+
import { T as TrackedPromise } from './tracked-promise-LXHHL-Cj.js';
|
|
8
7
|
|
|
9
8
|
const sallaLoyaltyProgramCss = "";
|
|
10
9
|
|
|
@@ -31,7 +30,6 @@ const SallaLoyaltyBanner = class {
|
|
|
31
30
|
componentWillLoad() {
|
|
32
31
|
return salla.onReady()
|
|
33
32
|
.then(() => salla.lang.onLoaded())
|
|
34
|
-
.then(() => setTranslations())
|
|
35
33
|
.then(() => this.prize())
|
|
36
34
|
.catch(error => salla.logger.error(error));
|
|
37
35
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
5
|
-
import { c as closeModals, f as formattedPointsJsx, i as isUnitOrder } from './functions-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
|
+
import { c as closeModals, f as formattedPointsJsx, i as isUnitOrder } from './functions-D5cnKLmS.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
8
8
|
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
@@ -20,13 +20,13 @@ const SallaLoyaltyHero = class {
|
|
|
20
20
|
registerInstance(this, hostRef);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '5c5193846a54877e042ef6470014aa6d041f5d40' }, h("section", { key: '6072a4836f28c2de74eeb2208f1e2e66f274875e', class: "s-loyalty-program-hero-container" }, h("div", { key: 'e5475eebd8725e3fc0650a4a3fd9ace4c0b785af', class: "s-loyalty-program-hero-background", style: {
|
|
24
24
|
backgroundImage: `url(${this.image})`,
|
|
25
|
-
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '
|
|
25
|
+
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '485aa5a50b7cfc463cafa704c08bc01d7a2a56df', class: {
|
|
26
26
|
's-loyalty-program-hero-content': true,
|
|
27
27
|
's-loyalty-program-hero-white': !!this.image,
|
|
28
28
|
's-loyalty-program-hero-gray': !this.image,
|
|
29
|
-
} }, h("div", { key: '
|
|
29
|
+
} }, h("div", { key: '5a20942fbdcf655adf647d5fda20d98c95e7b5f0' }, h("h1", { key: 'cd588ad7f5d83aaf91b584ca27e1e4765401eb22', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: '2bc4d0be971eb4772ad0c312a0036715939ee443', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: 'a57f729e535582f45543d95d1c305b5a89c18118', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '9eae1d22eb64f00e25a355485979435bce464a4a', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: 'c8f7c4aca6095bd75d0122e5ce3694af3561a01e', name: "action" }))), h("div", { key: 'f08a2d8a93bdfc9ca93effd4b4e693670c057689', class: "s-loyalty-program-hero-footer" }, h("div", { key: '171cc3d9a92aee7380aa974a300f91e81ae3319d', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '518e48e2dede80b0acd427d1d1ca0aaf2c1ffef0', name: "crosspoint" }))))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
SallaLoyaltyHero.style = sallaLoyaltyProgramCss$1;
|
|
@@ -204,12 +204,6 @@ const SallaLoyaltyPoint = class {
|
|
|
204
204
|
return '';
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
getSteps(point) {
|
|
208
|
-
if (!!point.steps.length) {
|
|
209
|
-
return (h("div", { class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { class: "s-loyalty-program-points-chain-list" }, this.point.steps.map((step, idx) => 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]), 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 }), h("span", null, salla.lang.get(`pages.loyalty_program.step_${idx + 1}`))), h("p", { class: "s-loyalty-program-points-chain-description" }, salla.lang.get(`pages.loyalty_program.${step.key}`, { points: this.point.points }))))))));
|
|
210
|
-
}
|
|
211
|
-
return '';
|
|
212
|
-
}
|
|
213
207
|
getDetails(point) {
|
|
214
208
|
if (point.conditions.filter(c => c.key.endsWith('_BY_CATEGORIES')).length > 0) {
|
|
215
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)))))))));
|
|
@@ -230,7 +224,7 @@ const SallaLoyaltyPoint = class {
|
|
|
230
224
|
}
|
|
231
225
|
}
|
|
232
226
|
render() {
|
|
233
|
-
return (h("div", { key: '
|
|
227
|
+
return (h("div", { key: '18188b96c76014a8ca63490301473570179c6e78' }, h("div", { key: '0549c74cd95a162a59a471cdc59be0f1ced0ce0f', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'cb3cbbd5b73644e1e69bd427e8603021e3177b1c', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '9915e810011d48c389f2ff7e49059c386a71fb9f', class: this.point.icon })), h("div", { key: 'ee19572884f1d26780cde2532f65dedaea881240', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '781ec4ca3f923a0784242d3933131616f2b24d44', size: "xs", bg: "transparent" }, h("span", { key: '5e38c2cb5b84f3c5dcddf1ab52ece36f91aaf89c', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: 'a78d50feb0e87e3df46616b80296566dd41f04bf', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'e984c578ad5ec7a6837d051d7d79635e1867b2d8', size: "sm", bg: "transparent" }, h("span", { key: 'b10cba531be0562633c446fe9f545553606e36af', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: 'c10978d7fdf85a7c99442d8ab3583048380d2108', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
|
|
234
228
|
h("a", { class: {
|
|
235
229
|
's-loyalty-program-points-action': true,
|
|
236
230
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
@@ -240,12 +234,12 @@ const SallaLoyaltyPoint = class {
|
|
|
240
234
|
's-loyalty-program-points-action': true,
|
|
241
235
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
242
236
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
243
|
-
} }, this.point.description)), h("salla-modal", { key: '
|
|
244
|
-
h("div", { key: '
|
|
237
|
+
} }, this.point.description)), h("salla-modal", { key: 'e44d1d39a1a7aa2f5560ed920a1e7b071f89e44c', 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: '29079334d694c522883e101be8cbf3cac7cf53cb', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '31d76362feb5d8faf3f0ef7f0bc253aa5d53bf06', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '526cfb6c9181e17c2953678da7018ba627d410fe', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '09aff5a2d91555902ed6adcb9875b43915a2c26a', class: "s-loyalty-program-points-modal-main" }, h("div", { key: 'a3878cda3a169d8780232b1b94f52add991038f6', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '54ba6129910cad8719872ac3f6fa2849ff3fe085', class: this.point.icon })), h("salla-badge", { key: '32f3fb88719c3c6ed8523235a0c05ec7cdf52936', size: "sm", bg: "light" }, h("span", { key: '8b9eb28e0175f411dd96cf99e7bbfd82d6364178', innerHTML: SIGift }), h("span", { key: '93e030f87e44efd45f46d5e246fc9b636b84150f', 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: '8536792c55eee3afaf0f22706691109dd14b08d1', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '9121cc3b2e099189ee780a37c07cfdd4a83471d5', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '254a0641aac4eafd9386757445808567c1fd5707', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
|
|
245
239
|
const stepsArray = Object.values(this.point.steps);
|
|
246
240
|
const isLastItem = idx === stepsArray.length - 1;
|
|
247
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))));
|
|
248
|
-
})))), this.getDetails(this.point), h("div", { key: '
|
|
242
|
+
})))), this.getDetails(this.point), h("div", { key: '5a7b03a390c7fe14741e8ba2a720335496af2ffb', 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: '627db1137113e711730ba1187d43224b24b66381', class: "s-loyalty-program-points-modal-action" }, h("a", { key: 'acb48d39007c6c42d2a248dbdd62c6e1afb0c994', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
|
|
249
243
|
's-loyalty-program-points-action': true,
|
|
250
244
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
251
245
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { n as normalizeLoyaltyData, c as closeModals } from './functions-C_YevJW-.js';
|
|
4
|
+
import { h, r as registerInstance } from './index-BKYdKDFz.js';
|
|
5
|
+
import { n as normalizeLoyaltyData, c as closeModals } from './functions-D5cnKLmS.js';
|
|
7
6
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
8
7
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
9
8
|
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
10
9
|
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
11
10
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
12
|
-
import { T as TrackedPromise } from './tracked-promise-
|
|
11
|
+
import { T as TrackedPromise } from './tracked-promise-LXHHL-Cj.js';
|
|
13
12
|
|
|
14
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>`;
|
|
15
14
|
|
|
@@ -44,7 +43,6 @@ const SallaLoyaltyPanel = class {
|
|
|
44
43
|
componentWillLoad() {
|
|
45
44
|
return salla.onReady()
|
|
46
45
|
.then(() => salla.lang.onLoaded())
|
|
47
|
-
.then(() => setTranslations())
|
|
48
46
|
.then(() => {
|
|
49
47
|
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
50
48
|
salla.event.on('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
5
|
-
import { s as setTranslations } from './translations-dn_hTofo.js';
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
6
5
|
|
|
7
6
|
var MoneyIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
7
|
<path d="M8.76604 2.86201C9.31804 2.61001 9.93304 2.41501 10.611 2.27701C11.289 2.13901 12 2.07001 12.744 2.07001C13.572 2.07001 14.364 2.15401 15.12 2.32201C15.84 2.49001 16.356 2.81401 16.668 3.29401C16.932 3.70201 17.064 4.26001 17.064 4.96801V13.032C17.064 13.416 16.95 13.752 16.722 14.04C16.506 14.304 16.227 14.493 15.885 14.607C15.543 14.721 15.204 14.742 14.868 14.67C14.196 14.514 13.488 14.436 12.744 14.436C12.084 14.436 11.442 14.502 10.818 14.634C10.23 14.754 9.70204 14.922 9.23404 15.138C8.68204 15.39 8.06704 15.585 7.38904 15.723C6.71104 15.861 6.00004 15.93 5.25604 15.93C4.42804 15.93 3.63604 15.846 2.88004 15.678C2.18404 15.522 1.68004 15.21 1.36804 14.742C1.08004 14.322 0.936035 13.752 0.936035 13.032V4.96801C0.936035 4.58401 1.05004 4.24801 1.27804 3.96001C1.49404 3.69601 1.77304 3.50701 2.11504 3.39301C2.45704 3.27901 2.79604 3.25801 3.13204 3.33001C3.80404 3.48601 4.51204 3.56401 5.25604 3.56401C5.91604 3.56401 6.55804 3.49801 7.18204 3.36601C7.77004 3.24601 8.29804 3.07801 8.76604 2.86201ZM11.25 9.00001C11.25 8.59201 11.148 8.21701 10.944 7.87501C10.74 7.53301 10.467 7.26001 10.125 7.05601C9.78304 6.85201 9.40804 6.75001 9.00004 6.75001C8.59204 6.75001 8.21704 6.85201 7.87504 7.05601C7.53304 7.26001 7.26004 7.53301 7.05604 7.87501C6.85204 8.21701 6.75004 8.59201 6.75004 9.00001C6.75004 9.40801 6.85204 9.78301 7.05604 10.125C7.26004 10.467 7.53304 10.74 7.87504 10.944C8.21704 11.148 8.59204 11.25 9.00004 11.25C9.40804 11.25 9.78304 11.148 10.125 10.944C10.467 10.74 10.74 10.467 10.944 10.125C11.148 9.78301 11.25 9.40801 11.25 9.00001ZM14.328 7.79401C14.076 7.75801 13.812 7.73401 13.536 7.72201C13.38 7.71001 13.245 7.75501 13.131 7.85701C13.017 7.95901 12.954 8.08801 12.942 8.24401C12.93 8.40001 12.975 8.53501 13.077 8.64901C13.179 8.76301 13.308 8.82601 13.464 8.83801C13.704 8.85001 13.938 8.87401 14.166 8.91001C14.322 8.93401 14.463 8.90101 14.589 8.81101C14.715 8.72101 14.787 8.59801 14.805 8.44201C14.823 8.28601 14.787 8.14501 14.697 8.01901C14.607 7.89301 14.484 7.81801 14.328 7.79401ZM4.53604 9.16201C4.29604 9.15001 4.06204 9.12601 3.83404 9.09001C3.67804 9.06601 3.53704 9.09901 3.41104 9.18901C3.28504 9.27901 3.21304 9.40201 3.19504 9.55801C3.17704 9.71401 3.21304 9.85501 3.30304 9.98101C3.39304 10.107 3.51604 10.182 3.67204 10.206C3.92404 10.242 4.18804 10.266 4.46404 10.278C4.62004 10.29 4.75504 10.245 4.86904 10.143C4.98304 10.041 5.04604 9.91201 5.05804 9.75601C5.07004 9.60001 5.02504 9.46501 4.92304 9.35101C4.82104 9.23701 4.69204 9.17401 4.53604 9.16201Z" fill="white"/>
|
|
@@ -21,7 +20,6 @@ const SallaLoyaltyPointsBanner = class {
|
|
|
21
20
|
try {
|
|
22
21
|
await salla.onReady();
|
|
23
22
|
await salla.lang.onLoaded();
|
|
24
|
-
await setTranslations();
|
|
25
23
|
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
26
24
|
if (!this.productId) {
|
|
27
25
|
return;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BKYdKDFz.js';
|
|
5
|
+
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
6
|
+
|
|
7
|
+
const formatDate = (timestamp) => {
|
|
8
|
+
if (!timestamp)
|
|
9
|
+
return '';
|
|
10
|
+
return new Date(Number(timestamp)).toLocaleDateString(salla.lang.locale, {
|
|
11
|
+
weekday: 'long',
|
|
12
|
+
year: 'numeric',
|
|
13
|
+
month: 'long',
|
|
14
|
+
day: 'numeric',
|
|
15
|
+
hour: 'numeric',
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const translateKey = (key) => {
|
|
19
|
+
if (!key)
|
|
20
|
+
return '';
|
|
21
|
+
try {
|
|
22
|
+
const k = key.toLowerCase();
|
|
23
|
+
const translation = salla.lang.get(`pages.loyalty_program.${k}`);
|
|
24
|
+
return translation === `pages.loyalty_program.${k}` ? key : translation;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return key;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const SallaLoyaltyPointsHistory = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
registerInstance(this, hostRef);
|
|
33
|
+
this.loyaltyPointsArray = [];
|
|
34
|
+
this.balance = 0;
|
|
35
|
+
this.isLoadingLoyalty = false;
|
|
36
|
+
this.nextPageUrlLoyalty = '';
|
|
37
|
+
this.handleClick = () => {
|
|
38
|
+
this.loadMoreLoyaltyPoints();
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async componentWillLoad() {
|
|
42
|
+
try {
|
|
43
|
+
await salla.onReady();
|
|
44
|
+
await salla.lang.onLoaded();
|
|
45
|
+
await this.loadLoyaltyPoints();
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
salla?.logger?.warn?.('salla-loyalty-points-history: init failed', e);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async loadLoyaltyPoints() {
|
|
52
|
+
this.isLoadingLoyalty = true;
|
|
53
|
+
try {
|
|
54
|
+
let url = `/balance/points?page=1`;
|
|
55
|
+
let resp = await salla.api.request(url);
|
|
56
|
+
this.loyaltyPointsArray = resp.data;
|
|
57
|
+
this.balance = resp.balance;
|
|
58
|
+
this.nextPageUrlLoyalty = resp.cursor.next;
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
console.error('Error loading loyalty points transactions', error);
|
|
62
|
+
}
|
|
63
|
+
finally {
|
|
64
|
+
this.isLoadingLoyalty = false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async loadMoreLoyaltyPoints() {
|
|
68
|
+
if (!this.nextPageUrlLoyalty)
|
|
69
|
+
return;
|
|
70
|
+
this.isLoadingLoyalty = true;
|
|
71
|
+
try {
|
|
72
|
+
let resp = await salla.api.request(this.nextPageUrlLoyalty);
|
|
73
|
+
this.loyaltyPointsArray = [...this.loyaltyPointsArray, ...resp.data];
|
|
74
|
+
this.nextPageUrlLoyalty = resp.cursor?.next || '';
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
console.error('Error loading more loyalty points', error);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
this.isLoadingLoyalty = false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return (h(Host, { key: '722394ad8e614d7db2460762992ea12bbf4d1f07' }, h("div", { key: '2230046263f24dbe9f13329134121e6b1079d713' }, this.isLoadingLoyalty ? (h("salla-loading", null)) : (h("div", null, h("table", { class: "s-loyalty-points-history-table" }, h("tbody", null, h("tr", null, h("td", null, h("div", { class: "s-loyalty-points-history-balance-container" }, h("i", { class: "s-loyalty-points-history-balance-icon sicon-gift" }), h("div", null, h("div", { class: "s-loyalty-points-history-balance-value" }, this.balance, " ", salla.lang.get('pages.loyalty_program.point')), h("div", { class: "s-loyalty-points-history-balance-label" }, salla.lang.get('pages.loyalty_program.your_points')))))))), this.loyaltyPointsArray.length > 0 ? (h("div", null, h("table", { class: "s-loyalty-points-history-table" }, h("thead", { class: "s-loyalty-points-history-table-head" }, h("tr", null, h("th", { scope: "col", class: "s-loyalty-points-history-table-head-tr-th" }, salla.lang.get('pages.wallet.points')), h("th", { scope: "col", class: "s-loyalty-points-history-table-head-tr-th" }, salla.lang.get('pages.wallet.date')), h("th", { scope: "col", class: "s-loyalty-points-history-table-head-tr-th" }, salla.lang.get('pages.wallet.expiry_date')), h("th", { scope: "col", class: "s-loyalty-points-history-table-head-tr-th" }, salla.lang.get('common.elements.note')), h("th", { scope: "col", class: "s-loyalty-points-history-table-head-tr-th" }, salla.lang.get('common.elements.status')))), h("tbody", null, this.loyaltyPointsArray.map(point => (h("tr", { class: "s-loyalty-points-history-table-tbody-tr" }, h("td", { class: "s-loyalty-points-history-table-tbody-tr-td" }, h("div", { class: "s-loyalty-points-history-table-tbody-tr-td-content" }, h("span", { class: "s-loyalty-points-history-mobile-title" }, salla.lang.get('pages.wallet.points'), ":"), h("span", null, point?.type === 'plus' ? '+' : '', point?.amount || '', " ", salla.lang.get('pages.loyalty_program.point')))), h("td", { class: "s-loyalty-points-history-table-tbody-tr-td" }, h("div", { class: "s-loyalty-points-history-table-tbody-tr-td-content" }, h("span", { class: "s-loyalty-points-history-mobile-title" }, salla.lang.get('pages.wallet.date'), ":"), h("span", null, formatDate(point?.created_at ? Number(point.created_at) * 1000 : undefined)))), h("td", { class: "s-loyalty-points-history-table-tbody-tr-td" }, h("div", { class: "s-loyalty-points-history-table-tbody-tr-td-content" }, h("span", { class: "s-loyalty-points-history-mobile-title" }, salla.lang.get('pages.wallet.expiry_date'), ":"), h("span", null, formatDate(point?.expires_at ? Number(point.expires_at) * 1000 : undefined)))), h("td", { class: "s-loyalty-points-history-table-tbody-tr-td" }, h("div", { class: "s-loyalty-points-history-table-tbody-tr-td-content" }, h("span", { class: "s-loyalty-points-history-mobile-title" }, salla.lang.get('common.elements.note'), ":"), h("span", null, translateKey(point?.key)))), h("td", { class: "s-loyalty-points-history-table-tbody-tr-td" }, h("div", { class: "s-loyalty-points-history-table-tbody-tr-td-content" }, h("span", { class: "s-loyalty-points-history-mobile-title" }, salla.lang.get('common.elements.status'), ":"), h("div", { class: {
|
|
85
|
+
's-loyalty-points-history-table-transaction-status': true,
|
|
86
|
+
's-loyalty-points-history-table-transaction-status-pending': point?.status_key === 'pending',
|
|
87
|
+
's-loyalty-points-history-table-transaction-status-revoked': point?.status_key === 'revoked',
|
|
88
|
+
's-loyalty-points-history-table-transaction-status-used': point?.status_key === 'used',
|
|
89
|
+
's-loyalty-points-history-table-transaction-status-expired': point?.status_key === 'expired',
|
|
90
|
+
} }, point?.status)))))))), h("div", { class: "s-loyalty-points-history-load-more" }, !!this.nextPageUrlLoyalty && (h("salla-button", { onClick: this.handleClick, loading: this.isLoadingLoyalty }, salla.lang.get('common.elements.load_more')))))) : (h("div", { class: "s-loyalty-points-history-table-empty-state" }, h("span", { innerHTML: SIGift }), h("div", { class: "s-loyalty-points-history-table-placeholder-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_title')), h("div", { class: "s-loyalty-points-history-table-placeholder-sub-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_sub_title')))))))));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { SallaLoyaltyPointsHistory as salla_loyalty_points_history };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-BKYdKDFz.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
7
7
|
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-C_YevJW-.js';
|
|
4
|
+
import { h, r as registerInstance } from './index-BKYdKDFz.js';
|
|
5
|
+
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-D5cnKLmS.js';
|
|
7
6
|
import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
|
|
8
7
|
import { S as SIShipping } from './shipping-CZRcMGA9.js';
|
|
9
8
|
import { S as SICart2 } from './cart2-D1s2kXqL.js';
|
|
10
9
|
import { S as SIUserAdd } from './user-add-QpH8MU22.js';
|
|
11
10
|
import { S as SIGiftSharing } from './gift-sharing-0-eTJXSD.js';
|
|
12
|
-
import {
|
|
13
|
-
import { T as TrackedPromise } from './tracked-promise-DmXpObWP.js';
|
|
11
|
+
import { T as TrackedPromise } from './tracked-promise-LXHHL-Cj.js';
|
|
14
12
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
15
13
|
|
|
16
14
|
var SICartUpload = `<!-- Generated by IcoMoon.io -->
|
|
@@ -58,7 +56,6 @@ const SallaLoyaltyProgram = class {
|
|
|
58
56
|
componentWillLoad() {
|
|
59
57
|
return salla.onReady()
|
|
60
58
|
.then(() => salla.lang.onLoaded())
|
|
61
|
-
.then(() => setTranslations())
|
|
62
59
|
.then(() => {
|
|
63
60
|
this.program();
|
|
64
61
|
this.points();
|
|
@@ -85,7 +82,7 @@ const SallaLoyaltyProgram = class {
|
|
|
85
82
|
const prizesGroups = this.program.data.prizes;
|
|
86
83
|
const prizesCount = this.program.data.prizes_count;
|
|
87
84
|
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()
|
|
88
|
-
? 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("
|
|
85
|
+
? 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'))))
|
|
89
86
|
: h("button", { slot: "action", onClick: () => salla.event.dispatch('login::open'), class: {
|
|
90
87
|
's-loyalty-program-login-action': true,
|
|
91
88
|
's-loyalty-program-login-action-dark': !this.program.data.image,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
5
|
-
import { c as closeModals } from './functions-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h } from './index-BKYdKDFz.js';
|
|
5
|
+
import { c as closeModals } from './functions-D5cnKLmS.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
|
|
8
8
|
const sallaLoyaltyProgramCss = "";
|
|
@@ -37,10 +37,10 @@ const SallaLoyaltyReward = class {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: 'c99714fbefea9c43a199201d6e9d331ed4b50e7f', class: {
|
|
41
41
|
's-loyalty-program-reward-container': true,
|
|
42
42
|
's-loyalty-program-reward-xs': this.size === 'xs',
|
|
43
|
-
} }, h("div", { key: '
|
|
43
|
+
} }, h("div", { key: 'b3139a4325629e3e23b09096b96fbb9079ebb4f5', onClick: this.handleActionArea, role: "button" }, h("div", { key: '8d2951399db70f2672619149583d3821429611fa', class: "s-loyalty-program-reward-img" }, h("img", { key: 'd03e024172b99a72fdeb311e24f91d9ca11b69a1', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: '23901c0a96c9af1ae459d5bbcad0f4429933225b', class: "s-loyalty-program-reward-content" }, h("div", { key: '795743061efd1270a1a24eceb66f67e2bbb9eb1e', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '83545f69e513a563dfaef7bb107ae119656406a0', size: "xs" }, h("span", { key: '28751b88c77af1acfb746f58f55f4b84f2364141', innerHTML: SIGift }), h("span", { key: '2ab694a2ff30f419171191c0746b80f74edfeea4', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: 'a67f1577b61604d88b54637a8951248663239a6e', class: "s-loyalty-program-reward-title" }, h("span", { key: 'c3a6df53cff6339bbd81018d69bcf3a8637e0a46' }, this.group)), h("div", { key: '6790fc3a3d44e7e25a2e5c1ea246515245fa1e61', class: "s-loyalty-program-reward-name" }, h("div", { key: 'fa99561fa8d2efafc2aee2796eceea93721e525d', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '948edaacd021950384418aedab807c11dee15754', class: "p-4" }, h("button", { key: '982c4c516b508aabec8489dc6f5c9ca326264f2a', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
|
|
44
44
|
's-loyalty-program-rewards-action-base': true,
|
|
45
45
|
's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
|
|
46
46
|
's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-BKYdKDFz.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
6
6
|
|
|
7
7
|
const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
|
|
@@ -22,7 +22,7 @@ const SallaMaintenanceAlert = class {
|
|
|
22
22
|
this.host.style.display = 'none';
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '43a02d438a0357bd48922ad8fa4753905ac5e388', class: "s-maintenance-alert-wrapper" }, h("button", { key: 'ad62ec4a5ea3e77854d5bbf8938c4bb1b19da068', class: "s-maintenance-alert-close", innerHTML: SICancel, onClick: () => this.closeAlert() }), h("div", { key: '4a26bf28c37452b9621703188502b05db1347f75', class: "s-maintenance-alert-content" }, h("div", { key: '0602a5df5676b47407e0c8e8293fb2374aa2c210', class: "s-maintenance-alert-container" }, h("div", { key: 'ff7c3fad5c1830d6d8d631aa520b0dd588328265', class: "s-maintenance-alert-icon" }, h("img", { key: '277e2a8c3d6b4369e73fef23adf894ddf70ef685', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), h("div", { key: '5feb8a00c132f2b5787e42a0b9743d864ceecb2f', class: "s-maintenance-alert-text" }, h("h2", { key: '994eb48859d163ad19be4a273a5cff5e28f18b2b' }, this.title), h("p", { key: '236094a5767e6f329744e8dafc2415be2713a0e2' }, this.message))), h("div", { key: '98610dfed6802e7ebc123c1392c9f7ebdbcf0d5a' }, h("a", { key: '655cede6c8e95a7fbb63700f01ef1d148887a660', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
|
|
26
26
|
}
|
|
27
27
|
componentDidLoad() {
|
|
28
28
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BKYdKDFz.js';
|
|
5
5
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
6
6
|
|
|
7
7
|
var Edit = `<!-- Generated by IcoMoon.io -->
|
|
@@ -698,11 +698,11 @@ const SallaMap = class {
|
|
|
698
698
|
}
|
|
699
699
|
// render
|
|
700
700
|
render() {
|
|
701
|
-
return (h(Host, { key: '
|
|
701
|
+
return (h(Host, { key: '8fae0e6754bd0571d5acf9bbc6df23e73b02b015', class: "s-map-wrapper" }, h("salla-modal", { key: '7aebcc533a4ec8f7ec5e3a8682f7f70afd5b1193', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
702
702
|
this.locationModal = modal;
|
|
703
|
-
} }, this.getLocationModal()), h("slot", { key: '
|
|
703
|
+
} }, this.getLocationModal()), h("slot", { key: '1dc262e8474c0d137f98ce06c76d9fdea80d42c4', name: "button" }, h("salla-button", { key: '5ff296514b2e7b37d091cd634f497e855cf047d5', onClick: () => {
|
|
704
704
|
this.open();
|
|
705
|
-
}, color: "primary", class: "s-map-location-button" }, h("span", { key: '
|
|
705
|
+
}, color: "primary", class: "s-map-location-button" }, h("span", { key: '806e832caff4dfdbadab0098f8c521548eb18aa4', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : Location }), this.formattedAddress ? (h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), h("input", { key: '2bc1c843dd35803d4f443907d1df52c72f4e87c2', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
|
|
706
706
|
}
|
|
707
707
|
get host() { return getElement(this); }
|
|
708
708
|
};
|