@salla.sa/twilight-components 2.14.475 → 2.14.477
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-CCDcLMJG.js → filepond-BPOBCHtP.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Dv1iTut9.js → filepond-plugin-file-poster-DbvRC1aN.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CvGFV0Fy.js → filepond-plugin-file-validate-size-Ct-KrfsV.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BA7LgQgR.js → filepond-plugin-file-validate-type-1JHE8ekO.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-COOD9fMI.js → filepond-plugin-image-edit-DNW2nkrj.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CoTDjMfx.js → filepond-plugin-image-exif-orientation-B5PMdim6.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-w1azXYdm.js → filepond-plugin-image-preview-ReD_Bouv.js} +1 -1
- package/dist/cjs/{functions-EwUKSxdM.js → functions-COijBsIS.js} +1 -1
- package/dist/cjs/{index-Ct9HgIyS.js → index-Deydcv8E.js} +2 -2
- package/dist/cjs/{index-b6aVLc9i.js → index-r7vZK338.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 +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +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 +24 -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-C4Tvqvi9.js → tracked-promise-C0WQFeoI.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-2UXFqn4t.js → vanilla-picker-iI-y1JgN.js} +1 -1
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +17 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +18 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +23 -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-localization-modal.js +18 -1
- package/dist/components/salla-scopes.js +23 -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-Dkgdn6NP.js → filepond-CaznQRkF.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-H_Uehrm-.js → filepond-plugin-file-poster-rZxLWBof.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DGahL5WO.js → filepond-plugin-file-validate-size-DjyoyY-c.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BXAhWg72.js → filepond-plugin-file-validate-type-CiUZHqHn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CTk7VerB.js → filepond-plugin-image-edit-DqXGEWIO.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DDs-wuhx.js → filepond-plugin-image-exif-orientation-BWrZyNPX.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DGDPjluB.js → filepond-plugin-image-preview-DQTgGlAO.js} +1 -1
- package/dist/esm/{functions-CWE4HPyq.js → functions-CtSUyz0e.js} +1 -1
- package/dist/esm/{index-Ct8EQ1Xr.js → index-BZ_7FA29.js} +1 -1
- package/dist/esm/{index-D-UuXsoI.js → index-Bu-9gKKq.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_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 +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +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 +24 -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-r7OIxu9g.js → tracked-promise-BbP_DeSq.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-eIDpMDr5.js → vanilla-picker-CWXcUJzF.js} +1 -1
- package/dist/twilight/{p-1623ffb3.entry.js → p-00d9055a.entry.js} +1 -1
- package/dist/twilight/{p-572bc95c.entry.js → p-03201e64.entry.js} +1 -1
- package/dist/twilight/{p-d3f2e0fe.entry.js → p-106ac177.entry.js} +1 -1
- package/dist/twilight/{p-4d8f6357.entry.js → p-11174ae9.entry.js} +1 -1
- package/dist/twilight/{p-0e6aa1ae.entry.js → p-15c5c464.entry.js} +1 -1
- package/dist/twilight/{p-6be36db2.entry.js → p-17fcab81.entry.js} +1 -1
- package/dist/twilight/{p-f7a929a4.entry.js → p-1fe875b9.entry.js} +1 -1
- package/dist/twilight/{p-1cacc3b5.entry.js → p-2270edf3.entry.js} +1 -1
- package/dist/twilight/p-24085dc8.entry.js +4 -0
- package/dist/twilight/{p-c6bf6315.entry.js → p-24c72ca6.entry.js} +1 -1
- package/dist/twilight/{p-14926610.entry.js → p-253ee083.entry.js} +1 -1
- package/dist/twilight/{p-c437bb1f.entry.js → p-2adab08f.entry.js} +1 -1
- package/dist/twilight/{p-ad491d49.entry.js → p-2b3b66e3.entry.js} +1 -1
- package/dist/twilight/{p-46cf2273.entry.js → p-31bf3eff.entry.js} +1 -1
- package/dist/twilight/{p-9b2a7c8b.entry.js → p-3426f464.entry.js} +1 -1
- package/dist/twilight/{p-3bf8c0b9.entry.js → p-35db222e.entry.js} +1 -1
- package/dist/twilight/{p-4a011968.entry.js → p-3615f787.entry.js} +1 -1
- package/dist/twilight/{p-88fa51f9.entry.js → p-36457705.entry.js} +1 -1
- package/dist/twilight/{p-e94a4136.entry.js → p-388902c2.entry.js} +1 -1
- package/dist/twilight/{p-bcd8b556.entry.js → p-3caad9dc.entry.js} +1 -1
- package/dist/twilight/{p-55179340.entry.js → p-3ee04641.entry.js} +1 -1
- package/dist/twilight/{p-2dc58d76.entry.js → p-3fa73380.entry.js} +1 -1
- package/dist/twilight/{p-68dec776.entry.js → p-41524fe9.entry.js} +1 -1
- package/dist/twilight/{p-b1f04f5f.entry.js → p-43d75ec1.entry.js} +1 -1
- package/dist/twilight/{p-0a2e2520.entry.js → p-4699831c.entry.js} +1 -1
- package/dist/twilight/{p-fd22a89d.entry.js → p-49454762.entry.js} +1 -1
- package/dist/twilight/{p-156750a1.entry.js → p-5059bfa4.entry.js} +1 -1
- package/dist/twilight/{p-694f01bc.entry.js → p-510586d5.entry.js} +1 -1
- package/dist/twilight/p-5119f36c.entry.js +4 -0
- package/dist/twilight/p-51e32813.entry.js +4 -0
- package/dist/twilight/{p-baf7bed1.entry.js → p-53355b4c.entry.js} +1 -1
- package/dist/twilight/{p-39ea942a.entry.js → p-53e7f24a.entry.js} +1 -1
- package/dist/twilight/{p-71b5eae7.entry.js → p-55678651.entry.js} +1 -1
- package/dist/twilight/{p-8a80c206.entry.js → p-568e8caa.entry.js} +1 -1
- package/dist/twilight/{p-7610c9ee.entry.js → p-58793c83.entry.js} +1 -1
- package/dist/twilight/{p-993ff2a4.entry.js → p-5fd0ae58.entry.js} +1 -1
- package/dist/twilight/{p-a61a86e1.entry.js → p-64ab3e06.entry.js} +1 -1
- package/dist/twilight/{p-d298dad8.entry.js → p-6b247b74.entry.js} +1 -1
- package/dist/twilight/{p-cb2245f8.entry.js → p-6b3dbc40.entry.js} +1 -1
- package/dist/twilight/{p-45feb58a.entry.js → p-6f0da76a.entry.js} +1 -1
- package/dist/twilight/{p-ffe1ffca.entry.js → p-75173a3c.entry.js} +1 -1
- package/dist/twilight/{p-bd202079.entry.js → p-7870331a.entry.js} +1 -1
- package/dist/twilight/{p-6e420513.entry.js → p-7a446f68.entry.js} +1 -1
- package/dist/twilight/{p-d876ad8f.entry.js → p-7de81167.entry.js} +1 -1
- package/dist/twilight/{p-95aeb406.entry.js → p-7ecb7eb5.entry.js} +1 -1
- package/dist/twilight/{p-d0db9122.entry.js → p-7fcf0c70.entry.js} +1 -1
- package/dist/twilight/{p-f7a8baa1.entry.js → p-83173fd6.entry.js} +1 -1
- package/dist/twilight/{p-61841a17.entry.js → p-896a2d9b.entry.js} +1 -1
- package/dist/twilight/{p-586e7206.entry.js → p-9231c4f6.entry.js} +1 -1
- package/dist/twilight/{p-fe66a432.entry.js → p-9618b81b.entry.js} +1 -1
- package/dist/twilight/{p-d473f745.entry.js → p-98f6b084.entry.js} +1 -1
- package/dist/twilight/{p-a1484116.entry.js → p-9aabbd97.entry.js} +1 -1
- package/dist/twilight/{p-876d87c3.entry.js → p-9da47592.entry.js} +1 -1
- package/dist/twilight/{p-oqlVgxRO.js → p-B0kvvFwK.js} +1 -1
- package/dist/twilight/{p-BWmPIvBR.js → p-B4YFau93.js} +1 -1
- package/dist/twilight/p-BIDWRRAS.js +4 -0
- package/dist/twilight/{p-DLb1HLym.js → p-Bg2ha7OA.js} +1 -1
- package/dist/twilight/{p-D-UuXsoI.js → p-Bu-9gKKq.js} +1 -1
- package/dist/twilight/{p-BWwfPF82.js → p-C5l_M5_U.js} +1 -1
- package/dist/twilight/{p-D0K_8IHl.js → p-CAwHqRMt.js} +1 -1
- package/dist/twilight/{p-uqeFRSpe.js → p-CEHIYVsy.js} +1 -1
- package/dist/twilight/{p-CWXc9uPh.js → p-CyRvF0eJ.js} +1 -1
- package/dist/twilight/{p-DSm41XCS.js → p-D0dlNrJY.js} +1 -1
- package/dist/twilight/{p-CqyL_YYQ.js → p-_KwzHh05.js} +1 -1
- package/dist/twilight/{p-BFVxMN0g.js → p-_NroeSza.js} +1 -1
- package/dist/twilight/{p-4281df04.entry.js → p-a1872162.entry.js} +1 -1
- package/dist/twilight/{p-98cc5c65.entry.js → p-a260ccf9.entry.js} +1 -1
- package/dist/twilight/{p-ec3c0f42.entry.js → p-a3eb0b51.entry.js} +2 -2
- package/dist/twilight/{p-b8c2cd7f.entry.js → p-aed798f2.entry.js} +1 -1
- package/dist/twilight/{p-e32206b6.entry.js → p-b202aa5a.entry.js} +1 -1
- package/dist/twilight/{p-c1f47188.entry.js → p-b24d5f7c.entry.js} +1 -1
- package/dist/twilight/p-b4fb01a0.entry.js +4 -0
- package/dist/twilight/{p-76f87b81.entry.js → p-b504baf6.entry.js} +1 -1
- package/dist/twilight/{p-dfae005d.entry.js → p-b5f3394b.entry.js} +1 -1
- package/dist/twilight/{p-796ab099.entry.js → p-b8f3c96e.entry.js} +1 -1
- package/dist/twilight/{p-e2d4ce2b.entry.js → p-b9221725.entry.js} +1 -1
- package/dist/twilight/{p-db1b868f.entry.js → p-b97290f8.entry.js} +1 -1
- package/dist/twilight/{p-dabf811b.entry.js → p-be619c40.entry.js} +1 -1
- package/dist/twilight/{p-b39326c4.entry.js → p-c46b4fac.entry.js} +1 -1
- package/dist/twilight/{p-7e2911c0.entry.js → p-c4881f69.entry.js} +1 -1
- package/dist/twilight/{p-8e191abf.entry.js → p-c69cc412.entry.js} +1 -1
- package/dist/twilight/{p-f2ec2e13.entry.js → p-ca969612.entry.js} +1 -1
- package/dist/twilight/{p-87bf9020.entry.js → p-ce53e792.entry.js} +1 -1
- package/dist/twilight/{p-498c5eb6.entry.js → p-cf530f1e.entry.js} +1 -1
- package/dist/twilight/{p-a9c38076.entry.js → p-d052267d.entry.js} +1 -1
- package/dist/twilight/{p-c38628d5.entry.js → p-d240e1d4.entry.js} +1 -1
- package/dist/twilight/{p-28031c0a.entry.js → p-d8584231.entry.js} +1 -1
- package/dist/twilight/{p-049a6d23.entry.js → p-da06f72a.entry.js} +1 -1
- package/dist/twilight/{p-60aac9a8.entry.js → p-da6c888a.entry.js} +1 -1
- package/dist/twilight/{p-4aa2ac31.entry.js → p-df138558.entry.js} +1 -1
- package/dist/twilight/{p-ecf0a71c.entry.js → p-df830fc1.entry.js} +1 -1
- package/dist/twilight/{p-1c5fe5a0.entry.js → p-e1a45426.entry.js} +1 -1
- package/dist/twilight/{p-a68f29d9.entry.js → p-e53a25f0.entry.js} +1 -1
- package/dist/twilight/{p-acedd224.entry.js → p-e95fbacf.entry.js} +1 -1
- package/dist/twilight/{p-75b68774.entry.js → p-f1cad97c.entry.js} +1 -1
- package/dist/twilight/{p-7b9a7ad1.entry.js → p-f280405a.entry.js} +1 -1
- package/dist/twilight/{p-9f1629cf.entry.js → p-f42ed2a0.entry.js} +1 -1
- package/dist/twilight/{p-9d094e8b.entry.js → p-f498a8f0.entry.js} +1 -1
- package/dist/twilight/{p-8409b888.entry.js → p-fac7655b.entry.js} +1 -1
- package/dist/twilight/{p-4720206a.entry.js → p-fff06937.entry.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 +7 -0
- package/package.json +5 -5
- package/dist/twilight/p-2uzvdhCR.js +0 -4
- package/dist/twilight/p-869657bf.entry.js +0 -4
- package/dist/twilight/p-8dd0efeb.entry.js +0 -4
- package/dist/twilight/p-c49052d7.entry.js +0 -4
- package/dist/twilight/p-c6bd4bde.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
|
+
* Opt-in native override: only inside the SPA webview (Salla.mobile.isSpaWebview()) does the
|
|
19
|
+
* native shell own the cart/checkout screen, so we intercept the tap and hand the cart URL to the
|
|
20
|
+
* bridge instead of letting the webview navigate. On web, in any mobile app without the flag, or
|
|
21
|
+
* when the bridge can't open checkout, the anchor's href is followed normally — the button never
|
|
22
|
+
* 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).
|
|
28
|
+
if (salla.mobile?.isSpaWebview?.() && 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: '96a4c4fc3942df69e884ba44559adbec55743658' }, h("a", { key: 'e28c48fef8ade7f46c1dc1747baeeb16b70f8732', class: "s-cart-summary-wrapper", href: this.getCartLink(), onClick: this.handleCheckoutClick }, h("div", { key: '4fed123336b4aa1892da9d83250321d837d684aa', id: "s-cart-icon" }, h("slot", { key: '365962ccc1d83f4437718f93ca15358fcce7113d', name: "icon" }, h("i", { key: '88870c2a2c4c21476d96e2253ea8b0c911bd493c', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { key: '29a8d5436bd72355bc639cbd827a1c223bfe6f9b', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '630577903ec4a57177101cdc88b3f8e7d68ec676', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '5f61a936210a79ead537d6339a23dc73c7c91a88', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'b23c5f1cec4c520e2e789daa8e3af993ec1b5e49', 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; }
|
|
@@ -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,22 @@ 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
|
+
* Delegates only inside the native SPA webview (Salla.mobile.isSpaWebview() — bridge live AND
|
|
73
|
+
* theme.is_spa_webview set); existing mobile apps keep the web modal, and a shell that can't
|
|
74
|
+
* deliver to native degrades gracefully to it too. See Salla.mobile.isSpaWebview().
|
|
75
|
+
*/
|
|
76
|
+
get isNativeApp() {
|
|
77
|
+
return !!salla.mobile?.isSpaWebview?.();
|
|
78
|
+
}
|
|
70
79
|
/**
|
|
71
80
|
* Closes the scope modal.
|
|
72
81
|
*/
|
|
@@ -77,6 +86,12 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
77
86
|
* Opens the scope modal.
|
|
78
87
|
*/
|
|
79
88
|
async open(mode = ModeType.DEFAULT, product_id = null) {
|
|
89
|
+
// Inside a native app the shell owns the scope sheet: hand off to it and skip the web modal entirely.
|
|
90
|
+
if (this.isNativeApp) {
|
|
91
|
+
salla.log('SallaScope:: delegated open to native app');
|
|
92
|
+
salla.mobile?.openScopes?.();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
80
95
|
this.hasError = false;
|
|
81
96
|
this.mode = [ModeType.AVAILABILITY, ModeType.DEFAULT].includes(mode) ? mode : ModeType.DEFAULT;
|
|
82
97
|
this.loading = !this.loadedScopes[this.mode];
|
|
@@ -165,7 +180,10 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
165
180
|
return salla.onReady();
|
|
166
181
|
}
|
|
167
182
|
render() {
|
|
168
|
-
|
|
183
|
+
// Native app renders its own scope sheet; keep the web component out of the DOM.
|
|
184
|
+
if (this.isNativeApp)
|
|
185
|
+
return null;
|
|
186
|
+
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
187
|
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
188
|
:
|
|
171
189
|
[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 +194,9 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
176
194
|
}
|
|
177
195
|
async componentDidLoad() {
|
|
178
196
|
await Salla.hooks.registerComponent('salla-scopes', this);
|
|
179
|
-
// * Note:
|
|
180
|
-
|
|
181
|
-
if (isMobileApp)
|
|
197
|
+
// * Note: don't auto-pop the web modal in any native context — the modern shell owns the
|
|
198
|
+
// sheet (isNativeApp), and legacy shells (isMobileApp, no bridge) historically suppressed it too.
|
|
199
|
+
if (salla.config.isMobileApp() || this.isNativeApp)
|
|
182
200
|
return;
|
|
183
201
|
if (!this.isOpenedBefore && this.selection == 'mandatory') {
|
|
184
202
|
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-Bu-9gKKq.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);
|