@salla.sa/twilight-components 2.14.454 → 2.14.456
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-omDVoR0V.js → filepond-ByigWwFl.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CiTwbype.js → filepond-plugin-file-poster-BiD-_Ds9.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BMUGogIJ.js → filepond-plugin-file-validate-size--jYzIVxc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DU7loMuy.js → filepond-plugin-file-validate-type-DSEoIdkG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BvpuxlGL.js → filepond-plugin-image-edit-BxhNq1OW.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BltzmQ3V.js → filepond-plugin-image-exif-orientation-CxhioraI.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C-51g4On.js → filepond-plugin-image-preview-BOBfoOPj.js} +1 -1
- package/dist/cjs/{functions-BugkyX_h.js → functions-CzTE1Can.js} +36 -8
- package/dist/cjs/{index-CMdVOCIm.js → index-CHEJ_wTy.js} +1 -1
- package/dist/cjs/{index-DppdveKW.js → index-MWekS0mu.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +1 -1
- 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 +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +32 -10
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +11 -5
- 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 +1 -1
- package/dist/cjs/salla-map.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +14 -11
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +172 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- 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-D_CjjRbz.js → tracked-promise-DzmWHAH-.js} +1 -1
- package/dist/cjs/{translations-DMwpLvqi.js → translations-BHyDCj-Y.js} +12 -0
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Cx13ViIR.js → vanilla-picker-D7NBRp4f.js} +1 -1
- package/dist/collection/components/salla-loyalty-program/functions.js +22 -7
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +31 -9
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +7 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +4 -1
- 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-loyalty-program/translations.js +12 -0
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +171 -0
- package/dist/components/functions.js +35 -8
- package/dist/components/index.js +2 -2
- package/dist/components/salla-loyalty-point2.js +31 -9
- package/dist/components/salla-loyalty-program.js +7 -1
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-reward-action2.js +4 -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-trust-badges.js +171 -0
- package/dist/components/translations.js +12 -0
- package/dist/esm/{filepond-DFccUKfi.js → filepond-CRlzgcIb.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BKP-dfBt.js → filepond-plugin-file-poster-ByayYzo6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cjhw73dP.js → filepond-plugin-file-validate-size-Dzbvm4bE.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BYB_v8v7.js → filepond-plugin-file-validate-type-BLR4c3Mg.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DrvarOmH.js → filepond-plugin-image-edit-C3Xg8l5R.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DdeulGFN.js → filepond-plugin-image-exif-orientation-CVUrfrNW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CygMfjyy.js → filepond-plugin-image-preview-CGO8PkcS.js} +1 -1
- package/dist/esm/{functions-B4JadfO-.js → functions-gyNQgO8M.js} +36 -9
- package/dist/esm/{index-iW77h_OO.js → index-CF5lYEtt.js} +2 -2
- package/dist/esm/{index-BsChAaWH.js → index-D8tNjsq-.js} +1 -1
- package/dist/esm/loader.js +2 -2
- 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 +1 -1
- 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 +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +32 -10
- package/dist/esm/salla-loyalty-panel.entry.js +4 -4
- package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +11 -5
- 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 +1 -1
- package/dist/esm/salla-map.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +14 -11
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +172 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-C44guOYk.js → tracked-promise-p7166HJt.js} +1 -1
- package/dist/esm/{translations-B-Rj6b9M.js → translations-dn_hTofo.js} +12 -0
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-YDGjYiGR.js → vanilla-picker-DNH0QcWx.js} +1 -1
- package/dist/twilight/{p-f909c93a.entry.js → p-00cae5da.entry.js} +1 -1
- package/dist/twilight/{p-34aa2e08.entry.js → p-03d2a295.entry.js} +1 -1
- package/dist/twilight/{p-d7efc079.entry.js → p-07509240.entry.js} +1 -1
- package/dist/twilight/{p-99cc3c6d.entry.js → p-08e2d088.entry.js} +1 -1
- package/dist/twilight/{p-05a72e81.entry.js → p-161bbb4d.entry.js} +1 -1
- package/dist/twilight/{p-596d016f.entry.js → p-1745f9a1.entry.js} +1 -1
- package/dist/twilight/{p-3e994db0.entry.js → p-18eeb19b.entry.js} +1 -1
- package/dist/twilight/{p-d9754b4d.entry.js → p-19c86bc6.entry.js} +1 -1
- package/dist/twilight/{p-DQRmUn8O.js → p-1P71keJV.js} +1 -1
- package/dist/twilight/{p-24b99485.entry.js → p-1a647899.entry.js} +1 -1
- package/dist/twilight/{p-4cbe8713.entry.js → p-1c87788f.entry.js} +1 -1
- package/dist/twilight/{p-02dd7637.entry.js → p-1dbb89d0.entry.js} +1 -1
- package/dist/twilight/{p-13cb0ec4.entry.js → p-25705059.entry.js} +1 -1
- package/dist/twilight/{p-d5dd0382.entry.js → p-2d707e83.entry.js} +1 -1
- package/dist/twilight/{p-256aa3f1.entry.js → p-30f4c0c7.entry.js} +1 -1
- package/dist/twilight/{p-a6394281.entry.js → p-3586e535.entry.js} +1 -1
- package/dist/twilight/{p-ed5da7f4.entry.js → p-3ab0ba37.entry.js} +1 -1
- package/dist/twilight/{p-2d4e9fb9.entry.js → p-3e5d39d6.entry.js} +1 -1
- package/dist/twilight/{p-c0ff719e.entry.js → p-3f7d4d95.entry.js} +1 -1
- package/dist/twilight/{p-290f254d.entry.js → p-4189d36a.entry.js} +1 -1
- package/dist/twilight/{p-c929ace3.entry.js → p-44cb2ef8.entry.js} +1 -1
- package/dist/twilight/p-469b9c3b.entry.js +4 -0
- package/dist/twilight/{p-7afdc002.entry.js → p-4ba8a32c.entry.js} +1 -1
- package/dist/twilight/{p-46b71bff.entry.js → p-4c74a0de.entry.js} +1 -1
- package/dist/twilight/{p-99e0fc1f.entry.js → p-4d2ee4bf.entry.js} +1 -1
- package/dist/twilight/{p-40c95509.entry.js → p-4f623243.entry.js} +1 -1
- package/dist/twilight/{p-ed14038b.entry.js → p-4fbac225.entry.js} +1 -1
- package/dist/twilight/p-5312991b.entry.js +4 -0
- package/dist/twilight/{p-8fea01ea.entry.js → p-53db2588.entry.js} +1 -1
- package/dist/twilight/{p-02f8d9f9.entry.js → p-549dfe1b.entry.js} +1 -1
- package/dist/twilight/{p-51da9e0c.entry.js → p-579c9941.entry.js} +1 -1
- package/dist/twilight/{p-6ed57526.entry.js → p-585f6156.entry.js} +1 -1
- package/dist/twilight/p-5b9aee81.entry.js +4 -0
- package/dist/twilight/{p-6c9aca7c.entry.js → p-60c4743f.entry.js} +1 -1
- package/dist/twilight/{p-JqmowdAI.js → p-65q-Lspm.js} +1 -1
- package/dist/twilight/{p-51638221.entry.js → p-6612976a.entry.js} +1 -1
- package/dist/twilight/p-66384032.entry.js +4 -0
- package/dist/twilight/p-66fb0eed.entry.js +4 -0
- package/dist/twilight/{p-b266250b.entry.js → p-6e1cec7b.entry.js} +1 -1
- package/dist/twilight/{p-28f46e76.entry.js → p-7046c764.entry.js} +1 -1
- package/dist/twilight/{p-1b2c0753.entry.js → p-72a7f290.entry.js} +1 -1
- package/dist/twilight/{p-19f2e7d2.entry.js → p-72ec3a50.entry.js} +1 -1
- package/dist/twilight/{p-4c9edafa.entry.js → p-74ad347b.entry.js} +1 -1
- package/dist/twilight/{p-a61a9f5a.entry.js → p-789816d3.entry.js} +1 -1
- package/dist/twilight/{p-d58e833c.entry.js → p-814b5624.entry.js} +1 -1
- package/dist/twilight/{p-cb7e203e.entry.js → p-84eae64c.entry.js} +1 -1
- package/dist/twilight/p-86be13c9.entry.js +4 -0
- package/dist/twilight/{p-a6dca70e.entry.js → p-8714ba55.entry.js} +1 -1
- package/dist/twilight/{p-19276c52.entry.js → p-8b9835be.entry.js} +1 -1
- package/dist/twilight/{p-da7dac3f.entry.js → p-8e84a8eb.entry.js} +1 -1
- package/dist/twilight/{p-3c810267.entry.js → p-90e05e76.entry.js} +1 -1
- package/dist/twilight/{p-721bf683.entry.js → p-96015a02.entry.js} +1 -1
- package/dist/twilight/{p-e6c02cf3.entry.js → p-97647732.entry.js} +1 -1
- package/dist/twilight/{p-D--YecOb.js → p-BWsYxy94.js} +1 -1
- package/dist/twilight/{p-CgvkiAxT.js → p-BevZXaXF.js} +1 -1
- package/dist/twilight/{p-DPYkeBoq.js → p-BtV9ZEuP.js} +1 -1
- package/dist/twilight/{p-iW77h_OO.js → p-CF5lYEtt.js} +1 -1
- package/dist/twilight/p-CSn54B_A.js +4 -0
- package/dist/twilight/{p-JH4C3FEL.js → p-CgnSxwtl.js} +2 -2
- package/dist/twilight/{p-CNLZvKDA.js → p-D0XsGIjC.js} +1 -1
- package/dist/twilight/{p-BtQuvkil.js → p-D58UweWS.js} +1 -1
- package/dist/twilight/p-DFCW2iW-.js +9 -0
- package/dist/twilight/{p-CwIp300F.js → p-DaxhHxCj.js} +2 -2
- package/dist/twilight/{p-3bbd0428.entry.js → p-a3d00953.entry.js} +1 -1
- package/dist/twilight/{p-5d9af31e.entry.js → p-a446b3b1.entry.js} +1 -1
- package/dist/twilight/{p-a27bb10b.entry.js → p-a6b63629.entry.js} +1 -1
- package/dist/twilight/{p-f05b8136.entry.js → p-a7b4fb6b.entry.js} +1 -1
- package/dist/twilight/{p-3a4376e2.entry.js → p-ab8c90ab.entry.js} +1 -1
- package/dist/twilight/{p-3f5f9c20.entry.js → p-acb29315.entry.js} +1 -1
- package/dist/twilight/{p-5ac78da9.entry.js → p-ad411fb2.entry.js} +1 -1
- package/dist/twilight/{p-74ab39a5.entry.js → p-ade9674c.entry.js} +1 -1
- package/dist/twilight/{p-f8316f57.entry.js → p-ae31f13e.entry.js} +1 -1
- package/dist/twilight/{p-fd293182.entry.js → p-b03ccd38.entry.js} +1 -1
- package/dist/twilight/p-b23c3b14.entry.js +4 -0
- package/dist/twilight/{p-d742b000.entry.js → p-b4a5d9f1.entry.js} +1 -1
- package/dist/twilight/{p-f0cddd1f.entry.js → p-b94a95f9.entry.js} +1 -1
- package/dist/twilight/{p-4e93a3b0.entry.js → p-bd692fdc.entry.js} +1 -1
- package/dist/twilight/{p-1152d39f.entry.js → p-bf38bbba.entry.js} +1 -1
- package/dist/twilight/{p-f2b6c9a8.entry.js → p-bf9ecde7.entry.js} +1 -1
- package/dist/twilight/{p-76523a14.entry.js → p-c0c2f66b.entry.js} +1 -1
- package/dist/twilight/{p-3bae0861.entry.js → p-c19fc5f6.entry.js} +1 -1
- package/dist/twilight/{p-0819daad.entry.js → p-c2818e13.entry.js} +1 -1
- package/dist/twilight/{p-588a366c.entry.js → p-c3ab6df4.entry.js} +1 -1
- package/dist/twilight/{p-87b489d5.entry.js → p-c47b7eb7.entry.js} +1 -1
- package/dist/twilight/{p-eba853e8.entry.js → p-cdcf9152.entry.js} +1 -1
- package/dist/twilight/{p-df7285e7.entry.js → p-cf5f44a4.entry.js} +1 -1
- package/dist/twilight/{p-ba047214.entry.js → p-d06ddfdd.entry.js} +1 -1
- package/dist/twilight/{p-00b84307.entry.js → p-d0982f5f.entry.js} +1 -1
- package/dist/twilight/{p-5965a3d2.entry.js → p-d4415e81.entry.js} +1 -1
- package/dist/twilight/{p-a9d9d779.entry.js → p-d4737a77.entry.js} +1 -1
- package/dist/twilight/{p-fb21e567.entry.js → p-d53cf37d.entry.js} +1 -1
- package/dist/twilight/p-dn_hTofo.js +4 -0
- package/dist/twilight/{p-cd7b86ca.entry.js → p-e189cbcd.entry.js} +1 -1
- package/dist/twilight/{p-bf5f9ac5.entry.js → p-e34af4af.entry.js} +1 -1
- package/dist/twilight/{p-1f7af2ad.entry.js → p-e71456a5.entry.js} +1 -1
- package/dist/twilight/{p-0649d07b.entry.js → p-f1da2348.entry.js} +1 -1
- package/dist/twilight/{p-f65dfb0b.entry.js → p-f77fa8c8.entry.js} +1 -1
- package/dist/twilight/{p-a6563120.entry.js → p-fb088b52.entry.js} +1 -1
- package/dist/twilight/{p-7ca70e4e.entry.js → p-fde1dd81.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-loyalty-program/functions.d.ts +3 -1
- package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +3 -0
- package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +25 -0
- package/package.json +5 -5
- package/dist/twilight/p-10334bac.entry.js +0 -4
- package/dist/twilight/p-498cdb6f.entry.js +0 -4
- package/dist/twilight/p-697a25c4.entry.js +0 -4
- package/dist/twilight/p-B-Rj6b9M.js +0 -4
- package/dist/twilight/p-BWfbW9uR.js +0 -4
- package/dist/twilight/p-BpU1d8Q_.js +0 -9
- package/dist/twilight/p-c5c834f6.entry.js +0 -4
- package/dist/twilight/p-d85d8cc1.entry.js +0 -4
- package/dist/twilight/p-dc1ed927.entry.js +0 -4
- package/dist/twilight/p-f1b235e6.entry.js +0 -4
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
5
|
-
import { c as closeModals, f as formattedPointsJsx } from './functions.js';
|
|
5
|
+
import { c as closeModals, f as formattedPointsJsx, i as isUnitOrder } from './functions.js';
|
|
6
6
|
import { l as loyaltyProgramIcon } from './gift.js';
|
|
7
7
|
import { C as Cart2 } from './cart2.js';
|
|
8
|
+
import { T as Tag } from './tag.js';
|
|
8
9
|
import { M as MailIcon } from './mail.js';
|
|
9
10
|
import { S as SICalendar } from './calendar.js';
|
|
10
11
|
import { I as IphoneXIcon } from './iphone-x.js';
|
|
@@ -70,11 +71,16 @@ const sallaLoyaltyProgramCss = "";
|
|
|
70
71
|
* pos - sicon-store
|
|
71
72
|
* fill profile - sicon-user-add
|
|
72
73
|
*/
|
|
74
|
+
const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
|
|
73
75
|
const sicons = {
|
|
74
76
|
'FIRST_ORDER_STORE_FOR_UNIT': h("span", { innerHTML: Cart2 }),
|
|
77
|
+
'FIRST_ORDER_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
75
78
|
'FIRST_ORDER_STORE_FIX_AMOUNT': h("span", { innerHTML: Cart2 }),
|
|
79
|
+
'FIRST_ORDER_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
76
80
|
'ORDER_FROM_APP_FOR_UNIT': h("span", { innerHTML: Cart2 }),
|
|
81
|
+
'ORDER_FROM_APP_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
77
82
|
'ORDER_FROM_APP_FIX_AMOUNT': h("span", { innerHTML: Cart2 }),
|
|
83
|
+
'ORDER_FROM_APP_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
78
84
|
'CONDITION_RATING_SHIPPING_STORE': h("span", { innerHTML: SIStore }),
|
|
79
85
|
'CONDITION_RATING_PRODUCT': h("span", { innerHTML: SIChatConversationAlt }),
|
|
80
86
|
'CONDITION_RATING_SHIPPING_COMPANY': h("span", { innerHTML: SIShipping }),
|
|
@@ -83,13 +89,17 @@ const sicons = {
|
|
|
83
89
|
'CONDITION_COMPLETE_PERSONAL_INFORMATION_MOBILE': h("span", { innerHTML: IphoneXIcon }),
|
|
84
90
|
'CONDITION_COMPLETE_PERSONAL_INFORMATION_GENDER': h("span", { innerHTML: SIUser }),
|
|
85
91
|
'CONDITION_BUY_FROM_STORE_FOR_UNIT': h("span", { innerHTML: Cart2 }),
|
|
92
|
+
'CONDITION_BUY_FROM_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
86
93
|
'CONDITION_BUY_FROM_STORE_FIX_AMOUNT': h("span", { innerHTML: Cart2 }),
|
|
94
|
+
'CONDITION_BUY_FROM_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: Cart2 }),
|
|
87
95
|
'order_from_pos_1': h("span", { innerHTML: IphoneXIcon }),
|
|
88
96
|
'order_from_pos_2': h("span", { innerHTML: Location }),
|
|
89
97
|
'buy_from_pos_1': h("span", { innerHTML: SIMapLocation }),
|
|
90
98
|
'buy_from_pos_2': h("span", { innerHTML: IphoneXIcon }),
|
|
91
99
|
'CONDITION_BUY_FROM_POS_FOR_UNIT': h("span", { innerHTML: IphoneXIcon }),
|
|
100
|
+
'CONDITION_BUY_FROM_POS_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: IphoneXIcon }),
|
|
92
101
|
'CONDITION_BUY_FROM_POS_FIX_AMOUNT': h("span", { innerHTML: IphoneXIcon }),
|
|
102
|
+
'CONDITION_BUY_FROM_POS_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: IphoneXIcon }),
|
|
93
103
|
'affiliate_link_1': h("span", { innerHTML: SILink1 }),
|
|
94
104
|
'affiliate_link_2': h("span", { innerHTML: SIUserAdd }),
|
|
95
105
|
'affiliate_link_3': h("span", { innerHTML: Cart2 }),
|
|
@@ -186,6 +196,22 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
186
196
|
return '';
|
|
187
197
|
}
|
|
188
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
|
+
getDetails(point) {
|
|
206
|
+
if (point.conditions.filter(c => c.key.endsWith('_BY_CATEGORIES')).length > 0) {
|
|
207
|
+
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)))))))));
|
|
208
|
+
}
|
|
209
|
+
return (h("div", { class: "s-loyalty-program-points-modal-details" }, h("div", { class: "s-loyalty-program-points-chains-wrapper mt-5 mb-5" }, h("ul", { class: "s-loyalty-program-points-chain-list" }, this.point.conditions.map((condition) => h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key]), h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: loyaltyProgramIcon }), formattedPointsJsx(condition.points, isUnitOrder(point), condition.value != null)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))))))));
|
|
210
|
+
}
|
|
211
|
+
getCategoriesJsx(categories) {
|
|
212
|
+
return !categories.length ? '' :
|
|
213
|
+
h("ul", { class: c('reward-details-categories-list') }, categories.map((category) => (h("li", null, h("a", { href: category.url, class: c('reward-details-categories-item') }, h("span", { innerHTML: Tag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))))));
|
|
214
|
+
}
|
|
189
215
|
getTrailingContent(point) {
|
|
190
216
|
switch (point.type) {
|
|
191
217
|
case 'first_order':
|
|
@@ -196,7 +222,7 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
196
222
|
}
|
|
197
223
|
}
|
|
198
224
|
render() {
|
|
199
|
-
return (h("div", { key: '
|
|
225
|
+
return (h("div", { key: 'da9f8ed073dad418e72c05c54b0362dbd35f3935' }, h("div", { key: '884b4463371c9e806c5a0b050eb977628b46c800', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'eb992d3f22972cd1bcfd475f35652a99887450c0', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '449c106f8babe36f6cc9b2273886aa4e2b81fe15', class: this.point.icon })), h("div", { key: 'e52de07a850e0e46799aba2f031f492d8f18dcb3', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '4174dd5fa7c2e60725d53b3e9d7868a5f450f7ba', size: "xs", bg: "transparent" }, h("span", { key: 'a8ff60258c58e6901d7438c239296ce2563cafd2', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("div", { key: '2196dee1a40e48a2cb7e53038e7e42a39863ad72', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'fd3ccf58c671317ceffdd0615c443671354a31de', size: "sm", bg: "transparent" }, h("span", { key: 'f21842a6f380f20d4de80df057852cbd48befa4e', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("p", { key: '7593ae79293d532ec6c3e6456c3434fc5b2beb29', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
|
|
200
226
|
h("a", { class: {
|
|
201
227
|
's-loyalty-program-points-action': true,
|
|
202
228
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
@@ -206,16 +232,12 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
|
|
|
206
232
|
's-loyalty-program-points-action': true,
|
|
207
233
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
208
234
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
209
|
-
} }, this.point.description)), h("salla-modal", { key: '
|
|
210
|
-
|
|
235
|
+
} }, this.point.description)), h("salla-modal", { key: '90be47d92f0ae74242c304c3b8d5c12c5a0a4649', 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: '00afe4584f14da0fd383f7e3109486541ca157f7', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'd6af2b363b64fa2490bcaf1039f7128e63df6121', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: 'e3cf11bcab3be81bfa63f03a75f2d655c38fc95e', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'ce0a574cbcaabd7ac589e1e3be33708e664dbc08', class: "s-loyalty-program-points-modal-main" }, h("div", { key: 'c974151e5162d8dd0ab2bc75bae20966efb268f1', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '81d369d4f8d7ee6650cef1b55ce740c64716b2bd', class: this.point.icon })), h("salla-badge", { key: '0146ac225e7d54d14bcf5e53ba6c5325e0da260f', size: "sm", bg: "light" }, h("span", { key: '0653cb7799ed999c61cd7d5b6d350bcbaf7a5d95', innerHTML: loyaltyProgramIcon }), h("span", { key: '67a397aabbc889ceff3cdcf1e37ecc2614702369', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
|
|
236
|
+
h("div", { key: '3d270563818b923112c889b291ad72ef6a15b9bc', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '0157d2d96b4b7dac9c687cef58af87fdb4871fc1', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '469624383bad345a97ca9b74980d2a1499aa1b6a', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
|
|
211
237
|
const stepsArray = Object.values(this.point.steps);
|
|
212
238
|
const isLastItem = idx === stepsArray.length - 1;
|
|
213
239
|
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))));
|
|
214
|
-
})
|
|
215
|
-
: this.point.conditions?.map((condition, idx) => {
|
|
216
|
-
const isLastItem = idx === this.point.conditions.length - 1;
|
|
217
|
-
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[condition.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", { innerHTML: loyaltyProgramIcon }), formattedPointsJsx(condition.points ?? 0)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))));
|
|
218
|
-
}))), 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: '685d0de853bd3becf1c10529768a5952b6365517', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '806543e483c0872139ee395ee9ba2dbe27061564', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
|
|
240
|
+
})))), this.getDetails(this.point), h("div", { key: 'bba31447df26e2a50a28cb6af922d49ec52a854b', 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: 'c6c84d25fddc848235682d14cc0e4755e91deb95', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '1f7fbf431f89bb0d08e531ea4e6fb41109cad50e', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
|
|
219
241
|
's-loyalty-program-points-action': true,
|
|
220
242
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
221
243
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
@@ -120,7 +120,13 @@ const SallaLoyaltyProgram$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalt
|
|
|
120
120
|
? h("span", null, salla.lang.get('pages.loyalty_program.show_more'), "\u00A0\u00A0", h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "+"))
|
|
121
121
|
: h("span", null, salla.lang.get('pages.loyalty_program.show_less'), "\u00A0\u00A0", h("span", { style: { fontSize: '1.2rem', fontWeight: '300' } }, "-"))))), this.program.status !== 'success' ? '' : h("div", { class: "s-loyalty-program-rewards-container s-loyalty-program-slider-arrows-edges" }, h("section", { class: {
|
|
122
122
|
's-loyalty-program-tabs-hider': prizesGroups.length <= 2 || prizesCount <= 4,
|
|
123
|
-
} }, h("h1", { class: "s-loyalty-program-rewards-heading-mobile" }, salla.lang.get('pages.loyalty_program.rewards')), h("salla-tabs", null, h("div", { slot: "header", class: "s-loyalty-program-rewards-tab-items" }, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title))))), h("h1", { slot: "header", class: "s-loyalty-program-rewards-heading-desktop" }, salla.lang.get('pages.loyalty_program.rewards')), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":4,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
|
|
123
|
+
} }, h("h1", { class: "s-loyalty-program-rewards-heading-mobile" }, salla.lang.get('pages.loyalty_program.rewards')), h("salla-tabs", null, h("div", { slot: "header", class: "s-loyalty-program-rewards-tab-items" }, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title))))), h("h1", { slot: "header", class: "s-loyalty-program-rewards-heading-desktop" }, salla.lang.get('pages.loyalty_program.rewards')), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":4,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
|
|
124
|
+
this.currentPrize = prize;
|
|
125
|
+
closeModals(() => this.detailsModal.open());
|
|
126
|
+
}, onActionClick: () => {
|
|
127
|
+
this.currentPrize = prize;
|
|
128
|
+
closeModals(() => this.detailsModal.open());
|
|
129
|
+
} })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize }))))));
|
|
124
130
|
}
|
|
125
131
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
126
132
|
}, [0, "salla-loyalty-program", {
|
|
@@ -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: 'cc64d1446b539fa06a6fea4280992264816fed40', 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: 'c50cc16ceff89288dc0bd4199123e0cfb7816732', onClick: this.handleActionArea, role: "button" }, h("div", { key: '7a68197172329f91e7df1e13ca667062131e14b8', class: "s-loyalty-program-reward-img" }, h("img", { key: 'f1d9dc5fc674095bfdfcb5d167f46d896f9a9b0c', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'b443d55df65a1f34fdff14a3beda5b159fe687f8', class: "s-loyalty-program-reward-content" }, h("div", { key: '292dcd5f9997f82fd0695fdd80380180e781b77f', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '083348231855223ff3ffc66b61847af85d274e19', size: "xs" }, h("span", { key: '5939fae8cd6737c98f6cab437cefdb89b0847bbb', innerHTML: loyaltyProgramIcon }), h("span", { key: '155ad221e00b1d21db2b16a8c1d394b302897cda', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: 'ab9d0e10acfc7e1bd5464a971cd6ff7eedf90d52', class: "s-loyalty-program-reward-title" }, h("span", { key: '3fcc04b5a81dd29b1b40411c95bebe8805ffb2bb' }, this.group)), h("div", { key: '2ffe9cb9c295cf817224b8d8aab7f1b413893f2f', class: "s-loyalty-program-reward-name" }, h("div", { key: 'e384ac797eb91704951e91f6fadf4863a9e9971c', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '887bb1eb44d945a66af21a88de60d09275fd5042', class: "p-4" }, h("button", { key: '704b697973f51cdcc67ba62a8b4d806d4abb5461', 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),
|
|
@@ -26,7 +26,10 @@ const SallaRewardAction = /*@__PURE__*/ proxyCustomElement(class SallaRewardActi
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
|
|
29
|
+
if (!this.isClickable(this.prize)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return (h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
|
|
30
33
|
's-loyalty-program-rewards-action-base': true,
|
|
31
34
|
's-loyalty-program-rewards-action-on': true,
|
|
32
35
|
} }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
|
|
@@ -15,7 +15,7 @@ const SallaRewardCard = /*@__PURE__*/ proxyCustomElement(class SallaRewardCard e
|
|
|
15
15
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '8e688793dec09f19093df23deacfd7ecaac100b7', class: "s-loyalty-program-reward-host" }, h("div", { key: '12663908467c428e861f999fa6449810207b9399', class: "s-loyalty-program-reward-container" }, h("div", { key: '8b01e444f083bafcd1036962113921e876be942a', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: 'a90032821b870b9fe915a3bdceb5422bacc66c3c', class: "s-loyalty-program-reward-img" }, h("img", { key: '70f872cb5c17cb8c05df6cdcd767f5b0b018f182', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: 'af161adc0a211ddb2c3702ee81cc47bf275a8b3d', class: "s-loyalty-program-reward-content" }, h("div", { key: '5f420a70d14120075ac394ced39b7d37477b8042', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '58df0147fce4aa22479474ff4e3b327dca4165c0', size: "xs" }, h("span", { key: 'e59fc1b27e38e45560d4469d2e8fad0ef1c80915', innerHTML: loyaltyProgramIcon }), h("span", { key: '9272311f41a78628c2ff6b78acb25e0b04cc3a95', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '297b130a68d6b64659a6eb832baccf8a5884db78', class: "s-loyalty-program-reward-title" }, h("span", { key: '7e9d42268e77dffb2dda963cc046fb09015c4ee7' }, this.prize.group_title)), h("div", { key: 'f70b7369222792657b02909aed7bacf2a61f24f6', class: "s-loyalty-program-reward-name" }, h("div", { key: '8f1bd6ffb8190d455006e111a013946b3569c24e', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: 'a5a7d0acba4a00be16db6b277a0a5eb39b88153b', class: "p-4" }, h("slot", { key: 'e2fcb1189b103f419884b05518af74cfd1c5eeb7', name: "action" }, h("button", { key: 'e0522ba4b684bcabae4483dfd36d00cafb86d511', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
21
21
|
}, [4, "salla-reward-card", {
|
|
@@ -136,11 +136,11 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
136
136
|
}
|
|
137
137
|
render() {
|
|
138
138
|
const termsAndConditions = this.getTermsAndConditions();
|
|
139
|
-
return (h("div", { key: '
|
|
139
|
+
return (h("div", { key: '2b8f4348fb0e728665b53db47719686629c1836d', class: "s-loyalty-program-reward-modal" }, h("div", { key: '1c838eaa84818ee590a36062b68a505bca8e7c68', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '2912070e266711897fec27c3a3e663677fd605df', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
|
|
140
140
|
: h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
|
|
141
141
|
'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
|
|
142
142
|
'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
|
|
143
|
-
} })), this.prize.name)), h("div", { key: '
|
|
143
|
+
} })), this.prize.name)), h("div", { key: '0d7f102d7031fcae33670435d9fa3a7d40a0fbc4', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '0aa1b6206852391cae2bdd83452b3ed1dca4ef52', class: "s-loyalty-program-reward-details-header" }, h("div", { key: 'b8de08abbd4ed24367312ecd8e36b9b203dc24cb', class: "s-loyalty-program-aspect-container" }, h("img", { key: 'd327bd9cc47042cc694fda8f38a130686caeaeb6', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: 'dbb6d24e2f647bd93bc2cb2d174c747e8117b1cb', size: "sm", bg: "light" }, h("span", { key: '8e78d674f565f2274796a57b218a14f683e29149', innerHTML: loyaltyProgramIcon }), h("span", { key: '3e959d7d67a899a429c2c2100236527268c98905', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'b09d181ad0587d4d6f99020adc2b944778e3d491', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '7538f340d33fd34fd55728c3df1d43ff676ffa57', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '927078b3615900c8377c1563f7bfe3b6a4cd28d3', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
|
|
144
144
|
h("salla-tab-header", { slot: "header", name: "included", style: {
|
|
145
145
|
display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
|
|
146
146
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: IconVerified }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
|
|
@@ -150,7 +150,7 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
150
150
|
display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
|
|
151
151
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: Cancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
|
|
152
152
|
h("salla-tab-content", { slot: "content", name: "excluded" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
|
|
153
|
-
]))), h("salla-reward-action", { key: '
|
|
153
|
+
]))), h("salla-reward-action", { key: '0d03ebd0fcf1f7469b75b04d9ad82b71a284d0d1', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
|
|
154
154
|
}
|
|
155
155
|
static get watchers() { return {
|
|
156
156
|
"prize": ["handlePrizeChange"]
|
|
@@ -49,11 +49,11 @@ const SallaRewardExchange = /*@__PURE__*/ proxyCustomElement(class SallaRewardEx
|
|
|
49
49
|
this.reset(0);
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '44934c0c0574ea61c4ef293a9deb796a2d42c02b' }, h("div", { key: 'eca62e786a5d13d4578cc5badcd464ee1570541b', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '14b346e172b9859449b780ec7c22e81ec2e97a8c', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '472753cc4742c2b010729ed98cdbf58192b548fa', innerHTML: loyaltyProgramIcon })), h("h2", { key: 'e77eeb994a91e36a8b04c213484221a6db2f99fd' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '7c9b9d6400ddeeb7a6ad8bdc1a2f364e9d67187b' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '07eea7e08a596dd284ceb2d60d2489012457585e' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: '70d6c67bd78400626c1e2d91753a494df5e6d94d' }, "(", this.prize.name, ")"))), h("div", { key: '49d98bbcbb017bf3f9195734fbb80f1da8559746', class: "s-loyalty-program-exchange-btns" }, h("button", { key: 'a1775e84ef7c17effb54b6fdff83bad9ac8cf8ec', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: '28977f2f6990322cb194c19b01feeffd8117d1b8', style: {
|
|
53
53
|
opacity: this.exchange.status !== 'pending' ? '1' : '0',
|
|
54
|
-
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '
|
|
54
|
+
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '2ff77b13d468e5096d777e0179db9e257468ca53', class: "s-loyalty-program-exchange-loading", style: {
|
|
55
55
|
opacity: this.exchange.status === 'pending' ? '1' : '0',
|
|
56
|
-
} }, h("salla-loading", { key: '
|
|
56
|
+
} }, h("salla-loading", { key: '415c1d497b93718ac0bc67e18442c28246e589e7', color: "primary", size: 24 }))), h("button", { key: '32d1a3f2e221261bd4ff459cc85dec5c780dd5e8', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
|
|
57
57
|
}
|
|
58
58
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
59
59
|
}, [0, "salla-reward-exchange", {
|
|
@@ -15,10 +15,176 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
15
15
|
this.dark = false;
|
|
16
16
|
this.commercialRegisterLabel = '';
|
|
17
17
|
this.freelanceLabel = '';
|
|
18
|
+
this.cachedChain = [];
|
|
19
|
+
this.enforceVisibility = () => {
|
|
20
|
+
const host = this.hostEl;
|
|
21
|
+
if (!host || !host.isConnected)
|
|
22
|
+
return;
|
|
23
|
+
const badgeData = this.getBadgeData();
|
|
24
|
+
if (!badgeData)
|
|
25
|
+
return;
|
|
26
|
+
if (this.isHostVisible(host))
|
|
27
|
+
return;
|
|
28
|
+
for (const el of this.getAncestorChain(host)) {
|
|
29
|
+
const computed = getComputedStyle(el);
|
|
30
|
+
if (computed.display === 'none') {
|
|
31
|
+
el.style.setProperty('display', 'flex', 'important');
|
|
32
|
+
}
|
|
33
|
+
if (computed.visibility === 'hidden' || computed.visibility === 'collapse') {
|
|
34
|
+
el.style.setProperty('visibility', 'visible', 'important');
|
|
35
|
+
}
|
|
36
|
+
if (parseFloat(computed.opacity) < SallaTrustBadges.OPACITY_THRESHOLD) {
|
|
37
|
+
el.style.setProperty('opacity', '1', 'important');
|
|
38
|
+
}
|
|
39
|
+
if (computed.contentVisibility === 'hidden') {
|
|
40
|
+
el.style.setProperty('content-visibility', 'visible', 'important');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
this.logHidePreventedOnce(badgeData.type);
|
|
44
|
+
};
|
|
45
|
+
this.runEnforce = () => {
|
|
46
|
+
this.clearEnforceTimers();
|
|
47
|
+
this.enforceVisibility();
|
|
48
|
+
};
|
|
18
49
|
}
|
|
19
50
|
componentWillLoad() {
|
|
20
51
|
this.initializeTranslations();
|
|
21
52
|
}
|
|
53
|
+
connectedCallback() {
|
|
54
|
+
this.setupVisibilityGuard();
|
|
55
|
+
}
|
|
56
|
+
componentDidLoad() {
|
|
57
|
+
this.scheduleEnforce();
|
|
58
|
+
}
|
|
59
|
+
componentDidRender() {
|
|
60
|
+
this.scheduleEnforce();
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.attrObserver?.disconnect();
|
|
64
|
+
this.attrObserver = undefined;
|
|
65
|
+
this.moveObserver?.disconnect();
|
|
66
|
+
this.moveObserver = undefined;
|
|
67
|
+
this.cachedChain = [];
|
|
68
|
+
this.clearEnforceTimers();
|
|
69
|
+
}
|
|
70
|
+
getAncestorChain(host) {
|
|
71
|
+
const chain = [];
|
|
72
|
+
let el = host;
|
|
73
|
+
while (el) {
|
|
74
|
+
chain.push(el);
|
|
75
|
+
if (el === document.documentElement)
|
|
76
|
+
break;
|
|
77
|
+
el = el.parentElement;
|
|
78
|
+
}
|
|
79
|
+
return chain;
|
|
80
|
+
}
|
|
81
|
+
didChainChange(host) {
|
|
82
|
+
const now = this.getAncestorChain(host);
|
|
83
|
+
if (now.length !== this.cachedChain.length)
|
|
84
|
+
return true;
|
|
85
|
+
for (let i = 0; i < now.length; i++) {
|
|
86
|
+
if (now[i] !== this.cachedChain[i])
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
isHostVisible(host) {
|
|
92
|
+
return typeof host.checkVisibility === 'function'
|
|
93
|
+
? host.checkVisibility({
|
|
94
|
+
contentVisibilityAuto: true,
|
|
95
|
+
opacityProperty: true,
|
|
96
|
+
visibilityProperty: true,
|
|
97
|
+
})
|
|
98
|
+
: this.isVisibleFallback(host);
|
|
99
|
+
}
|
|
100
|
+
isVisibleFallback(host) {
|
|
101
|
+
let el = host;
|
|
102
|
+
while (el) {
|
|
103
|
+
const cs = getComputedStyle(el);
|
|
104
|
+
if (cs.display === 'none')
|
|
105
|
+
return false;
|
|
106
|
+
if (cs.visibility === 'hidden' || cs.visibility === 'collapse')
|
|
107
|
+
return false;
|
|
108
|
+
if (parseFloat(cs.opacity) < SallaTrustBadges.OPACITY_THRESHOLD)
|
|
109
|
+
return false;
|
|
110
|
+
if (cs.contentVisibility === 'hidden')
|
|
111
|
+
return false;
|
|
112
|
+
if (el === document.documentElement)
|
|
113
|
+
break;
|
|
114
|
+
el = el.parentElement;
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
// Log a prevented hide attempt once per device; never let telemetry block the repair.
|
|
119
|
+
logHidePreventedOnce(type) {
|
|
120
|
+
try {
|
|
121
|
+
if (salla.storage.get(SallaTrustBadges.HIDE_PREVENTED_LOGGED_KEY))
|
|
122
|
+
return;
|
|
123
|
+
salla.analytics?.log('salla::trust-badges.hide-prevented', { type });
|
|
124
|
+
salla.storage.set(SallaTrustBadges.HIDE_PREVENTED_LOGGED_KEY, true);
|
|
125
|
+
}
|
|
126
|
+
catch { }
|
|
127
|
+
}
|
|
128
|
+
clearEnforceTimers() {
|
|
129
|
+
if (this.enforceTimer !== undefined) {
|
|
130
|
+
clearTimeout(this.enforceTimer);
|
|
131
|
+
this.enforceTimer = undefined;
|
|
132
|
+
}
|
|
133
|
+
if (this.maxWaitTimer !== undefined) {
|
|
134
|
+
clearTimeout(this.maxWaitTimer);
|
|
135
|
+
this.maxWaitTimer = undefined;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
scheduleEnforce() {
|
|
139
|
+
// Debounce waits for an entrance animation to settle; maxWait bounds it so endless chain mutations can't starve the repair.
|
|
140
|
+
if (this.enforceTimer !== undefined)
|
|
141
|
+
clearTimeout(this.enforceTimer);
|
|
142
|
+
this.enforceTimer = setTimeout(this.runEnforce, SallaTrustBadges.ENFORCE_DEBOUNCE_MS);
|
|
143
|
+
if (this.maxWaitTimer === undefined) {
|
|
144
|
+
this.maxWaitTimer = setTimeout(this.runEnforce, SallaTrustBadges.ENFORCE_MAX_WAIT_MS);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
setupVisibilityGuard() {
|
|
148
|
+
const host = this.hostEl;
|
|
149
|
+
if (!host || typeof MutationObserver === 'undefined')
|
|
150
|
+
return;
|
|
151
|
+
this.attrObserver?.disconnect();
|
|
152
|
+
this.moveObserver?.disconnect();
|
|
153
|
+
this.attrObserver = new MutationObserver(() => {
|
|
154
|
+
const h = this.hostEl;
|
|
155
|
+
if (!h || !h.isConnected)
|
|
156
|
+
return;
|
|
157
|
+
if (this.isHostVisible(h))
|
|
158
|
+
return;
|
|
159
|
+
this.scheduleEnforce();
|
|
160
|
+
});
|
|
161
|
+
this.attachAttrObserver(host);
|
|
162
|
+
this.moveObserver = new MutationObserver(() => {
|
|
163
|
+
const h = this.hostEl;
|
|
164
|
+
if (!h || !h.isConnected)
|
|
165
|
+
return;
|
|
166
|
+
if (!this.didChainChange(h))
|
|
167
|
+
return;
|
|
168
|
+
this.attachAttrObserver(h);
|
|
169
|
+
this.scheduleEnforce();
|
|
170
|
+
});
|
|
171
|
+
this.moveObserver.observe(document.documentElement, {
|
|
172
|
+
childList: true,
|
|
173
|
+
subtree: true,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
attachAttrObserver(host) {
|
|
177
|
+
if (!this.attrObserver)
|
|
178
|
+
return;
|
|
179
|
+
this.attrObserver.disconnect();
|
|
180
|
+
this.cachedChain = this.getAncestorChain(host);
|
|
181
|
+
for (const el of this.cachedChain) {
|
|
182
|
+
this.attrObserver.observe(el, {
|
|
183
|
+
attributes: true,
|
|
184
|
+
attributeFilter: ['style', 'class', 'hidden'],
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
22
188
|
initializeTranslations() {
|
|
23
189
|
salla.lang.onLoaded(() => {
|
|
24
190
|
// Set translations synchronously
|
|
@@ -66,12 +232,17 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
66
232
|
}
|
|
67
233
|
return (h(Host, { class: `s-trust-badges-wrapper ${this.dark ? 'dark' : ''}` }, h("img", { class: "s-trust-badges-image", width: "55", height: "55", src: badgeData.imageUrl, alt: badgeData.label }), h("div", { class: "s-trust-badges-content" }, h("p", { class: "s-trust-badges-label" }, badgeData.label), h("b", { class: "s-trust-badges-number" }, badgeData.number))));
|
|
68
234
|
}
|
|
235
|
+
get hostEl() { return this; }
|
|
69
236
|
static get style() { return sallaTrustBadgesCss; }
|
|
70
237
|
}, [0, "salla-trust-badges", {
|
|
71
238
|
"dark": [4],
|
|
72
239
|
"commercialRegisterLabel": [32],
|
|
73
240
|
"freelanceLabel": [32]
|
|
74
241
|
}]);
|
|
242
|
+
SallaTrustBadges$1.OPACITY_THRESHOLD = 0.1;
|
|
243
|
+
SallaTrustBadges$1.ENFORCE_DEBOUNCE_MS = 1500;
|
|
244
|
+
SallaTrustBadges$1.ENFORCE_MAX_WAIT_MS = 3000;
|
|
245
|
+
SallaTrustBadges$1.HIDE_PREVENTED_LOGGED_KEY = 'salla::trust-badges-hide-prevented-logged';
|
|
75
246
|
function defineCustomElement$1() {
|
|
76
247
|
if (typeof customElements === "undefined") {
|
|
77
248
|
return;
|
|
@@ -22,6 +22,14 @@ const translations = {
|
|
|
22
22
|
ar: 'خطوات بسيطة تفصلك عن المزيد من نقاط الولاء!',
|
|
23
23
|
en: 'Two simple steps separate you from great rewards!',
|
|
24
24
|
},
|
|
25
|
+
'pages.loyalty_program.how_to_use': {
|
|
26
|
+
ar: 'آلية الإستخدام',
|
|
27
|
+
en: 'How to use?',
|
|
28
|
+
},
|
|
29
|
+
'pages.loyalty_program.how_to_use_steps': {
|
|
30
|
+
ar: 'يمكنك اكتساب النقاط عند الشراء من التصنيفات المحددة',
|
|
31
|
+
en: 'You can earn points when you purchase from the selected categories.',
|
|
32
|
+
},
|
|
25
33
|
'pages.loyalty_program.register': {
|
|
26
34
|
ar: 'سجِّل',
|
|
27
35
|
en: 'Register',
|
|
@@ -58,6 +66,10 @@ const translations = {
|
|
|
58
66
|
ar: 'نقطة',
|
|
59
67
|
en: 'points',
|
|
60
68
|
},
|
|
69
|
+
'pages.loyalty_program.start_from': {
|
|
70
|
+
ar: 'يبدأ من',
|
|
71
|
+
en: 'Start from',
|
|
72
|
+
},
|
|
61
73
|
'pages.loyalty_program.redeem_reward': {
|
|
62
74
|
ar: 'استبدل النقاط',
|
|
63
75
|
en: 'Redeem Reward',
|