@salla.sa/twilight-components 2.14.432 → 2.14.433
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-B_l27yye.js → filepond-m9UIfD4r.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DZOhW2iP.js → filepond-plugin-file-poster-CCNucuJo.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BNaYb1U3.js → filepond-plugin-file-validate-size-c8aiCeyd.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cw8Znb0V.js → filepond-plugin-file-validate-type-DKXNy-pI.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DxnD0wqH.js → filepond-plugin-image-edit-BeXjDMoa.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DlLc6bZg.js → filepond-plugin-image-exif-orientation-BeoKq6Qa.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-LS71z4pj.js → filepond-plugin-image-preview-DNGNnW2v.js} +1 -1
- package/dist/cjs/{functions-Bli1zuDJ.js → functions-B5wriSSk.js} +1 -1
- package/dist/cjs/{index-fxto0lmo.js → index-DRte8uD2.js} +1 -1
- package/dist/cjs/{index-Bkq8qG-X.js → index-ouHUBEmn.js} +10 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +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 +77 -0
- 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 +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +50 -0
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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_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 +3 -3
- 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-Bg3_0LpQ.js → tracked-promise-CBS0Jv4T.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C1EOe3vj.js → vanilla-picker-B4KqFjgH.js} +1 -1
- package/dist/collection/assets/svg/money.svg +3 -0
- package/dist/collection/assets/svg/star-filled.svg +10 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +0 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +74 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.css +0 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +54 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cashback-banner.d.ts +11 -0
- package/dist/components/salla-cashback-banner.js +96 -0
- package/dist/components/salla-loyalty-points-banner.d.ts +11 -0
- package/dist/components/salla-loyalty-points-banner.js +69 -0
- package/dist/esm/{filepond-HXomeZen.js → filepond-CKWIup4S.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D4H-PD_s.js → filepond-plugin-file-poster-Bh-xu68e.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BS0ly_Mw.js → filepond-plugin-file-validate-size-D49X-Kke.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-COwvXqLN.js → filepond-plugin-file-validate-type-CdrHe--C.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-yo1lYVPu.js → filepond-plugin-image-edit-CJW0RVuR.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-AQpLyT8N.js → filepond-plugin-image-exif-orientation-DLAbuFUC.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BTSkXVkI.js → filepond-plugin-image-preview-CgwlEcnw.js} +1 -1
- package/dist/esm/{functions-5z0tDgRf.js → functions-DEq2D5r8.js} +1 -1
- package/dist/esm/{index-BuJQW042.js → index-BAMBfQio.js} +1 -1
- package/dist/esm/{index-BJ40PU3w.js → index-lMbG1CIQ.js} +10 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +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 +75 -0
- 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 +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +48 -0
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- 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_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 +3 -3
- 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-C8cy0NIq.js → tracked-promise-Cuxl89VM.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CkNepO2l.js → vanilla-picker--tIjHzZT.js} +1 -1
- package/dist/twilight/{p-e6b3c87c.entry.js → p-00142abc.entry.js} +1 -1
- package/dist/twilight/{p-a0005be9.entry.js → p-05a6fc4e.entry.js} +1 -1
- package/dist/twilight/p-0a1966cf.entry.js +4 -0
- package/dist/twilight/{p-c8fb4dfa.entry.js → p-0bf5b2a3.entry.js} +1 -1
- package/dist/twilight/{p-acfddda1.entry.js → p-0f19a6eb.entry.js} +1 -1
- package/dist/twilight/{p-ce9405a3.entry.js → p-0f712ca6.entry.js} +1 -1
- package/dist/twilight/{p-0632dfef.entry.js → p-139d18e4.entry.js} +1 -1
- package/dist/twilight/{p-77c95706.entry.js → p-18dbc68c.entry.js} +1 -1
- package/dist/twilight/{p-f863328c.entry.js → p-1ced495f.entry.js} +1 -1
- package/dist/twilight/{p-f2e0e6f0.entry.js → p-22dd6342.entry.js} +1 -1
- package/dist/twilight/{p-c632b364.entry.js → p-25c7c765.entry.js} +1 -1
- package/dist/twilight/{p-00aed63b.entry.js → p-25d4c3e7.entry.js} +1 -1
- package/dist/twilight/{p-1a423637.entry.js → p-28701b83.entry.js} +1 -1
- package/dist/twilight/{p-f058cd4d.entry.js → p-29b528fe.entry.js} +1 -1
- package/dist/twilight/{p-956ac53f.entry.js → p-2caab1dd.entry.js} +1 -1
- package/dist/twilight/{p-8afcb7d2.entry.js → p-2e11b913.entry.js} +1 -1
- package/dist/twilight/{p-6296eebd.entry.js → p-30ca11a7.entry.js} +1 -1
- package/dist/twilight/{p-2ad11831.entry.js → p-386d36ff.entry.js} +1 -1
- package/dist/twilight/{p-02011d32.entry.js → p-3c2c9e2b.entry.js} +1 -1
- package/dist/twilight/{p-d42cdc1a.entry.js → p-42868687.entry.js} +1 -1
- package/dist/twilight/{p-ffff176d.entry.js → p-434232b8.entry.js} +1 -1
- package/dist/twilight/{p-9899dfe6.entry.js → p-46c69187.entry.js} +1 -1
- package/dist/twilight/{p-d9d151cc.entry.js → p-477d3cde.entry.js} +1 -1
- package/dist/twilight/{p-079fd3e3.entry.js → p-484c2f42.entry.js} +1 -1
- package/dist/twilight/{p-43bee891.entry.js → p-5309c2b6.entry.js} +1 -1
- package/dist/twilight/{p-ad2ed5eb.entry.js → p-55801b41.entry.js} +1 -1
- package/dist/twilight/{p-ac58bd23.entry.js → p-579e1d3f.entry.js} +1 -1
- package/dist/twilight/{p-9119f35f.entry.js → p-58a182ef.entry.js} +1 -1
- package/dist/twilight/{p-b191a231.entry.js → p-5b0ccf4b.entry.js} +1 -1
- package/dist/twilight/{p-8b207eb9.entry.js → p-5dc05ab0.entry.js} +1 -1
- package/dist/twilight/{p-a7b03950.entry.js → p-602eb37d.entry.js} +1 -1
- package/dist/twilight/{p-e0ec707c.entry.js → p-63b2e9e4.entry.js} +1 -1
- package/dist/twilight/{p-6130f608.entry.js → p-64364d27.entry.js} +1 -1
- package/dist/twilight/{p-79eea339.entry.js → p-646309b3.entry.js} +1 -1
- package/dist/twilight/{p-5cde2cb8.entry.js → p-6a6cc844.entry.js} +1 -1
- package/dist/twilight/{p-676224c8.entry.js → p-6c4b0954.entry.js} +1 -1
- package/dist/twilight/{p-e36cf20c.entry.js → p-6db2ed2d.entry.js} +1 -1
- package/dist/twilight/{p-7ca4d215.entry.js → p-6fe6361d.entry.js} +1 -1
- package/dist/twilight/{p-3f9a1902.entry.js → p-7060ae7d.entry.js} +1 -1
- package/dist/twilight/{p-460383f6.entry.js → p-75cd1309.entry.js} +1 -1
- package/dist/twilight/{p-51b24d07.entry.js → p-76147eb1.entry.js} +1 -1
- package/dist/twilight/{p-5f4c249f.entry.js → p-77d6879d.entry.js} +1 -1
- package/dist/twilight/{p-a37100ea.entry.js → p-781b8258.entry.js} +1 -1
- package/dist/twilight/{p-f26e212f.entry.js → p-7906db6c.entry.js} +1 -1
- package/dist/twilight/{p-2c17ff06.entry.js → p-793b143f.entry.js} +1 -1
- package/dist/twilight/{p-c5523e29.entry.js → p-7a067b88.entry.js} +1 -1
- package/dist/twilight/{p-5d077c6a.entry.js → p-7e74750a.entry.js} +1 -1
- package/dist/twilight/{p-dacde914.entry.js → p-83407903.entry.js} +1 -1
- package/dist/twilight/{p-6cd60db0.entry.js → p-87fc46f3.entry.js} +1 -1
- package/dist/twilight/{p-3279bfe3.entry.js → p-8b19a6cd.entry.js} +1 -1
- package/dist/twilight/{p-0fbe0573.entry.js → p-9029fe2f.entry.js} +1 -1
- package/dist/twilight/{p-9854f087.entry.js → p-9561c440.entry.js} +1 -1
- package/dist/twilight/{p-bb90ddc2.entry.js → p-98409d9d.entry.js} +1 -1
- package/dist/twilight/{p-9ca58cda.entry.js → p-999d8514.entry.js} +1 -1
- package/dist/twilight/{p-fbcde591.entry.js → p-99cde2bd.entry.js} +1 -1
- package/dist/twilight/{p-ad4ce4d9.entry.js → p-9b4b6171.entry.js} +1 -1
- package/dist/twilight/{p-bfa0b7fe.entry.js → p-9baa8e69.entry.js} +1 -1
- package/dist/twilight/{p-_aEM4nUi.js → p-AO-xClM5.js} +1 -1
- package/dist/twilight/{p-0AWfiLtG.js → p-BbPW5sNk.js} +1 -1
- package/dist/twilight/{p-D1RS-zwD.js → p-BxVFPdKb.js} +1 -1
- package/dist/twilight/{p-NA2JPuRY.js → p-C0kfWMMc.js} +1 -1
- package/dist/twilight/{p-vXUmTMNT.js → p-C7BsTxLN.js} +1 -1
- package/dist/twilight/{p-BS8JieU8.js → p-CZ4us-OW.js} +1 -1
- package/dist/twilight/{p-CYaVURSO.js → p-DTVc8PSy.js} +1 -1
- package/dist/twilight/{p-Bun3xE9B.js → p-DkFvXnTU.js} +1 -1
- package/dist/twilight/{p-BY64RkRn.js → p-YBYQ1IRq.js} +1 -1
- package/dist/twilight/{p-6676e7ab.entry.js → p-ab717a96.entry.js} +1 -1
- package/dist/twilight/{p-ca8e26b3.entry.js → p-ad4003fd.entry.js} +1 -1
- package/dist/twilight/{p-2d62cc4c.entry.js → p-ade89f79.entry.js} +1 -1
- package/dist/twilight/{p-1ed63470.entry.js → p-ae107cb6.entry.js} +1 -1
- package/dist/twilight/{p-CFkS_w5i.js → p-akcJQPrL.js} +1 -1
- package/dist/twilight/{p-9ce261f7.entry.js → p-b4b03890.entry.js} +1 -1
- package/dist/twilight/{p-7e74a3f8.entry.js → p-b5658790.entry.js} +1 -1
- package/dist/twilight/{p-9e7bd84a.entry.js → p-b9793df6.entry.js} +1 -1
- package/dist/twilight/{p-b83da2aa.entry.js → p-ba06196b.entry.js} +1 -1
- package/dist/twilight/{p-ccf24f28.entry.js → p-c8a460c0.entry.js} +1 -1
- package/dist/twilight/{p-bad7f522.entry.js → p-c9dc08e9.entry.js} +1 -1
- package/dist/twilight/{p-3f05e331.entry.js → p-cbbbf280.entry.js} +1 -1
- package/dist/twilight/{p-fabe4232.entry.js → p-cc9e266a.entry.js} +1 -1
- package/dist/twilight/{p-587d868d.entry.js → p-ce844f61.entry.js} +1 -1
- package/dist/twilight/p-d1b2c259.entry.js +4 -0
- package/dist/twilight/{p-e386a27c.entry.js → p-d2edf700.entry.js} +1 -1
- package/dist/twilight/{p-7af14cb7.entry.js → p-d5ae1bd3.entry.js} +1 -1
- package/dist/twilight/{p-f60083f9.entry.js → p-d72d82c2.entry.js} +1 -1
- package/dist/twilight/{p-fc4090bd.entry.js → p-da6e4d60.entry.js} +1 -1
- package/dist/twilight/{p-15105c61.entry.js → p-deaa32fd.entry.js} +1 -1
- package/dist/twilight/{p-178aae87.entry.js → p-e0fa2bc5.entry.js} +1 -1
- package/dist/twilight/{p-2976acab.entry.js → p-e3b11077.entry.js} +1 -1
- package/dist/twilight/{p-646e8f52.entry.js → p-e5535ac3.entry.js} +1 -1
- package/dist/twilight/{p-5cd47a2a.entry.js → p-e9799703.entry.js} +1 -1
- package/dist/twilight/{p-a18652ed.entry.js → p-ea4cf5c5.entry.js} +1 -1
- package/dist/twilight/{p-e4fc772b.entry.js → p-f3597f21.entry.js} +1 -1
- package/dist/twilight/{p-275770d0.entry.js → p-f424854a.entry.js} +1 -1
- package/dist/twilight/{p-df6636a5.entry.js → p-f5f8ab50.entry.js} +1 -1
- package/dist/twilight/{p-40d60687.entry.js → p-fc2d0c94.entry.js} +1 -1
- package/dist/twilight/{p-Cln8qx5Q.js → p-jvvBvp8R.js} +1 -1
- package/dist/twilight/{p-BJ40PU3w.js → p-lMbG1CIQ.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cashback-banner/salla-cashback-banner.d.ts +20 -0
- package/dist/types/components/salla-loyalty-points-banner/salla-loyalty-points-banner.d.ts +12 -0
- package/dist/types/components.d.ts +26 -0
- package/package.json +5 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaCashbackBanner extends Components.SallaCashbackBanner, HTMLElement {}
|
|
4
|
+
export const SallaCashbackBanner: {
|
|
5
|
+
prototype: SallaCashbackBanner;
|
|
6
|
+
new (): SallaCashbackBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { s as setTranslations } from './translations.js';
|
|
6
|
+
|
|
7
|
+
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<g clip-path="url(#clip0_5667_2008)">
|
|
9
|
+
<path d="M9.00003 0.935974C9.37203 0.935974 9.72003 1.06797 10.044 1.33197C10.344 1.57197 10.596 1.90797 10.8 2.33997L12.114 5.00397C12.174 5.09997 12.27 5.19897 12.402 5.30097C12.534 5.40297 12.66 5.46597 12.78 5.48997L15.174 5.88597C15.618 5.95797 15.996 6.10197 16.308 6.31797C16.644 6.54597 16.869 6.83697 16.983 7.19097C17.097 7.54497 17.082 7.91397 16.938 8.29797C16.806 8.64597 16.578 8.98797 16.254 9.32397L14.4 11.196C14.316 11.28 14.247 11.409 14.193 11.583C14.139 11.757 14.13 11.91 14.166 12.042L14.688 14.364C14.808 14.88 14.832 15.342 14.76 15.75C14.676 16.206 14.475 16.551 14.157 16.785C13.839 17.019 13.452 17.106 12.996 17.046C12.588 16.998 12.156 16.836 11.7 16.56L9.45003 15.21C9.34203 15.15 9.19203 15.12 9.00003 15.12C8.80803 15.12 8.65803 15.15 8.55003 15.21L6.30003 16.56C5.84403 16.836 5.41203 16.998 5.00403 17.046C4.54803 17.106 4.16103 17.016 3.84303 16.776C3.52503 16.536 3.32403 16.194 3.24003 15.75C3.16803 15.342 3.19203 14.88 3.31203 14.364L3.83403 12.042C3.85803 11.91 3.84603 11.757 3.79803 11.583C3.75003 11.409 3.68403 11.28 3.60003 11.196L1.74603 9.32397C1.41003 8.98797 1.18203 8.64597 1.06203 8.29797C0.918027 7.91397 0.900027 7.54497 1.00803 7.19097C1.11603 6.83697 1.34403 6.54597 1.69203 6.31797C1.99203 6.10197 2.37003 5.95797 2.82603 5.88597L5.22003 5.48997C5.32803 5.46597 5.45103 5.40297 5.58903 5.30097C5.72703 5.19897 5.82003 5.09997 5.86803 5.00397L7.18203 2.33997C7.39803 1.90797 7.65603 1.57197 7.95603 1.33197C8.28003 1.06797 8.62803 0.935974 9.00003 0.935974Z" fill="white"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<clipPath id="clip0_5667_2008">
|
|
13
|
+
<rect width="18" height="18" fill="white"/>
|
|
14
|
+
</clipPath>
|
|
15
|
+
</defs>
|
|
16
|
+
</svg>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const sallaCashbackBannerCss = "";
|
|
20
|
+
|
|
21
|
+
const SallaCashbackBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaCashbackBanner extends HTMLElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.__registerHost();
|
|
25
|
+
this.cashbackData = null;
|
|
26
|
+
this.productId = null;
|
|
27
|
+
}
|
|
28
|
+
async componentWillLoad() {
|
|
29
|
+
try {
|
|
30
|
+
await salla.onReady();
|
|
31
|
+
await salla.lang.onLoaded();
|
|
32
|
+
await setTranslations();
|
|
33
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
34
|
+
if (!this.productId) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const response = await salla.api
|
|
38
|
+
.request(`/products/${this.productId}/cashback-offer`)
|
|
39
|
+
.catch(() => null);
|
|
40
|
+
this.cashbackData = response?.data || null;
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
salla?.logger?.warn?.('salla-cashback-banner: init failed', e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
getPaymentMethodsText(methods = []) {
|
|
47
|
+
return methods
|
|
48
|
+
.map(method => String(method || '').trim())
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.map(method => salla.lang.get(`pages.checkout.${method}`) || method)
|
|
51
|
+
.join(', ');
|
|
52
|
+
}
|
|
53
|
+
getCashbackMessage() {
|
|
54
|
+
const includedMethods = this.cashbackData?.payment_method_restrictions?.included ?? [];
|
|
55
|
+
if (includedMethods.length) {
|
|
56
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product_payment_method', {
|
|
57
|
+
payment_method: this.getPaymentMethodsText(includedMethods),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product');
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
if (!this.productId || !Number(this.cashbackData?.amount)) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const cashbackValue = this.cashbackData.amount;
|
|
67
|
+
const currency = this.cashbackData.currency;
|
|
68
|
+
const cashbackMessage = this.getCashbackMessage();
|
|
69
|
+
const cashbackType = this.cashbackData.offer_type;
|
|
70
|
+
return (h(Host, null, h("div", { class: "s-cashback-banner-container" }, h("div", { class: "s-cashback-banner-icon" }, h("span", { class: "s-cashback-banner-inner-icon", innerHTML: StarFilledIcon })), h("p", null, h("span", { class: "s-cashback-banner-label" }, salla.lang.get('pages.loyalty_program.earn'), ' '), h("span", { class: "s-cashback-banner-value" }, cashbackType === "percentage" ? "+" : "", cashbackValue, " ", ['SAR', 'ر.س'].includes(currency) ? h("i", { class: "sicon-sar" }) : currency, ' '), h("span", { class: "s-cashback-banner-label" }, cashbackMessage)))));
|
|
71
|
+
}
|
|
72
|
+
get host() { return this; }
|
|
73
|
+
static get style() { return sallaCashbackBannerCss; }
|
|
74
|
+
}, [0, "salla-cashback-banner", {
|
|
75
|
+
"cashbackData": [32],
|
|
76
|
+
"productId": [32]
|
|
77
|
+
}]);
|
|
78
|
+
function defineCustomElement$1() {
|
|
79
|
+
if (typeof customElements === "undefined") {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const components = ["salla-cashback-banner"];
|
|
83
|
+
components.forEach(tagName => { switch (tagName) {
|
|
84
|
+
case "salla-cashback-banner":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
customElements.define(tagName, SallaCashbackBanner$1);
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
} });
|
|
90
|
+
}
|
|
91
|
+
defineCustomElement$1();
|
|
92
|
+
|
|
93
|
+
const SallaCashbackBanner = SallaCashbackBanner$1;
|
|
94
|
+
const defineCustomElement = defineCustomElement$1;
|
|
95
|
+
|
|
96
|
+
export { SallaCashbackBanner, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaLoyaltyPointsBanner extends Components.SallaLoyaltyPointsBanner, HTMLElement {}
|
|
4
|
+
export const SallaLoyaltyPointsBanner: {
|
|
5
|
+
prototype: SallaLoyaltyPointsBanner;
|
|
6
|
+
new (): SallaLoyaltyPointsBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { s as setTranslations } from './translations.js';
|
|
6
|
+
|
|
7
|
+
var MoneyIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M8.76604 2.86201C9.31804 2.61001 9.93304 2.41501 10.611 2.27701C11.289 2.13901 12 2.07001 12.744 2.07001C13.572 2.07001 14.364 2.15401 15.12 2.32201C15.84 2.49001 16.356 2.81401 16.668 3.29401C16.932 3.70201 17.064 4.26001 17.064 4.96801V13.032C17.064 13.416 16.95 13.752 16.722 14.04C16.506 14.304 16.227 14.493 15.885 14.607C15.543 14.721 15.204 14.742 14.868 14.67C14.196 14.514 13.488 14.436 12.744 14.436C12.084 14.436 11.442 14.502 10.818 14.634C10.23 14.754 9.70204 14.922 9.23404 15.138C8.68204 15.39 8.06704 15.585 7.38904 15.723C6.71104 15.861 6.00004 15.93 5.25604 15.93C4.42804 15.93 3.63604 15.846 2.88004 15.678C2.18404 15.522 1.68004 15.21 1.36804 14.742C1.08004 14.322 0.936035 13.752 0.936035 13.032V4.96801C0.936035 4.58401 1.05004 4.24801 1.27804 3.96001C1.49404 3.69601 1.77304 3.50701 2.11504 3.39301C2.45704 3.27901 2.79604 3.25801 3.13204 3.33001C3.80404 3.48601 4.51204 3.56401 5.25604 3.56401C5.91604 3.56401 6.55804 3.49801 7.18204 3.36601C7.77004 3.24601 8.29804 3.07801 8.76604 2.86201ZM11.25 9.00001C11.25 8.59201 11.148 8.21701 10.944 7.87501C10.74 7.53301 10.467 7.26001 10.125 7.05601C9.78304 6.85201 9.40804 6.75001 9.00004 6.75001C8.59204 6.75001 8.21704 6.85201 7.87504 7.05601C7.53304 7.26001 7.26004 7.53301 7.05604 7.87501C6.85204 8.21701 6.75004 8.59201 6.75004 9.00001C6.75004 9.40801 6.85204 9.78301 7.05604 10.125C7.26004 10.467 7.53304 10.74 7.87504 10.944C8.21704 11.148 8.59204 11.25 9.00004 11.25C9.40804 11.25 9.78304 11.148 10.125 10.944C10.467 10.74 10.74 10.467 10.944 10.125C11.148 9.78301 11.25 9.40801 11.25 9.00001ZM14.328 7.79401C14.076 7.75801 13.812 7.73401 13.536 7.72201C13.38 7.71001 13.245 7.75501 13.131 7.85701C13.017 7.95901 12.954 8.08801 12.942 8.24401C12.93 8.40001 12.975 8.53501 13.077 8.64901C13.179 8.76301 13.308 8.82601 13.464 8.83801C13.704 8.85001 13.938 8.87401 14.166 8.91001C14.322 8.93401 14.463 8.90101 14.589 8.81101C14.715 8.72101 14.787 8.59801 14.805 8.44201C14.823 8.28601 14.787 8.14501 14.697 8.01901C14.607 7.89301 14.484 7.81801 14.328 7.79401ZM4.53604 9.16201C4.29604 9.15001 4.06204 9.12601 3.83404 9.09001C3.67804 9.06601 3.53704 9.09901 3.41104 9.18901C3.28504 9.27901 3.21304 9.40201 3.19504 9.55801C3.17704 9.71401 3.21304 9.85501 3.30304 9.98101C3.39304 10.107 3.51604 10.182 3.67204 10.206C3.92404 10.242 4.18804 10.266 4.46404 10.278C4.62004 10.29 4.75504 10.245 4.86904 10.143C4.98304 10.041 5.04604 9.91201 5.05804 9.75601C5.07004 9.60001 5.02504 9.46501 4.92304 9.35101C4.82104 9.23701 4.69204 9.17401 4.53604 9.16201Z" fill="white"/>
|
|
9
|
+
</svg>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
const sallaLoyaltyPointsBannerCss = "";
|
|
13
|
+
|
|
14
|
+
const SallaLoyaltyPointsBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPointsBanner extends HTMLElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
this.pointsData = null;
|
|
19
|
+
this.productId = null;
|
|
20
|
+
}
|
|
21
|
+
async componentWillLoad() {
|
|
22
|
+
try {
|
|
23
|
+
await salla.onReady();
|
|
24
|
+
await salla.lang.onLoaded();
|
|
25
|
+
await setTranslations();
|
|
26
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
27
|
+
if (!this.productId) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const response = await salla.api
|
|
31
|
+
.request(`/loyalty/products/${this.productId}/points`)
|
|
32
|
+
.catch(() => null);
|
|
33
|
+
this.pointsData = response?.data || null;
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
salla?.logger?.warn?.('salla-loyalty-points-banner: init failed', e);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
if (!this.productId || !this.pointsData?.points) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return (h(Host, null, h("div", { class: "s-loyalty-points-banner-container" }, h("div", { class: "s-loyalty-points-banner-icon" }, h("span", { class: "s-loyalty-points-banner-inner-icon", innerHTML: MoneyIcon })), h("p", null, h("span", { class: "s-loyalty-points-banner-label" }, salla.lang.get('pages.loyalty_program.earn'), ' '), h("span", { class: "s-loyalty-points-banner-label" }, `+${this.pointsData.points}`, " "), h("span", { class: "s-loyalty-points-banner-label" }, salla.lang.get('pages.loyalty_program.loyalty_point'), ' '), h("span", { class: "s-loyalty-points-banner-description" }, salla.lang.get('pages.loyalty_program.on_order_total_when_purchase'))))));
|
|
44
|
+
}
|
|
45
|
+
get host() { return this; }
|
|
46
|
+
static get style() { return sallaLoyaltyPointsBannerCss; }
|
|
47
|
+
}, [0, "salla-loyalty-points-banner", {
|
|
48
|
+
"pointsData": [32],
|
|
49
|
+
"productId": [32]
|
|
50
|
+
}]);
|
|
51
|
+
function defineCustomElement$1() {
|
|
52
|
+
if (typeof customElements === "undefined") {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const components = ["salla-loyalty-points-banner"];
|
|
56
|
+
components.forEach(tagName => { switch (tagName) {
|
|
57
|
+
case "salla-loyalty-points-banner":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
customElements.define(tagName, SallaLoyaltyPointsBanner$1);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
defineCustomElement$1();
|
|
65
|
+
|
|
66
|
+
const SallaLoyaltyPointsBanner = SallaLoyaltyPointsBanner$1;
|
|
67
|
+
const defineCustomElement = defineCustomElement$1;
|
|
68
|
+
|
|
69
|
+
export { SallaLoyaltyPointsBanner, defineCustomElement };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-lMbG1CIQ.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);
|