@salla.sa/twilight-components 2.14.474 → 2.14.476
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-BdUelG-L.js → filepond-CJ-ohhaG.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BWMBvXBX.js → filepond-plugin-file-poster-DEg147-W.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-ClFff__s.js → filepond-plugin-file-validate-size-Cd9ZtF22.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-8wyxat9i.js → filepond-plugin-file-validate-type-Kse5TjAn.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DQabJpzQ.js → filepond-plugin-image-edit-DRgtgiQH.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BTLkUr22.js → filepond-plugin-image-exif-orientation-B6a2oJcX.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-dn2AxtBC.js → filepond-plugin-image-preview-UbYGoPcJ.js} +1 -1
- package/dist/cjs/{functions-DcP9sGZW.js → functions-lMzyaZ1L.js} +1 -1
- package/dist/cjs/{index-CYT7Hux3.js → index-CvkzTFUU.js} +2 -2
- package/dist/cjs/{index-DF0b75Bf.js → index-DbSdIHzI.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_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 +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +18 -2
- package/dist/cjs/salla-cashback-banner.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 +2 -2
- 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 +19 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.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 +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_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.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-options-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.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 +25 -6
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/{tracked-promise-BMhfZ5Gr.js → tracked-promise-ChTKDERU.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Dj5fVxjj.js → vanilla-picker-ClhLWTOR.js} +1 -1
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +17 -1
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +18 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +24 -5
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-summary.js +17 -1
- package/dist/components/salla-delivery-promise.js +1 -1
- package/dist/components/salla-localization-modal.js +18 -1
- package/dist/components/salla-scopes.js +24 -5
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-trust-badges.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{filepond-DCDAJ4wC.js → filepond-CI5IhawK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Da0qcNsD.js → filepond-plugin-file-poster-Br3XP08y.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BsEYt-WQ.js → filepond-plugin-file-validate-size-evoB_lus.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DKO_U3P0.js → filepond-plugin-file-validate-type-DINMO_PM.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BwQSyJd4.js → filepond-plugin-image-edit-BezFD6qn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Dvs_uurM.js → filepond-plugin-image-exif-orientation-DpQFMoWn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BWaZLmt7.js → filepond-plugin-image-preview-COAzYcXw.js} +1 -1
- package/dist/esm/{functions-DbO8Dw_w.js → functions-DRBXCFuf.js} +1 -1
- package/dist/esm/{index-C-PndMxl.js → index-CCmkpaUr.js} +2 -2
- package/dist/esm/{index-DgWfpEMc.js → index-Cbv5qmRi.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +18 -2
- package/dist/esm/salla-cashback-banner.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 +2 -2
- 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 +19 -2
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- 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_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.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-options-modal_3.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.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 +25 -6
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/{tracked-promise-CmiOu-Uh.js → tracked-promise-BeB1W9ZQ.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-BTvZMBWG.js → vanilla-picker-Bs4N6Pj2.js} +1 -1
- package/dist/twilight/{p-13fb479e.entry.js → p-039eadab.entry.js} +1 -1
- package/dist/twilight/{p-80a67bc8.entry.js → p-07a45122.entry.js} +1 -1
- package/dist/twilight/{p-14a901b0.entry.js → p-0cffb95f.entry.js} +1 -1
- package/dist/twilight/{p-969a3c6a.entry.js → p-101a336e.entry.js} +1 -1
- package/dist/twilight/{p-e08f7638.entry.js → p-1777e8cf.entry.js} +1 -1
- package/dist/twilight/p-181cac59.entry.js +4 -0
- package/dist/twilight/{p-7b9bcf99.entry.js → p-1e189138.entry.js} +1 -1
- package/dist/twilight/{p-7309ee90.entry.js → p-20b5e26a.entry.js} +1 -1
- package/dist/twilight/{p-1b5db3b8.entry.js → p-21d8849a.entry.js} +1 -1
- package/dist/twilight/{p-25f56a07.entry.js → p-240c246f.entry.js} +1 -1
- package/dist/twilight/{p-e1a3d4ce.entry.js → p-26146e88.entry.js} +1 -1
- package/dist/twilight/{p-110e828f.entry.js → p-2ba4c828.entry.js} +1 -1
- package/dist/twilight/{p-91800e57.entry.js → p-2bb4bb3f.entry.js} +1 -1
- package/dist/twilight/{p-cda84e40.entry.js → p-2ebb5fd5.entry.js} +1 -1
- package/dist/twilight/{p-87818d3f.entry.js → p-2ed22900.entry.js} +1 -1
- package/dist/twilight/{p-1b3e3361.entry.js → p-33bd4967.entry.js} +1 -1
- package/dist/twilight/{p-16c3d48a.entry.js → p-34665b64.entry.js} +1 -1
- package/dist/twilight/{p-6dfbcc8d.entry.js → p-394ffd54.entry.js} +1 -1
- package/dist/twilight/{p-ac9b02f5.entry.js → p-43265b28.entry.js} +1 -1
- package/dist/twilight/{p-174a56e5.entry.js → p-49ff092f.entry.js} +1 -1
- package/dist/twilight/{p-1ec1b240.entry.js → p-4b1603e1.entry.js} +1 -1
- package/dist/twilight/{p-109c829a.entry.js → p-4ba215e9.entry.js} +1 -1
- package/dist/twilight/{p-1476ad01.entry.js → p-4c5cebdc.entry.js} +1 -1
- package/dist/twilight/{p-d7c27d51.entry.js → p-5280ac1a.entry.js} +1 -1
- package/dist/twilight/{p-5867e7c1.entry.js → p-52f364c5.entry.js} +1 -1
- package/dist/twilight/{p-4e625abb.entry.js → p-53e247f7.entry.js} +1 -1
- package/dist/twilight/{p-7de60979.entry.js → p-575f3be3.entry.js} +1 -1
- package/dist/twilight/{p-23f25bf0.entry.js → p-5d0bf892.entry.js} +1 -1
- package/dist/twilight/{p-5b1c769e.entry.js → p-5d15dc88.entry.js} +1 -1
- package/dist/twilight/{p-8a4c555f.entry.js → p-5d2d2f9c.entry.js} +1 -1
- package/dist/twilight/{p-de76dbff.entry.js → p-5ee85309.entry.js} +1 -1
- package/dist/twilight/{p-d6fc2ef1.entry.js → p-639e4dcc.entry.js} +1 -1
- package/dist/twilight/{p-3af9c0af.entry.js → p-63cbc37e.entry.js} +1 -1
- package/dist/twilight/{p-db82e1bd.entry.js → p-64d12607.entry.js} +1 -1
- package/dist/twilight/{p-d10afd3f.entry.js → p-64f43db0.entry.js} +1 -1
- package/dist/twilight/{p-0330dcd7.entry.js → p-67391111.entry.js} +1 -1
- package/dist/twilight/{p-c5cf6c2e.entry.js → p-67ca7c30.entry.js} +1 -1
- package/dist/twilight/{p-b8af3447.entry.js → p-6e0c8680.entry.js} +1 -1
- package/dist/twilight/{p-8131250d.entry.js → p-75b6878c.entry.js} +1 -1
- package/dist/twilight/p-762336bc.entry.js +4 -0
- package/dist/twilight/{p-4424442a.entry.js → p-79392bfc.entry.js} +1 -1
- package/dist/twilight/{p-66489c0d.entry.js → p-80961ab7.entry.js} +1 -1
- package/dist/twilight/{p-91a557e0.entry.js → p-828ef579.entry.js} +1 -1
- package/dist/twilight/{p-6af9a488.entry.js → p-8503018c.entry.js} +1 -1
- package/dist/twilight/{p-280ab1e5.entry.js → p-85e1e3a0.entry.js} +1 -1
- package/dist/twilight/{p-c0f50984.entry.js → p-8ea37098.entry.js} +1 -1
- package/dist/twilight/p-9070f24e.entry.js +4 -0
- package/dist/twilight/{p-2cf17023.entry.js → p-91048b10.entry.js} +1 -1
- package/dist/twilight/{p-27b81281.entry.js → p-93063769.entry.js} +1 -1
- package/dist/twilight/{p-34d68783.entry.js → p-935eaeee.entry.js} +1 -1
- package/dist/twilight/{p-57d27e60.entry.js → p-958c0578.entry.js} +1 -1
- package/dist/twilight/{p-b5664152.entry.js → p-990afbbd.entry.js} +1 -1
- package/dist/twilight/{p-4e69b834.entry.js → p-9b137fc1.entry.js} +1 -1
- package/dist/twilight/{p-95a16f0b.entry.js → p-9f924f46.entry.js} +1 -1
- package/dist/twilight/p-BRd7Uttn.js +4 -0
- package/dist/twilight/{p-TsnrHTxa.js → p-BpTzhiML.js} +1 -1
- package/dist/twilight/{p-rW7_MDCt.js → p-CCIAKfEz.js} +1 -1
- package/dist/twilight/{p-C-PndMxl.js → p-CCmkpaUr.js} +1 -1
- package/dist/twilight/{p-BFJGy0hY.js → p-CRXgfxZz.js} +1 -1
- package/dist/twilight/{p-DBRGg-00.js → p-CbUMLp_K.js} +1 -1
- package/dist/twilight/{p-BmUHDajQ.js → p-D2k9qKuv.js} +1 -1
- package/dist/twilight/{p-Dvc8G0GF.js → p-Dn4aj2-G.js} +1 -1
- package/dist/twilight/p-Dn4zZcaL.js +9 -0
- package/dist/twilight/{p-BbeyurLe.js → p-DqwP04u2.js} +1 -1
- package/dist/twilight/{p-BzTOc4vV.js → p-XVDeaVNt.js} +1 -1
- package/dist/twilight/{p-39f65074.entry.js → p-a3f43f0c.entry.js} +1 -1
- package/dist/twilight/{p-63b46104.entry.js → p-ac4d2fda.entry.js} +1 -1
- package/dist/twilight/{p-ebe09298.entry.js → p-b12bb5de.entry.js} +1 -1
- package/dist/twilight/{p-1916c837.entry.js → p-b4769ff3.entry.js} +1 -1
- package/dist/twilight/{p-f09a5e0a.entry.js → p-b7225165.entry.js} +1 -1
- package/dist/twilight/{p-bcba0950.entry.js → p-b7ef118c.entry.js} +2 -2
- package/dist/twilight/{p-387f9490.entry.js → p-b8b84400.entry.js} +1 -1
- package/dist/twilight/{p-73e24084.entry.js → p-be1143ce.entry.js} +1 -1
- package/dist/twilight/{p-84005dcf.entry.js → p-bf8b1264.entry.js} +1 -1
- package/dist/twilight/{p-569eaa07.entry.js → p-c4548a08.entry.js} +1 -1
- package/dist/twilight/{p-a5edeb2c.entry.js → p-c598e4ad.entry.js} +1 -1
- package/dist/twilight/{p-84f3a7a8.entry.js → p-c6b00d42.entry.js} +1 -1
- package/dist/twilight/{p-23090cbc.entry.js → p-c726eb0c.entry.js} +1 -1
- package/dist/twilight/{p-01fadb8c.entry.js → p-cb13109f.entry.js} +1 -1
- package/dist/twilight/{p-3001e6c0.entry.js → p-cd43186a.entry.js} +1 -1
- package/dist/twilight/{p-54c1218d.entry.js → p-ce96edb8.entry.js} +1 -1
- package/dist/twilight/{p-a6a15f9b.entry.js → p-d8e62777.entry.js} +1 -1
- package/dist/twilight/{p-1e68cfb0.entry.js → p-db1a17f6.entry.js} +1 -1
- package/dist/twilight/{p-21f5bee9.entry.js → p-df6bb4de.entry.js} +1 -1
- package/dist/twilight/{p-b4a47d34.entry.js → p-e0b35b22.entry.js} +1 -1
- package/dist/twilight/{p-f1189d5b.entry.js → p-e21d39fe.entry.js} +1 -1
- package/dist/twilight/{p-dfba9f3f.entry.js → p-e61c518b.entry.js} +1 -1
- package/dist/twilight/{p-ec5aa9b2.entry.js → p-e8ba458c.entry.js} +1 -1
- package/dist/twilight/{p-349cae47.entry.js → p-ec0cf9b1.entry.js} +1 -1
- package/dist/twilight/{p-e5baf7d6.entry.js → p-ec55b19d.entry.js} +1 -1
- package/dist/twilight/{p-027b2e6c.entry.js → p-f1f8b22c.entry.js} +1 -1
- package/dist/twilight/p-f512d962.entry.js +4 -0
- package/dist/twilight/p-f6bdf794.entry.js +4 -0
- package/dist/twilight/{p-0a3cd575.entry.js → p-fceb9538.entry.js} +1 -1
- package/dist/twilight/p-fd08f948.entry.js +4 -0
- package/dist/twilight/{p-6ed6b06b.entry.js → p-fd434f3d.entry.js} +1 -1
- package/dist/twilight/{p-9eccfeb3.entry.js → p-fdeb9fff.entry.js} +1 -1
- package/dist/twilight/{p-3954282f.entry.js → p-fe06c38a.entry.js} +1 -1
- package/dist/twilight/{p-5de3603d.entry.js → p-fecf9d4d.entry.js} +1 -1
- package/dist/twilight/{p-FsSGk0KM.js → p-nN-08mtR.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +8 -0
- package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +6 -0
- package/dist/types/components/salla-scopes/salla-scopes.d.ts +8 -0
- package/package.json +5 -5
- package/dist/twilight/p-074ddb49.entry.js +0 -4
- package/dist/twilight/p-1c8354c5.entry.js +0 -4
- package/dist/twilight/p-9c00e83f.entry.js +0 -4
- package/dist/twilight/p-BQw6MUsC.js +0 -4
- package/dist/twilight/p-FxCmxZkw.js +0 -9
- package/dist/twilight/p-bf614ee0.entry.js +0 -4
- package/dist/twilight/p-e3bf2952.entry.js +0 -4
- package/dist/twilight/p-e7758c92.entry.js +0 -4
|
@@ -14,6 +14,22 @@ const SallaCartSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartSumma
|
|
|
14
14
|
this.cartSummaryCount = salla.storage.get('cart.summary.count') || 0;
|
|
15
15
|
this.cartSummaryTotal = salla.storage.get('cart.summary.total') || 0;
|
|
16
16
|
this.cartLabel = salla.config.get('user.language_code') === 'ar' ? 'السلة' : 'Cart';
|
|
17
|
+
/**
|
|
18
|
+
* NEW, opt-in override (gated on `theme.is_spa_webview`): only inside the SPA webview does the
|
|
19
|
+
* native shell own the cart/checkout screen, so we intercept the tap and hand the cart URL to
|
|
20
|
+
* the native bridge instead of letting the webview navigate. On web, in any existing mobile app
|
|
21
|
+
* without the flag, or when the bridge isn't available to handle it, the anchor's href is
|
|
22
|
+
* followed normally — so the button never breaks.
|
|
23
|
+
*/
|
|
24
|
+
this.handleCheckoutClick = (e) => {
|
|
25
|
+
// Confirm the bridge can actually open checkout BEFORE preventing default — otherwise a shell
|
|
26
|
+
// that predates the openCheckout command would block navigation with nothing to fall back to
|
|
27
|
+
// (stuck checkout). When it can't, the anchor's href is followed normally.
|
|
28
|
+
if (salla.config.get('theme.is_spa_webview') && salla.mobile?.isEnabled?.() && salla.mobile.openCheckout) {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
salla.mobile.openCheckout(this.getCartLink());
|
|
31
|
+
}
|
|
32
|
+
};
|
|
17
33
|
salla.cart.event.onUpdated((response) => {
|
|
18
34
|
this.cartSummaryCount = response.count || 0;
|
|
19
35
|
this.cartSummaryTotal = response.total || 0;
|
|
@@ -107,7 +123,7 @@ const SallaCartSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartSumma
|
|
|
107
123
|
return cartUrl;
|
|
108
124
|
}
|
|
109
125
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '53d6025626701e19c64643f9e62ccaa2daa656a9' }, h("a", { key: 'c1d88b8ad74590394c9acfa9ed8b88ec6db7bde7', class: "s-cart-summary-wrapper", href: this.getCartLink(), onClick: this.handleCheckoutClick }, h("div", { key: '2b01745e18463d81fee379ccef230f23f0e3d9df', id: "s-cart-icon" }, h("slot", { key: '714ca2f44c5c9f77eb14c755f55d1b1146deca40', name: "icon" }, h("i", { key: 'fa96424523444146a7f9be629251763ba2845fca', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { key: 'b427766d04b4917542ff7be82e0b6841027caea6', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: 'f5566215452c961de8ea5225864536195a2f9932', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: 'fa9b82099badd45f4e9dfb0f0057dba07a92cebd', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'bd4dca3eb12509281b34514118469a5e6abc2fa5', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
|
|
111
127
|
}
|
|
112
128
|
get host() { return this; }
|
|
113
129
|
static get style() { return sallaCartSummaryCss; }
|
|
@@ -200,7 +200,7 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
200
200
|
await salla.lang.onLoaded();
|
|
201
201
|
this.labels = loadLabels();
|
|
202
202
|
this.isDeliveryPromiseEnabled = salla.config.get('store.features', []).includes('delivery-promises');
|
|
203
|
-
this.isLoginCycleEnabled = salla.config.get('store.features', []).includes('bullet-delivery-v2');
|
|
203
|
+
this.isLoginCycleEnabled = salla.config.get('store.features', []).includes('bullet-delivery-v2') && Salla.config.get('store.settings.bullet_delivery.enabled');
|
|
204
204
|
this.productId = salla.config.get('page.id');
|
|
205
205
|
if (!this.isDeliveryPromiseEnabled) {
|
|
206
206
|
this.canRender = false;
|
|
@@ -112,6 +112,13 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
|
|
|
112
112
|
await Salla.onReady();
|
|
113
113
|
await Salla.lang.onLoaded();
|
|
114
114
|
Salla.event.on('localization::open', () => this.open());
|
|
115
|
+
// currency::open / language::open mirror localization::open on web (open this same modal).
|
|
116
|
+
// Inside a native app the shell owns the currency/language sheets — the Salla.mobile bridge
|
|
117
|
+
// already forwards both events to native — so don't ALSO open the web modal there. This is new
|
|
118
|
+
// logic (nothing opened this modal on these events before), so gate on isMobileApp() directly;
|
|
119
|
+
// theme.is_spa_webview is not required here.
|
|
120
|
+
Salla.event.on('currency::open', () => this.openUnlessNative());
|
|
121
|
+
Salla.event.on('language::open', () => this.openUnlessNative());
|
|
115
122
|
if (!this.language) {
|
|
116
123
|
this.language = Salla.config.get('user.language_code');
|
|
117
124
|
}
|
|
@@ -121,6 +128,16 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
|
|
|
121
128
|
// Pre-load currencies so the trigger can resolve unknown codes via API fallback before the modal opens
|
|
122
129
|
Salla.api.withoutNotifier(() => this.getCurrencies()).catch(() => null);
|
|
123
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Open the web modal unless we're inside a native app, where the shell owns the currency/language
|
|
133
|
+
* sheet (the Salla.mobile bridge forwards currency::open / language::open to native). Used only by
|
|
134
|
+
* the new currency::open / language::open listeners — localization::open always opens the web modal.
|
|
135
|
+
*/
|
|
136
|
+
openUnlessNative() {
|
|
137
|
+
if (Salla.config.isMobileApp())
|
|
138
|
+
return;
|
|
139
|
+
this.open();
|
|
140
|
+
}
|
|
124
141
|
/**
|
|
125
142
|
* open the component
|
|
126
143
|
*/
|
|
@@ -229,7 +246,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
|
|
|
229
246
|
this.showTrigger
|
|
230
247
|
? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
|
|
231
248
|
: '',
|
|
232
|
-
h("salla-modal", { key: '
|
|
249
|
+
h("salla-modal", { key: 'f8c4089089cc05dcc26628ca92dff99a1604d5ee', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '61d4450ea6277a3848512c4a91bbe823dd8d2813', slot: 'loading' }, h("div", { key: 'e2416822d2f660bb75284e17cb0d4408b25073b3', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '529ac08f5fdd3442e63d3272e43075d30dc67bb3', width: '25%', height: '15px' }), h("div", { key: '9b87c3ff232922c2bb27f9064afe6e203532e624', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'ff35e7d5ccdb6fafc599bdaefb5390d3cba7a8a6', width: '25%', height: '15px' }), h("div", { key: 'abef2a071f3818fd980023522d118e64466d77e8', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '15611b13fb120fc02b79c4d341aa8ecd7a4265fc', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
233
250
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
|
|
234
251
|
h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
235
252
|
h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
@@ -60,13 +60,23 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
60
60
|
}
|
|
61
61
|
return salla.lang.get('blocks.scope.search_for_availability_in_other_branches');
|
|
62
62
|
};
|
|
63
|
-
salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
|
|
63
|
+
salla.event.on('scopes::open', ({ mode = null, product_id = null } = {}) => {
|
|
64
64
|
this.open(mode, product_id);
|
|
65
65
|
});
|
|
66
66
|
salla.lang.onLoaded(() => {
|
|
67
67
|
this.translationLoaded = true;
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Whether to hand scope selection to the native app instead of rendering the web modal.
|
|
72
|
+
* NEW, opt-in override gated on `theme.is_spa_webview`: only the SPA webview delegates the scope
|
|
73
|
+
* sheet to native — existing mobile apps keep the web modal, so this is not a breaking change.
|
|
74
|
+
* Still require the bridge to be live so a shell that can't handle it degrades gracefully to the
|
|
75
|
+
* web modal rather than leaving scope selection with no UI at all.
|
|
76
|
+
*/
|
|
77
|
+
get isNativeApp() {
|
|
78
|
+
return !!salla.config.get('theme.is_spa_webview') && !!salla.mobile?.isEnabled?.();
|
|
79
|
+
}
|
|
70
80
|
/**
|
|
71
81
|
* Closes the scope modal.
|
|
72
82
|
*/
|
|
@@ -77,6 +87,12 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
77
87
|
* Opens the scope modal.
|
|
78
88
|
*/
|
|
79
89
|
async open(mode = ModeType.DEFAULT, product_id = null) {
|
|
90
|
+
// Inside a native app the shell owns the scope sheet: hand off to it and skip the web modal entirely.
|
|
91
|
+
if (this.isNativeApp) {
|
|
92
|
+
salla.log('SallaScope:: delegated open to native app');
|
|
93
|
+
salla.mobile?.openScopes?.();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
80
96
|
this.hasError = false;
|
|
81
97
|
this.mode = [ModeType.AVAILABILITY, ModeType.DEFAULT].includes(mode) ? mode : ModeType.DEFAULT;
|
|
82
98
|
this.loading = !this.loadedScopes[this.mode];
|
|
@@ -165,7 +181,10 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
165
181
|
return salla.onReady();
|
|
166
182
|
}
|
|
167
183
|
render() {
|
|
168
|
-
|
|
184
|
+
// Native app renders its own scope sheet; keep the web component out of the DOM.
|
|
185
|
+
if (this.isNativeApp)
|
|
186
|
+
return null;
|
|
187
|
+
return (h(Host, null, h("salla-modal", { ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
169
188
|
h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
170
189
|
:
|
|
171
190
|
[h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -176,9 +195,9 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
176
195
|
}
|
|
177
196
|
async componentDidLoad() {
|
|
178
197
|
await Salla.hooks.registerComponent('salla-scopes', this);
|
|
179
|
-
// * Note:
|
|
180
|
-
|
|
181
|
-
if (isMobileApp)
|
|
198
|
+
// * Note: don't auto-pop the web modal in any native context — the modern shell owns the
|
|
199
|
+
// sheet (isNativeApp), and legacy shells (isMobileApp, no bridge) historically suppressed it too.
|
|
200
|
+
if (salla.config.isMobileApp() || this.isNativeApp)
|
|
182
201
|
return;
|
|
183
202
|
if (!this.isOpenedBefore && this.selection == 'mandatory') {
|
|
184
203
|
this.open();
|
|
@@ -132,10 +132,10 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
132
132
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
const searchContent = (h("div", { key: '
|
|
135
|
+
const searchContent = (h("div", { key: 'ca8dec5eb90cd0893a1a3364df34ba0ee4d60891', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '212f8180ecca220a8b89231311dec6cdf3ef0b06', class: "s-search-input-wrapper" }, h("span", { key: '51fb0f9a2e342afd35eb82b57f55471aa9e1519f', class: "s-search-icon-wrap" }, h("span", { key: 'e75117068c51c6d200e8e20fa0f00ca02ed0c61d', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '442b1704b75a33e8c9e02da8200151a1d8e8db72', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
|
|
136
136
|
height: this.height + 'px',
|
|
137
137
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
138
|
-
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '
|
|
138
|
+
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: 'f3b40ce4ec24678f6d8421f3da8ac9e1bd631c3a', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
139
139
|
's-search-product': true,
|
|
140
140
|
's-search-product-not-available': !product.is_available,
|
|
141
141
|
}, innerHTML: this.productSlot
|
|
@@ -144,9 +144,9 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
144
144
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
145
145
|
? salla.money(product.regular_price)
|
|
146
146
|
: '')
|
|
147
|
-
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '
|
|
148
|
-
const modalContent = (h("salla-modal", { key: '
|
|
149
|
-
const placeholderContent = (h("div", { key: '
|
|
147
|
+
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'fdbb21061c599a59c6d828eec80e8d591a708cca', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
148
|
+
const modalContent = (h("salla-modal", { key: 'ca90aea3fb92d1ba7d8270c26e2ecd82d5018784', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
149
|
+
const placeholderContent = (h("div", { key: '73333ce51cabadc4963a9fe9d1372bb7d63925c8', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '77a66e9bba504557160c8c50d91f1216cc68f253', class: "s-search-input-wrapper" }, h("span", { key: '18fb5ce6e3e72874e76dd1ef2c6db8718a68f778', class: "s-search-icon-wrap" }, h("span", { key: '63b9e9af1c51647df734cc4d5cf7a825b922ce38', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'b70169ed2d80ec2ad6b09952ad104824610212df', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
150
150
|
height: this.height + 'px',
|
|
151
151
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
152
152
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -195,18 +195,18 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
|
|
|
195
195
|
render() {
|
|
196
196
|
const hasSelection = this.selectedItem != null;
|
|
197
197
|
const listboxId = `${this.inputId}-listbox`;
|
|
198
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'e95aedae8c83fe27ef5e94065bd34a0c105ab565', class: "s-searchable-dropdown" }, h("div", { key: '3bd95a9a3652934d7a0904b6813f372a517dc415', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '85b95c812b9aa2c496b394a750c362d69c50546a', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: 'a863108db25faffd654d2a49832c9ab78c4d3124', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'fb3ce40726d9b5f0060d1279bd0a17339da978b1', class: {
|
|
199
199
|
's-searchable-dropdown-trigger': true,
|
|
200
200
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
201
201
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
202
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
202
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '493e615e79b3483aca3bf2b40c45b8be38190788', class: {
|
|
203
203
|
'sicon-keyboard_arrow_down': true,
|
|
204
204
|
's-searchable-dropdown-trigger-icon': true,
|
|
205
205
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
206
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
206
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'db839d1fcc73c7bc68cd324ca2e8c91f42bb991c', class: {
|
|
207
207
|
's-searchable-dropdown-panel': true,
|
|
208
208
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
209
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
209
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'd3b91389e90e87345672cd7ec630b555114372b2', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '67d56ff8ad837b683d12fb750ccee6412bd8de4c', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'f400a683b9b54ae8e448279ce19130cb346dcc5f', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '75bd2f369824326cb1ef87c5f3dad2e80975f4d9', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
210
210
|
}
|
|
211
211
|
renderListContent() {
|
|
212
212
|
if (this.searching || this.loading) {
|
|
@@ -27,7 +27,7 @@ const SallaSkeleton = /*@__PURE__*/ proxyCustomElement(class SallaSkeleton exten
|
|
|
27
27
|
's-skeleton-item': true,
|
|
28
28
|
's-skeleton-item-circular': this.type == 'circle',
|
|
29
29
|
};
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '7b36da96585cfefe9aa96df6262be14f6a03c585', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '568ae1bc0aeae182bb32468b19601c0245e9617d', class: classes }, "\u00A0")));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return sallaSkeletonCss; }
|
|
33
33
|
}, [0, "salla-skeleton", {
|
|
@@ -373,7 +373,7 @@ const SallaSocialShare = /*@__PURE__*/ proxyCustomElement(class SallaSocialShare
|
|
|
373
373
|
})));
|
|
374
374
|
}
|
|
375
375
|
render() {
|
|
376
|
-
return (h("div", { key: '
|
|
376
|
+
return (h("div", { key: 'e934ffb94fea491d445e62f26fcf98914ff0a399', class: "s-social-share-wrapper" }, h("slot", { key: '8dbf4a0c3fb6fb17a0a7c32ace57b357708c0678', name: "widget" }, h("salla-button", { key: 'eb6459bc99d4587bbfc6c0399003a2860d6992b0', "aria-label": "Share", onClick: () => this.toggle(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '3394f64755bd0bc07839b1a513f5459c8258f096', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
377
377
|
}
|
|
378
378
|
get host() { return this; }
|
|
379
379
|
static get watchers() { return {
|
|
@@ -56,7 +56,7 @@ const SallaSocial$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocial extends
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
const linksArray = this.getLinksArray();
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'e7d69dbae46ef54588471875ada751103d14d393' }, h("ul", { key: 'ff4b15127e6664cca17fa7f6f49e4cda25829d74', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
60
60
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
61
61
|
.replace(/\{type\}/g, link.type)
|
|
62
62
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -32,7 +32,7 @@ const SallaTabContent = /*@__PURE__*/ proxyCustomElement(class SallaTabContent e
|
|
|
32
32
|
's-tabs-content': true,
|
|
33
33
|
's-tabs-content-selected': this.isSelected
|
|
34
34
|
};
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'f5cfa9676bc8314149cb78e103b9ef580c0d7559', class: classes }, h("slot", { key: '1b86591377c09f1acb25cda20024b3af9c6a874d' })));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return sallaTabContentCss; }
|
|
38
38
|
}, [4, "salla-tab-content", {
|
|
@@ -58,7 +58,7 @@ const SallaTabHeader = /*@__PURE__*/ proxyCustomElement(class SallaTabHeader ext
|
|
|
58
58
|
's-tabs-active': this.isSelected,
|
|
59
59
|
};
|
|
60
60
|
return [
|
|
61
|
-
h("div", { key: '
|
|
61
|
+
h("div", { key: 'a9548ed2a74d30e6fcf365dbe26aa5f7fdab2468', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '547edd40aab5843c6035bd3c36a34d9449dc12d3' })),
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
static get style() { return sallaTabHeaderCss; }
|
|
@@ -51,7 +51,7 @@ const SallaTabs = /*@__PURE__*/ proxyCustomElement(class SallaTabs extends HTMLE
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
return [
|
|
54
|
-
h("div", { key: '
|
|
54
|
+
h("div", { key: 'e9054cb114c2bd66940b6afa98d7c7c230353a74', class: "s-tabs" }, h("div", { key: 'd245f64aef9b7fd77c9c51eb1d86ddfd9202e5fb', class: "s-tabs-header" }, h("slot", { key: 'f1b9a982cd746d637db5d514cb691f188af0cb7e', name: "header" })), h("div", { key: '0ba8441707b087a8c4d068b1a72bf10c8efb41cc', class: "s-tabs-content-wrapper" }, h("slot", { key: 'afcee28724a5a9ce263fcc3a38d624a631069945', name: "content" })))
|
|
55
55
|
];
|
|
56
56
|
}
|
|
57
57
|
get host() { return this; }
|
|
@@ -129,7 +129,7 @@ const SallaTelInput = /*@__PURE__*/ proxyCustomElement(class SallaTelInput exten
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '727fa47d71bd8fd98f76c66b3bafb2348a586303', class: "s-tel-input" }, h("input", { key: '19f5d3e2ff8902733e21f39038f716b18ae065ae', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'ad6b735fa4d5574b8717f460171c13a56a031451', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '07c8732dc276613fc5ed2928a2d47af51c49d942', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
133
133
|
}
|
|
134
134
|
componentDidLoad() {
|
|
135
135
|
this.initTelInput();
|
|
@@ -32,7 +32,7 @@ const SallaTooltip = /*@__PURE__*/ proxyCustomElement(class SallaTooltip extends
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '84dfb23d4eb2689ff71b65c4a8b24dd36f8cb6ca', class: "s-tooltip-container" }, h("div", { key: '59d3bac320e20f99de1c4bf49531a61962190efc', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
36
36
|
}
|
|
37
37
|
get el() { return this; }
|
|
38
38
|
static get style() { return sallaTooltipCss; }
|
|
@@ -237,7 +237,7 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
237
237
|
if (!badgeData) {
|
|
238
238
|
return null;
|
|
239
239
|
}
|
|
240
|
-
return (h(Host, { class: `s-trust-badges-wrapper ${this.dark ? 'dark' : ''}` }, h("img", { class: "s-trust-badges-image", width: "55", height: "55", src: badgeData.imageUrl, alt: badgeData.label }), h("div", { class: "s-trust-badges-content" }, h("p", { class: "s-trust-badges-label" }, badgeData.label), h("b", { class: "s-trust-badges-number" }, badgeData.number))));
|
|
240
|
+
return (h(Host, { class: `s-trust-badges-wrapper ${this.dark ? 'dark' : ''}` }, this.isVisibilityEnforced() ? h("img", { class: "s-trust-badges-image", width: "55", height: "55", src: badgeData.imageUrl, alt: badgeData.label }) : null, h("div", { class: "s-trust-badges-content" }, h("p", { class: "s-trust-badges-label" }, badgeData.label), h("b", { class: "s-trust-badges-number" }, badgeData.number))));
|
|
241
241
|
}
|
|
242
242
|
get hostEl() { return this; }
|
|
243
243
|
static get style() { return sallaTrustBadgesCss; }
|
|
@@ -83,7 +83,7 @@ const SallaUserSettings$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserSett
|
|
|
83
83
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: 'ae94c12d52ff04f41f08d4a107a35aa2bd94ee0a', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '5b46a680b85fc72976c5c3d4f478b64b6c1d483c', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'b41bb42ea03a2ed63c7664d0b98ee045110c31d0' }, h("div", { key: '29abb43471c5160b7817f153c8968593332e7826', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '3fd763ac2437570eed2073acb6b57cbdd0f1cdac', innerHTML: UserCancel })), h("div", { key: 'cbff9be1b97a31a11d1b10d88d2408070047fd3b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '5fd0a91c56d9b8deeed04fb52a033fe5c1ad84ee', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '81ed76bd7b69ae7b16440f131cd78905d33da607', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'ae98c8814636b4e6008c421b291353ba2c4b91e7', class: "s-toggle" }, h("input", { key: '0c01d7706053667e80539a0a293ea21f4304e423', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '31d91e01bc2a28a6cd81af024b99bd42f1a04947', class: "s-toggle-switcher" }))))), h("div", { key: '7dd3c504babb5b79d07d08c5665cd5e080cb9a4d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '9573ce56a617ac5c3e64f7cd868269f7f5f991cd' }, h("div", { key: 'deb424768ebb4b1086067816f4359e5b56da6044', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'db74169678f85313ef3b6c9a5ff92f8afaf012c2', innerHTML: Bullhorn })), h("div", { key: '569cc0dd9462bb606dab18116c071acb49fd8f48', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'fbe15f41b42ee2f98585ae29ff985cbe3b6f0ef1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'c1a4fd8a0a340a73adb9efac7c7d75534b13ce3a', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'fade0f4d1a9214169bb087900561afd482674a75', class: "s-toggle" }, h("input", { key: '87cf0b041a89d79b23c2dd0d929c3b14dd18fb96', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '7812c9a8f51a7ad64172db275ac050f8b45ec6e5', class: "s-toggle-switcher" }))))), h("div", { key: '7224d14d365a9fd767e2b900dd1e30c6bee69e7e', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: 'cb61e0a146115885a36455159d808d7edbbdff5b' }, h("div", { key: 'c073c1bbca5ae9496a4116323611d15f33d68566', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'ed78cb19724511219f35ed85e3d915ced708d46c', innerHTML: UserOff })), h("div", { key: 'f8a9ba483b7af0216536a130554186b722f9ad6e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'fd9cdf72725204e320c56b1bd6ac4cf2d77d2176', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '739a99cfb762cd18d91c955b218ab0d06a289a9a', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c2fd322ae8ff4060c21c65cfdd8b1d89bb338e3f', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'f8c8a2922ffd79d2dc04a35cf964882526b6b91c', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'b036e50b12f521c0f623ae7afded1113b0fc20ab', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '0ae61369ece6d96056e0b461ba7a3e0104e00583', class: "s-user-settings-confirmation" }, h("div", { key: 'ef2eef33396e9eaa0c43d2196e43b61917f3c5fe', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '1656cb466302c11990d5e0d9833b21cb47766846', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'ce75f721106b103e6c7f2cfc75f8be08aba54f9c', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '006ceecf237eee2febde96ff584eb8256b820049', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
87
87
|
}
|
|
88
88
|
static get style() { return sallaUserSettingsCss; }
|
|
89
89
|
}, [0, "salla-user-settings", {
|
|
@@ -320,7 +320,7 @@ const SallaWishlistActions$1 = /*@__PURE__*/ proxyCustomElement(class SallaWishl
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
render() {
|
|
323
|
-
return (h(Host, { key: '
|
|
323
|
+
return (h(Host, { key: '6329ecd00f2d08cd0fc485c371e98fe7984502d0' }, h("div", { key: '6e24cd1109ae290196337fe3e1e05cfd074966a9', class: "s-wishlist-actions" }, h("div", { key: '82c29d5b203368059c7883272c36576b19bdfd2d', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '3f85ad6a6e72308b71d506d2fc8687672b00ea7a', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '56c109a338bc9fa06aebdadb041b6587440fa71a', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'f0cf0dc66dd8ce00ac878481bbf21662d1853eba', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '3b97ef84df832a0bc1198319cc63b753da915b37', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'e8c626812dad32a5fc3165b58ce76a5c39586f09', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: '731093a2d4393fe53d63e96ecc48fcb4c4a360d2', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'af87c9481389b4b1e544e0ab2eac43db6c164aac', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '62ce5ade389fb563d2548fd94939f697dbc03d8a', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '7cb443687290ce4c7144b71140b68c020bb52dd4' }, h("button", { key: 'd55410bb2f164d267a9c21af2648fbef3fdc1928', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'f921f5241b0e7b7ebb228049f84dfe3996081d92' }, h("button", { key: 'dbc903542086266571c21ada73d54dab62f5a3e2', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '0e3aec575c1b4aa4cdd5bb2c61f3cc3e90687f23', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'bafce0670b980b583398b3d1a997020298e35bed', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '216cd3409541b0f93b26e2f2bfe256a36d0ff37b', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '4bf9a1cc508bfc87c229f69a7134bdefae0f9535', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: 'fbc39c6513eec5f4b1f281046b509c642ddce3db', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '02ba3b818ecb802d8976734738c8042163b6cdae', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '447df46aa76c1ecb165b7680465ff6c6dfcc967d', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: '36a6360b83dd07d20ca7763e2f12dc93f169c645', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '3aa46bcd91bf605f7715fcaa5692e4ca0e8f199e', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
324
324
|
}
|
|
325
325
|
get host() { return this; }
|
|
326
326
|
static get style() { return sallaWishlistActionsCss; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-CCmkpaUr.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|