@salla.sa/twilight-components 2.14.454 → 2.14.455
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-CASXTVVn.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CiTwbype.js → filepond-plugin-file-poster-NwV0t9zF.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BMUGogIJ.js → filepond-plugin-file-validate-size-S-_ZCnL0.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DU7loMuy.js → filepond-plugin-file-validate-type-8fAsih_V.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BvpuxlGL.js → filepond-plugin-image-edit-BdKPXtEG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BltzmQ3V.js → filepond-plugin-image-exif-orientation-iTp4daNS.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C-51g4On.js → filepond-plugin-image-preview-D5CX6xww.js} +1 -1
- package/dist/cjs/{functions-BugkyX_h.js → functions-BlV_viZ0.js} +36 -8
- package/dist/cjs/{index-CMdVOCIm.js → index-BANBu7pv.js} +1 -1
- package/dist/cjs/{index-DppdveKW.js → index-CXqniRSt.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 +1 -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-TlVxYBIU.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-B3HS631p.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/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/translations.js +12 -0
- package/dist/esm/{filepond-DFccUKfi.js → filepond-HUxLccYt.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BKP-dfBt.js → filepond-plugin-file-poster-CKU5WMer.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cjhw73dP.js → filepond-plugin-file-validate-size-BJ7uOb2z.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BYB_v8v7.js → filepond-plugin-file-validate-type-ZilEA2CP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DrvarOmH.js → filepond-plugin-image-edit-k3H2LHPc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DdeulGFN.js → filepond-plugin-image-exif-orientation-C1fWSMsF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CygMfjyy.js → filepond-plugin-image-preview-CBiR7yYc.js} +1 -1
- package/dist/esm/{functions-B4JadfO-.js → functions-BUK_6AVv.js} +36 -9
- package/dist/esm/{index-iW77h_OO.js → index-B27mc3DA.js} +2 -2
- package/dist/esm/{index-BsChAaWH.js → index-B8tvf2Er.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 +1 -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-BhMK_w_-.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-CqDptb8B.js} +1 -1
- package/dist/twilight/{p-02dd7637.entry.js → p-0154dd29.entry.js} +1 -1
- package/dist/twilight/{p-19f2e7d2.entry.js → p-01fd4f64.entry.js} +1 -1
- package/dist/twilight/{p-34aa2e08.entry.js → p-025899d4.entry.js} +1 -1
- package/dist/twilight/{p-f8316f57.entry.js → p-02c191cb.entry.js} +1 -1
- package/dist/twilight/{p-1b2c0753.entry.js → p-033a25d9.entry.js} +1 -1
- package/dist/twilight/{p-cb7e203e.entry.js → p-04555243.entry.js} +1 -1
- package/dist/twilight/{p-46b71bff.entry.js → p-099511cb.entry.js} +1 -1
- package/dist/twilight/{p-a27bb10b.entry.js → p-09fa0a96.entry.js} +1 -1
- package/dist/twilight/{p-24b99485.entry.js → p-0a5bffbb.entry.js} +1 -1
- package/dist/twilight/{p-f909c93a.entry.js → p-0c369b88.entry.js} +1 -1
- package/dist/twilight/{p-40c95509.entry.js → p-0cce3436.entry.js} +1 -1
- package/dist/twilight/{p-d58e833c.entry.js → p-0d42f5f7.entry.js} +1 -1
- package/dist/twilight/{p-bf5f9ac5.entry.js → p-0d733ece.entry.js} +1 -1
- package/dist/twilight/{p-d742b000.entry.js → p-14ca613a.entry.js} +1 -1
- package/dist/twilight/{p-df7285e7.entry.js → p-1952dfe2.entry.js} +1 -1
- package/dist/twilight/{p-87b489d5.entry.js → p-1c717064.entry.js} +1 -1
- package/dist/twilight/{p-7afdc002.entry.js → p-1eadcb01.entry.js} +1 -1
- package/dist/twilight/{p-721bf683.entry.js → p-224aeae6.entry.js} +1 -1
- package/dist/twilight/{p-6ed57526.entry.js → p-22cdee08.entry.js} +1 -1
- package/dist/twilight/{p-a6394281.entry.js → p-27c704c4.entry.js} +1 -1
- package/dist/twilight/{p-3f5f9c20.entry.js → p-28880d56.entry.js} +1 -1
- package/dist/twilight/p-295ed7eb.entry.js +4 -0
- package/dist/twilight/{p-da7dac3f.entry.js → p-2ad70328.entry.js} +1 -1
- package/dist/twilight/{p-a9d9d779.entry.js → p-2f2d596c.entry.js} +1 -1
- package/dist/twilight/{p-7ca70e4e.entry.js → p-3194b8f1.entry.js} +1 -1
- package/dist/twilight/{p-00b84307.entry.js → p-349723b8.entry.js} +1 -1
- package/dist/twilight/{p-3a4376e2.entry.js → p-37fa2c33.entry.js} +1 -1
- package/dist/twilight/p-3869c01a.entry.js +4 -0
- package/dist/twilight/{p-02f8d9f9.entry.js → p-39521cc9.entry.js} +1 -1
- package/dist/twilight/{p-fb21e567.entry.js → p-3a824c45.entry.js} +1 -1
- package/dist/twilight/{p-3bae0861.entry.js → p-3ce0ec88.entry.js} +1 -1
- package/dist/twilight/{p-596d016f.entry.js → p-3dcf296d.entry.js} +1 -1
- package/dist/twilight/{p-74ab39a5.entry.js → p-3fe0b0d9.entry.js} +1 -1
- package/dist/twilight/{p-05a72e81.entry.js → p-4365ccdf.entry.js} +1 -1
- package/dist/twilight/{p-f2b6c9a8.entry.js → p-45e86a35.entry.js} +1 -1
- package/dist/twilight/{p-f05b8136.entry.js → p-496b138e.entry.js} +1 -1
- package/dist/twilight/{p-4cbe8713.entry.js → p-4cc417ec.entry.js} +1 -1
- package/dist/twilight/{p-0649d07b.entry.js → p-4e340653.entry.js} +1 -1
- package/dist/twilight/{p-d9754b4d.entry.js → p-52dccf8f.entry.js} +1 -1
- package/dist/twilight/{p-99cc3c6d.entry.js → p-5414f877.entry.js} +1 -1
- package/dist/twilight/{p-d7efc079.entry.js → p-583fbeac.entry.js} +1 -1
- package/dist/twilight/{p-f0cddd1f.entry.js → p-63453993.entry.js} +1 -1
- package/dist/twilight/{p-c0ff719e.entry.js → p-7054b12e.entry.js} +1 -1
- package/dist/twilight/{p-1152d39f.entry.js → p-708c9d55.entry.js} +1 -1
- package/dist/twilight/{p-51da9e0c.entry.js → p-716fa631.entry.js} +1 -1
- package/dist/twilight/{p-c929ace3.entry.js → p-7170bbe5.entry.js} +1 -1
- package/dist/twilight/{p-256aa3f1.entry.js → p-731ddff8.entry.js} +1 -1
- package/dist/twilight/{p-a6dca70e.entry.js → p-77adb9d5.entry.js} +1 -1
- package/dist/twilight/{p-e6c02cf3.entry.js → p-7d79041c.entry.js} +1 -1
- package/dist/twilight/{p-4e93a3b0.entry.js → p-8610d773.entry.js} +1 -1
- package/dist/twilight/{p-28f46e76.entry.js → p-873b3598.entry.js} +1 -1
- package/dist/twilight/{p-498cdb6f.entry.js → p-87691e20.entry.js} +1 -1
- package/dist/twilight/{p-dc1ed927.entry.js → p-88309e40.entry.js} +1 -1
- package/dist/twilight/{p-4c9edafa.entry.js → p-8a07799b.entry.js} +1 -1
- package/dist/twilight/{p-3c810267.entry.js → p-8b775b6c.entry.js} +1 -1
- package/dist/twilight/{p-290f254d.entry.js → p-8cc38fe2.entry.js} +1 -1
- package/dist/twilight/{p-fd293182.entry.js → p-8ebc59c6.entry.js} +1 -1
- package/dist/twilight/{p-f65dfb0b.entry.js → p-9608cb48.entry.js} +1 -1
- package/dist/twilight/p-9856394d.entry.js +4 -0
- package/dist/twilight/{p-51638221.entry.js → p-9ac73546.entry.js} +1 -1
- package/dist/twilight/{p-a6563120.entry.js → p-9ada1f3d.entry.js} +1 -1
- package/dist/twilight/{p-iW77h_OO.js → p-B27mc3DA.js} +1 -1
- package/dist/twilight/{p-BpU1d8Q_.js → p-BDVAyd15.js} +1 -1
- package/dist/twilight/{p-CwIp300F.js → p-BUeUpASK.js} +1 -1
- package/dist/twilight/{p-CNLZvKDA.js → p-C8a5AE0g.js} +1 -1
- package/dist/twilight/{p-CgvkiAxT.js → p-CJxdBsuY.js} +1 -1
- package/dist/twilight/{p-D--YecOb.js → p-D6ttjw8h.js} +1 -1
- package/dist/twilight/{p-DQRmUn8O.js → p-DNVKaOjC.js} +1 -1
- package/dist/twilight/{p-JH4C3FEL.js → p-DXVnxhxo.js} +2 -2
- package/dist/twilight/p-Tj_9K_OT.js +4 -0
- package/dist/twilight/{p-ba047214.entry.js → p-a3fb3aa0.entry.js} +1 -1
- package/dist/twilight/{p-8fea01ea.entry.js → p-a5b876da.entry.js} +1 -1
- package/dist/twilight/{p-b266250b.entry.js → p-a74c0330.entry.js} +1 -1
- package/dist/twilight/{p-13cb0ec4.entry.js → p-a9200d8b.entry.js} +1 -1
- package/dist/twilight/{p-3e994db0.entry.js → p-acf1d397.entry.js} +1 -1
- package/dist/twilight/{p-588a366c.entry.js → p-af896a9c.entry.js} +1 -1
- package/dist/twilight/{p-6c9aca7c.entry.js → p-b151943e.entry.js} +1 -1
- package/dist/twilight/{p-5d9af31e.entry.js → p-bc2df32d.entry.js} +1 -1
- package/dist/twilight/{p-5965a3d2.entry.js → p-c014a283.entry.js} +1 -1
- package/dist/twilight/{p-a61a9f5a.entry.js → p-c151d43a.entry.js} +1 -1
- package/dist/twilight/p-c6d833e5.entry.js +4 -0
- package/dist/twilight/{p-cd7b86ca.entry.js → p-caa938d4.entry.js} +1 -1
- package/dist/twilight/{p-19276c52.entry.js → p-cc5f66f2.entry.js} +1 -1
- package/dist/twilight/{p-3bbd0428.entry.js → p-df76f90f.entry.js} +1 -1
- package/dist/twilight/p-dn_hTofo.js +4 -0
- package/dist/twilight/{p-d5dd0382.entry.js → p-e0810a73.entry.js} +1 -1
- package/dist/twilight/p-e0d55016.entry.js +4 -0
- package/dist/twilight/{p-99e0fc1f.entry.js → p-e9b8ac57.entry.js} +1 -1
- package/dist/twilight/{p-ed14038b.entry.js → p-eb395203.entry.js} +1 -1
- package/dist/twilight/{p-d85d8cc1.entry.js → p-ef2fbf89.entry.js} +1 -1
- package/dist/twilight/{p-2d4e9fb9.entry.js → p-f1c1c640.entry.js} +1 -1
- package/dist/twilight/{p-76523a14.entry.js → p-f1c253a9.entry.js} +1 -1
- package/dist/twilight/{p-0819daad.entry.js → p-f7139cc6.entry.js} +1 -1
- package/dist/twilight/{p-5ac78da9.entry.js → p-f762c572.entry.js} +1 -1
- package/dist/twilight/{p-1f7af2ad.entry.js → p-f8f54860.entry.js} +1 -1
- package/dist/twilight/{p-ed5da7f4.entry.js → p-ffe3256d.entry.js} +1 -1
- package/dist/twilight/{p-JqmowdAI.js → p-kzSVkHK7.js} +1 -1
- package/dist/twilight/{p-DPYkeBoq.js → p-oKl48ETd.js} +1 -1
- package/dist/twilight/{p-BtQuvkil.js → p-twQLVtaI.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/package.json +5 -5
- package/dist/twilight/p-10334bac.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-c5c834f6.entry.js +0 -4
- package/dist/twilight/p-eba853e8.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", {
|
|
@@ -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',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-B27mc3DA.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|
|
@@ -36,33 +36,60 @@ function brand_path(brand) {
|
|
|
36
36
|
return [brand.name.replace(/\s/g, '-'), `brand-${brand.id}`].join('/');
|
|
37
37
|
}
|
|
38
38
|
function isUnitOrder(point) {
|
|
39
|
-
for (const condition of
|
|
40
|
-
if (condition.key
|
|
39
|
+
for (const condition of point.conditions) {
|
|
40
|
+
if (condition.key.endsWith('_FOR_UNIT') || condition.key.endsWith('_FOR_UNIT_BY_CATEGORIES')) {
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
return false;
|
|
45
44
|
}
|
|
46
|
-
function
|
|
45
|
+
function isRangePoints(point) {
|
|
46
|
+
for (const condition of point.conditions) {
|
|
47
|
+
if (condition.key.endsWith('_BY_CATEGORIES') && point.conditions.length > 1) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function getPoints(point) {
|
|
53
|
+
if (isRangePoints(point)) {
|
|
54
|
+
return point.conditions.sort((a, b) => a.points - b.points)[0].points;
|
|
55
|
+
}
|
|
56
|
+
return point.points;
|
|
57
|
+
}
|
|
58
|
+
function formattedPointsJsx(value, isUnit = false, isRange = false) {
|
|
47
59
|
if (typeof value === 'number') {
|
|
60
|
+
if (isUnit) {
|
|
61
|
+
return h("span", null,
|
|
62
|
+
isRange ? salla.lang.get('pages.loyalty_program.start_from') : '',
|
|
63
|
+
" 1 ",
|
|
64
|
+
salla.config.currency().symbol,
|
|
65
|
+
" = ",
|
|
66
|
+
value,
|
|
67
|
+
" ",
|
|
68
|
+
salla.lang.get('pages.loyalty_program.point'));
|
|
69
|
+
}
|
|
48
70
|
return h("span", null,
|
|
71
|
+
isRange ? salla.lang.get('pages.loyalty_program.start_from') : '',
|
|
72
|
+
" ",
|
|
49
73
|
value,
|
|
50
74
|
" ",
|
|
51
75
|
salla.lang.get('pages.loyalty_program.point'));
|
|
52
76
|
}
|
|
53
77
|
if (isUnitOrder(value)) {
|
|
54
78
|
return h("span", null,
|
|
55
|
-
|
|
79
|
+
isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '',
|
|
80
|
+
" 1 ",
|
|
56
81
|
salla.config.currency().symbol,
|
|
57
82
|
" = ",
|
|
58
|
-
value
|
|
83
|
+
getPoints(value),
|
|
59
84
|
" ",
|
|
60
85
|
salla.lang.get('pages.loyalty_program.point'));
|
|
61
86
|
}
|
|
62
87
|
return h("span", null,
|
|
63
|
-
value.
|
|
88
|
+
isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '',
|
|
89
|
+
" ",
|
|
90
|
+
getPoints(value),
|
|
64
91
|
" ",
|
|
65
92
|
salla.lang.get('pages.loyalty_program.point'));
|
|
66
93
|
}
|
|
67
94
|
|
|
68
|
-
export { nearestLowerMultiple as a, brand_path as b, closeModals as c, formattedPointsJsx as f, normalizeLoyaltyData as n };
|
|
95
|
+
export { nearestLowerMultiple as a, brand_path as b, closeModals as c, formattedPointsJsx as f, isUnitOrder as i, normalizeLoyaltyData as n };
|