@salla.sa/twilight-components 2.14.402 → 2.14.404
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/calendar-D-PUoCDH.js +13 -0
- package/dist/cjs/{cancel-De6vslRA.js → cancel-B5SbMYEk.js} +2 -2
- package/dist/cjs/cart2-B98PSAFN.js +13 -0
- package/dist/cjs/{check-x3w3-gpj.js → check-BnVBPQNp.js} +2 -2
- package/dist/cjs/{filepond-PWJcd3M3.js → filepond-BGeIVPOk.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Bt4qeA2f.js → filepond-plugin-file-poster-Dj0y59Ov.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-C-9PDDsS.js → filepond-plugin-file-validate-size-B8XJT5tN.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-tA2SP9JO.js → filepond-plugin-file-validate-type-wrMrxOn7.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-jcfxLe8v.js → filepond-plugin-image-edit-D3Iapkhv.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DVDjcytZ.js → filepond-plugin-image-exif-orientation-BbEM_vMd.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CenIamTW.js → filepond-plugin-image-preview-Bz-ITSEo.js} +1 -1
- package/dist/cjs/functions-DVMonIet.js +74 -0
- package/dist/{esm/gift-BChI23pG.js → cjs/gift-DbNivqYO.js} +4 -2
- package/dist/cjs/gift-sharing-BE0uszUm.js +13 -0
- package/dist/cjs/{index-Cuq57q32.js → index-B3JuQExz.js} +61 -26
- package/dist/cjs/{index-ZlRhYmjA.js → index-B587wk8w.js} +1 -1
- package/dist/cjs/iphone-x-qC21wCLj.js +13 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mail-CO8cFZH7.js → mail-Bgvt2hc9.js} +2 -2
- package/dist/cjs/percentage-Fs83gq6Q.js +21 -0
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +5 -5
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +5 -5
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
- 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 +95 -0
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +20 -26
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +11 -11
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +2 -2
- 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 +65 -0
- package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +7 -13
- package/dist/cjs/salla-hook.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +69 -0
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +239 -0
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +103 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +108 -64
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +54 -0
- package/dist/cjs/salla-loyalty.cjs.entry.js +3 -3
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +3 -3
- 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-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 +5 -16
- package/dist/cjs/salla-offer.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.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
- 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.cjs.entry.js → salla-product-card_2.cjs.entry.js} +120 -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 +6 -12
- package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +243 -0
- 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 +5 -5
- 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 +7 -6
- 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 +3 -3
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/shipping-CPYcgyCL.js +13 -0
- package/dist/cjs/tag-D-PcUR33.js +12 -0
- package/dist/cjs/tracked-promise-Ef3pfQOZ.js +31 -0
- package/dist/cjs/translations-DMwpLvqi.js +294 -0
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/user-add-BCGrddZS.js +13 -0
- package/dist/cjs/{vanilla-picker-C8OtoDdM.js → vanilla-picker-BgPOS3MC.js} +1 -1
- package/dist/collection/assets/images/prize-image.svg +1 -0
- package/dist/collection/collection-manifest.json +11 -0
- package/dist/collection/components/salla-badge/salla-badge.css +0 -0
- package/dist/collection/components/salla-badge/salla-badge.js +117 -0
- package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +1 -1
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +1 -1
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +3 -0
- package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.js +99 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-hook/salla-hook.js +1 -1
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-program/functions.js +53 -0
- package/dist/collection/components/salla-loyalty-program/interfaces.js +8 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +69 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +87 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +171 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +219 -0
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +104 -65
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +166 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +93 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +92 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +206 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +109 -0
- package/dist/collection/components/salla-loyalty-program/translations.js +290 -0
- 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-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-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-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 +2 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/calendar.js +11 -0
- package/dist/components/cart2.js +11 -0
- package/dist/components/functions.js +68 -0
- package/dist/components/gift-sharing.js +11 -0
- package/dist/components/index.js +2 -2
- package/dist/components/iphone-x.js +11 -0
- package/dist/components/percentage.js +18 -0
- package/dist/components/salla-badge.d.ts +11 -0
- package/dist/components/salla-badge.js +9 -0
- package/dist/components/salla-badge2.js +112 -0
- package/dist/components/salla-booking-field2.js +3 -9
- package/dist/components/salla-bottom-alert.js +2 -2
- package/dist/components/salla-bullet-delivery.js +1 -1
- package/dist/components/salla-cart-coupons.js +1 -1
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-comment-item2.js +3 -3
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-edit-order-button.d.ts +11 -0
- package/dist/components/salla-edit-order-button.js +99 -0
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +4 -10
- package/dist/components/salla-hook.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-banner.d.ts +11 -0
- package/dist/components/salla-loyalty-banner.js +103 -0
- package/dist/components/salla-loyalty-hero.d.ts +11 -0
- package/dist/components/salla-loyalty-hero.js +9 -0
- package/dist/components/salla-loyalty-hero2.js +43 -0
- package/dist/components/salla-loyalty-panel.d.ts +11 -0
- package/dist/components/salla-loyalty-panel.js +250 -0
- package/dist/components/salla-loyalty-point.d.ts +11 -0
- package/dist/components/salla-loyalty-point.js +9 -0
- package/dist/components/salla-loyalty-point2.js +259 -0
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-program.js +233 -70
- package/dist/components/salla-loyalty-reward.d.ts +11 -0
- package/dist/components/salla-loyalty-reward.js +80 -0
- 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 +3 -14
- package/dist/components/salla-order-details.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-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-quick-order.js +1 -7
- 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-action.d.ts +11 -0
- package/dist/components/salla-reward-action.js +9 -0
- package/dist/components/salla-reward-action2.js +56 -0
- package/dist/components/salla-reward-card.d.ts +11 -0
- package/dist/components/salla-reward-card.js +9 -0
- package/dist/components/salla-reward-card2.js +44 -0
- package/dist/components/salla-reward-details.d.ts +11 -0
- package/dist/components/salla-reward-details.js +9 -0
- package/dist/components/salla-reward-details2.js +266 -0
- package/dist/components/salla-reward-exchange.d.ts +11 -0
- package/dist/components/salla-reward-exchange.js +9 -0
- package/dist/components/salla-reward-exchange2.js +81 -0
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- 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 +2 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/shipping.js +11 -0
- package/dist/components/tag.js +10 -0
- package/dist/components/tracked-promise.js +29 -0
- package/dist/components/translations.js +292 -0
- package/dist/esm/calendar-BkmanTR_.js +11 -0
- package/dist/esm/{cancel-BsLF_HK7.js → cancel-8Tsmrwno.js} +2 -2
- package/dist/esm/cart2-D1s2kXqL.js +11 -0
- package/dist/esm/{check-BsXh13x8.js → check-BZp0rKEO.js} +2 -2
- package/dist/esm/{filepond-kua7JWt0.js → filepond-TQwRQEj7.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D9ZjwPcg.js → filepond-plugin-file-poster-D6Scyf7M.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BVMhUXTI.js → filepond-plugin-file-validate-size-DmV95X-a.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CkwmRCJd.js → filepond-plugin-file-validate-type-BxcIYCpF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-YEt9I2Ff.js → filepond-plugin-image-edit-C_dhSLv3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-B5Q7AlDn.js → filepond-plugin-image-exif-orientation-C0v1CD3U.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-B3J-p8BK.js → filepond-plugin-image-preview-DjsC29px.js} +1 -1
- package/dist/esm/functions-CsHz6jUn.js +68 -0
- package/dist/{cjs/gift-CJ-3Yw_x.js → esm/gift-CXRKXFgT.js} +2 -4
- package/dist/esm/gift-sharing-0-eTJXSD.js +11 -0
- package/dist/esm/{index-Qfjn4tFb.js → index-C_WMBvxX.js} +1 -1
- package/dist/esm/{index-BYCfehfD.js → index-aDXaoBqI.js} +61 -27
- package/dist/esm/iphone-x-CciN5Q_x.js +11 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mail-DmgxDvXL.js → mail-DLNIOD9t.js} +2 -2
- package/dist/esm/percentage-Bs6JxDkg.js +18 -0
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +5 -5
- package/dist/esm/salla-add-product-button_4.entry.js +5 -5
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +3 -3
- 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 +93 -0
- package/dist/esm/salla-booking-field_7.entry.js +20 -26
- package/dist/esm/salla-bullet-delivery.entry.js +2 -2
- package/dist/esm/salla-cart-coupons.entry.js +2 -2
- package/dist/esm/salla-cart-item-offers_2.entry.js +4 -4
- package/dist/esm/salla-comment-form_8.entry.js +11 -11
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +3 -3
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +2 -2
- 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 +63 -0
- package/dist/esm/salla-filters-widget.entry.js +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +7 -13
- package/dist/esm/salla-hook.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +67 -0
- package/dist/esm/salla-loyalty-hero_2.entry.js +236 -0
- package/dist/esm/salla-loyalty-panel.entry.js +101 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty-program.entry.js +108 -64
- package/dist/esm/salla-loyalty-reward.entry.js +52 -0
- package/dist/esm/salla-loyalty.entry.js +3 -3
- package/dist/esm/salla-maintenance-alert.entry.js +3 -3
- 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-notification-item.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +5 -16
- package/dist/esm/salla-offer.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.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +4 -4
- 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.entry.js → salla-product-card_2.entry.js} +120 -7
- 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 +6 -12
- package/dist/esm/salla-rating-modal.entry.js +3 -3
- package/dist/esm/salla-reward-action_4.entry.js +238 -0
- 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 +5 -5
- 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 +7 -6
- 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 +3 -3
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/shipping-CZRcMGA9.js +11 -0
- package/dist/esm/tag-cgSL_BIo.js +10 -0
- package/dist/esm/tracked-promise-DftQnHNU.js +29 -0
- package/dist/esm/translations-B-Rj6b9M.js +292 -0
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/user-add-QpH8MU22.js +11 -0
- package/dist/esm/{vanilla-picker-B4glVCCp.js → vanilla-picker-D_u7k2C7.js} +1 -1
- package/dist/twilight/p-0-eTJXSD.js +4 -0
- package/dist/twilight/{p-5381a86d.entry.js → p-00a64a38.entry.js} +1 -1
- package/dist/twilight/p-0930f5b4.entry.js +4 -0
- package/dist/twilight/p-0d660e1f.entry.js +4 -0
- package/dist/twilight/p-14210f63.entry.js +4 -0
- package/dist/twilight/{p-65928570.entry.js → p-18e842b3.entry.js} +1 -1
- package/dist/twilight/p-196754b9.entry.js +4 -0
- package/dist/twilight/p-19801f8a.entry.js +4 -0
- package/dist/twilight/{p-90045f50.entry.js → p-19b2712e.entry.js} +1 -1
- package/dist/twilight/{p-d9b8aa69.entry.js → p-1d9285ce.entry.js} +1 -1
- package/dist/twilight/{p-f8527980.entry.js → p-1ef01404.entry.js} +1 -1
- package/dist/twilight/{p-6cf0e5f0.entry.js → p-205a52b1.entry.js} +1 -1
- package/dist/twilight/p-20b32fe8.entry.js +4 -0
- package/dist/twilight/{p-0cfd333a.entry.js → p-225fe66e.entry.js} +1 -1
- package/dist/twilight/p-24b05b1a.entry.js +4 -0
- package/dist/twilight/{p-62b949f1.entry.js → p-25b36736.entry.js} +1 -1
- package/dist/twilight/{p-5871fc28.entry.js → p-27d8eddd.entry.js} +1 -1
- package/dist/twilight/{p-64fe6c2f.entry.js → p-29bc5464.entry.js} +1 -1
- package/dist/twilight/{p-ac973857.entry.js → p-36e9a803.entry.js} +1 -1
- package/dist/twilight/{p-6f0a262a.entry.js → p-3b0558c4.entry.js} +1 -1
- package/dist/twilight/{p-ebb782d3.entry.js → p-41df3651.entry.js} +1 -1
- package/dist/twilight/{p-5ca700cd.entry.js → p-44369f67.entry.js} +1 -1
- package/dist/twilight/{p-30695c34.entry.js → p-444a8a35.entry.js} +1 -1
- package/dist/twilight/{p-15d44ede.entry.js → p-4d27be11.entry.js} +1 -1
- package/dist/twilight/{p-60aa25f0.entry.js → p-4f25c507.entry.js} +1 -1
- package/dist/twilight/{p-af6a34af.entry.js → p-4feac98b.entry.js} +1 -1
- package/dist/twilight/{p-97aad44a.entry.js → p-5863784a.entry.js} +1 -1
- package/dist/twilight/p-59e8585a.entry.js +4 -0
- package/dist/twilight/{p-3df24aaf.entry.js → p-59eab6b7.entry.js} +1 -1
- package/dist/twilight/p-5aabe849.entry.js +4 -0
- package/dist/twilight/{p-d112b260.entry.js → p-5e24d043.entry.js} +1 -1
- package/dist/twilight/p-61358d11.entry.js +4 -0
- package/dist/twilight/{p-ee14a23d.entry.js → p-63d277c4.entry.js} +1 -1
- package/dist/twilight/{p-f68e2787.entry.js → p-6752ef5e.entry.js} +1 -1
- package/dist/twilight/p-6c573616.entry.js +4 -0
- package/dist/twilight/{p-f4060b10.entry.js → p-6d0a0866.entry.js} +1 -1
- package/dist/twilight/{p-ea0c19be.entry.js → p-6dfb4b36.entry.js} +1 -1
- package/dist/twilight/{p-164ae46f.entry.js → p-7ab5a0a3.entry.js} +1 -1
- package/dist/twilight/{p-d130f149.entry.js → p-7bcced89.entry.js} +1 -1
- package/dist/twilight/{p-4797dab5.entry.js → p-7e04b708.entry.js} +1 -1
- package/dist/twilight/{p-3ed67200.entry.js → p-7ee3d2ce.entry.js} +1 -1
- package/dist/twilight/{p-ec873193.entry.js → p-7f5d2abb.entry.js} +1 -1
- package/dist/twilight/{p-e5ccdc1d.entry.js → p-81b539fc.entry.js} +1 -1
- package/dist/twilight/{p-2a19f553.entry.js → p-8237cece.entry.js} +1 -1
- package/dist/twilight/{p-887c9a29.entry.js → p-83880a8d.entry.js} +1 -1
- package/dist/twilight/{p-BsLF_HK7.js → p-8Tsmrwno.js} +1 -1
- package/dist/twilight/p-8a55874d.entry.js +4 -0
- package/dist/twilight/{p-b80c87f3.entry.js → p-8bc3feef.entry.js} +1 -1
- package/dist/twilight/{p-011ff091.entry.js → p-8c8c7d88.entry.js} +1 -1
- package/dist/twilight/{p-f8183098.entry.js → p-8e5c7dad.entry.js} +1 -1
- package/dist/twilight/{p-2edec63c.entry.js → p-913dfdeb.entry.js} +1 -1
- package/dist/twilight/{p-9XUl8eNt.js → p-9VcxoAaz.js} +1 -1
- package/dist/twilight/p-B-Rj6b9M.js +4 -0
- package/dist/twilight/{p-DtXQ785R.js → p-BAAK-Wog.js} +1 -1
- package/dist/twilight/{p-Dx9FGzIq.js → p-BVp3vitI.js} +1 -1
- package/dist/twilight/{p-BsXh13x8.js → p-BZp0rKEO.js} +1 -1
- package/dist/twilight/{p-DPak7cFa.js → p-BaM5mo9g.js} +1 -1
- package/dist/twilight/{p-D2bKqo2L.js → p-BhnvZDje.js} +1 -1
- package/dist/twilight/p-BkmanTR_.js +4 -0
- package/dist/twilight/p-Bs6JxDkg.js +4 -0
- package/dist/twilight/{p-a8mIwFp8.js → p-BvzXDYao.js} +1 -1
- package/dist/twilight/{p-CVG84YNJ.js → p-Bzuww4Jp.js} +1 -1
- package/dist/twilight/p-CVVRdz9l.js +4 -0
- package/dist/twilight/{p-BChI23pG.js → p-CXRKXFgT.js} +1 -1
- package/dist/twilight/p-CZRcMGA9.js +4 -0
- package/dist/twilight/p-CciN5Q_x.js +4 -0
- package/dist/twilight/p-D1s2kXqL.js +4 -0
- package/dist/twilight/{p-DmgxDvXL.js → p-DLNIOD9t.js} +1 -1
- package/dist/twilight/{p-C45ROGL4.js → p-DboJwcoy.js} +1 -1
- package/dist/twilight/{p-Wts3eSQu.js → p-Jii8QiXD.js} +1 -1
- package/dist/twilight/p-QpH8MU22.js +4 -0
- package/dist/twilight/p-UAJe1KFk.js +4 -0
- package/dist/twilight/{p-BYCfehfD.js → p-aDXaoBqI.js} +2 -2
- package/dist/twilight/{p-1819894b.entry.js → p-ae8d11a1.entry.js} +1 -1
- package/dist/twilight/p-b955177d.entry.js +4 -0
- package/dist/twilight/{p-f4c6434f.entry.js → p-bb588e20.entry.js} +1 -1
- package/dist/twilight/{p-7c78c1a5.entry.js → p-bbb92919.entry.js} +1 -1
- package/dist/twilight/{p-4e941f6a.entry.js → p-bd7963b8.entry.js} +1 -1
- package/dist/twilight/p-beb851a0.entry.js +4 -0
- package/dist/twilight/{p-32a21d3e.entry.js → p-c5ca258f.entry.js} +1 -1
- package/dist/twilight/{p-8d9b1865.entry.js → p-c5ff4012.entry.js} +1 -1
- package/dist/twilight/p-c84796ed.entry.js +4 -0
- package/dist/twilight/{p-28fba512.entry.js → p-ccde5f93.entry.js} +1 -1
- package/dist/twilight/{p-e23cc9c1.entry.js → p-cf65581e.entry.js} +1 -1
- package/dist/twilight/{p-99aa0a59.entry.js → p-cfa7e6f8.entry.js} +1 -1
- package/dist/twilight/p-cgSL_BIo.js +4 -0
- package/dist/twilight/{p-0b265c17.entry.js → p-d19423c8.entry.js} +1 -1
- package/dist/twilight/{p-c5a12dde.entry.js → p-d1b2e25d.entry.js} +1 -1
- package/dist/twilight/p-d39a4239.entry.js +4 -0
- package/dist/twilight/{p-156660b7.entry.js → p-d5d04465.entry.js} +1 -1
- package/dist/twilight/p-d79993a2.entry.js +4 -0
- package/dist/twilight/{p-67f20b74.entry.js → p-dd732fd5.entry.js} +1 -1
- package/dist/twilight/{p-140f5001.entry.js → p-e0da92db.entry.js} +1 -1
- package/dist/twilight/{p-63778992.entry.js → p-eadcfa35.entry.js} +1 -1
- package/dist/twilight/p-eb4c87d2.entry.js +4 -0
- package/dist/twilight/{p-d93e90fb.entry.js → p-ec130506.entry.js} +1 -1
- package/dist/twilight/{p-ba128435.entry.js → p-ee7d1c8c.entry.js} +1 -1
- package/dist/twilight/{p-c5ab5c1b.entry.js → p-f180a4d2.entry.js} +1 -1
- package/dist/twilight/{p-955aab42.entry.js → p-f32d462e.entry.js} +1 -1
- package/dist/twilight/{p-5fe6bb62.entry.js → p-f414c3e8.entry.js} +1 -1
- package/dist/twilight/{p-72487957.entry.js → p-f5a225fb.entry.js} +1 -1
- package/dist/twilight/{p-24b86104.entry.js → p-f6f154f2.entry.js} +1 -1
- package/dist/twilight/{p-2f060d69.entry.js → p-f6f860d3.entry.js} +1 -1
- package/dist/twilight/{p-09fcfe8f.entry.js → p-fd486a62.entry.js} +1 -1
- package/dist/twilight/{p-cd9f175a.entry.js → p-fdebb964.entry.js} +1 -1
- package/dist/twilight/{p-f136e41b.entry.js → p-fe008cc5.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-badge/salla-badge.d.ts +15 -0
- package/dist/types/components/salla-edit-order-button/salla-edit-order-button.d.ts +25 -0
- package/dist/types/components/salla-loyalty-program/functions.d.ts +67 -0
- package/dist/types/components/salla-loyalty-program/interfaces.d.ts +125 -0
- package/dist/types/components/salla-loyalty-program/salla-loyalty-banner.d.ts +20 -0
- package/dist/types/components/salla-loyalty-program/salla-loyalty-hero.d.ts +15 -0
- package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +45 -0
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +11 -0
- package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +25 -8
- package/dist/types/components/salla-loyalty-program/salla-loyalty-reward.d.ts +13 -0
- package/dist/types/components/salla-loyalty-program/salla-reward-action.d.ts +9 -0
- package/dist/types/components/salla-loyalty-program/salla-reward-card.d.ts +17 -0
- package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +22 -0
- package/dist/types/components/salla-loyalty-program/salla-reward-exchange.d.ts +11 -0
- package/dist/types/components/salla-loyalty-program/translations.d.ts +1 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
- package/dist/types/components.d.ts +341 -0
- package/package.json +6 -5
- package/dist/cjs/salla-products-slider.cjs.entry.js +0 -121
- package/dist/esm/salla-products-slider.entry.js +0 -119
- package/dist/twilight/p-078c884b.entry.js +0 -4
- package/dist/twilight/p-336f0f06.entry.js +0 -4
- package/dist/twilight/p-39ad489e.entry.js +0 -4
- package/dist/twilight/p-470433cb.entry.js +0 -4
- package/dist/twilight/p-52192d08.entry.js +0 -4
- package/dist/twilight/p-54c7e570.entry.js +0 -4
- package/dist/twilight/p-a0171740.entry.js +0 -4
- package/dist/twilight/p-c65832b1.entry.js +0 -4
- package/dist/twilight/p-d3a119aa.entry.js +0 -4
- package/dist/twilight/p-d4f3797c.entry.js +0 -4
- package/dist/twilight/p-fa3ceb7c.entry.js +0 -4
- package/dist/twilight/p-fa44f874.entry.js +0 -4
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
|
+
var translations = require('./translations-DMwpLvqi.js');
|
|
8
|
+
var functions = require('./functions-DVMonIet.js');
|
|
9
|
+
var star2 = require('./star2-R146a27p.js');
|
|
10
|
+
var cancel = require('./cancel-B5SbMYEk.js');
|
|
11
|
+
var percentage = require('./percentage-Fs83gq6Q.js');
|
|
12
|
+
var shipping = require('./shipping-CPYcgyCL.js');
|
|
13
|
+
var cart2 = require('./cart2-B98PSAFN.js');
|
|
14
|
+
var trackedPromise = require('./tracked-promise-Ef3pfQOZ.js');
|
|
15
|
+
|
|
16
|
+
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>`;
|
|
17
|
+
|
|
18
|
+
const sallaLoyaltyProgramCss = "";
|
|
19
|
+
|
|
20
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
23
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
+
else
|
|
25
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
26
|
+
if (d = decorators[i])
|
|
27
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
28
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29
|
+
};
|
|
30
|
+
const sicons = {
|
|
31
|
+
all: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: percentage.SILayoutGrid }),
|
|
32
|
+
free_shipping: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: shipping.SIShipping }),
|
|
33
|
+
coupon_discount: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: percentage.SIPercentage }),
|
|
34
|
+
free_product: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: cart2.SICart2 }),
|
|
35
|
+
};
|
|
36
|
+
const SallaLoyaltyPanel = class {
|
|
37
|
+
constructor(hostRef) {
|
|
38
|
+
index.registerInstance(this, hostRef);
|
|
39
|
+
/**
|
|
40
|
+
* prize to show in details or exchange modals
|
|
41
|
+
*/
|
|
42
|
+
this.currentPrize = null;
|
|
43
|
+
this.handleExchangeSucceeded = () => window.location.reload();
|
|
44
|
+
this.handleResetSucceeded = () => window.location.reload();
|
|
45
|
+
}
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
return salla.onReady()
|
|
48
|
+
.then(() => salla.lang.onLoaded())
|
|
49
|
+
.then(() => translations.setTranslations())
|
|
50
|
+
.then(() => {
|
|
51
|
+
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
52
|
+
salla.event.on('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
53
|
+
// Fetch points if user is logged in
|
|
54
|
+
if (!salla.config.isGuest()) {
|
|
55
|
+
this.points();
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
.catch((error) => salla.logger.error(error));
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
salla.event.off('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
62
|
+
salla.event.off('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
const prizesGroups = this.program.data.prizes;
|
|
66
|
+
const prizesCount = this.program.data.prizes_count;
|
|
67
|
+
const isLoadingPoints = this.points.status === 'pending' && this.points.data === null && !this.customerPoints;
|
|
68
|
+
const customerPoints = isLoadingPoints ? '---' : (this.points.data ?? this.customerPoints ?? 0);
|
|
69
|
+
if (this.prizeTitle && this.prizePoints) {
|
|
70
|
+
return (index.h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, index.h("salla-list-tile", { class: "s-loyalty-program-after-exchange" }, index.h("div", { slot: "title", class: "s-loyalty-program-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), index.h("div", { slot: "action", class: "s-loyalty-program-after-exchange-action" }, index.h("salla-button", { class: "s-loyalty-program-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => salla.loyalty.reset() }, index.h("span", { innerHTML: cancel.SICancel }))))));
|
|
71
|
+
}
|
|
72
|
+
return (index.h("div", { class: "" }, index.h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, index.h("salla-list-tile", { class: 's-loyalty-program-panel-widget' }, index.h("div", { slot: "icon", class: "s-loyalty-program-panel-widget-icon", innerHTML: star2.Star }), index.h("div", { slot: "subtitle" }, salla.lang.get('pages.loyalty_program.cart_total_point_summary', { "balance": customerPoints }), index.h("salla-button", { shape: "link", color: "primary", onClick: () => {
|
|
73
|
+
if (['error', 'idle'].includes(this.program.status)) {
|
|
74
|
+
this.program();
|
|
75
|
+
}
|
|
76
|
+
this.rewardsModal.open();
|
|
77
|
+
} }, customerPoints !== '---' && customerPoints ? salla.lang.get('pages.loyalty_program.cart_point_exchange_now') : salla.lang.get('blocks.header.login'))))), index.h("salla-modal", { id: "loyalty-rewards-modal", isLoading: this.program.status === 'pending', ref: modal => this.rewardsModal = modal, class: "s-loyalty-program-rewards-cart s-loyalty-program-modal", width: "lg", noPadding: true }, index.h("div", { slot: "loading" }, index.h("salla-loading", null)), this.program.status === 'success' ? index.h("div", { class: "s-loyalty-program-rewards-container-cart" }, index.h("div", { class: "s-loyalty-program-rewards-cart-header" }, index.h("div", { innerHTML: PrizeImage }), index.h("div", { class: "s-loyalty-program-panel-content" }, index.h("h1", null, this.program.data.prize_promotion_title), index.h("p", null, this.program.data.prize_promotion_description))), index.h("div", { class: {
|
|
78
|
+
's-loyalty-program-slider-arrows': true,
|
|
79
|
+
's-loyalty-program-tabs-hider': prizesGroups.length < 2 || prizesCount < 2,
|
|
80
|
+
} }, index.h("salla-tabs", null, prizesGroups.map((group) => (index.h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], index.h("span", null, group.title)))), prizesGroups.map((group) => (index.h("salla-tab-content", { slot: "content", name: group.type }, index.h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":3,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, index.h("div", { slot: "items" }, group.items.map((prize) => index.h("salla-reward-card", { prize: prize, onAreaClick: () => {
|
|
81
|
+
this.currentPrize = prize;
|
|
82
|
+
functions.closeModals(() => this.detailsModal.open());
|
|
83
|
+
}, onActionClick: () => {
|
|
84
|
+
this.currentPrize = prize;
|
|
85
|
+
functions.closeModals(() => this.detailsModal.open());
|
|
86
|
+
} })))))))))) : ''), index.h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : index.h("salla-reward-details", { onActionClick: () => functions.closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), index.h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : index.h("salla-reward-exchange", { prize: this.currentPrize }))));
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
__decorate([
|
|
90
|
+
trackedPromise.TrackedPromise(async () => {
|
|
91
|
+
const { data } = await salla.loyalty.getProgram();
|
|
92
|
+
return functions.normalizeLoyaltyData(data);
|
|
93
|
+
}, { initialData: { prizes: [], prizes_count: 0 } })
|
|
94
|
+
], SallaLoyaltyPanel.prototype, "program", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
trackedPromise.TrackedPromise(async () => {
|
|
97
|
+
const { data } = await salla.loyalty.getPoints();
|
|
98
|
+
return data.points;
|
|
99
|
+
}, { initialData: null })
|
|
100
|
+
], SallaLoyaltyPanel.prototype, "points", void 0);
|
|
101
|
+
SallaLoyaltyPanel.style = sallaLoyaltyProgramCss;
|
|
102
|
+
|
|
103
|
+
exports.salla_loyalty_panel = SallaLoyaltyPanel;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
|
|
8
8
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
9
9
|
|
|
@@ -16,7 +16,7 @@ const SallaLoyaltyPrizeItem = class {
|
|
|
16
16
|
this.prizeItemSelected.emit(this.item);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'd3b79cbf7e67281d4c42c83084b2d1f0f59fd77d' }, index.h("div", { key: '11d71896f19eef94434fa8d9d074c98ce3e6de5b', onClick: this.onPrizeItemClick.bind(this) }, index.h("img", { key: 'c8d254e77a7af0559c5336aca9d7d57593814d0a', class: "s-loyalty-prize-item-image", src: this.item.image, alt: this.item.name }), index.h("div", { key: '5946e1d5ce94ef8bfcbab95ab2f2e8733145b7f2', class: "s-loyalty-prize-item-title" }, this.item.name), index.h("div", { key: 'c565935591c84ce475767b8a863323023fabae31', class: "s-loyalty-prize-item-subtitle" }, this.item.description), index.h("div", { key: '225c7c594cb1942a56a6966ab8289a4dfb7f0d71', class: "s-loyalty-prize-item-points" }, this.item.cost_points, " ", salla.lang.get('pages.loyalty_program.point')))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
SallaLoyaltyPrizeItem.style = sallaLoyaltyPrizeItemCss;
|
|
@@ -3,84 +3,128 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
|
+
var translations = require('./translations-DMwpLvqi.js');
|
|
8
|
+
var functions = require('./functions-DVMonIet.js');
|
|
9
|
+
var percentage = require('./percentage-Fs83gq6Q.js');
|
|
10
|
+
var shipping = require('./shipping-CPYcgyCL.js');
|
|
11
|
+
var cart2 = require('./cart2-B98PSAFN.js');
|
|
12
|
+
var userAdd = require('./user-add-BCGrddZS.js');
|
|
13
|
+
var giftSharing = require('./gift-sharing-BE0uszUm.js');
|
|
14
|
+
var gift = require('./gift-DbNivqYO.js');
|
|
15
|
+
var trackedPromise = require('./tracked-promise-Ef3pfQOZ.js');
|
|
16
|
+
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
17
|
+
|
|
18
|
+
var SICartUpload = `<!-- Generated by IcoMoon.io -->
|
|
19
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
20
|
+
<title>cart-upload</title>
|
|
21
|
+
<path d="M14.545 7.669l3.121-2.732v9.729c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-9.728l3.121 2.732c0.253 0.22 0.567 0.329 0.879 0.329 0.371 0 0.74-0.155 1.004-0.455 0.485-0.555 0.429-1.396-0.125-1.881l-5.333-4.667c-0.503-0.44-1.253-0.44-1.756 0l-5.333 4.667c-0.555 0.484-0.611 1.327-0.125 1.881 0.484 0.552 1.325 0.609 1.881 0.124zM30.647 5.371c-0.713-0.171-1.436 0.267-1.609 0.983l-2.744 11.363c-0.171 0.568-0.684 0.951-1.277 0.951h-12.136c-0.563 0-1.067-0.356-1.256-0.885l-6.035-16.896c-0.189-0.531-0.692-0.885-1.256-0.885h-2.667c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h1.727l5.719 16.012c0.567 1.588 2.081 2.655 3.768 2.655h12.136c1.78 0 3.32-1.145 3.851-2.92l2.763-11.433c0.173-0.716-0.267-1.436-0.983-1.609zM13.667 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM13.667 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333zM24.333 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM24.333 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333z"></path>
|
|
22
|
+
</svg>
|
|
23
|
+
`;
|
|
8
24
|
|
|
9
25
|
const sallaLoyaltyProgramCss = "";
|
|
10
26
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
27
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
28
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
29
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
30
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
31
|
+
else
|
|
32
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
33
|
+
if (d = decorators[i])
|
|
34
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
35
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
36
|
};
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const translation = salla.lang.get(`pages.loyalty_program.${k}`);
|
|
28
|
-
return translation === `pages.loyalty_program.${k}` ? key : translation;
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
return key;
|
|
32
|
-
}
|
|
37
|
+
const sicons = {
|
|
38
|
+
all: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: percentage.SILayoutGrid }),
|
|
39
|
+
free_shipping: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: shipping.SIShipping }),
|
|
40
|
+
coupon_discount: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: percentage.SIPercentage }),
|
|
41
|
+
free_product: index.h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: cart2.SICart2 }),
|
|
33
42
|
};
|
|
34
|
-
const
|
|
43
|
+
const SallaLoyaltyProgram = class {
|
|
35
44
|
constructor(hostRef) {
|
|
36
45
|
index.registerInstance(this, hostRef);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.
|
|
41
|
-
|
|
46
|
+
/**
|
|
47
|
+
* prize to show in details or exchange modals
|
|
48
|
+
*/
|
|
49
|
+
this.currentPrize = null;
|
|
50
|
+
/**
|
|
51
|
+
* collapsed state of points list
|
|
52
|
+
*/
|
|
53
|
+
this.collapsed = true;
|
|
54
|
+
this.animatedPoints = 0;
|
|
55
|
+
this.handleExchangeSucceeded = () => {
|
|
56
|
+
this.points();
|
|
57
|
+
this.program();
|
|
42
58
|
};
|
|
43
59
|
}
|
|
44
60
|
componentWillLoad() {
|
|
45
|
-
return salla.onReady()
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
return salla.onReady()
|
|
62
|
+
.then(() => salla.lang.onLoaded())
|
|
63
|
+
.then(() => translations.setTranslations())
|
|
64
|
+
.then(() => {
|
|
65
|
+
this.program();
|
|
66
|
+
this.points();
|
|
67
|
+
salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
68
|
+
})
|
|
69
|
+
.catch((error) => salla.logger.error(error));
|
|
48
70
|
}
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
try {
|
|
52
|
-
let url = `/balance/points?page=1`;
|
|
53
|
-
let resp = await salla.api.request(url);
|
|
54
|
-
this.loyaltyPointsArray = resp.data;
|
|
55
|
-
this.nextPageUrlLoyalty = resp.cursor.next;
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
console.error('Error loading loyalty points transactions', error);
|
|
59
|
-
}
|
|
60
|
-
finally {
|
|
61
|
-
this.isLoadingLoyalty = false;
|
|
62
|
-
}
|
|
71
|
+
disconnectedCallback() {
|
|
72
|
+
salla.event.off('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
|
|
63
73
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this.nextPageUrlLoyalty = resp.cursor?.next || '';
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
console.error('Error loading more loyalty points', error);
|
|
75
|
-
}
|
|
76
|
-
finally {
|
|
77
|
-
this.isLoadingLoyalty = false;
|
|
78
|
-
}
|
|
74
|
+
getOutlineItem(number, title, description) {
|
|
75
|
+
const icons = {
|
|
76
|
+
1: index.h("span", { innerHTML: userAdd.SIUserAdd }),
|
|
77
|
+
2: index.h("span", { innerHTML: giftSharing.SIGiftSharing }),
|
|
78
|
+
3: index.h("span", { innerHTML: SICartUpload }),
|
|
79
|
+
};
|
|
80
|
+
return (index.h("li", { class: "s-loyalty-program-item" }, index.h("div", { class: "s-loyalty-program-content" }, index.h("span", { class: "s-loyalty-program-icon-container" }, index.h("span", { class: "s-loyalty-program-text-gradient" }, number), index.h("span", { class: "s-loyalty-program-icon" }, icons[number])), index.h("div", { class: "s-loyalty-program-title" }, title), index.h("div", { class: "s-loyalty-program-description" }, description))));
|
|
79
81
|
}
|
|
80
82
|
render() {
|
|
81
|
-
|
|
83
|
+
if (this.program.status === 'error') {
|
|
84
|
+
return index.h("p", null, salla.lang.get('common.errors.error_occured'));
|
|
85
|
+
}
|
|
86
|
+
const displayedPoints = this.program.data.points.slice(0, this.collapsed ? functions.nearestLowerMultiple(this.program.data.points.length) : this.program.data.points.length);
|
|
87
|
+
const prizesGroups = this.program.data.prizes;
|
|
88
|
+
const prizesCount = this.program.data.prizes_count;
|
|
89
|
+
return (index.h("div", { class: "s-loyalty-program-container" }, index.h("salla-loyalty-hero", { name: this.program.data.name, description: this.program.data.description, image: this.program.data.image }, salla.config.isUser()
|
|
90
|
+
? index.h("div", { slot: "crosspoint", class: "s-loyalty-program-profile-wrapper" }, index.h("div", { class: "s-loyalty-program-profile-container" }, index.h("div", { class: "s-loyalty-program-profile-points-section" }, index.h("h2", { class: "s-loyalty-program-profile-label" }, salla.lang.get('pages.loyalty_program.your_points')), index.h("p", { class: "s-loyalty-program-profile-points" }, index.h("span", { class: "s-loyalty-program-profile-points-value" }, !!this.animatedPoints ? this.animatedPoints : this.points.data), "\u00A0", salla.lang.get('pages.loyalty_program.point'))), index.h("div", { class: "s-loyalty-program-profile-icon" }, index.h("span", { innerHTML: gift.SIGift }))))
|
|
91
|
+
: index.h("button", { slot: "action", onClick: () => salla.event.dispatch('login::open'), class: {
|
|
92
|
+
's-loyalty-program-login-action': true,
|
|
93
|
+
's-loyalty-program-login-action-dark': !this.program.data.image,
|
|
94
|
+
's-loyalty-program-login-action-light': !!this.program.data.image,
|
|
95
|
+
} }, salla.lang.get('blocks.header.login'))), index.h("div", { class: "s-loyalty-program-outline-section" }, index.h("section", { class: "s-loyalty-program-section" }, index.h("header", { class: "s-loyalty-program-header" }, index.h("h1", { class: "s-loyalty-program-main-title" }, salla.lang.get('pages.loyalty_program.how_to_start')), index.h("p", { class: "s-loyalty-program-subtitle" }, salla.lang.get('pages.loyalty_program.three_simple_steps'))), index.h("ol", { class: "s-loyalty-program-list" }, this.getOutlineItem(1, salla.lang.get('pages.loyalty_program.register'), salla.lang.get('pages.loyalty_program.create_account')), this.getOutlineItem(2, salla.lang.get('pages.loyalty_program.earn_points'), salla.lang.get('pages.loyalty_program.complete_tasks')), this.getOutlineItem(3, salla.lang.get('pages.loyalty_program.redeem_rewards'), salla.lang.get('pages.loyalty_program.enjoy_rewards'))))), index.h("div", { class: "s-loyalty-program-points-wrapper" }, index.h("section", { class: "s-loyalty-program-points-section" }, index.h("header", { class: "s-loyalty-program-points-header" }, index.h("h1", { class: "s-loyalty-program-points-title" }, this.program.data.promotion_title), index.h("p", { class: "s-loyalty-program-points-description" }, this.program.data.promotion_description)), index.h("div", { class: "s-loyalty-program-points-spacer" }), index.h("ul", { class: {
|
|
96
|
+
's-loyalty-program-points-list-one': this.program.data.points.length === 1,
|
|
97
|
+
's-loyalty-program-points-list-two': this.program.data.points.length === 2,
|
|
98
|
+
's-loyalty-program-points-list-multi': this.program.data.points.length > 2,
|
|
99
|
+
} }, displayedPoints.map(point => (index.h("li", null, index.h("salla-loyalty-point", { point: point }))))), index.h("div", { class: "s-loyalty-program-points-spacer" }), functions.nearestLowerMultiple(this.program.data.points.length) !== this.program.data.points.length && index.h("button", { class: "s-loyalty-program-points-more-button", onClick: () => this.collapsed = !this.collapsed }, this.collapsed
|
|
100
|
+
? index.h("span", null, salla.lang.get('pages.loyalty_program.show_more'), "\u00A0\u00A0", index.h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "+"))
|
|
101
|
+
: index.h("span", null, salla.lang.get('pages.loyalty_program.show_less'), "\u00A0\u00A0", index.h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "-"))))), this.program.status !== 'success' ? '' : index.h("div", { class: "s-loyalty-program-rewards-container s-loyalty-program-slider-arrows-edges" }, index.h("section", { class: {
|
|
102
|
+
's-loyalty-program-tabs-hider': prizesGroups.length <= 2 || prizesCount <= 4,
|
|
103
|
+
} }, index.h("h1", { class: "s-loyalty-program-rewards-heading-mobile" }, salla.lang.get('pages.loyalty_program.rewards')), index.h("salla-tabs", null, index.h("div", { slot: "header", class: "s-loyalty-program-rewards-tab-items" }, prizesGroups.map((group) => (index.h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], index.h("span", null, group.title))))), index.h("h1", { slot: "header", class: "s-loyalty-program-rewards-heading-desktop" }, salla.lang.get('pages.loyalty_program.rewards')), prizesGroups.map((group) => (index.h("salla-tab-content", { slot: "content", name: group.type }, index.h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":4,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, index.h("div", { slot: "items" }, group.items.map((prize) => index.h("salla-reward-card", { prize: prize, onAreaClick: () => { this.currentPrize = prize; functions.closeModals(() => this.detailsModal.open()); }, onActionClick: () => { this.currentPrize = prize; functions.closeModals(() => this.detailsModal.open()); } })))))))), index.h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : index.h("salla-reward-details", { onActionClick: () => functions.closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), index.h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : index.h("salla-reward-exchange", { prize: this.currentPrize }))))));
|
|
82
104
|
}
|
|
83
105
|
};
|
|
84
|
-
|
|
106
|
+
__decorate([
|
|
107
|
+
trackedPromise.TrackedPromise(async function () {
|
|
108
|
+
const { data } = await salla.loyalty.getProgram();
|
|
109
|
+
return functions.normalizeLoyaltyData(data);
|
|
110
|
+
}, { initialData: { points: [], prizes: [], prizes_count: 0 } })
|
|
111
|
+
], SallaLoyaltyProgram.prototype, "program", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
trackedPromise.TrackedPromise(async function () {
|
|
114
|
+
const { data } = await salla.loyalty.getPoints();
|
|
115
|
+
anime_es.anime({
|
|
116
|
+
targets: { value: 0 },
|
|
117
|
+
value: data.points ?? 0,
|
|
118
|
+
round: 1,
|
|
119
|
+
easing: 'easeOutQuad',
|
|
120
|
+
duration: 2000,
|
|
121
|
+
update: (anim) => {
|
|
122
|
+
this.animatedPoints = anim.animations[0].currentValue;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
return data.points;
|
|
126
|
+
})
|
|
127
|
+
], SallaLoyaltyProgram.prototype, "points", void 0);
|
|
128
|
+
SallaLoyaltyProgram.style = sallaLoyaltyProgramCss;
|
|
85
129
|
|
|
86
|
-
exports.salla_loyalty_program =
|
|
130
|
+
exports.salla_loyalty_program = SallaLoyaltyProgram;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
|
+
var functions = require('./functions-DVMonIet.js');
|
|
8
|
+
var gift = require('./gift-DbNivqYO.js');
|
|
9
|
+
|
|
10
|
+
const sallaLoyaltyProgramCss = "";
|
|
11
|
+
|
|
12
|
+
const SallaLoyaltyReward = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.rewardModalOpen = index.createEvent(this, "rewardModalOpen");
|
|
16
|
+
this.confirmModalOpen = index.createEvent(this, "confirmModalOpen");
|
|
17
|
+
this.size = 'md';
|
|
18
|
+
this.isActionClickable = (prize) => {
|
|
19
|
+
switch (prize.key?.toLowerCase()) {
|
|
20
|
+
case 'free_product':
|
|
21
|
+
return prize.is_product_available;
|
|
22
|
+
default:
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
this.handleActionArea = () => {
|
|
27
|
+
this.rewardModalOpen.emit(this.prize);
|
|
28
|
+
};
|
|
29
|
+
this.handleAction = () => {
|
|
30
|
+
if (!this.isActionClickable(this.prize))
|
|
31
|
+
return;
|
|
32
|
+
if (!salla.config.isUser()) {
|
|
33
|
+
functions.closeModals(() => salla.event.dispatch('login::open'));
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.confirmModalOpen.emit(this.prize);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return (index.h("div", { key: '38c63e250c45badf03516c87496619152b9a0af8', class: {
|
|
43
|
+
's-loyalty-program-reward-container': true,
|
|
44
|
+
's-loyalty-program-reward-xs': this.size === 'xs',
|
|
45
|
+
} }, index.h("div", { key: '93e11a5c458aa3112b00bea4bc845733d8bf4415', onClick: this.handleActionArea, role: "button" }, index.h("div", { key: '67f5cfe1a3551832548d95bda9c6bcc6cdd26119', class: "s-loyalty-program-reward-img" }, index.h("img", { key: '36f6dc13da2b7c844d2318d4e9bafeb96d960f11', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), index.h("div", { key: 'c953cfeebaabdad22fba498903936e170aadcebe', class: "s-loyalty-program-reward-content" }, index.h("div", { key: '68f33aba783ffaef38ea9e4a3f9063b2f68bb2b1', class: "s-loyalty-program-reward-points" }, index.h("salla-badge", { key: 'bdac8babbf1bbabeec37e92053c4c7eab178a06f', size: "xs" }, index.h("span", { key: '367f3f154a6079781cece4018337b09996229001', innerHTML: gift.SIGift }), index.h("span", { key: 'fd8cdd6bafe8a8f5f45f7a4e6df2f074ab2b5961', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), index.h("div", { key: '84f6dbc80ecaa12ab9dacf48ec289bb3f5bdfc84', class: "s-loyalty-program-reward-title" }, index.h("span", { key: '1505f38884417eee9f266ab3ddb2f57096f6d0da' }, this.group)), index.h("div", { key: '82ced1df7118958153868c15c193ac03783dc383', class: "s-loyalty-program-reward-name" }, index.h("div", { key: 'a853fc37628c02ffe064608f6e52725d664fc259', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), index.h("div", { key: '584d6db1edfafc846eb8908d2762483d5e590296', class: "p-4" }, index.h("button", { key: 'ac0962db5b5d3121b4c6197c4c378db76a963950', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
|
|
46
|
+
's-loyalty-program-rewards-action-base': true,
|
|
47
|
+
's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
|
|
48
|
+
's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
|
|
49
|
+
} }, this.isActionClickable(this.prize) ? salla.lang.get('pages.loyalty_program.redeem_reward') : salla.lang.get('pages.loyalty_program.out_of_stock')))));
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
SallaLoyaltyReward.style = sallaLoyaltyProgramCss;
|
|
53
|
+
|
|
54
|
+
exports.salla_loyalty_reward = SallaLoyaltyReward;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
var star2 = require('./star2-R146a27p.js');
|
|
8
|
-
var cancel = require('./cancel-
|
|
8
|
+
var cancel = require('./cancel-B5SbMYEk.js');
|
|
9
9
|
|
|
10
10
|
var Star3 = `<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80">
|
|
11
11
|
<title>star3</title>
|
|
@@ -122,7 +122,7 @@ const SallaLoyalty = class {
|
|
|
122
122
|
];
|
|
123
123
|
}
|
|
124
124
|
getAfterExchangeUI() {
|
|
125
|
-
return index.h("slot", { name: 'points-applied-widget' }, index.h("salla-list-tile", { class: "s-loyalty-after-exchange" }, index.h("div", { slot: "title", class: "s-loyalty-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), index.h("div", { slot: 'action', class: "s-loyalty-after-exchange-action" }, index.h("salla-button", { class: "s-loyalty-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => this.resetExchange() }, index.h("span", { innerHTML: cancel.
|
|
125
|
+
return index.h("slot", { name: 'points-applied-widget' }, index.h("salla-list-tile", { class: "s-loyalty-after-exchange" }, index.h("div", { slot: "title", class: "s-loyalty-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), index.h("div", { slot: 'action', class: "s-loyalty-after-exchange-action" }, index.h("salla-button", { class: "s-loyalty-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => this.resetExchange() }, index.h("span", { innerHTML: cancel.SICancel })))));
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
* Show loyalty modal
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var cancel = require('./cancel-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
|
+
var cancel = require('./cancel-B5SbMYEk.js');
|
|
8
8
|
|
|
9
9
|
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}}";
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ const SallaMaintenanceAlert = class {
|
|
|
24
24
|
this.host.style.display = 'none';
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h(index.Host, { key: '
|
|
27
|
+
return (index.h(index.Host, { key: 'e76dcd0a076d1b72ead3398196f962713e975ce5', class: "s-maintenance-alert-wrapper" }, index.h("button", { key: '2105bc891908dab5a1c9edec1c534a600bb35fe5', class: "s-maintenance-alert-close", innerHTML: cancel.SICancel, onClick: () => this.closeAlert() }), index.h("div", { key: 'a01b014066fbbc08da96962ad9a0c98e24fddf1c', class: "s-maintenance-alert-content" }, index.h("div", { key: 'c8b6ac96a881fc40bdb65908bb309378035235ea', class: "s-maintenance-alert-container" }, index.h("div", { key: '5d9fb2968315674e0d3a3172f82f9109db55da1d', class: "s-maintenance-alert-icon" }, index.h("img", { key: '2649551a12d0958375a89cc1dcb8176b28f5e41f', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), index.h("div", { key: '2b3f99a39857bcf87b034aa48074c1f4229bff95', class: "s-maintenance-alert-text" }, index.h("h2", { key: '5a3c0969cd45f666a8bd043d171e00bc88031f3e' }, this.title), index.h("p", { key: 'd3df4ada2bf5f7192b22affeeb10edec481a0038' }, this.message))), index.h("div", { key: '818d96f7680dc4b02fed14a2d8c09dab9b8e5d86' }, index.h("a", { key: '794a0c273fc4d84b0319b38e11fb43af5681ce67', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
|
|
28
28
|
}
|
|
29
29
|
componentDidLoad() {
|
|
30
30
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
var location = require('./location-DIyESLuI.js');
|
|
8
8
|
|
|
9
9
|
var Edit = `<!-- Generated by IcoMoon.io -->
|
|
@@ -700,11 +700,11 @@ const SallaMap = class {
|
|
|
700
700
|
}
|
|
701
701
|
// render
|
|
702
702
|
render() {
|
|
703
|
-
return (index.h(index.Host, { key: '
|
|
703
|
+
return (index.h(index.Host, { key: '302015399be6ef260a6617b31a6065e5facf940f', class: "s-map-wrapper" }, index.h("salla-modal", { key: '9f6cdedaeaa81ae33e14f09bf6cae48c4d3b152b', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
704
704
|
this.locationModal = modal;
|
|
705
|
-
} }, this.getLocationModal()), index.h("slot", { key: '
|
|
705
|
+
} }, this.getLocationModal()), index.h("slot", { key: '7085cb61e2e404a22381825feaabfcc36e6f20fb', name: "button" }, index.h("salla-button", { key: '3ebf2ec427c6d5edf501262afd096f5a82e69a13', onClick: () => {
|
|
706
706
|
this.open();
|
|
707
|
-
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: '
|
|
707
|
+
}, color: "primary", class: "s-map-location-button" }, index.h("span", { key: 'aa4dfd6a1282d651a0e78631c8165c2cbdd536d2', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : location.Location }), this.formattedAddress ? (index.h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), index.h("input", { key: 'eadd1bbe75d9ba2898bb770e7e6aa9a02e21dece', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
|
|
708
708
|
}
|
|
709
709
|
get host() { return index.getElement(this); }
|
|
710
710
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCartCss = "";
|
|
9
9
|
|
|
@@ -36,7 +36,7 @@ const SallaMultipleBundleProductCart = class {
|
|
|
36
36
|
return (index.h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, index.h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, index.h("div", { class: "s-multiple-bundle-product-cart-header-content" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, index.h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, index.h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, index.h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), index.h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, index.h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (index.h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, index.h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (index.h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, index.h("span", null, salla.lang.get('pages.products.number_of_pieces')), index.h("span", null, product?.quantity_in_group))))), !hasOptions && (index.h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: 'd584e8fca258d4be9c50fe6e4094aa274ff64d14', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: '55a444d53317e17a7ef9a286089f85e2def128c8', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
40
40
|
return section.products.map(product => {
|
|
41
41
|
const bundleContext = {
|
|
42
42
|
sectionId: section.id,
|
|
@@ -209,10 +209,10 @@ const SallaMultipleBundleProductDetails = class {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
render() {
|
|
212
|
-
return (index.h(index.Host, { key: '
|
|
212
|
+
return (index.h(index.Host, { key: '07ca2849aa860c68213f61ffdca521cc1c41b6f9', class: "s-multiple-bundle-product-wrapper" }, index.h("div", { key: 'b810754688575d2a6418f9f2089ca65aa7981a58', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index$1) => {
|
|
213
213
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
214
214
|
return (index.h("salla-accordion", { key: section.id, collapsed: index$1 === 0 ? false : true }, index.h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), index.h("salla-accordion-body", null, index.h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index$1, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
215
|
-
})), index.h("salla-multiple-bundle-product-options-modal", { key: '
|
|
215
|
+
})), index.h("salla-multiple-bundle-product-options-modal", { key: '7b7373564360e33bf005a5854acd84b61cdd3b05' })));
|
|
216
216
|
}
|
|
217
217
|
get host() { return index.getElement(this); }
|
|
218
218
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
|
|
8
8
|
|
|
9
9
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -467,7 +467,7 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
467
467
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
468
468
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
469
469
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
470
|
-
return (index.h(index.Host, { key: '
|
|
470
|
+
return (index.h(index.Host, { key: '1a9514ddc173fd5da9a31b29be3e905d11be5782' }, index.h("salla-modal", { key: '50efdd76cff0794bd638490c7f48cc599a49dcfc', 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" }, index.h("div", { key: '9fec44912babfc95fed6ab99c5cd2e71c8bc5298', slot: "loading" }, index.h("salla-skeleton", { key: '84c3f41d42e81330bd32f7a3c5b44cb07fc02cac', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (index.h("salla-slider", { key: '5de5fd4285de79b8406626fdb00dccd3987142fa', 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: {
|
|
471
471
|
centeredSlides: true,
|
|
472
472
|
centeredSlidesBounds: true,
|
|
473
473
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -475,13 +475,13 @@ const SallaMultipleBundleProductOptionsModal = class {
|
|
|
475
475
|
watchSlidesProgress: true,
|
|
476
476
|
direction: 'vertical',
|
|
477
477
|
spaceBetween: 10,
|
|
478
|
-
} }, index.h("div", { key: '
|
|
478
|
+
} }, index.h("div", { key: 'd782e027554b6de6bb959940f9a841042f2a55e5', slot: "items" }, this.product?.images &&
|
|
479
479
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, class: "swiper-slide" }, index.h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index$1 + 1}`, loading: "lazy", onError: e => {
|
|
480
480
|
e.target.style.display = 'none';
|
|
481
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '
|
|
481
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (index.h("div", { key: '8b47995edd34d3f5e7c7fd5a24a39c335c6634f1', slot: "thumbs" }, this.product?.images &&
|
|
482
482
|
this.product?.images.map((image, index$1) => (index.h("div", { key: index$1, "data-caption": `${this.product?.name} - Image ${index$1 + 1}` }, index.h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index$1 + 1}`, alt: image.alt || `${this.product?.name} - ${index$1 + 1}`, onError: e => {
|
|
483
483
|
e.target.style.display = 'none';
|
|
484
|
-
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '
|
|
484
|
+
} })))))))), index.h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), index.h("div", { key: '72847766444879b09ab86729279844c51b0cef18', slot: "footer" }, index.h("div", { key: '58ecac81b3d09c211bf0e74e9f74d932a31ed7c1', class: "s-multiple-bundle-product-options-modal-footer" }, index.h("salla-button", { key: 'c7e08990104c111d6b6ab3375fb7649a94aa6191', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
485
485
|
? salla.lang.get('common.elements.saving')
|
|
486
486
|
: salla.lang.get('common.elements.save')))))));
|
|
487
487
|
}
|
|
@@ -580,7 +580,7 @@ const SallaMultipleBundleProductSlider = class {
|
|
|
580
580
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
581
581
|
}
|
|
582
582
|
render() {
|
|
583
|
-
return (index.h(index.Host, { key: '
|
|
583
|
+
return (index.h(index.Host, { key: '3968471eedb925b4dda4d4d381344fb2ed4f97ed' }, index.h("salla-slider", { key: '4bbaab685b7677b79b56cd6a3d80b210b125d568', 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 } }, index.h("div", { key: 'b0d1a441b2cf9ed124dec4f210e082ffd0cb200b', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
584
584
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
585
585
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
586
586
|
const optionsButtonLabel = hasSavedOptions
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-B3JuQExz.js');
|
|
7
7
|
|
|
8
8
|
const sallaMultipleBundleProductCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -58,7 +58,7 @@ const SallaMultipleBundleProduct = class {
|
|
|
58
58
|
this.parseProducts(this.bundleSections);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (index.h(index.Host, { key: '
|
|
61
|
+
return (index.h(index.Host, { key: '0c083bcf6f932c3db65e7c9c1871843594bc8604', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
62
62
|
}
|
|
63
63
|
static get watchers() { return {
|
|
64
64
|
"bundleSections": ["parseProducts"]
|