@salla.sa/twilight-components 2.14.400 → 2.14.402
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-8oBYaby8.js → filepond-PWJcd3M3.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-C9_FxKYE.js → filepond-plugin-file-poster-Bt4qeA2f.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DH5y0nbW.js → filepond-plugin-file-validate-size-C-9PDDsS.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CeUAOvr1.js → filepond-plugin-file-validate-type-tA2SP9JO.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BBY0rrW9.js → filepond-plugin-image-edit-jcfxLe8v.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CFHoWFvz.js → filepond-plugin-image-exif-orientation-DVDjcytZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CUvopkJW.js → filepond-plugin-image-preview-CenIamTW.js} +1 -1
- package/dist/cjs/{index-CTlqP1j4.js → index-Cuq57q32.js} +2 -2
- package/dist/cjs/{index-CXnvDEKA.js → index-ZlRhYmjA.js} +1 -1
- 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_4.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-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +18 -4
- 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 +43 -5
- 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-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-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- 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.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-products-slider.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-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/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DIOht-QE.js → vanilla-picker-C8OtoDdM.js} +1 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +17 -3
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +33 -3
- package/dist/collection/components/salla-comments/salla-comment-item.js +1 -1
- package/dist/collection/components/salla-comments/salla-comments.js +34 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bullet-delivery.js +17 -3
- package/dist/components/salla-comment-form2.js +17 -4
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +26 -1
- package/dist/esm/{filepond-C3JoxS5H.js → filepond-kua7JWt0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BtPqGW1l.js → filepond-plugin-file-poster-D9ZjwPcg.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CzU4paDx.js → filepond-plugin-file-validate-size-BVMhUXTI.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-vDW3qAnV.js → filepond-plugin-file-validate-type-CkwmRCJd.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-D7B65tS9.js → filepond-plugin-image-edit-YEt9I2Ff.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CG2VBxZQ.js → filepond-plugin-image-exif-orientation-B5Q7AlDn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-D3kctuA5.js → filepond-plugin-image-preview-B3J-p8BK.js} +1 -1
- package/dist/esm/{index-NBDrHfxi.js → index-BYCfehfD.js} +2 -2
- package/dist/esm/{index-CEMIzZOC.js → index-Qfjn4tFb.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_4.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-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery.entry.js +18 -4
- 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 +43 -5
- 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-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-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- 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.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-products-slider.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-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/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DBbYurWw.js → vanilla-picker-B4glVCCp.js} +1 -1
- package/dist/twilight/{p-88b8dbb0.entry.js → p-011ff091.entry.js} +1 -1
- package/dist/twilight/{p-da07cf74.entry.js → p-078c884b.entry.js} +1 -1
- package/dist/twilight/{p-651bf6b4.entry.js → p-09fcfe8f.entry.js} +1 -1
- package/dist/twilight/{p-a446e236.entry.js → p-0b265c17.entry.js} +1 -1
- package/dist/twilight/{p-6c963eef.entry.js → p-0cfd333a.entry.js} +1 -1
- package/dist/twilight/{p-628f6c31.entry.js → p-140f5001.entry.js} +1 -1
- package/dist/twilight/{p-4adfbc23.entry.js → p-156660b7.entry.js} +1 -1
- package/dist/twilight/p-15d44ede.entry.js +4 -0
- package/dist/twilight/{p-c1e6c417.entry.js → p-164ae46f.entry.js} +1 -1
- package/dist/twilight/{p-4269d1ab.entry.js → p-1819894b.entry.js} +1 -1
- package/dist/twilight/{p-7db1d294.entry.js → p-24b86104.entry.js} +1 -1
- package/dist/twilight/{p-a15e729f.entry.js → p-28fba512.entry.js} +1 -1
- package/dist/twilight/{p-aa3fff4a.entry.js → p-2a19f553.entry.js} +1 -1
- package/dist/twilight/{p-d72ca3c9.entry.js → p-2edec63c.entry.js} +1 -1
- package/dist/twilight/{p-ce6c7675.entry.js → p-2f060d69.entry.js} +1 -1
- package/dist/twilight/{p-76657623.entry.js → p-30695c34.entry.js} +1 -1
- package/dist/twilight/{p-845757fa.entry.js → p-32a21d3e.entry.js} +1 -1
- package/dist/twilight/{p-4c5165f2.entry.js → p-336f0f06.entry.js} +1 -1
- package/dist/twilight/{p-316c06ab.entry.js → p-39ad489e.entry.js} +1 -1
- package/dist/twilight/{p-97be11f8.entry.js → p-3df24aaf.entry.js} +1 -1
- package/dist/twilight/{p-1308876f.entry.js → p-3ed67200.entry.js} +1 -1
- package/dist/twilight/{p-95c5460a.entry.js → p-470433cb.entry.js} +1 -1
- package/dist/twilight/{p-dfd9ad83.entry.js → p-4797dab5.entry.js} +1 -1
- package/dist/twilight/{p-49da4d80.entry.js → p-4e941f6a.entry.js} +1 -1
- package/dist/twilight/{p-48fb61ee.entry.js → p-52192d08.entry.js} +1 -1
- package/dist/twilight/{p-4b466145.entry.js → p-5381a86d.entry.js} +1 -1
- package/dist/twilight/{p-83cc5e65.entry.js → p-54c7e570.entry.js} +1 -1
- package/dist/twilight/{p-7a545ff1.entry.js → p-5871fc28.entry.js} +1 -1
- package/dist/twilight/{p-2137a11f.entry.js → p-5ca700cd.entry.js} +1 -1
- package/dist/twilight/{p-6a4489da.entry.js → p-5fe6bb62.entry.js} +1 -1
- package/dist/twilight/{p-85bbede4.entry.js → p-60aa25f0.entry.js} +1 -1
- package/dist/twilight/{p-b68bee1a.entry.js → p-62b949f1.entry.js} +1 -1
- package/dist/twilight/{p-0483d511.entry.js → p-63778992.entry.js} +1 -1
- package/dist/twilight/{p-8312c50c.entry.js → p-64fe6c2f.entry.js} +1 -1
- package/dist/twilight/{p-d88ba652.entry.js → p-65928570.entry.js} +1 -1
- package/dist/twilight/{p-b01d79c5.entry.js → p-67f20b74.entry.js} +1 -1
- package/dist/twilight/{p-0765013e.entry.js → p-6cf0e5f0.entry.js} +1 -1
- package/dist/twilight/{p-6b255e44.entry.js → p-6f0a262a.entry.js} +1 -1
- package/dist/twilight/{p-909f8055.entry.js → p-72487957.entry.js} +1 -1
- package/dist/twilight/{p-56be56e1.entry.js → p-7c78c1a5.entry.js} +1 -1
- package/dist/twilight/{p-30ea3256.entry.js → p-887c9a29.entry.js} +1 -1
- package/dist/twilight/{p-5a35d33a.entry.js → p-8d9b1865.entry.js} +1 -1
- package/dist/twilight/{p-e7a55f86.entry.js → p-90045f50.entry.js} +1 -1
- package/dist/twilight/{p-eb8a1a26.entry.js → p-955aab42.entry.js} +1 -1
- package/dist/twilight/{p-a184090f.entry.js → p-97aad44a.entry.js} +1 -1
- package/dist/twilight/{p-281511b7.entry.js → p-99aa0a59.entry.js} +1 -1
- package/dist/twilight/{p-D-4mkc7-.js → p-9XUl8eNt.js} +1 -1
- package/dist/twilight/{p-NBDrHfxi.js → p-BYCfehfD.js} +1 -1
- package/dist/twilight/{p-DBURTRIs.js → p-C45ROGL4.js} +1 -1
- package/dist/twilight/{p-BGX5s3RM.js → p-CVG84YNJ.js} +1 -1
- package/dist/twilight/{p-Dsmct0bT.js → p-D2bKqo2L.js} +1 -1
- package/dist/twilight/{p-sc0K09yT.js → p-DPak7cFa.js} +1 -1
- package/dist/twilight/{p-J_Xt7993.js → p-DtXQ785R.js} +1 -1
- package/dist/twilight/{p-CGCKtSMz.js → p-Dx9FGzIq.js} +1 -1
- package/dist/twilight/{p-BYvYgYyR.js → p-Wts3eSQu.js} +1 -1
- package/dist/twilight/{p-247ea302.entry.js → p-a0171740.entry.js} +1 -1
- package/dist/twilight/{p-zDAub2oK.js → p-a8mIwFp8.js} +1 -1
- package/dist/twilight/{p-7f55a45e.entry.js → p-ac973857.entry.js} +1 -1
- package/dist/twilight/{p-e0fdbe87.entry.js → p-af6a34af.entry.js} +1 -1
- package/dist/twilight/{p-150d9ac5.entry.js → p-b80c87f3.entry.js} +1 -1
- package/dist/twilight/{p-b3981d77.entry.js → p-ba128435.entry.js} +1 -1
- package/dist/twilight/{p-9cdacf0b.entry.js → p-c5a12dde.entry.js} +1 -1
- package/dist/twilight/{p-71fea388.entry.js → p-c5ab5c1b.entry.js} +1 -1
- package/dist/twilight/{p-6fcec199.entry.js → p-c65832b1.entry.js} +1 -1
- package/dist/twilight/{p-4b36ece0.entry.js → p-cd9f175a.entry.js} +1 -1
- package/dist/twilight/{p-cd3b5f80.entry.js → p-d112b260.entry.js} +1 -1
- package/dist/twilight/{p-d2680a8c.entry.js → p-d130f149.entry.js} +1 -1
- package/dist/twilight/{p-95e85f05.entry.js → p-d3a119aa.entry.js} +1 -1
- package/dist/twilight/{p-a8ae86e2.entry.js → p-d4f3797c.entry.js} +1 -1
- package/dist/twilight/{p-af018a37.entry.js → p-d93e90fb.entry.js} +1 -1
- package/dist/twilight/{p-2da209d8.entry.js → p-d9b8aa69.entry.js} +1 -1
- package/dist/twilight/{p-cef3ce10.entry.js → p-e23cc9c1.entry.js} +1 -1
- package/dist/twilight/{p-677f58c6.entry.js → p-e5ccdc1d.entry.js} +1 -1
- package/dist/twilight/{p-f94df09f.entry.js → p-ea0c19be.entry.js} +1 -1
- package/dist/twilight/{p-47609dd0.entry.js → p-ebb782d3.entry.js} +1 -1
- package/dist/twilight/{p-7488ee16.entry.js → p-ec873193.entry.js} +1 -1
- package/dist/twilight/{p-3e0c6da6.entry.js → p-ee14a23d.entry.js} +1 -1
- package/dist/twilight/{p-1422dc91.entry.js → p-f136e41b.entry.js} +1 -1
- package/dist/twilight/{p-a870f6da.entry.js → p-f4060b10.entry.js} +1 -1
- package/dist/twilight/{p-8fb92a3e.entry.js → p-f4c6434f.entry.js} +1 -1
- package/dist/twilight/p-f68e2787.entry.js +4 -0
- package/dist/twilight/{p-68437972.entry.js → p-f8183098.entry.js} +1 -1
- package/dist/twilight/{p-d48fb649.entry.js → p-f8527980.entry.js} +1 -1
- package/dist/twilight/{p-17f5e992.entry.js → p-fa3ceb7c.entry.js} +1 -1
- package/dist/twilight/{p-99320491.entry.js → p-fa44f874.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +5 -0
- package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +15 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +4 -0
- package/dist/types/components.d.ts +35 -0
- package/package.json +5 -5
- package/dist/twilight/p-849a530e.entry.js +0 -4
- package/dist/twilight/p-d8031f07.entry.js +0 -4
|
@@ -536,6 +536,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
536
536
|
* Closes the bullet delivery modal
|
|
537
537
|
*/
|
|
538
538
|
async close() {
|
|
539
|
+
if (this.shouldForceNonClosable() && !this.confirming) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
539
542
|
// If submit flow is waiting and user dismissed the modal, release the pending gate.
|
|
540
543
|
if (this.cartSubmitConfirmationPending && !this.confirming) {
|
|
541
544
|
this.resolvePendingCartSubmit();
|
|
@@ -633,6 +636,17 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
633
636
|
return !!intent.branch_id;
|
|
634
637
|
return false;
|
|
635
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Authenticated users on the cart page must select/confirm an address before
|
|
641
|
+
* they can dismiss the modal.
|
|
642
|
+
*/
|
|
643
|
+
shouldForceNonClosable() {
|
|
644
|
+
if (this.isGuestUser())
|
|
645
|
+
return false;
|
|
646
|
+
if (!Salla.url.is_page("cart"))
|
|
647
|
+
return false;
|
|
648
|
+
return !this.hasCompleteIntentForLoggedInUser();
|
|
649
|
+
}
|
|
636
650
|
shouldPromptIncompleteIntentThisSession() {
|
|
637
651
|
const storage = this.getShownStorage();
|
|
638
652
|
return (this.hasIncompleteUserAddressIntent() &&
|
|
@@ -1810,7 +1824,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1810
1824
|
const activeTabView = this.activeTab === "branch" && this.supportsPickup
|
|
1811
1825
|
? this.renderPickupTab()
|
|
1812
1826
|
: this.renderDeliveryTab();
|
|
1813
|
-
return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, Salla.lang.get(
|
|
1827
|
+
return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.add_address_for_order_delivery') : Salla.lang.get('blocks.home.how_prefer_to_receive_order')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping') : Salla.lang.get('blocks.home.products_available_for_delivery_or_pickup_shown_while_shopping'))), this.renderTabs(), this.showCartWillBeClearedBanner &&
|
|
1814
1828
|
this.renderAlert(Salla.lang.get("blocks.scope.empty_cart_warning")), this.allocationOutOfCoverageMessage &&
|
|
1815
1829
|
this.renderAllocationOutOfCoverageAlert(), activeTabView, !isAddressEmptyState && this.renderFooter()));
|
|
1816
1830
|
}
|
|
@@ -1935,9 +1949,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1935
1949
|
}
|
|
1936
1950
|
}
|
|
1937
1951
|
render() {
|
|
1938
|
-
return (h(Host, { key: '
|
|
1952
|
+
return (h(Host, { key: 'd394b11d70bea07946e29d6d61222f8cd75baa15', class: "s-bullet-delivery" }, h("salla-modal", { key: '63b559f49babc32958bb191b3ebfed13a1b7a7ad', ref: (modal) => {
|
|
1939
1953
|
this.modal = modal;
|
|
1940
|
-
}, isClosable: !this.isRequired, class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
|
|
1954
|
+
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
|
|
1941
1955
|
}
|
|
1942
1956
|
componentDidLoad() {
|
|
1943
1957
|
// Mark component as ready
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
4
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { d as defineCustomElement$1 } from './salla-button2.js';
|
|
6
6
|
|
|
7
7
|
const sallaCommentFormCss = ":host{display:block}";
|
|
@@ -10,6 +10,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
|
+
this.commentAdded = createEvent(this, "commentAdded", 7);
|
|
13
14
|
this.placeholder = salla.lang.get('blocks.comments.placeholder');
|
|
14
15
|
this.submitText = salla.lang.get('blocks.comments.submit');
|
|
15
16
|
salla.lang.onLoaded(() => {
|
|
@@ -27,12 +28,24 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
|
|
|
27
28
|
salla.log('CommentForm:: validation error!');
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
31
|
+
const commentText = this.commentField.value;
|
|
30
32
|
this.submitBtn.load()
|
|
31
|
-
.then(() => salla.comment.add({ id: this.itemId, comment:
|
|
32
|
-
.
|
|
33
|
+
.then(() => salla.comment.add({ id: this.itemId, comment: commentText, type: this.type }))
|
|
34
|
+
.then(() => {
|
|
35
|
+
this.commentAdded.emit({
|
|
36
|
+
name: salla.config.get('user.name'),
|
|
37
|
+
avatar: salla.config.get('user.avatar'),
|
|
38
|
+
content: commentText,
|
|
39
|
+
is_pending: true,
|
|
40
|
+
created_at: { date: new Date().toISOString().replace('T', ' ').substring(0, 19) },
|
|
41
|
+
images: [],
|
|
42
|
+
});
|
|
43
|
+
this.commentField.value = '';
|
|
44
|
+
})
|
|
45
|
+
.finally(() => this.submitBtn.stop());
|
|
33
46
|
}
|
|
34
47
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
|
|
36
49
|
h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
|
|
37
50
|
}
|
|
38
51
|
static get style() { return sallaCommentFormCss; }
|
|
@@ -151,7 +151,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
151
151
|
h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
152
152
|
: null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
|
|
153
153
|
h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
|
|
154
|
-
: null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
154
|
+
: null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
155
155
|
h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
156
156
|
this.getReplies().map((reply) => {
|
|
157
157
|
return h("div", null, h("salla-comment-item", { comment: reply }));
|
|
@@ -233,6 +233,31 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
|
|
|
233
233
|
return this.loadInitialData();
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Catch the commentAdded event emitted by salla-comment-form and instantly render it
|
|
238
|
+
*/
|
|
239
|
+
onCommentAdded(event) {
|
|
240
|
+
const comment = event.detail;
|
|
241
|
+
if (!comment)
|
|
242
|
+
return;
|
|
243
|
+
// If comments were empty, clear the placeholder and initialize the list
|
|
244
|
+
if (this.showPlaceholder || !this.total) {
|
|
245
|
+
this.showPlaceholder = false;
|
|
246
|
+
this.total = (this.total || 0) + 1;
|
|
247
|
+
this.comments = this.comments || [];
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
this.total = (this.total || 0) + 1;
|
|
251
|
+
}
|
|
252
|
+
// Wait for next render tick so wrapper is available if placeholder was just removed
|
|
253
|
+
setTimeout(() => {
|
|
254
|
+
if (!this.wrapper)
|
|
255
|
+
return;
|
|
256
|
+
const commentItem = this.getCommentHTML(comment);
|
|
257
|
+
this.wrapper.prepend(commentItem);
|
|
258
|
+
this.animateItems([commentItem]);
|
|
259
|
+
}, 0);
|
|
260
|
+
}
|
|
236
261
|
// Load initial data
|
|
237
262
|
async loadInitialData() {
|
|
238
263
|
try {
|
|
@@ -331,7 +356,7 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
|
|
|
331
356
|
"showRatingSummary": [32],
|
|
332
357
|
"allowLikes": [32],
|
|
333
358
|
"reload": [64]
|
|
334
|
-
}]);
|
|
359
|
+
}, [[0, "commentAdded", "onCommentAdded"]]]);
|
|
335
360
|
function defineCustomElement$1() {
|
|
336
361
|
if (typeof customElements === "undefined") {
|
|
337
362
|
return;
|