@salla.sa/twilight-components 2.14.422 → 2.14.423
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-Bj2Lr664.js → filepond-Do86Z81F.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D6zjqOTW.js → filepond-plugin-file-poster-BltmTwcK.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DW2JtTpK.js → filepond-plugin-file-validate-size-D6qDjnWw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cm_dx5vR.js → filepond-plugin-file-validate-type-BTcaw3yC.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CyB1FduP.js → filepond-plugin-image-edit-BfSALTq0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CxcuYrF1.js → filepond-plugin-image-exif-orientation-YyoN3ZPE.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CXF_Kqyu.js → filepond-plugin-image-preview-DPZhJU-S.js} +1 -1
- package/dist/cjs/{functions-QULFiarR.js → functions-Vqr_tH33.js} +1 -1
- package/dist/cjs/{index-C-KeWKxB.js → index-BKsfuSTK.js} +1 -1
- package/dist/cjs/{index-CSI6rnkc.js → index-B_ubSXmY.js} +12 -8
- 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.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 +3 -9
- 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 +20 -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-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 +14 -2
- 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 +126 -0
- 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 +3 -9
- 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 +10 -7
- 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/swap-stroke-CYGxjKIS.js +13 -0
- package/dist/cjs/tag-money-Cuohw_4j.js +13 -0
- package/dist/cjs/{tracked-promise-DTPdQpTt.js → tracked-promise-DfEtIz3d.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CmTZhXxo.js → vanilla-picker-n2ZBl__a.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +40 -0
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +7 -4
- package/dist/collection/components/salla-menu/salla-menu.js +35 -2
- package/dist/collection/components/salla-next-order-coupon/interfaces.js +1 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +3 -0
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +142 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-item-offers.js +1 -7
- package/dist/components/salla-cookies-bar.js +21 -1
- package/dist/components/salla-menu.js +16 -2
- package/dist/components/salla-next-order-coupon.d.ts +11 -0
- package/dist/components/salla-next-order-coupon.js +165 -0
- package/dist/components/salla-order-summary.js +1 -7
- package/dist/components/salla-reward-details2.js +7 -4
- package/dist/components/swap-stroke.js +11 -0
- package/dist/components/tag-money.js +11 -0
- package/dist/esm/{filepond-CaO0jWZe.js → filepond-C27NJlHY.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-x8WSmS0o.js → filepond-plugin-file-poster-CbA3Ow5D.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CxlH6WN0.js → filepond-plugin-file-validate-size-DeVDysqG.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-qw3WFgZc.js → filepond-plugin-file-validate-type-Bk2vWN-H.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DuhPVO0a.js → filepond-plugin-image-edit-MZT3Vams.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BffsImgy.js → filepond-plugin-image-exif-orientation-CUi24gW6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-VZtiw7aM.js → filepond-plugin-image-preview-DNteLpdV.js} +1 -1
- package/dist/esm/{functions-DQPUS1s5.js → functions-WZTrXRSI.js} +1 -1
- package/dist/esm/{index-DcQSprhU.js → index-Z9TEkBrE.js} +12 -8
- package/dist/esm/{index-CDqmBYQb.js → index-xqn3qtN8.js} +1 -1
- 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.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +2 -8
- 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 +20 -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-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 +14 -2
- 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 +124 -0
- 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 +2 -8
- 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 +10 -7
- 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/swap-stroke-DqDX5na4.js +11 -0
- package/dist/esm/tag-money-CJUR4sUM.js +11 -0
- package/dist/esm/{tracked-promise-CjUGdQ4e.js → tracked-promise-9ayPcQ9V.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-71UAczkS.js → vanilla-picker-DU5T_3-T.js} +1 -1
- package/dist/twilight/{p-32a76526.entry.js → p-10311a85.entry.js} +1 -1
- package/dist/twilight/{p-28cd5556.entry.js → p-132d5758.entry.js} +1 -1
- package/dist/twilight/{p-c13164b8.entry.js → p-1357f11f.entry.js} +1 -1
- package/dist/twilight/{p-97a43989.entry.js → p-15b8af3d.entry.js} +1 -1
- package/dist/twilight/{p-452d8cd0.entry.js → p-15d242d1.entry.js} +1 -1
- package/dist/twilight/{p-d188ddc3.entry.js → p-1aa4f79a.entry.js} +1 -1
- package/dist/twilight/{p-8eebefe9.entry.js → p-1daa9a08.entry.js} +1 -1
- package/dist/twilight/{p-8ec0ba5b.entry.js → p-1e6a741d.entry.js} +1 -1
- package/dist/twilight/{p-a2fcbc1a.entry.js → p-1f3d64f3.entry.js} +1 -1
- package/dist/twilight/{p-b3a731c1.entry.js → p-25a9da9c.entry.js} +1 -1
- package/dist/twilight/{p-868e3de6.entry.js → p-268c86dd.entry.js} +1 -1
- package/dist/twilight/{p-c9b8eaa4.entry.js → p-296b7778.entry.js} +1 -1
- package/dist/twilight/{p-e2e790c2.entry.js → p-2e69e2a7.entry.js} +1 -1
- package/dist/twilight/p-3175cab9.entry.js +4 -0
- package/dist/twilight/{p-061c3ad0.entry.js → p-31cdb580.entry.js} +1 -1
- package/dist/twilight/{p-3115fa6f.entry.js → p-321d4374.entry.js} +1 -1
- package/dist/twilight/{p-00031f8b.entry.js → p-38eb6f08.entry.js} +1 -1
- package/dist/twilight/{p-e8a3af2d.entry.js → p-4208c68b.entry.js} +1 -1
- package/dist/twilight/{p-38ce7612.entry.js → p-475bfa77.entry.js} +1 -1
- package/dist/twilight/{p-d65db41e.entry.js → p-51ccd249.entry.js} +1 -1
- package/dist/twilight/p-51eb69d7.entry.js +4 -0
- package/dist/twilight/{p-1cf5f505.entry.js → p-58f17ecc.entry.js} +1 -1
- package/dist/twilight/{p-b3d565bd.entry.js → p-598c73c9.entry.js} +1 -1
- package/dist/twilight/{p-7282ff57.entry.js → p-5bd92466.entry.js} +1 -1
- package/dist/twilight/{p-63d47b05.entry.js → p-612f2099.entry.js} +1 -1
- package/dist/twilight/{p-80865031.entry.js → p-61b6fac2.entry.js} +1 -1
- package/dist/twilight/{p-fa5cfbbb.entry.js → p-647a76d0.entry.js} +1 -1
- package/dist/twilight/p-69d98642.entry.js +4 -0
- package/dist/twilight/{p-f2476ba0.entry.js → p-6ab7c83d.entry.js} +1 -1
- package/dist/twilight/{p-d46ab245.entry.js → p-6d4850df.entry.js} +1 -1
- package/dist/twilight/{p-a147d986.entry.js → p-735e5378.entry.js} +1 -1
- package/dist/twilight/{p-f0f5e269.entry.js → p-74362d6a.entry.js} +1 -1
- package/dist/twilight/{p-0217da98.entry.js → p-75066345.entry.js} +1 -1
- package/dist/twilight/{p-192e2bc3.entry.js → p-75826fc3.entry.js} +1 -1
- package/dist/twilight/{p-6ccbe91b.entry.js → p-776a0bda.entry.js} +1 -1
- package/dist/twilight/{p-8101bf16.entry.js → p-777a765e.entry.js} +1 -1
- package/dist/twilight/{p-5e5ccdab.entry.js → p-79340697.entry.js} +1 -1
- package/dist/twilight/{p-e08d36d6.entry.js → p-79d9b828.entry.js} +1 -1
- package/dist/twilight/{p-a44f888a.entry.js → p-7d2ec078.entry.js} +1 -1
- package/dist/twilight/{p-6c98089b.entry.js → p-7d4c5da3.entry.js} +1 -1
- package/dist/twilight/{p-8ad13a15.entry.js → p-8138fe7c.entry.js} +1 -1
- package/dist/twilight/{p-f161933c.entry.js → p-847d884f.entry.js} +1 -1
- package/dist/twilight/{p-63e1b828.entry.js → p-8631c200.entry.js} +1 -1
- package/dist/twilight/{p-e4f154ee.entry.js → p-872b6790.entry.js} +1 -1
- package/dist/twilight/{p-ea4ded2f.entry.js → p-88c6e6ec.entry.js} +1 -1
- package/dist/twilight/{p-acb769ec.entry.js → p-8b15a7c2.entry.js} +1 -1
- package/dist/twilight/p-93221e58.entry.js +4 -0
- package/dist/twilight/{p-a6282734.entry.js → p-93715135.entry.js} +1 -1
- package/dist/twilight/{p-062ce0be.entry.js → p-9410f28a.entry.js} +1 -1
- package/dist/twilight/{p-4f6bff26.entry.js → p-97033016.entry.js} +1 -1
- package/dist/twilight/{p-50b449bd.entry.js → p-9b64e741.entry.js} +1 -1
- package/dist/twilight/{p-a4c32f61.entry.js → p-9c36f5f1.entry.js} +1 -1
- package/dist/twilight/{p-69b6a7e6.entry.js → p-9d30457e.entry.js} +1 -1
- package/dist/twilight/{p-l-JdSat8.js → p-B7NkulJ-.js} +1 -1
- package/dist/twilight/{p-BTAUEZcN.js → p-BDJ2Ykel.js} +1 -1
- package/dist/twilight/{p-BHk2Uou3.js → p-BlcvrTiO.js} +1 -1
- package/dist/twilight/{p-DeBNbBwy.js → p-BswrPpfs.js} +1 -1
- package/dist/twilight/{p-CT3zVv2d.js → p-C9yU50YT.js} +1 -1
- package/dist/twilight/p-CJUR4sUM.js +4 -0
- package/dist/twilight/{p-Ca8b1Y6p.js → p-CmoDOvZI.js} +1 -1
- package/dist/twilight/{p-BCVUxip0.js → p-CxlEUP15.js} +1 -1
- package/dist/twilight/{p-DgJJBXMW.js → p-DG0XMtHg.js} +1 -1
- package/dist/twilight/p-DqDX5na4.js +4 -0
- package/dist/twilight/{p-CN2sY_Li.js → p-DqwP0D-u.js} +1 -1
- package/dist/twilight/{p-CRRWZbuL.js → p-EhkdtrLx.js} +1 -1
- package/dist/twilight/{p-DcQSprhU.js → p-Z9TEkBrE.js} +1 -1
- package/dist/twilight/{p-Cs04GLEl.js → p-ZJAW9yxk.js} +1 -1
- package/dist/twilight/{p-77d1859e.entry.js → p-a6429df2.entry.js} +1 -1
- package/dist/twilight/p-a9f85080.entry.js +4 -0
- package/dist/twilight/{p-c34b5d8a.entry.js → p-aba22621.entry.js} +1 -1
- package/dist/twilight/{p-957bffb4.entry.js → p-b253d360.entry.js} +1 -1
- package/dist/twilight/{p-9cb39e42.entry.js → p-b5c33519.entry.js} +1 -1
- package/dist/twilight/{p-013cfbf0.entry.js → p-b785d75d.entry.js} +1 -1
- package/dist/twilight/{p-e79d468d.entry.js → p-b7aa5623.entry.js} +1 -1
- package/dist/twilight/{p-14805623.entry.js → p-be58b3a7.entry.js} +1 -1
- package/dist/twilight/{p-ecb69641.entry.js → p-c038e432.entry.js} +1 -1
- package/dist/twilight/{p-9924b574.entry.js → p-c19887c7.entry.js} +1 -1
- package/dist/twilight/{p-9170fe95.entry.js → p-c2dd5774.entry.js} +1 -1
- package/dist/twilight/{p-300dae0b.entry.js → p-c4a80854.entry.js} +1 -1
- package/dist/twilight/{p-b0b2aeda.entry.js → p-c4bb47b0.entry.js} +1 -1
- package/dist/twilight/{p-587d6230.entry.js → p-c763b517.entry.js} +1 -1
- package/dist/twilight/p-c77bcf09.entry.js +4 -0
- package/dist/twilight/{p-deffef72.entry.js → p-c7b15f0a.entry.js} +1 -1
- package/dist/twilight/{p-6d5b28c5.entry.js → p-cb476df4.entry.js} +1 -1
- package/dist/twilight/{p-6587c7d9.entry.js → p-d049f98a.entry.js} +1 -1
- package/dist/twilight/{p-5637acc5.entry.js → p-d0898538.entry.js} +1 -1
- package/dist/twilight/{p-3f01ef83.entry.js → p-d8d62f74.entry.js} +1 -1
- package/dist/twilight/{p-c49b9285.entry.js → p-dc1b4da2.entry.js} +1 -1
- package/dist/twilight/{p-4a8e7f09.entry.js → p-ea0b6753.entry.js} +1 -1
- package/dist/twilight/{p-c2a2158a.entry.js → p-eed5585b.entry.js} +1 -1
- package/dist/twilight/{p-cfac18e6.entry.js → p-ef60225f.entry.js} +1 -1
- package/dist/twilight/{p-e87d2534.entry.js → p-f087988a.entry.js} +1 -1
- package/dist/twilight/{p-503f9bbf.entry.js → p-f423f1cf.entry.js} +1 -1
- package/dist/twilight/{p-f6ed04b2.entry.js → p-f4582cc9.entry.js} +1 -1
- package/dist/twilight/{p-3a3dd27f.entry.js → p-f45efc0c.entry.js} +1 -1
- package/dist/twilight/p-f82d4a36.entry.js +4 -0
- package/dist/twilight/{p-64f577be.entry.js → p-fae2be1f.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +6 -0
- package/dist/types/components/salla-menu/salla-menu.d.ts +6 -0
- package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
- package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
- package/dist/types/components.d.ts +27 -0
- package/package.json +5 -5
- package/dist/twilight/p-27cc8fc7.entry.js +0 -4
- package/dist/twilight/p-489cca66.entry.js +0 -4
- package/dist/twilight/p-497b058a.entry.js +0 -4
- package/dist/twilight/p-4c759f75.entry.js +0 -4
- package/dist/twilight/p-81f18d48.entry.js +0 -4
- package/dist/twilight/p-f77d4659.entry.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as a,c as e,h as s,H as l}from"./p-DcQSprhU.js";import{c as r,b as t,f as o}from"./p-BTAUEZcN.js";import{S as d}from"./p-CXRKXFgT.js";import{S as c}from"./p-cgSL_BIo.js";import{S as i}from"./p-BZp0rKEO.js";import{S as n}from"./p-8Tsmrwno.js";import{T as y}from"./p-Ca8b1Y6p.js";const p=class{constructor(s){a(this,s),this.actionClick=e(this,"actionClick"),this.isShopNow=a=>!!(salla.config.get("store.features")||[]).includes("loyalty-system-v2")&&"free_product"===a.key?.toLowerCase(),this.handleClick=a=>{salla.config.isGuest()?r((()=>salla.event.dispatch("login::open"))):this.actionClick.emit(a)}}render(){return s("div",{key:"0d02cecaae79cf166555514890fbf6192e1cd438",class:"s-loyalty-program-rewards-modal-action"},this.isShopNow(this.prize)?s("a",{href:this.prize.prize_url||salla.url.get(""),class:{"s-loyalty-program-rewards-action-base":!0,"s-loyalty-program-rewards-action-on":!0}},salla.lang.get("pages.loyalty_program.shop_now")):s("button",{onClick:this.handleClick,class:{"s-loyalty-program-rewards-action-base":!0,"s-loyalty-program-rewards-action-on":!0}},salla.lang.get("pages.loyalty_program.redeem_reward")))}};p.style="";const m=class{constructor(s){a(this,s),this.areaClick=e(this,"areaClick"),this.actionClick=e(this,"actionClick")}render(){return s(l,{key:"0bd68f7cab478d78db8b083ea11c2090d02aab59",class:"s-loyalty-program-reward-host"},s("div",{key:"ef4e857bc55a12e50434c1dda2160674ead3b4e6",class:"s-loyalty-program-reward-container"},s("div",{key:"a6a7ccdf50ee296b48c05a01f241192c0f77f30c",onClick:a=>this.areaClick.emit(a),role:"button"},s("div",{key:"e4f55cda0d9f36af95ce101c987819d30b9ad143",class:"s-loyalty-program-reward-img"},s("img",{key:"450fe8914dcf809005d4707074cb305a59990e81",alt:"",src:this.prize.image||salla.url.cdn("images/s-empty.png"),class:"s-loyalty-program-rewards-img"})),s("div",{key:"7828210caf948e057055c53dc64af45426d7977d",class:"s-loyalty-program-reward-content"},s("div",{key:"2f39695bd03884f6988b44de68964cdfdb75e0bb",class:"s-loyalty-program-reward-points"},s("salla-badge",{key:"e9e1dda91aa414d58caaff52a4bb667a1fc1b96f",size:"xs"},s("span",{key:"7baa15af74cde5a6e744667566377417233d0848",innerHTML:d}),s("span",{key:"6bd7f77ec736a6f0fd9de0c69907cc05e87829b0",class:"s-loyalty-program-rewards-points"},this.prize.cost_points," ",salla.lang.get("pages.loyalty_program.points")))),s("div",{key:"269da0571a6533ca6621792a3891f4b9d132d337",class:"s-loyalty-program-reward-title"},s("span",{key:"06c40cc994031777565d43c5259eefb3311dea98"},this.prize.group_title)),s("div",{key:"e81936c993e83f96f4143278ec82391135778383",class:"s-loyalty-program-reward-name"},s("div",{key:"752e5e6fbc5de60f7047913d6b8bf79e597fd407",class:"s-loyalty-program-rewards-name",id:`prize-${this.prize.id}`},this.prize.name,this.prize.description?`: ${this.prize.description}`:"")))),s("div",{key:"a83282f66ab42ee0fa055cf9bf7802af1615e8f0",class:"p-4"},s("slot",{key:"7186f03318c907b3e8ec15e30322d8bf787d74f8",name:"action"},s("button",{key:"7b1a13734d2c230dd32d744a42e82fdb1c148660",onClick:a=>this.actionClick.emit(a.detail),class:"s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on"},salla.lang.get("pages.loyalty_program.show_reward"))))))}};m.style="";var f=function(a,e,s,l){var r,t=arguments.length,o=t<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,s):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(a,e,s,l);else for(var d=a.length-1;d>=0;d--)(r=a[d])&&(o=(t<3?r(o):t>3?r(e,s,o):r(e,s))||o);return t>3&&o&&Object.defineProperty(e,s,o),o};const g=(...a)=>a.map((a=>"s-loyalty-program-"+a)).join(" "),b=class{constructor(s){a(this,s),this.actionClick=e(this,"actionClick"),this.refreshKey=Date.now()}handlePrizeChange(){this.refreshKey=Date.now()}componentWillLoad(){"idle"===this.category.status&&this.category(),"idle"===this.brand.status&&this.brand()}getTermsAndConditions(){const a=Number((this.prize.order_minimum_amount||"0").split(".")[0])||0,e=Number((this.prize.coupon_maximum_amount||"0").split(".")[0])||0,s=[];return a&&s.push([salla.lang.get("pages.loyalty_program.order_minimum_amount"),`${a} ${salla.lang.get(`currency.${(salla.config.get("user.currency_code")||"").toLowerCase()}`)}`]),e&&s.push([salla.lang.get("pages.loyalty_program.coupon_maximum_amount"),`${e} ${salla.lang.get(`currency.${(salla.config.get("user.currency_code")||"").toLowerCase()}`)}`]),s}findItems(a){return a?.length?this.brand.data.concat(this.category.data).filter((e=>a.includes(e.id_))):[]}getIncludedItems(a,e){return a?.length?a:e?.length?this.findItems(e):[]}getProductIds(a){return a||[]}getItemsMarkers(a){return"both"===a?this.getItemsMarkers("included")+this.getItemsMarkers("excluded"):[this.prize[`${a}_product_ids`]?.length||0,this.prize[`${a}_brand_ids`]?.length||0,this.prize[`${a}_category_ids`]?.length||0].map(Boolean).map(Number).join("")}getItemsMarkersText(){if("FREE_SHIPPING"===this.prize.key)return salla.lang.get("pages.loyalty_program.redeem_for_free_shipping");switch(this.getItemsMarkers("included")){case"001":default:return salla.lang.get("pages.loyalty_program.redeem_on_specific_products");case"010":return salla.lang.get("pages.loyalty_program.redeem_on_specific_brands");case"100":return salla.lang.get("pages.loyalty_program.redeem_on_specific_categories");case"000":return salla.lang.get("pages.loyalty_program.redeem_on_all_products")}}getCategoriesJsx(a,e){return a.length?s("div",{class:g("reward-details-categories-wrapper")},s("div",{class:g("reward-details-categories")},s("h2",{class:g("reward-details-categories-heading")},e),s("ul",{class:g("reward-details-categories-list")},a.map((a=>s("li",null,s("a",{href:a.url||a.lingual_urls?.[0],class:g("reward-details-categories-item")},s("span",{innerHTML:c}),s("span",{class:g("reward-details-categories-item-content")},a.name)))))))):""}getBrandsJsx(a,e){return a.length?s("div",{class:g("reward-details-items-brands","slider-arrows-edges")},s("div",null,s("h2",null,e),s("salla-slider",{id:`brands-${a.map((({id:a})=>a)).join("-")}`,"slider-config":'{"loop":false,"slidesPerView":"auto","spaceBetween":10}'},s("div",{slot:"items"},a.map((a=>s("a",{href:salla.url.get(t(a)),class:g("reward-brand-item")},s("img",{src:a.logo||salla.url.cdn("images/s-empty.png"),alt:""})))))))):""}getProductsJsx(a,e){return a?.length?s("div",{class:"s-loyalty-program-reward-details-items-products s-loyalty-program-slider-arrows-edges"},s("h2",null,e),s("salla-products-slider",{source:"selected",sourceValue:JSON.stringify(a),"slider-config":'{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":0,"breakpoints":{"768":{"slidesPerView":3,"freeMode":false,"speed":300}}}'})):""}render(){const a=this.getTermsAndConditions();return s("div",{key:"17b29a9098873643557786c9d9515b6245e2d773",class:"s-loyalty-program-reward-modal"},s("div",{key:"bd5411918a07a8e2dc1eb8ef7b1e06e82403d280",class:"s-loyalty-program-points-modal-header"},s("h1",{key:"9e6d884e3e70c0ff3dbb005f61d48c1d1fa2ee65",class:"s-loyalty-program-points-modal-info"},salla.url.is_page("cart")?s("button",{class:"s-loyalty-program-back-btn",onClick:()=>r((()=>salla.event.dispatch("modal::open","loyalty-rewards-modal")))},s("span",{class:{"sicon-arrow-right":"rtl"===document.documentElement.getAttribute("dir"),"sicon-arrow-left":"ltr"===document.documentElement.getAttribute("dir")}})):"",this.prize.name)),s("div",{key:"09d716d984701a251a3a759acbf112883fd0cf8f",class:"s-loyalty-program-modal-scrollable-content"},s("div",{key:"f7e2c8d017ba4dab380d08e0c7a5f1e49416b1f4",class:"s-loyalty-program-reward-details-header"},s("div",{key:"369bb4e9a1b8d8dde62de1236b4d836fd3d6841f",class:"s-loyalty-program-aspect-container"},s("img",{key:"3ed20feecdcd1c7433ec465364ae62639824ee6d",src:this.prize.image,alt:this.prize.name})),s("salla-badge",{key:"2bba4702e75d05622b719fa796efccda0520ce69",size:"sm",bg:"light"},s("span",{key:"837afff2bdf9a390e8ca373f31dddbd84d7c6a91",innerHTML:d}),s("span",{key:"c3631a877062d69947928b1beee2ae4932910eec",class:"s-loyalty-program-points-badge-points"},o(this.prize.cost_points)))),a.length?s("div",{class:"s-loyalty-program-terms-and-conditions"},s("h1",{class:"s-loyalty-program-terms-and-conditions-heading"},salla.lang.get("pages.loyalty_program.terms_and_conditions")),s("ul",{class:"s-loyalty-program-terms-and-conditions-list"},a.map((([a,e])=>s("li",{class:"s-loyalty-program-terms-and-conditions-item"},s("span",{class:"s-loyalty-program-terms-and-conditions-content"},a),s("span",{class:"s-loyalty-program-terms-and-conditions-content"},e)))))):"",s("div",{key:"872bfd776acf67910a5cdeafdb48e2c7afd5d71c",class:"s-loyalty-program-reward-info-message"},s("h1",{key:"253e6f58946e911ba2b74ef18ebcee0eae0bb514",class:"s-loyalty-program-reward-info-message-heading"},salla.lang.get("pages.loyalty_program.how_to_benefit_from_this_reward")),s("p",{key:"ce4b30fab9f1fae89fd956ae3eb20e5750fcea09",class:"s-loyalty-program-reward-info-message-content"},this.getItemsMarkersText())),"FREE_SHIPPING"===this.prize.key||"000000"===this.getItemsMarkers("both")?"":s("div",{class:"s-loyalty-program-reward-details"},s("salla-tabs",{key:this.refreshKey},"000"===this.getItemsMarkers("included")?"":[s("salla-tab-header",{slot:"header",name:"included",style:{display:"000"===this.getItemsMarkers("excluded")?"none":"block"}},s("span",{class:"s-loyalty-program-reward-details-tab-icon",innerHTML:i}),s("span",null,salla.lang.get("pages.loyalty_program.included"))),s("salla-tab-content",{slot:"content",name:"included"},s("div",{class:"s-loyalty-program-reward-details-items-wrapper"},this.getCategoriesJsx(this.getIncludedItems(this.prize.categories,this.prize.included_category_ids),salla.lang.get("pages.loyalty_program.included_categories")),this.getBrandsJsx(this.getIncludedItems(this.prize.brands,this.prize.included_brand_ids),salla.lang.get("pages.loyalty_program.included_brands")),this.getProductsJsx(this.getProductIds(this.prize.included_product_ids),salla.lang.get("pages.loyalty_program.included_products"))))],"000"===this.getItemsMarkers("excluded")?"":[s("salla-tab-header",{slot:"header",name:"excluded",style:{display:"000"===this.getItemsMarkers("included")?"none":"block"}},s("span",{class:"s-loyalty-program-reward-details-tab-icon",innerHTML:n}),s("span",null,salla.lang.get("pages.loyalty_program.excluded"))),s("salla-tab-content",{slot:"content",name:"excluded"},s("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"))))]))),s("salla-reward-action",{key:"4055a99cf9dd6a30448848544d302e929afb5f06",onActionClick:a=>this.actionClick.emit(a.detail),prize:this.prize}))}static get watchers(){return{prize:["handlePrizeChange"]}}};f([y((async()=>(await salla.product.api.categories()).data),{initialData:[]})],b.prototype,"category",void 0),f([y((async()=>(await salla.api.request("/brands")).data),{initialData:[]})],b.prototype,"brand",void 0),b.style="";const h=class{constructor(e){a(this,e),this.productId=null}reset(a=0){setTimeout((()=>{r()}),a)}async handleConfirm(){try{await this.exchange(this.prize.id,null,this.productId),this.reset(300)}catch(a){salla.logger.error(a)}}handleCancel(){this.reset(0)}render(){return s(l,{key:"b5b9a966f28520c30917887621e2358fdb9530be"},s("div",{key:"4e87e3d0530a7fca6db1bf09fd1b059b85e56f10",class:"s-loyalty-program-exchange-heading"},s("div",{key:"73b9aa3106336e8cdc81ce78371b3efc47b5c569",class:"s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill"},s("span",{key:"0e6c488afa39784a40bfed2f1d180fc48664a81a",innerHTML:d})),s("h2",{key:"7740e27318379264905ff695e0c0cf13b54800d0"},salla.lang.get("pages.loyalty_program.redeem_reward")),s("p",{key:"81a7ba841e3e26c7c9fc1054745ad163cc347db7"},salla.lang.get("pages.loyalty_program.redeem_confirmation")," ",s("span",{key:"0f5d68dbe2de661c2aad02d237d3098349e94120"},"(",this.prize.cost_points," ",salla.lang.get("pages.loyalty_program.point"),")")," ",salla.lang.get("pages.loyalty_program.for")," ",s("span",{key:"1daa10a1843938166c6834d0369edfe7e06dd54e"},"(",this.prize.name,")"))),s("div",{key:"42384b2df2cbb3775ccc6f7a017d9ef9f770baf5",class:"s-loyalty-program-exchange-btns"},s("button",{key:"b90b95adae80a9bcb47c0d039ea8bd9399ee5bc5",class:"s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm",onClick:()=>this.handleConfirm()},s("span",{key:"c108973d9729265fb35a0d0fa781d525388a4c12",style:{opacity:"pending"!==this.exchange.status?"1":"0"}},salla.lang.get("common.elements.confirm")),s("span",{key:"302a31b9095d153b4662ada13d45cdb6b15664ad",class:"s-loyalty-program-exchange-loading",style:{opacity:"pending"===this.exchange.status?"1":"0"}},s("salla-loading",{key:"3e305da32d469f6ec874c128a1fd68356280dc69",color:"primary",size:24}))),s("button",{key:"466f8cfea3e370bce9466e9571f4567fb5a7966d",class:"s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel",onClick:()=>this.handleCancel()},salla.lang.get("common.elements.cancel"))))}};(function(a,e,s,l){var r,t=arguments.length,o=t<3?e:null===l?l=Object.getOwnPropertyDescriptor(e,s):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(a,e,s,l);else for(var d=a.length-1;d>=0;d--)(r=a[d])&&(o=(t<3?r(o):t>3?r(e,s,o):r(e,s))||o);t>3&&o&&Object.defineProperty(e,s,o)})([y((async(...a)=>await salla.loyalty.exchange(...a)))],h.prototype,"exchange",void 0),h.style="";export{p as salla_reward_action,m as salla_reward_card,b as salla_reward_details,h as salla_reward_exchange}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as s,h as t,F as e}from"./p-DcQSprhU.js";const l=class{constructor(t){s(this,t),this.source="header",this.useReactLink=!1,this.menus=[]}async componentWillLoad(){return salla.onReady((()=>{if(this.displayAllText=salla.lang.get("blocks.home.display_all"),!this.sourceValue||"json"!==this.source)return this.getMenuItems();this.menus="string"==typeof this.sourceValue?JSON.parse(this.sourceValue):this.sourceValue||[]}))}getMenuItems(){return salla.api.component.getMenus(this.source).then((({data:s})=>{this.menus=s})).catch((s=>{salla.logger.error("salla-menu::Error fetching menus",s)}))}hasChildren(s){return s?.children?.length>0}hasProducts(s){return s?.products?.length>0}getDesktopClasses(s,t){return`!hidden lg:!block ${t?"root-level lg:!inline-block":"relative"} ${s.products?" mega-menu":""}\n ${this.hasChildren(s)?"has-children":""}`}getAttributes(s){return s.trim().split(" ").reduce(((s,t)=>{let[e,l]=t.split("=");return s[e]=l.replace(/"/g,""),s}),{})}getMobileMenu(s,l){const i=s.image?t("img",{src:s.image,class:"rounded-full",width:"48",height:"48",alt:s.title}):null;return t("li",{class:"lg:hidden text-sm font-bold",...this.getAttributes(s.attrs)},this.hasChildren(s)?t(e,null,t("span",{class:s.image?"!py-3":""},i,s.title),t("ul",null,t("li",{class:"text-sm font-bold"},t("a",{href:s.url,class:"text-gray-500"},l)),s.children.map((s=>this.getMobileMenu(s,l))))):t("a",{href:s.url,"aria-label":s.title||"category",class:"text-gray-500 "+(s.image?"!py-3":""),...this.getAttributes(s.link_attrs)},i,t("span",null,s.title||"")))}getDesktopMenu(s,e){return t("li",{class:this.getDesktopClasses(s,e),...this.getAttributes(s.attrs)},t("a",{href:s.url,"aria-label":s.title||"category",...this.getAttributes(s.link_attrs)},t("span",null,s.title)),this.hasChildren(s)?t("div",{class:"sub-menu shadow-default "+(this.hasProducts(s)?"w-full left-0 flex":"w-56")},t("ul",{class:this.hasProducts(s)?"w-56 shrink-0 m-8 rtl:ml-0 ltr:mr-0":""},s.children.map((s=>this.getDesktopMenu(s,!1)))),this.hasProducts(s)?t("salla-products-list",{source:"selected","shadow-on-hover":!0,"source-value":`[${s.products}]`}):null):null)}getFooterMenu(s){const e=this.topnav||this.limit?s.slice(0,this.limit||3):s;return t("div",null,t("div",{class:{"s-menu-footer-list":!this.topnav,"s-menu-topnav-list":this.topnav}},e.map((s=>t("a",{key:s.id,href:s.url,target:s.target,class:{"s-menu-footer-item":!this.topnav,"s-menu-topnav-item topnav-link-item right-side":this.topnav}},s.title)))))}getHeaderMenu(s){return s.map((s=>[this.getMobileMenu(s,this.displayAllText),this.getDesktopMenu(s,!0)]))}render(){return"footer"===this.source?this.getFooterMenu(this.menus):[t("nav",{key:"main-nav",id:"mobile-menu",class:"mobile-menu"},t("ul",{class:"main-menu"},this.getHeaderMenu(this.menus)),t("button",{class:"btn--close close-mobile-menu sicon-cancel lg:hidden"})),t("button",{key:"close-btn",class:"btn--close-sm close-mobile-menu sicon-cancel hidden"})]}};l.style=":host{display:block}";export{l as salla_menu}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as s,h as t,H as a,a as i}from"./p-DcQSprhU.js";const l=class{constructor(t){s(this,t),this.isVisible=!0,this.isMobile=!1,this.mobileBreakpoint=768,this.mobileQueryHandler=s=>this.isMobile=s.matches}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),this.loadTranslations(),Salla.storage.get("cookies-consent")&&(this.isVisible=!1)}loadTranslations(){this.messageLabel=Salla.lang.get("common.cookies.message"),this.linkLabel=Salla.lang.get("common.cookies.link"),this.acceptLabel=Salla.lang.get("common.cookies.accept"),this.rejectLabel=Salla.lang.get("common.cookies.reject")}componentDidLoad(){this.mobileQuery=window.matchMedia(`(max-width: ${this.mobileBreakpoint-1}px)`),this.isMobile=this.mobileQuery.matches,this.mobileQuery.addEventListener("change",this.mobileQueryHandler)}disconnectedCallback(){this.mobileQuery?.removeEventListener("change",this.mobileQueryHandler)}async accept(){return this.isVisible=!1,Salla.event.emit("salla-cookies-bar::accepted"),Salla.storage.set("cookies-consent","accepted"),this.host}async reject(){return this.isVisible=!1,Salla.event.emit("salla-cookies-bar::rejected"),Salla.storage.set("cookies-consent","rejected"),this.host}isRtl(){return Salla.config.get("theme.is_rtl",!0)}render(){return this.isVisible?t(a,null,t("div",{dir:this.isRtl()?"rtl":"ltr",class:"s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4"},t("div",{class:"s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4"},t("p",{class:"s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0"},this.messageLabel,Salla.config.get("policy_url")&&t("a",{href:Salla.config.get("policy_url"),target:"_blank",class:"s-cookies-bar-link text-primary ms-1"},this.linkLabel)),t("div",{class:"s-cookies-bar-actions flex flex-row gap-2 shrink-0"},t("salla-button",{class:"s-cookies-bar-btn--accept",color:"primary",fill:"solid",type:"button",size:this.isMobile?"small":"medium",onClick:()=>this.accept()},this.acceptLabel),t("salla-button",{class:"s-cookies-bar-btn--reject",fill:"outline",type:"button",size:this.isMobile?"small":"medium",onClick:()=>this.reject()},this.rejectLabel))))):t(a,null)}get host(){return i(this)}};l.style=":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}";export{l as salla_cookies_bar}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as c,H as d}from"./p-DcQSprhU.js";const r=class{constructor(c){e(this,c),this.orderEditProductSelected=t(this,"orderEditProductSelected")}get productData(){if(!this.product)return{};if("object"==typeof this.product)return this.product;try{return JSON.parse(this.product)}catch(e){return{}}}handleSelectProduct(){this.orderEditProductSelected.emit({product:this.productData})}render(){const e=this.productData,t=e?.name||salla.lang.getWithDefault("common.elements.product","منتج"),r=e?.price;return c(d,{key:"e5837d7ec53f2566fe981f02a95b52c7c817821c"},c("button",{key:"415861262349f83c3c7d1dc72d9f8f01f855317e",type:"button",class:"s-order-edit-product-card",onClick:()=>this.handleSelectProduct()},c("div",{key:"072d3af840d5044636380f5620703cc446877162",class:"s-order-edit-product-card-media"},e?.image?.url?c("img",{src:e.image.url,alt:e.image.alt||t,class:"s-order-edit-product-card-image"}):c("div",{class:"s-order-edit-product-card-placeholder"},c("i",{class:"sicon-shopping-bag"}))),c("div",{key:"ac51822bbcf1f2213b11204fa968a40e7de164a3",class:"s-order-edit-product-card-content"},c("h3",{key:"e817582bf88db2ed6ac47a37a5d2b4e4ac953770",class:"s-order-edit-product-card-title"},t),null!=r&&c("p",{key:"efbf1b16d7c6d73de76bab1e8715a474f812fde4",class:"s-order-edit-product-card-price",innerHTML:salla.money(r)}))))}};r.style=":host{display:block;min-width:0}";export{r as salla_order_edit_product_card}
|