@salla.sa/twilight-components 2.14.405 → 2.14.407
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-BPLK_foX.js → filepond-DONb5ni1.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DhkcpnBZ.js → filepond-plugin-file-poster-DJLl01PZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DRXj8iKf.js → filepond-plugin-file-validate-size-Bj5ZS2Ia.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-FJqR9kh0.js → filepond-plugin-file-validate-type-C5qVR7jg.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CjAecwmy.js → filepond-plugin-image-edit-BQn6XPQ1.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CUk6TmvV.js → filepond-plugin-image-exif-orientation-KkNLZrKg.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-NwqnihHT.js → filepond-plugin-image-preview-W4IKvGrD.js} +1 -1
- package/dist/cjs/{functions-AX9hdR3s.js → functions-KoRn5eZd.js} +1 -1
- package/dist/cjs/{index-DgQabv-C.js → index-BnIg_p6W.js} +2 -2
- package/dist/cjs/{index-B7ZVnTwW.js → index-D8MRA6xd.js} +1 -1
- 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_4.cjs.entry.js +64 -2
- 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 +34 -17
- 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 +1 -1
- 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 +16 -10
- 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 +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-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.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-kpbdqzFi.js → tracked-promise-DB9UBRQw.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-B-T8Rzuq.js → vanilla-picker-DN2nlX5w.js} +1 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +18 -6
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +6 -1
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +15 -9
- package/dist/collection/components/salla-product-options/salla-product-options.js +63 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-conditional-fields2.js +18 -6
- package/dist/components/salla-file-upload2.js +6 -1
- package/dist/components/salla-login-modal2.js +15 -9
- package/dist/components/salla-product-options2.js +63 -1
- package/dist/esm/{filepond-DySdjR-8.js → filepond-DItgQfdC.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BlnNa8do.js → filepond-plugin-file-poster-DwToCHWM.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BQ6W4ihV.js → filepond-plugin-file-validate-size-BqgSqa91.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BSjgTfes.js → filepond-plugin-file-validate-type-AOPY-zLx.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BasdFpdu.js → filepond-plugin-image-edit-CmzKh2w7.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DgqaR-d4.js → filepond-plugin-image-exif-orientation-BegRjz9p.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CqXMId16.js → filepond-plugin-image-preview-aoOBjtcL.js} +1 -1
- package/dist/esm/{functions-DrJQx-Uk.js → functions-DJndw4hV.js} +1 -1
- package/dist/esm/{index-n47ndSs0.js → index-BJPLsNkV.js} +1 -1
- package/dist/esm/{index-CtedSqt5.js → index-DszLnUGj.js} +2 -2
- 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_4.entry.js +64 -2
- 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 +34 -17
- 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 +1 -1
- 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 +16 -10
- 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 +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-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.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-wsfedytO.js → tracked-promise-DX8tNVW-.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-BbuSapAm.js → vanilla-picker-Cbh9ElyS.js} +1 -1
- package/dist/twilight/{p-a29d959e.entry.js → p-015d918e.entry.js} +1 -1
- package/dist/twilight/{p-8fc12321.entry.js → p-01fcf43b.entry.js} +1 -1
- package/dist/twilight/{p-c153e802.entry.js → p-02733c7d.entry.js} +1 -1
- package/dist/twilight/{p-a6da11cd.entry.js → p-0abd36d0.entry.js} +1 -1
- package/dist/twilight/{p-b8e43fdc.entry.js → p-10ef144c.entry.js} +1 -1
- package/dist/twilight/{p-68aba876.entry.js → p-1318b3f3.entry.js} +1 -1
- package/dist/twilight/{p-f79def0e.entry.js → p-14911faf.entry.js} +1 -1
- package/dist/twilight/p-16d92b93.entry.js +4 -0
- package/dist/twilight/{p-ed9b2c0a.entry.js → p-175307cc.entry.js} +1 -1
- package/dist/twilight/{p-ad24b49f.entry.js → p-1ab34e50.entry.js} +1 -1
- package/dist/twilight/{p-265c5119.entry.js → p-1d044eb9.entry.js} +1 -1
- package/dist/twilight/{p-79b10d4f.entry.js → p-1d6814cd.entry.js} +1 -1
- package/dist/twilight/{p-5c855f94.entry.js → p-292f34dd.entry.js} +1 -1
- package/dist/twilight/{p-0141f545.entry.js → p-2ecde2f5.entry.js} +1 -1
- package/dist/twilight/{p-12bced37.entry.js → p-3067235e.entry.js} +1 -1
- package/dist/twilight/{p-0a1bddb5.entry.js → p-31a364c8.entry.js} +1 -1
- package/dist/twilight/{p-370ba990.entry.js → p-34473727.entry.js} +1 -1
- package/dist/twilight/{p-6559fd74.entry.js → p-35b2704c.entry.js} +1 -1
- package/dist/twilight/p-37461c2e.entry.js +4 -0
- package/dist/twilight/{p-52ff7ce9.entry.js → p-39cb3a88.entry.js} +1 -1
- package/dist/twilight/{p-c9d4fe86.entry.js → p-3a79c700.entry.js} +1 -1
- package/dist/twilight/{p-5a4ab122.entry.js → p-426d6d02.entry.js} +1 -1
- package/dist/twilight/{p-d57f8ddc.entry.js → p-45ec6d5e.entry.js} +1 -1
- package/dist/twilight/{p-2ef0b3d8.entry.js → p-47b75322.entry.js} +1 -1
- package/dist/twilight/{p-33d1d347.entry.js → p-483021b0.entry.js} +1 -1
- package/dist/twilight/{p-35683b9d.entry.js → p-49f91bc0.entry.js} +1 -1
- package/dist/twilight/{p-ed8da6c7.entry.js → p-4c3f5513.entry.js} +1 -1
- package/dist/twilight/{p-345e5b0c.entry.js → p-4dabe96e.entry.js} +1 -1
- package/dist/twilight/p-4e0ae449.entry.js +4 -0
- package/dist/twilight/{p-77fb4ab3.entry.js → p-50f05fba.entry.js} +1 -1
- package/dist/twilight/{p-1ac02c8b.entry.js → p-528a04a4.entry.js} +1 -1
- package/dist/twilight/{p-ffec7151.entry.js → p-547682d5.entry.js} +1 -1
- package/dist/twilight/{p-e77bc664.entry.js → p-5866546b.entry.js} +1 -1
- package/dist/twilight/{p-9539d123.entry.js → p-5868a3c5.entry.js} +1 -1
- package/dist/twilight/{p-6ad9fdb6.entry.js → p-5946f4f7.entry.js} +1 -1
- package/dist/twilight/{p-7bca6a1a.entry.js → p-5d884976.entry.js} +1 -1
- package/dist/twilight/{p-3b63b3c3.entry.js → p-5f56eb57.entry.js} +1 -1
- package/dist/twilight/{p-3aa17242.entry.js → p-62d39f74.entry.js} +1 -1
- package/dist/twilight/{p-1a9bd680.entry.js → p-63fda921.entry.js} +1 -1
- package/dist/twilight/{p-223aa493.entry.js → p-664ddf5c.entry.js} +1 -1
- package/dist/twilight/{p-14bfdd5d.entry.js → p-66a4beef.entry.js} +1 -1
- package/dist/twilight/{p-41e2eb88.entry.js → p-6f66b9f1.entry.js} +1 -1
- package/dist/twilight/{p-e5505e66.entry.js → p-708ea2f8.entry.js} +1 -1
- package/dist/twilight/{p-9da2e790.entry.js → p-70b4f566.entry.js} +1 -1
- package/dist/twilight/{p-2e3eda61.entry.js → p-724a4bb5.entry.js} +1 -1
- package/dist/twilight/{p-765e22b4.entry.js → p-740a98cf.entry.js} +1 -1
- package/dist/twilight/{p-522514b4.entry.js → p-75ba07a3.entry.js} +1 -1
- package/dist/twilight/{p-8e34615b.entry.js → p-773e29ee.entry.js} +1 -1
- package/dist/twilight/{p-dcc6111a.entry.js → p-7c1ba8a8.entry.js} +1 -1
- package/dist/twilight/{p-84b7b4ad.entry.js → p-7e903262.entry.js} +1 -1
- package/dist/twilight/{p-419a6d67.entry.js → p-87eb0946.entry.js} +1 -1
- package/dist/twilight/{p-3f52e61b.entry.js → p-8853be2f.entry.js} +1 -1
- package/dist/twilight/{p-5ad5ff1e.entry.js → p-8e43263b.entry.js} +1 -1
- package/dist/twilight/{p-57f4622c.entry.js → p-92a7a433.entry.js} +1 -1
- package/dist/twilight/{p-3bd4333b.entry.js → p-93465dc7.entry.js} +1 -1
- package/dist/twilight/{p-6e3a2117.entry.js → p-985999f2.entry.js} +1 -1
- package/dist/twilight/{p-7a9609e1.entry.js → p-98b356b0.entry.js} +1 -1
- package/dist/twilight/{p-B4yd_FR0.js → p-BFO0hHSc.js} +1 -1
- package/dist/twilight/{p-kh2fG6rM.js → p-BR4Z-q-K.js} +1 -1
- package/dist/twilight/{p-DeVIZSmo.js → p-BWgDXPtg.js} +1 -1
- package/dist/twilight/{p-Cs4MH9HC.js → p-BpLMOuGA.js} +1 -1
- package/dist/twilight/{p-dCMSKLuX.js → p-BxDRTh2C.js} +2 -2
- package/dist/twilight/p-CrhFFVDZ.js +9 -0
- package/dist/twilight/{p-BFvfq821.js → p-DXck6gB1.js} +1 -1
- package/dist/twilight/p-Dai280kp.js +4 -0
- package/dist/twilight/{p-dn9IXQL6.js → p-Dd67_hDr.js} +1 -1
- package/dist/twilight/{p-CtedSqt5.js → p-DszLnUGj.js} +1 -1
- package/dist/twilight/{p-768383b6.entry.js → p-a790811c.entry.js} +1 -1
- package/dist/twilight/{p-825c8b40.entry.js → p-aeec7898.entry.js} +1 -1
- package/dist/twilight/{p-821405e8.entry.js → p-b01d790c.entry.js} +1 -1
- package/dist/twilight/{p-423a21ce.entry.js → p-badc31ab.entry.js} +1 -1
- package/dist/twilight/{p-8744853a.entry.js → p-bd7d3e97.entry.js} +1 -1
- package/dist/twilight/{p-0488a76d.entry.js → p-c0e49be8.entry.js} +1 -1
- package/dist/twilight/{p-bf2853ba.entry.js → p-c186acbd.entry.js} +1 -1
- package/dist/twilight/p-c3c152a2.entry.js +4 -0
- package/dist/twilight/{p-31c17553.entry.js → p-c408201c.entry.js} +1 -1
- package/dist/twilight/{p-a779b16a.entry.js → p-c463f03a.entry.js} +1 -1
- package/dist/twilight/{p-cfeadcd4.entry.js → p-c5ead689.entry.js} +1 -1
- package/dist/twilight/{p-dd766f7c.entry.js → p-ce9c043a.entry.js} +1 -1
- package/dist/twilight/{p-1f681622.entry.js → p-d1009bc1.entry.js} +1 -1
- package/dist/twilight/{p-f177da4e.entry.js → p-d418c9c7.entry.js} +1 -1
- package/dist/twilight/{p-ca4d905d.entry.js → p-e42eda5b.entry.js} +1 -1
- package/dist/twilight/{p-e626e3f4.entry.js → p-ebefbf8a.entry.js} +1 -1
- package/dist/twilight/{p-178cc3b8.entry.js → p-ef805bfd.entry.js} +1 -1
- package/dist/twilight/{p-9d363442.entry.js → p-f05d044d.entry.js} +1 -1
- package/dist/twilight/{p-6c713501.entry.js → p-f7494edc.entry.js} +1 -1
- package/dist/twilight/{p-322f4c26.entry.js → p-f7fca848.entry.js} +1 -1
- package/dist/twilight/{p-a989e667.entry.js → p-fc4c59bf.entry.js} +1 -1
- package/dist/twilight/{p-9c01e1ec.entry.js → p-fc516675.entry.js} +1 -1
- package/dist/twilight/{p-98849974.entry.js → p-fc7f8467.entry.js} +1 -1
- package/dist/twilight/{p-83abbe7a.entry.js → p-fecbf4bc.entry.js} +1 -1
- package/dist/twilight/{p-ElgY53WU.js → p-vRiP6WII.js} +1 -1
- package/dist/twilight/{p-szxzKhuY.js → p-zuz35CP4.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +1 -1
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +2 -0
- package/package.json +5 -5
- package/dist/twilight/p-5aa6b2cc.entry.js +0 -4
- package/dist/twilight/p-Bvvn09Ie.js +0 -4
- package/dist/twilight/p-C_DTMIQF.js +0 -9
- package/dist/twilight/p-c5ce7496.entry.js +0 -4
- package/dist/twilight/p-c812ba21.entry.js +0 -4
- package/dist/twilight/p-fdfc080d.entry.js +0 -4
|
@@ -78,12 +78,14 @@ export class SallaLoginModal {
|
|
|
78
78
|
// }
|
|
79
79
|
if (action == 'ready') {
|
|
80
80
|
if (value.isPasskeyPage) {
|
|
81
|
-
this.createPassKey.postMessage({
|
|
81
|
+
this.createPassKey.postMessage({
|
|
82
|
+
source: "login", type: "init_passkey_page", data: {
|
|
82
83
|
token: salla.storage.get('token'),
|
|
83
84
|
store_id: salla.config.get('store.id'),
|
|
84
85
|
locale: salla.config.get('user.language_code'),
|
|
85
86
|
redirect: salla.config.get('store.url')
|
|
86
|
-
}
|
|
87
|
+
}
|
|
88
|
+
}, salla.config.get('login.url'));
|
|
87
89
|
return;
|
|
88
90
|
}
|
|
89
91
|
this.handleIframeReadyAction();
|
|
@@ -151,18 +153,18 @@ export class SallaLoginModal {
|
|
|
151
153
|
* Open login component
|
|
152
154
|
*/
|
|
153
155
|
async open(_event = null) {
|
|
156
|
+
if (Salla.config.isGuest()) {
|
|
157
|
+
return this.modal.open();
|
|
158
|
+
}
|
|
154
159
|
/**
|
|
155
160
|
* This is a workaround until we remove all the user objet from twig files
|
|
156
161
|
* When the user is already login, let's reload the page
|
|
157
162
|
*/
|
|
158
|
-
if (!
|
|
159
|
-
|
|
160
|
-
return location.reload();
|
|
161
|
-
}
|
|
162
|
-
// Fire an event if withoutReload is true
|
|
163
|
-
return;
|
|
163
|
+
if (!this.withoutReload) {
|
|
164
|
+
return location.reload();
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
+
// Fire an event if withoutReload is true
|
|
167
|
+
return;
|
|
166
168
|
}
|
|
167
169
|
close() {
|
|
168
170
|
Salla.event.emit('salla-login::closing');
|
|
@@ -295,6 +297,10 @@ export class SallaLoginModal {
|
|
|
295
297
|
this.modal.open();
|
|
296
298
|
}
|
|
297
299
|
render() {
|
|
300
|
+
//let's avoid showing the login modal if the user is already logged in
|
|
301
|
+
if (Salla.config.isUser()) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
298
304
|
if (this.inline) {
|
|
299
305
|
return this.getLoginDom();
|
|
300
306
|
}
|
|
@@ -156,8 +156,12 @@ export class SallaProductOptions {
|
|
|
156
156
|
const requiredElements = this.host.querySelectorAll('[required]');
|
|
157
157
|
let pass = true;
|
|
158
158
|
for (let i = 0; i < requiredElements.length; i++) {
|
|
159
|
+
const el = requiredElements[i];
|
|
160
|
+
if (el.disabled || el.closest('.hidden')) {
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
159
163
|
//if there is only one invalid option, return false
|
|
160
|
-
if ('reportValidity' in
|
|
164
|
+
if ('reportValidity' in el && !el.reportValidity()) {
|
|
161
165
|
pass = false;
|
|
162
166
|
}
|
|
163
167
|
}
|
|
@@ -280,6 +284,13 @@ export class SallaProductOptions {
|
|
|
280
284
|
}
|
|
281
285
|
return opt;
|
|
282
286
|
});
|
|
287
|
+
this.pruneInvisibleConditionalSelections();
|
|
288
|
+
this.setSelectedSkus();
|
|
289
|
+
requestAnimationFrame(() => {
|
|
290
|
+
this.optionsData
|
|
291
|
+
?.filter(o => o.type === DisplayType.MULTIPLE_OPTIONS && o.required)
|
|
292
|
+
.forEach(o => this.handleRequiredMultipleOptions(o));
|
|
293
|
+
});
|
|
283
294
|
// Emit the event only if fireChangeEvent is true
|
|
284
295
|
if (fireChangeEvent) {
|
|
285
296
|
this.changed.emit(data);
|
|
@@ -299,9 +310,60 @@ export class SallaProductOptions {
|
|
|
299
310
|
return;
|
|
300
311
|
}
|
|
301
312
|
const optionContainer = this.host.querySelector(`[data-option-id="${option.id}"]`);
|
|
313
|
+
if (!optionContainer) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
302
316
|
const hasChecked = optionContainer.querySelectorAll('input:checked').length;
|
|
303
317
|
optionContainer.querySelectorAll('input').forEach(input => input.toggleAttribute('required', !hasChecked));
|
|
304
318
|
}
|
|
319
|
+
pruneInvisibleConditionalSelections() {
|
|
320
|
+
const passes = Math.max(1, this.optionsData.length);
|
|
321
|
+
for (let p = 0; p < passes; p++) {
|
|
322
|
+
let clearedSomething = false;
|
|
323
|
+
for (const opt of this.optionsData) {
|
|
324
|
+
const vc = opt.visibility_condition;
|
|
325
|
+
if (!vc) {
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
const selectedAtParent = this.selectedOptions
|
|
329
|
+
.filter(s => s.option_id === vc.option)
|
|
330
|
+
.map(s => String(s.id));
|
|
331
|
+
const targetSelected = selectedAtParent.includes(String(vc.value));
|
|
332
|
+
const shouldShow = vc.operator === '=' ? targetSelected : !targetSelected;
|
|
333
|
+
if (shouldShow) {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
if (this.clearStaleOption(opt.id)) {
|
|
337
|
+
clearedSomething = true;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
if (!clearedSomething) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
clearStaleOption(optionId) {
|
|
346
|
+
const opt = this.optionsData.find(o => o.id === optionId);
|
|
347
|
+
if (!opt) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
const beforeLen = this.selectedOptions.length;
|
|
351
|
+
this.selectedOptions = this.selectedOptions.filter(s => s.option_id !== optionId);
|
|
352
|
+
const removedFromSelected = this.selectedOptions.length !== beforeLen;
|
|
353
|
+
const hasValue = opt.value != null && String(opt.value).length > 0;
|
|
354
|
+
const hadSelectedDetail = opt.details?.some(d => d.is_selected) ?? false;
|
|
355
|
+
if (!removedFromSelected && !hasValue && !hadSelectedDetail) {
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
this.optionsData = this.optionsData.map(o => o.id !== optionId
|
|
359
|
+
? o
|
|
360
|
+
: {
|
|
361
|
+
...o,
|
|
362
|
+
value: undefined,
|
|
363
|
+
details: o.details?.map(d => ({ ...d, is_selected: false })) ?? o.details,
|
|
364
|
+
});
|
|
365
|
+
return true;
|
|
366
|
+
}
|
|
305
367
|
getLatLng(value, type) {
|
|
306
368
|
return value
|
|
307
369
|
? value.split(',')[type === 'lat' ? 0 : 1]
|