@salla.sa/twilight-components 2.14.461 → 2.14.463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-DDAGSiBu.js → filepond-XQ49P28a.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-nmHjxMAB.js → filepond-plugin-file-poster-BPQxaVwU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BtQEm835.js → filepond-plugin-file-validate-size-B9ApyJPA.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DZh74oiy.js → filepond-plugin-file-validate-type-Bcpy1-Yx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CTGzmH1f.js → filepond-plugin-image-edit-DpTpDHd0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D851LeUg.js → filepond-plugin-image-exif-orientation-BpFgVfuH.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BcbCu3xH.js → filepond-plugin-image-preview-Cb8nl-Sk.js} +1 -1
- package/dist/cjs/{functions-JSbmlqCR.js → functions-BWxgjDLr.js} +1 -1
- package/dist/cjs/{index-B382wYR4.js → index-C8A5Jog8.js} +1 -1
- package/dist/cjs/{index-BbEaNgXt.js → index-erFsk7OI.js} +6 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -4
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +9 -15
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -5
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -3
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +96 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +4 -7
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-map.cjs.entry.js +4 -4
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +29 -12
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +10 -10
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +6 -7
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-B0hsrPu_.js → tracked-promise-CAEeCapf.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CuSFaj7m.js → vanilla-picker-B9ah_1w1.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +99 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +0 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -10
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -4
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-products-list/salla-products-list.js +28 -11
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +6 -7
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cashback-banner.js +0 -2
- package/dist/components/salla-loyalty-banner.js +0 -2
- package/dist/components/salla-loyalty-hero2.js +3 -3
- package/dist/components/salla-loyalty-panel.js +0 -2
- package/dist/components/salla-loyalty-point2.js +4 -10
- package/dist/components/salla-loyalty-points-banner.js +0 -2
- package/dist/components/salla-loyalty-points-history.d.ts +11 -0
- package/dist/components/salla-loyalty-points-history.js +129 -0
- package/dist/components/salla-loyalty-program.js +1 -4
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-products-list2.js +28 -11
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +3 -3
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-menu.js +6 -7
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-n7Tk1X1s.js → filepond-AAIlCdAO.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BSnp0vvZ.js → filepond-plugin-file-poster-CzcSk93x.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CoYRMYw6.js → filepond-plugin-file-validate-size-DRV8qwBW.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-qCOXsTrd.js → filepond-plugin-file-validate-type-CelZ69Kz.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DXpVwYXm.js → filepond-plugin-image-edit-B-hHZqmA.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BWH5RIuD.js → filepond-plugin-image-exif-orientation-BgxjrMAY.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-D2-j0VSU.js → filepond-plugin-image-preview-h6BWEU-G.js} +1 -1
- package/dist/esm/{functions-C0YAccvF.js → functions-Dg0XXbIV.js} +1 -1
- package/dist/esm/{index-CWoBHtob.js → index-BlGD97H6.js} +1 -1
- package/dist/esm/{index-DZJfoSMn.js → index-CgKcWLpf.js} +6 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +12 -12
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -3
- package/dist/esm/salla-comment-form_8.entry.js +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -4
- package/dist/esm/salla-loyalty-hero_2.entry.js +9 -15
- package/dist/esm/salla-loyalty-panel.entry.js +3 -5
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -3
- package/dist/esm/salla-loyalty-points-history.entry.js +94 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +4 -7
- package/dist/esm/salla-loyalty-reward.entry.js +4 -4
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map.entry.js +4 -4
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card_2.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +29 -12
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +10 -10
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +6 -7
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-GcOA8b3a.js → tracked-promise-B-7sMH4T.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BpADmZjj.js → vanilla-picker-BcjrIc-C.js} +1 -1
- package/dist/twilight/{p-05f84e06.entry.js → p-02e79512.entry.js} +1 -1
- package/dist/twilight/{p-f4c8cace.entry.js → p-050d10dd.entry.js} +1 -1
- package/dist/twilight/{p-d04feb4a.entry.js → p-07e779b2.entry.js} +1 -1
- package/dist/twilight/{p-ebfbda5f.entry.js → p-0bb1836f.entry.js} +1 -1
- package/dist/twilight/{p-759ec1b2.entry.js → p-0bf29eb6.entry.js} +1 -1
- package/dist/twilight/{p-adb26a1f.entry.js → p-0fbd5e22.entry.js} +1 -1
- package/dist/twilight/{p-38e27a00.entry.js → p-17ae88c3.entry.js} +1 -1
- package/dist/twilight/p-17bceaf3.entry.js +4 -0
- package/dist/twilight/p-18123ac7.entry.js +4 -0
- package/dist/twilight/p-1c078509.entry.js +4 -0
- package/dist/twilight/p-1f8d103f.entry.js +4 -0
- package/dist/twilight/{p-2a900c4e.entry.js → p-23d41e5a.entry.js} +1 -1
- package/dist/twilight/{p-92bdfae5.entry.js → p-2ef068f6.entry.js} +1 -1
- package/dist/twilight/p-30cdc70c.entry.js +4 -0
- package/dist/twilight/{p-ed4a6e2d.entry.js → p-3173408c.entry.js} +1 -1
- package/dist/twilight/{p-c785365c.entry.js → p-31aa72b6.entry.js} +1 -1
- package/dist/twilight/{p-17d10d15.entry.js → p-323be2a0.entry.js} +1 -1
- package/dist/twilight/{p-ed061a5a.entry.js → p-34881ede.entry.js} +1 -1
- package/dist/twilight/{p-20ccbbe4.entry.js → p-37e5e4ba.entry.js} +1 -1
- package/dist/twilight/{p-c177ec39.entry.js → p-39a27ca2.entry.js} +1 -1
- package/dist/twilight/{p-3355b043.entry.js → p-3d5d09e5.entry.js} +1 -1
- package/dist/twilight/{p-457c98ed.entry.js → p-43f6d3aa.entry.js} +1 -1
- package/dist/twilight/{p-78ea4116.entry.js → p-46a9e49d.entry.js} +1 -1
- package/dist/twilight/p-49953509.entry.js +4 -0
- package/dist/twilight/{p-fbea393e.entry.js → p-49fef2a0.entry.js} +1 -1
- package/dist/twilight/{p-e9029b24.entry.js → p-4bd6f468.entry.js} +1 -1
- package/dist/twilight/{p-6deac135.entry.js → p-4e8fb0e3.entry.js} +1 -1
- package/dist/twilight/{p-4391b061.entry.js → p-520b00c7.entry.js} +1 -1
- package/dist/twilight/p-53b100a6.entry.js +4 -0
- package/dist/twilight/{p-ab681e13.entry.js → p-55178df6.entry.js} +1 -1
- package/dist/twilight/p-5642a30a.entry.js +4 -0
- package/dist/twilight/{p-8494470d.entry.js → p-5fe17bc8.entry.js} +1 -1
- package/dist/twilight/{p-c443a332.entry.js → p-6419fdff.entry.js} +1 -1
- package/dist/twilight/{p-8640b282.entry.js → p-65e1db2e.entry.js} +1 -1
- package/dist/twilight/p-67a831d2.entry.js +4 -0
- package/dist/twilight/{p-dc85db79.entry.js → p-684678f7.entry.js} +1 -1
- package/dist/twilight/{p-aa6980d3.entry.js → p-6868565b.entry.js} +1 -1
- package/dist/twilight/{p-60d8f39b.entry.js → p-68e221fb.entry.js} +1 -1
- package/dist/twilight/{p-aaa589b3.entry.js → p-6b25dc69.entry.js} +1 -1
- package/dist/twilight/{p-04755a75.entry.js → p-6fa42874.entry.js} +1 -1
- package/dist/twilight/p-70eced14.entry.js +4 -0
- package/dist/twilight/{p-28654655.entry.js → p-71f024e8.entry.js} +1 -1
- package/dist/twilight/{p-95916068.entry.js → p-77a23292.entry.js} +1 -1
- package/dist/twilight/{p-348ba7bc.entry.js → p-7b35061c.entry.js} +1 -1
- package/dist/twilight/{p-a2ef6d82.entry.js → p-7c4ee058.entry.js} +1 -1
- package/dist/twilight/{p-b17dff86.entry.js → p-7f27897e.entry.js} +1 -1
- package/dist/twilight/{p-3d72203e.entry.js → p-7f5f48f6.entry.js} +1 -1
- package/dist/twilight/{p-72cac49f.entry.js → p-84e636d1.entry.js} +1 -1
- package/dist/twilight/{p-57b49cdf.entry.js → p-8517f731.entry.js} +1 -1
- package/dist/twilight/{p-36b19d00.entry.js → p-86aa1fbf.entry.js} +1 -1
- package/dist/twilight/{p-ef824ee1.entry.js → p-8c72f4cc.entry.js} +1 -1
- package/dist/twilight/{p-723fd41b.entry.js → p-8dabf108.entry.js} +1 -1
- package/dist/twilight/{p-e3c42341.entry.js → p-8fc7f3d6.entry.js} +1 -1
- package/dist/twilight/{p-0707d2f3.entry.js → p-904617da.entry.js} +1 -1
- package/dist/twilight/{p-154982a2.entry.js → p-9176d7ce.entry.js} +1 -1
- package/dist/twilight/{p-ac27db7b.entry.js → p-9387dd90.entry.js} +1 -1
- package/dist/twilight/{p-e8514ae6.entry.js → p-99106873.entry.js} +1 -1
- package/dist/twilight/p-9b4fc23f.entry.js +4 -0
- package/dist/twilight/{p-0377ee4a.entry.js → p-9c28210e.entry.js} +1 -1
- package/dist/twilight/{p-AfEAfJ98.js → p-Bo2jQzcR.js} +1 -1
- package/dist/twilight/{p-D3Knumjd.js → p-BzGCvVEm.js} +1 -1
- package/dist/twilight/{p-q7sRVQkm.js → p-CC2-QEDL.js} +1 -1
- package/dist/twilight/{p-BGvyt9d0.js → p-CH7wsBUY.js} +1 -1
- package/dist/twilight/{p-DZJfoSMn.js → p-CgKcWLpf.js} +1 -1
- package/dist/twilight/{p-DPrVo6nK.js → p-CwWt5HLh.js} +1 -1
- package/dist/twilight/p-DBqJzNYt.js +4 -0
- package/dist/twilight/p-DPoo7VAM.js +9 -0
- package/dist/twilight/{p-DtRKnFMd.js → p-HVfj7cvk.js} +1 -1
- package/dist/twilight/{p-CzKVU0uc.js → p-KXvNwMUI.js} +1 -1
- package/dist/twilight/{p-3cea9d02.entry.js → p-a34163a9.entry.js} +1 -1
- package/dist/twilight/{p-d4bf9b9a.entry.js → p-a7055743.entry.js} +1 -1
- package/dist/twilight/{p-CL6oN_Q7.js → p-aZStLvlC.js} +1 -1
- package/dist/twilight/{p-7cdd0edd.entry.js → p-ab581ba2.entry.js} +1 -1
- package/dist/twilight/{p-BJydaLla.js → p-alpadDPN.js} +1 -1
- package/dist/twilight/{p-5d8e2e4e.entry.js → p-b0219eab.entry.js} +1 -1
- package/dist/twilight/p-b111e9fa.entry.js +4 -0
- package/dist/twilight/{p-92a92648.entry.js → p-b60cbdfb.entry.js} +1 -1
- package/dist/twilight/p-b6cefa97.entry.js +4 -0
- package/dist/twilight/{p-4e1dd088.entry.js → p-b987e3af.entry.js} +1 -1
- package/dist/twilight/{p-d88387cf.entry.js → p-baeac8aa.entry.js} +1 -1
- package/dist/twilight/{p-d993f567.entry.js → p-bba4aa09.entry.js} +1 -1
- package/dist/twilight/p-c246a042.entry.js +4 -0
- package/dist/twilight/{p-8e29f889.entry.js → p-c522db75.entry.js} +1 -1
- package/dist/twilight/{p-d369971e.entry.js → p-c92bc81e.entry.js} +1 -1
- package/dist/twilight/{p-b8879670.entry.js → p-ca869069.entry.js} +12 -12
- package/dist/twilight/{p-8bdb3374.entry.js → p-cd49d0b1.entry.js} +1 -1
- package/dist/twilight/{p-f7c7dd70.entry.js → p-cd86a347.entry.js} +1 -1
- package/dist/twilight/{p-30532b9c.entry.js → p-cdfbcd5c.entry.js} +1 -1
- package/dist/twilight/{p-0bba3324.entry.js → p-d076e173.entry.js} +1 -1
- package/dist/twilight/{p-c8376047.entry.js → p-d68546db.entry.js} +1 -1
- package/dist/twilight/{p-23d3fe72.entry.js → p-dd363a06.entry.js} +1 -1
- package/dist/twilight/{p-3c726469.entry.js → p-de185a77.entry.js} +1 -1
- package/dist/twilight/p-e197f3d2.entry.js +4 -0
- package/dist/twilight/p-e6a66265.entry.js +4 -0
- package/dist/twilight/{p-a77699f6.entry.js → p-eaedd514.entry.js} +1 -1
- package/dist/twilight/{p-15674f9e.entry.js → p-f0fc32fb.entry.js} +1 -1
- package/dist/twilight/{p-098f1fae.entry.js → p-f66cc02e.entry.js} +1 -1
- package/dist/twilight/p-f6a7c273.entry.js +4 -0
- package/dist/twilight/{p-f3a8ffbe.entry.js → p-f770e708.entry.js} +1 -1
- package/dist/twilight/{p-4f28f97c.entry.js → p-fade3b90.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-loyalty-points-history/salla-loyalty-points-history.d.ts +12 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +3 -2
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +0 -1
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +2 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
- package/dist/types/components.d.ts +13 -0
- package/package.json +5 -5
- package/dist/cjs/translations-BHyDCj-Y.js +0 -306
- package/dist/collection/components/salla-loyalty-program/translations.js +0 -302
- package/dist/components/translations.js +0 -304
- package/dist/esm/translations-dn_hTofo.js +0 -304
- package/dist/twilight/p-173db748.entry.js +0 -4
- package/dist/twilight/p-23de0e4d.entry.js +0 -4
- package/dist/twilight/p-28472b7d.entry.js +0 -4
- package/dist/twilight/p-4bd6e04e.entry.js +0 -4
- package/dist/twilight/p-60ed6a43.entry.js +0 -4
- package/dist/twilight/p-6585f570.entry.js +0 -4
- package/dist/twilight/p-6fcbb71a.entry.js +0 -4
- package/dist/twilight/p-7f8842a6.entry.js +0 -4
- package/dist/twilight/p-8e0cb0b4.entry.js +0 -4
- package/dist/twilight/p-BuQQcHl4.js +0 -4
- package/dist/twilight/p-D1YyLASn.js +0 -9
- package/dist/twilight/p-c74ccdee.entry.js +0 -4
- package/dist/twilight/p-ce20b220.entry.js +0 -4
- package/dist/twilight/p-d9bc10fa.entry.js +0 -4
- package/dist/twilight/p-dn_hTofo.js +0 -4
- package/dist/twilight/p-e18d93d6.entry.js +0 -4
- package/dist/twilight/p-f44362e9.entry.js +0 -4
- package/dist/twilight/p-fcb5ea5d.entry.js +0 -4
- package/dist/twilight/p-fe4866b6.entry.js +0 -4
- package/dist/types/components/salla-loyalty-program/translations.d.ts +0 -1
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { s as setTranslations } from './translations.js';
|
|
6
5
|
|
|
7
6
|
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
7
|
<g clip-path="url(#clip0_5667_2008)">
|
|
@@ -29,7 +28,6 @@ const SallaCashbackBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaCashba
|
|
|
29
28
|
try {
|
|
30
29
|
await salla.onReady();
|
|
31
30
|
await salla.lang.onLoaded();
|
|
32
|
-
await setTranslations();
|
|
33
31
|
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
34
32
|
if (!this.productId) {
|
|
35
33
|
return;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
|
-
import { s as setTranslations } from './translations.js';
|
|
6
5
|
import { l as loyaltyProgramIcon } from './gift.js';
|
|
7
6
|
import { T as TrackedPromise } from './tracked-promise.js';
|
|
8
7
|
import { d as defineCustomElement$4 } from './salla-loading2.js';
|
|
@@ -35,7 +34,6 @@ const SallaLoyaltyBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalty
|
|
|
35
34
|
componentWillLoad() {
|
|
36
35
|
return salla.onReady()
|
|
37
36
|
.then(() => salla.lang.onLoaded())
|
|
38
|
-
.then(() => setTranslations())
|
|
39
37
|
.then(() => this.prize())
|
|
40
38
|
.catch(error => salla.logger.error(error));
|
|
41
39
|
}
|
|
@@ -11,13 +11,13 @@ const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
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: {
|
|
15
15
|
backgroundImage: `url(${this.image})`,
|
|
16
|
-
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '
|
|
16
|
+
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '485aa5a50b7cfc463cafa704c08bc01d7a2a56df', class: {
|
|
17
17
|
's-loyalty-program-hero-content': true,
|
|
18
18
|
's-loyalty-program-hero-white': !!this.image,
|
|
19
19
|
's-loyalty-program-hero-gray': !this.image,
|
|
20
|
-
} }, h("div", { key: '
|
|
20
|
+
} }, 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" }))))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
23
23
|
}, [4, "salla-loyalty-hero", {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
5
|
-
import { s as setTranslations } from './translations.js';
|
|
6
5
|
import { n as normalizeLoyaltyData, c as closeModals } from './functions.js';
|
|
7
6
|
import { R as Rate } from './star2.js';
|
|
8
7
|
import { C as Cancel } from './cancel.js';
|
|
@@ -66,7 +65,6 @@ const SallaLoyaltyPanel$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyP
|
|
|
66
65
|
componentWillLoad() {
|
|
67
66
|
return salla.onReady()
|
|
68
67
|
.then(() => salla.lang.onLoaded())
|
|
69
|
-
.then(() => setTranslations())
|
|
70
68
|
.then(() => {
|
|
71
69
|
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
72
70
|
salla.event.on('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
@@ -196,12 +196,6 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
196
196
|
return '';
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
getSteps(point) {
|
|
200
|
-
if (!!point.steps.length) {
|
|
201
|
-
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: loyaltyProgramIcon }), 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 }))))))));
|
|
202
|
-
}
|
|
203
|
-
return '';
|
|
204
|
-
}
|
|
205
199
|
getDetails(point) {
|
|
206
200
|
if (point.conditions.filter(c => c.key.endsWith('_BY_CATEGORIES')).length > 0) {
|
|
207
201
|
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: loyaltyProgramIcon }), formattedPointsJsx(condition.points, isUnitOrder(point))), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name), h("div", null, this.getCategoriesJsx(condition.value)))))))));
|
|
@@ -222,7 +216,7 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
222
216
|
}
|
|
223
217
|
}
|
|
224
218
|
render() {
|
|
225
|
-
return (h("div", { key: '
|
|
219
|
+
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: loyaltyProgramIcon }), 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: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("p", { key: 'c10978d7fdf85a7c99442d8ab3583048380d2108', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
|
|
226
220
|
h("a", { class: {
|
|
227
221
|
's-loyalty-program-points-action': true,
|
|
228
222
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
@@ -232,12 +226,12 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
232
226
|
's-loyalty-program-points-action': true,
|
|
233
227
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
234
228
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
235
|
-
} }, this.point.description)), h("salla-modal", { key: '
|
|
236
|
-
h("div", { key: '
|
|
229
|
+
} }, 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: loyaltyProgramIcon }), 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 &&
|
|
230
|
+
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) => {
|
|
237
231
|
const stepsArray = Object.values(this.point.steps);
|
|
238
232
|
const isLastItem = idx === stepsArray.length - 1;
|
|
239
233
|
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))));
|
|
240
|
-
})))), this.getDetails(this.point), h("div", { key: '
|
|
234
|
+
})))), 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: loyaltyProgramIcon }), 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: {
|
|
241
235
|
's-loyalty-program-points-action': true,
|
|
242
236
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
243
237
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { s as setTranslations } from './translations.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"/>
|
|
@@ -22,7 +21,6 @@ const SallaLoyaltyPointsBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaL
|
|
|
22
21
|
try {
|
|
23
22
|
await salla.onReady();
|
|
24
23
|
await salla.lang.onLoaded();
|
|
25
|
-
await setTranslations();
|
|
26
24
|
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
27
25
|
if (!this.productId) {
|
|
28
26
|
return;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaLoyaltyPointsHistory extends Components.SallaLoyaltyPointsHistory, HTMLElement {}
|
|
4
|
+
export const SallaLoyaltyPointsHistory: {
|
|
5
|
+
prototype: SallaLoyaltyPointsHistory;
|
|
6
|
+
new (): SallaLoyaltyPointsHistory;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { l as loyaltyProgramIcon } from './gift.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './salla-button2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './salla-loading2.js';
|
|
8
|
+
|
|
9
|
+
const formatDate = (timestamp) => {
|
|
10
|
+
if (!timestamp)
|
|
11
|
+
return '';
|
|
12
|
+
return new Date(Number(timestamp)).toLocaleDateString(salla.lang.locale, {
|
|
13
|
+
weekday: 'long',
|
|
14
|
+
year: 'numeric',
|
|
15
|
+
month: 'long',
|
|
16
|
+
day: 'numeric',
|
|
17
|
+
hour: 'numeric',
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const translateKey = (key) => {
|
|
21
|
+
if (!key)
|
|
22
|
+
return '';
|
|
23
|
+
try {
|
|
24
|
+
const k = key.toLowerCase();
|
|
25
|
+
const translation = salla.lang.get(`pages.loyalty_program.${k}`);
|
|
26
|
+
return translation === `pages.loyalty_program.${k}` ? key : translation;
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return key;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const SallaLoyaltyPointsHistory$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPointsHistory extends HTMLElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
this.__registerHost();
|
|
36
|
+
this.loyaltyPointsArray = [];
|
|
37
|
+
this.balance = 0;
|
|
38
|
+
this.isLoadingLoyalty = false;
|
|
39
|
+
this.nextPageUrlLoyalty = '';
|
|
40
|
+
this.handleClick = () => {
|
|
41
|
+
this.loadMoreLoyaltyPoints();
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async componentWillLoad() {
|
|
45
|
+
try {
|
|
46
|
+
await salla.onReady();
|
|
47
|
+
await salla.lang.onLoaded();
|
|
48
|
+
await this.loadLoyaltyPoints();
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
salla?.logger?.warn?.('salla-loyalty-points-history: init failed', e);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async loadLoyaltyPoints() {
|
|
55
|
+
this.isLoadingLoyalty = true;
|
|
56
|
+
try {
|
|
57
|
+
let url = `/balance/points?page=1`;
|
|
58
|
+
let resp = await salla.api.request(url);
|
|
59
|
+
this.loyaltyPointsArray = resp.data;
|
|
60
|
+
this.balance = resp.balance;
|
|
61
|
+
this.nextPageUrlLoyalty = resp.cursor.next;
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
console.error('Error loading loyalty points transactions', error);
|
|
65
|
+
}
|
|
66
|
+
finally {
|
|
67
|
+
this.isLoadingLoyalty = false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async loadMoreLoyaltyPoints() {
|
|
71
|
+
if (!this.nextPageUrlLoyalty)
|
|
72
|
+
return;
|
|
73
|
+
this.isLoadingLoyalty = true;
|
|
74
|
+
try {
|
|
75
|
+
let resp = await salla.api.request(this.nextPageUrlLoyalty);
|
|
76
|
+
this.loyaltyPointsArray = [...this.loyaltyPointsArray, ...resp.data];
|
|
77
|
+
this.nextPageUrlLoyalty = resp.cursor?.next || '';
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
console.error('Error loading more loyalty points', error);
|
|
81
|
+
}
|
|
82
|
+
finally {
|
|
83
|
+
this.isLoadingLoyalty = false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
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: {
|
|
88
|
+
's-loyalty-points-history-table-transaction-status': true,
|
|
89
|
+
's-loyalty-points-history-table-transaction-status-pending': point?.status_key === 'pending',
|
|
90
|
+
's-loyalty-points-history-table-transaction-status-revoked': point?.status_key === 'revoked',
|
|
91
|
+
's-loyalty-points-history-table-transaction-status-used': point?.status_key === 'used',
|
|
92
|
+
's-loyalty-points-history-table-transaction-status-expired': point?.status_key === 'expired',
|
|
93
|
+
} }, 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: loyaltyProgramIcon }), 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')))))))));
|
|
94
|
+
}
|
|
95
|
+
}, [0, "salla-loyalty-points-history", {
|
|
96
|
+
"loyaltyPointsArray": [32],
|
|
97
|
+
"balance": [32],
|
|
98
|
+
"isLoadingLoyalty": [32],
|
|
99
|
+
"nextPageUrlLoyalty": [32]
|
|
100
|
+
}]);
|
|
101
|
+
function defineCustomElement$1() {
|
|
102
|
+
if (typeof customElements === "undefined") {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const components = ["salla-loyalty-points-history", "salla-button", "salla-loading"];
|
|
106
|
+
components.forEach(tagName => { switch (tagName) {
|
|
107
|
+
case "salla-loyalty-points-history":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
customElements.define(tagName, SallaLoyaltyPointsHistory$1);
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case "salla-button":
|
|
113
|
+
if (!customElements.get(tagName)) {
|
|
114
|
+
defineCustomElement$3();
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
case "salla-loading":
|
|
118
|
+
if (!customElements.get(tagName)) {
|
|
119
|
+
defineCustomElement$2();
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
} });
|
|
123
|
+
}
|
|
124
|
+
defineCustomElement$1();
|
|
125
|
+
|
|
126
|
+
const SallaLoyaltyPointsHistory = SallaLoyaltyPointsHistory$1;
|
|
127
|
+
const defineCustomElement = defineCustomElement$1;
|
|
128
|
+
|
|
129
|
+
export { SallaLoyaltyPointsHistory, defineCustomElement };
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
5
|
-
import { s as setTranslations } from './translations.js';
|
|
6
5
|
import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions.js';
|
|
7
6
|
import { S as SIPercentage, a as SILayoutGrid } from './percentage.js';
|
|
8
7
|
import { S as SIShipping } from './shipping.js';
|
|
9
8
|
import { C as Cart2 } from './cart2.js';
|
|
10
9
|
import { a as SIUserAdd, d as defineCustomElement$h } from './salla-loyalty-point2.js';
|
|
11
10
|
import { S as SIGiftSharing } from './gift-sharing.js';
|
|
12
|
-
import { l as loyaltyProgramIcon } from './gift.js';
|
|
13
11
|
import { T as TrackedPromise } from './tracked-promise.js';
|
|
14
12
|
import { a as anime } from './anime.es.js';
|
|
15
13
|
import { d as defineCustomElement$n } from './salla-add-product-button2.js';
|
|
@@ -80,7 +78,6 @@ const SallaLoyaltyProgram$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalt
|
|
|
80
78
|
componentWillLoad() {
|
|
81
79
|
return salla.onReady()
|
|
82
80
|
.then(() => salla.lang.onLoaded())
|
|
83
|
-
.then(() => setTranslations())
|
|
84
81
|
.then(() => {
|
|
85
82
|
this.program();
|
|
86
83
|
this.points();
|
|
@@ -107,7 +104,7 @@ const SallaLoyaltyProgram$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalt
|
|
|
107
104
|
const prizesGroups = this.program.data.prizes;
|
|
108
105
|
const prizesCount = this.program.data.prizes_count;
|
|
109
106
|
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()
|
|
110
|
-
? 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("
|
|
107
|
+
? 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'))))
|
|
111
108
|
: h("button", { slot: "action", onClick: () => salla.event.dispatch('login::open'), class: {
|
|
112
109
|
's-loyalty-program-login-action': true,
|
|
113
110
|
's-loyalty-program-login-action-dark': !this.program.data.image,
|
|
@@ -39,10 +39,10 @@ const SallaLoyaltyReward$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalty
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'c99714fbefea9c43a199201d6e9d331ed4b50e7f', class: {
|
|
43
43
|
's-loyalty-program-reward-container': true,
|
|
44
44
|
's-loyalty-program-reward-xs': this.size === 'xs',
|
|
45
|
-
} }, h("div", { key: '
|
|
45
|
+
} }, 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: loyaltyProgramIcon }), 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: {
|
|
46
46
|
's-loyalty-program-rewards-action-base': true,
|
|
47
47
|
's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
|
|
48
48
|
's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
|
|
@@ -23,7 +23,7 @@ const SallaMaintenanceAlert$1 = /*@__PURE__*/ proxyCustomElement(class SallaMain
|
|
|
23
23
|
this.host.style.display = 'none';
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '43a02d438a0357bd48922ad8fa4753905ac5e388', class: "s-maintenance-alert-wrapper" }, h("button", { key: 'ad62ec4a5ea3e77854d5bbf8938c4bb1b19da068', class: "s-maintenance-alert-close", innerHTML: Cancel, 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)))));
|
|
27
27
|
}
|
|
28
28
|
componentDidLoad() {
|
|
29
29
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -702,11 +702,11 @@ const SallaMap = /*@__PURE__*/ proxyCustomElement(class SallaMap extends HTMLEle
|
|
|
702
702
|
}
|
|
703
703
|
// render
|
|
704
704
|
render() {
|
|
705
|
-
return (h(Host, { key: '
|
|
705
|
+
return (h(Host, { key: '8fae0e6754bd0571d5acf9bbc6df23e73b02b015', class: "s-map-wrapper" }, h("salla-modal", { key: '7aebcc533a4ec8f7ec5e3a8682f7f70afd5b1193', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
706
706
|
this.locationModal = modal;
|
|
707
|
-
} }, this.getLocationModal()), h("slot", { key: '
|
|
707
|
+
} }, this.getLocationModal()), h("slot", { key: '1dc262e8474c0d137f98ce06c76d9fdea80d42c4', name: "button" }, h("salla-button", { key: '5ff296514b2e7b37d091cd634f497e855cf047d5', onClick: () => {
|
|
708
708
|
this.open();
|
|
709
|
-
}, color: "primary", class: "s-map-location-button" }, h("span", { key: '
|
|
709
|
+
}, 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 })));
|
|
710
710
|
}
|
|
711
711
|
get host() { return this; }
|
|
712
712
|
static get style() { return sallaMapCss; }
|
|
@@ -49,7 +49,7 @@ const SallaMultipleBundleProductCart = /*@__PURE__*/ proxyCustomElement(class Sa
|
|
|
49
49
|
return (h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, h("div", { class: "s-multiple-bundle-product-cart-header-content" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, h("span", null, salla.lang.get('pages.products.number_of_pieces')), h("span", null, product?.quantity_in_group))))), !hasOptions && (h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'a0659e5dc8eb5e44d0a25e53cea017008a04ed4d', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '2bcfa463149fe7890418a3ef12308ca17d41cb34', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
53
53
|
return section.products.map(product => {
|
|
54
54
|
const bundleContext = {
|
|
55
55
|
sectionId: section.id,
|
|
@@ -383,9 +383,9 @@ const SallaMultipleBundleProductDetails = /*@__PURE__*/ proxyCustomElement(class
|
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
render() {
|
|
386
|
-
return (h(Host, { key: '
|
|
386
|
+
return (h(Host, { key: 'dc22c848445385e667a2da109021b9dc9b413a6c', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'a52743fee0af7cf1b99bd0459a85d335ca637e5d', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
|
|
387
387
|
return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, selectionLimit: this.getEffectiveMax(section), isSelectionLocked: this.isProductSelectionLocked(section), onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
388
|
-
})), h("salla-multiple-bundle-product-options-modal", { key: '
|
|
388
|
+
})), h("salla-multiple-bundle-product-options-modal", { key: '4bda97c2a9db2cd1f2764e4f5a2e44fb0a013fa0' })));
|
|
389
389
|
}
|
|
390
390
|
get host() { return this; }
|
|
391
391
|
static get watchers() { return {
|
|
@@ -493,7 +493,7 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
|
|
|
493
493
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
494
494
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
495
495
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
496
|
-
return (h(Host, { key: '
|
|
496
|
+
return (h(Host, { key: '1df1d7538fceee9a656f19cbf145388a3e0c03cc' }, h("salla-modal", { key: 'da6d318edcc4415ec3b680172da56d82efe65fbc', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '1e34ee440889932fc24cfe9d9def9acd9d07a42b', slot: "loading" }, h("salla-skeleton", { key: '94a8be3dde042a84187a01305c8decf53bf7e3f3', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '2ac8b7c57ad95e22430f76a0ab22aff1d31f8558', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
497
497
|
centeredSlides: true,
|
|
498
498
|
centeredSlidesBounds: true,
|
|
499
499
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -501,13 +501,13 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
|
|
|
501
501
|
watchSlidesProgress: true,
|
|
502
502
|
direction: 'vertical',
|
|
503
503
|
spaceBetween: 10,
|
|
504
|
-
} }, h("div", { key: '
|
|
504
|
+
} }, h("div", { key: '599e310ed8d87b526c75463dd9a1b1ff9bd2442e', slot: "items" }, this.product?.images &&
|
|
505
505
|
this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
|
|
506
506
|
e.target.style.display = 'none';
|
|
507
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '
|
|
507
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: 'df1833370d4e7a8424b0cefe5f6aa1eff68e263e', slot: "thumbs" }, this.product?.images &&
|
|
508
508
|
this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
|
|
509
509
|
e.target.style.display = 'none';
|
|
510
|
-
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '
|
|
510
|
+
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '3f7379d1620184a14f88b1123b67f6a9a225fe14', slot: "footer" }, h("div", { key: '26ad5d460d95cdce3d6fa28fcf7a04b0e3f97d3e', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '4f497db16b75e813d813fd92bd2f30ed02514000', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
511
511
|
? salla.lang.get('common.elements.saving')
|
|
512
512
|
: salla.lang.get('common.elements.save')))))));
|
|
513
513
|
}
|
|
@@ -141,7 +141,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: '808d7d1f9d880d2bad293fa61ef5e7330385f15b' }, h("salla-slider", { key: 'bf820de07ea7936d283574d8d2b58c1cc8ccb0df', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '8d551793d840ffddc64049efba32277d0bbf0c96', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
145
145
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
146
146
|
const isLocked = isChecked && this.isSelectionLocked;
|
|
147
147
|
const isDisabled = this.isProductSelectionDisabled(product, isChecked);
|
|
@@ -77,7 +77,7 @@ const SallaMultipleBundleProduct$1 = /*@__PURE__*/ proxyCustomElement(class Sall
|
|
|
77
77
|
this.parseProducts(this.bundleSections);
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '01cf070eb724f3b0df553e3253fda1d0c4fde0b9', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
81
81
|
}
|
|
82
82
|
static get watchers() { return {
|
|
83
83
|
"bundleSections": ["parseProducts"]
|
|
@@ -11,7 +11,7 @@ const SallaNotificationItem = /*@__PURE__*/ proxyCustomElement(class SallaNotifi
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return h("a", { key: '
|
|
14
|
+
return h("a", { key: 'd66908ce0dd914e309469279a1014ff734f6c0b2', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: '0d6f0ebb3400bcc91f2bbdf7e941e018662e8835', class: "s-notifications-item-icon" }, h("i", { key: 'd9965899d4699070681117423401d7488a16f066', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: '055a4e763f4a1ee02b52bd1d6935e57402acfa76', class: "s-notifications-item-content" }, h("div", { key: '646a9220ad2c1a9fae0b9384a84a60ad69d39c68', class: "s-notifications-item-content-leading" }, h("h4", { key: '9b9c4256f50cd376b01b836196a1f0fff89b6840' }, this.notification.title), h("p", { key: '4475ca9bee33fb9c64433320101345c7db7e28c6' }, this.notification.sub_title)), h("span", { key: 'd2c8301ad12ef86ba05fa805d9ecbea249a44ee1', class: "s-notifications-item-content-trailing" }, h("i", { key: '297c8695ee366dc336bf30dd59465806375825fc', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: 'beb9945695448ec9e6e25e9e856177a641a5a769' }, this.notification.date))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return sallaNotificationsCss; }
|
|
17
17
|
}, [0, "salla-notification-item", {
|
|
@@ -219,7 +219,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
219
219
|
// '</div>';
|
|
220
220
|
// }
|
|
221
221
|
render() {
|
|
222
|
-
return h("salla-modal", { key: '
|
|
222
|
+
return h("salla-modal", { key: 'c68955859f31495533b6bb1117e8be3a6c22ffce', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: 'd0c3cbc73474a14596eb2a4c35e10ddddc5ed34a', slot: 'loading' }, h("div", { key: '22ebc107df02d1474f648cbd50aecd9590f70fbf', class: "s-offer-modal-skeleton" }, h("div", { key: 'ed0661aca73a455a98f9971a5fc89e8793e8ac14', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'bea3b9e7fe4654d7186d8f0f27388e784421379b', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '9c377374ec1449341a45127a52dfc53fdb4425f0', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'edcd738b120797e2b2a351390fc58a49fc386776', height: '10px', width: '30%' })), h("div", { key: 'fa7df3dc0b6a22fad433bfc678081f1e2ccdc057', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '6a4d8744bad91f54b4a87b929c81747295b00992', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '4b15a6c159a681f0b030244c923e94bfa44af479', height: '15px', width: '50%' }), h("salla-skeleton", { key: '79323272fb8977650644dee28d7c7295ac77aacf', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
223
223
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
224
224
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
225
225
|
: '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -47,7 +47,7 @@ const SallaOrderDetails$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderDet
|
|
|
47
47
|
];
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return h(Host, { key: '
|
|
50
|
+
return h(Host, { key: '9c662f4c829a24386a4fa83f83f261996c72086f', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
51
51
|
}
|
|
52
52
|
static get watchers() { return {
|
|
53
53
|
"orderDetails": ["parseOrderDetailsData"]
|
|
@@ -32,7 +32,7 @@ const SallaOrderEditProductCard$1 = /*@__PURE__*/ proxyCustomElement(class Salla
|
|
|
32
32
|
const product = this.productData;
|
|
33
33
|
const productName = product?.name || salla.lang.getWithDefault('common.elements.product', 'منتج');
|
|
34
34
|
const price = product?.price;
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '922736be2f3fec4f6c41c724590d2790fb5a5940' }, h("button", { key: 'b690f3dbd307937d4b68790f417a7d9a820b56f1', type: "button", class: "s-order-edit-product-card", onClick: () => this.handleSelectProduct() }, h("div", { key: 'f846d7e31c7c3d067909d65db3457ac061c93264', class: "s-order-edit-product-card-media" }, product?.image?.url ? (h("img", { src: product.image.url, alt: product.image.alt || productName, class: "s-order-edit-product-card-image" })) : (h("div", { class: "s-order-edit-product-card-placeholder" }, h("i", { class: "sicon-shopping-bag" })))), h("div", { key: 'b1243ae5df15e3e783b139dcf593f85b72624015', class: "s-order-edit-product-card-content" }, h("h3", { key: '50c7b8edb40dd88fcb1ac4267b1ba88c5b2b92b2', class: "s-order-edit-product-card-title" }, productName), price != null && (h("p", { key: '6dea7fefab83a9839146acfb89e7a532adaa6559', class: "s-order-edit-product-card-price", innerHTML: salla.money(price) }))))));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return sallaOrderEditProductCardCss; }
|
|
38
38
|
}, [0, "salla-order-edit-product-card", {
|
|
@@ -87,7 +87,7 @@ const SallaOrderSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderSum
|
|
|
87
87
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h("ul", { key: '
|
|
90
|
+
return (h("ul", { key: 'e26e13231b72707a39a6fd83561247bea05aa490', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
91
91
|
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? IconVerified : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
92
92
|
this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
|
|
93
93
|
}
|
|
@@ -35,12 +35,12 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
35
35
|
render() {
|
|
36
36
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
37
37
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '2d3a652f9eb7fc3a07d79be1aa4ac08df349e4bc', class: "s-payments-list-wrap" }, h("ul", { key: '62ed1989e85b2b89bd1f1ad370806dc1c8f67454', class: "s-payments-list" }, madeInKSA && h("li", { key: 'a77bdb50ba28249d0b587e3aba0beb392cb1db59', class: "s-payments-list-item" }, h("img", { key: '3aa60ab4ee98cf8efe3e3a17f2c2363038b76b24', width: 58, height: 58, decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
39
39
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
40
40
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
41
41
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
42
42
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
43
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
43
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: 'c1d56e4217afdb48f955a5133156a1708c91da52', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
44
44
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
45
45
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
46
46
|
}
|
|
@@ -42,7 +42,7 @@ const SallaPlaceholder = /*@__PURE__*/ proxyCustomElement(class SallaPlaceholder
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'ccc65b60efc14d78b46b838f089cf09ed849d136', class: this.alignmentClass() }, h("div", { key: 'b174990bfedc2e979ca0484552015abc112795d1', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '51ec34810a25ae77f797754419c6dc5f0afcfbaa', class: "s-placeholder-title" }, h("slot", { key: '3e0c9987b7477e8145436098f024dde49bd76162', name: 'title' }, h("span", { key: '618dfc6b328f2f5c82a16357ecf403b740e67778' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '005e68bcb52eca86ea3368ce750e1b7f9cfda50e', class: "s-placeholder-description" }, h("slot", { key: '5e2b860c11a35e93658c153ea2eb2efb9683900b', name: 'description' }, h("span", { key: '903012cd214bb068e591ca9280f4c95762672e9c' }, salla.lang.get('common.errors.empty_results'))))));
|
|
46
46
|
}
|
|
47
47
|
static get style() { return sallaPlaceholderCss; }
|
|
48
48
|
}, [4, "salla-placeholder", {
|