@salla.sa/twilight-components 2.14.372 → 2.14.374
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-D6hNdSue.js → filepond-DeuvVE5J.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DOSqy8V3.js → filepond-plugin-file-poster-Dxa8I3SY.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-l4VLpkoL.js → filepond-plugin-file-validate-size-W2mdgWG2.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-KYY5p5gt.js → filepond-plugin-file-validate-type-CnyOIQz9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BzaiZ8lY.js → filepond-plugin-image-edit-CCb7ekNo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Dp_AVLHw.js → filepond-plugin-image-exif-orientation-COejHavo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Cu_XtCoc.js → filepond-plugin-image-preview-BO9TNEub.js} +1 -1
- package/dist/cjs/{index-D2SICJqL.js → index-CWDMaA5x.js} +2 -2
- package/dist/cjs/{index-BmCJSRO7.js → index-CpUSS5zv.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery.cjs.entry.js +4 -4
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +20 -7
- package/dist/cjs/salla-custom-fields.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-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-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-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +7 -3
- package/dist/cjs/salla-products-slider.cjs.entry.js +6 -2
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +30 -15
- 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 +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +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/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-W3JKfO-o.js → vanilla-picker-D2Lx83x-.js} +1 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +3 -3
- package/dist/collection/components/salla-product-card/salla-product-card.js +19 -6
- package/dist/collection/components/salla-products-list/salla-products-list.js +6 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +5 -1
- package/dist/collection/components/salla-search/salla-search.css +13 -1
- package/dist/collection/components/salla-search/salla-search.js +48 -13
- 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-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bullet-delivery.js +3 -3
- package/dist/components/salla-product-card2.js +19 -6
- package/dist/components/salla-products-list2.js +6 -2
- package/dist/components/salla-products-slider2.js +5 -1
- package/dist/components/salla-search.js +30 -14
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.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-user-settings.js +1 -1
- package/dist/esm/{filepond-CVt8gG7K.js → filepond-TuPJAejT.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-ByDhiu8k.js → filepond-plugin-file-poster-cCpQ5Yn9.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-C46KRc5n.js → filepond-plugin-file-validate-size-rJLWDXdJ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-7wK_W1ju.js → filepond-plugin-file-validate-type-KBmivBiQ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BbFosret.js → filepond-plugin-image-edit-CZ1DRDD_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DXsWsxNp.js → filepond-plugin-image-exif-orientation-B-eqhWXq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BZoHvyw-.js → filepond-plugin-image-preview-BdtUA8MJ.js} +1 -1
- package/dist/esm/{index-x1gUeQbQ.js → index-CS4mgWBr.js} +1 -1
- package/dist/esm/{index-SkTHIgsP.js → index-CrfyjHDc.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery.entry.js +4 -4
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +20 -7
- package/dist/esm/salla-custom-fields.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-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-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-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +7 -3
- package/dist/esm/salla-products-slider.entry.js +6 -2
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +30 -15
- 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 +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CBzZiD3g.js → vanilla-picker-s0vHL0vA.js} +1 -1
- package/dist/twilight/{p-5905a86a.entry.js → p-0218b0ff.entry.js} +1 -1
- package/dist/twilight/{p-53b2e08f.entry.js → p-0543e413.entry.js} +1 -1
- package/dist/twilight/{p-53cc3cef.entry.js → p-067b7ce5.entry.js} +1 -1
- package/dist/twilight/{p-001b7ef6.entry.js → p-070e9633.entry.js} +1 -1
- package/dist/twilight/{p-511ca10b.entry.js → p-0db8b7cc.entry.js} +1 -1
- package/dist/twilight/{p-c1bdca57.entry.js → p-130b9fde.entry.js} +1 -1
- package/dist/twilight/{p-18e52d0e.entry.js → p-1318538a.entry.js} +1 -1
- package/dist/twilight/{p-6837da63.entry.js → p-1355d443.entry.js} +1 -1
- package/dist/twilight/{p-8b505e2a.entry.js → p-156057d6.entry.js} +1 -1
- package/dist/twilight/{p-d95a2fee.entry.js → p-15d51226.entry.js} +1 -1
- package/dist/twilight/{p-bdb38d1b.entry.js → p-179298ec.entry.js} +1 -1
- package/dist/twilight/{p-e452b815.entry.js → p-1c8cb0ef.entry.js} +1 -1
- package/dist/twilight/{p-2ab48cac.entry.js → p-1e80a098.entry.js} +1 -1
- package/dist/twilight/{p-86982850.entry.js → p-1f4c59ca.entry.js} +1 -1
- package/dist/twilight/p-2030e9b3.entry.js +4 -0
- package/dist/twilight/{p-3eaa8925.entry.js → p-21b55c4b.entry.js} +1 -1
- package/dist/twilight/{p-59db4c52.entry.js → p-21c806a5.entry.js} +1 -1
- package/dist/twilight/{p-2f692fcf.entry.js → p-25065293.entry.js} +1 -1
- package/dist/twilight/{p-f89add85.entry.js → p-2b964947.entry.js} +1 -1
- package/dist/twilight/p-37899dd0.entry.js +4 -0
- package/dist/twilight/{p-DPmKuJIj.js → p-3mtQhZMU.js} +1 -1
- package/dist/twilight/{p-a473108d.entry.js → p-42162ee9.entry.js} +1 -1
- package/dist/twilight/{p-1e8fbd9f.entry.js → p-4261c148.entry.js} +1 -1
- package/dist/twilight/{p-f0ad1125.entry.js → p-44477b3c.entry.js} +1 -1
- package/dist/twilight/{p-5b9bc272.entry.js → p-531d1d9b.entry.js} +1 -1
- package/dist/twilight/{p-ec8e267b.entry.js → p-5385af9c.entry.js} +1 -1
- package/dist/twilight/{p-e1222500.entry.js → p-56ee82aa.entry.js} +1 -1
- package/dist/twilight/{p-463e4f76.entry.js → p-5b964337.entry.js} +1 -1
- package/dist/twilight/{p-6036b492.entry.js → p-61e0d078.entry.js} +1 -1
- package/dist/twilight/{p-0b53d638.entry.js → p-61e83060.entry.js} +1 -1
- package/dist/twilight/{p-13b496e7.entry.js → p-62614eb2.entry.js} +1 -1
- package/dist/twilight/{p-3243737f.entry.js → p-6e016cdb.entry.js} +1 -1
- package/dist/twilight/{p-75769c80.entry.js → p-6e7f4d65.entry.js} +1 -1
- package/dist/twilight/{p-d5c633e3.entry.js → p-843df720.entry.js} +1 -1
- package/dist/twilight/{p-35024791.entry.js → p-8df33bfb.entry.js} +1 -1
- package/dist/twilight/{p-f64f5502.entry.js → p-8ecaa871.entry.js} +1 -1
- package/dist/twilight/{p-afb92112.entry.js → p-8f3ff806.entry.js} +1 -1
- package/dist/twilight/{p-bc174ca1.entry.js → p-8fdfda0b.entry.js} +1 -1
- package/dist/twilight/{p-a9e61f29.entry.js → p-91973470.entry.js} +1 -1
- package/dist/twilight/{p-e5758e7c.entry.js → p-94648166.entry.js} +1 -1
- package/dist/twilight/{p-b8b9c8c0.entry.js → p-96216e77.entry.js} +1 -1
- package/dist/twilight/{p-ebb88e7b.entry.js → p-9a9b1282.entry.js} +1 -1
- package/dist/twilight/p-9b5d0797.entry.js +4 -0
- package/dist/twilight/{p-5bf0ced8.entry.js → p-9ec0d0b2.entry.js} +1 -1
- package/dist/twilight/{p-d100ac0c.entry.js → p-9f749fc5.entry.js} +1 -1
- package/dist/twilight/{p-Cp0TiBtU.js → p-ByQ_JtEq.js} +1 -1
- package/dist/twilight/{p-BgZuVAWD.js → p-C4_y7sLz.js} +1 -1
- package/dist/twilight/{p-DcBxzAOm.js → p-CQwuMkiJ.js} +2 -2
- package/dist/twilight/{p-SkTHIgsP.js → p-CrfyjHDc.js} +1 -1
- package/dist/twilight/{p-Dr5NxBjb.js → p-DChNcvW3.js} +1 -1
- package/dist/twilight/{p-BF4uw95J.js → p-DLIn9Lr_.js} +1 -1
- package/dist/twilight/{p-5dujJcuF.js → p-DZ7QJ2Rp.js} +1 -1
- package/dist/twilight/{p-DICe9yRT.js → p-SOZG27Gu.js} +1 -1
- package/dist/twilight/{p-D_zRqCzR.js → p-TRZAgxSA.js} +1 -1
- package/dist/twilight/{p-27e70f37.entry.js → p-a2ef40d8.entry.js} +1 -1
- package/dist/twilight/{p-9d497735.entry.js → p-a57560cf.entry.js} +1 -1
- package/dist/twilight/{p-51de8331.entry.js → p-a5b3b992.entry.js} +1 -1
- package/dist/twilight/{p-0ad3a828.entry.js → p-a6f4ea7e.entry.js} +1 -1
- package/dist/twilight/{p-d969b269.entry.js → p-ab755139.entry.js} +1 -1
- package/dist/twilight/{p-3bf9141e.entry.js → p-ae9c2af6.entry.js} +1 -1
- package/dist/twilight/{p-acc5aba0.entry.js → p-b7f25ad6.entry.js} +1 -1
- package/dist/twilight/{p-9ebe9909.entry.js → p-c6bf02e6.entry.js} +1 -1
- package/dist/twilight/{p-8e97544e.entry.js → p-ca5cd5a1.entry.js} +1 -1
- package/dist/twilight/{p-7d72642b.entry.js → p-ce4a4b2e.entry.js} +1 -1
- package/dist/twilight/{p-2820ce1d.entry.js → p-d0344bd5.entry.js} +1 -1
- package/dist/twilight/{p-94f73964.entry.js → p-dd2b3955.entry.js} +1 -1
- package/dist/twilight/{p-07fdc902.entry.js → p-e0d4ac10.entry.js} +1 -1
- package/dist/twilight/{p-4cf58a9c.entry.js → p-e74049ca.entry.js} +1 -1
- package/dist/twilight/{p-db479d0a.entry.js → p-e9bb3469.entry.js} +1 -1
- package/dist/twilight/{p-236372e3.entry.js → p-ea1c36dc.entry.js} +1 -1
- package/dist/twilight/{p-d45adf75.entry.js → p-eba03779.entry.js} +1 -1
- package/dist/twilight/{p-861be114.entry.js → p-eca4d49b.entry.js} +1 -1
- package/dist/twilight/{p-4fa45c6a.entry.js → p-ed3aa311.entry.js} +1 -1
- package/dist/twilight/{p-b3fad8c9.entry.js → p-eff7ed31.entry.js} +1 -1
- package/dist/twilight/{p-e100b798.entry.js → p-f7b7b382.entry.js} +1 -1
- package/dist/twilight/{p-3fe97989.entry.js → p-fc4c3626.entry.js} +1 -1
- package/dist/twilight/{p-e975235b.entry.js → p-fda58052.entry.js} +1 -1
- package/dist/twilight/{p-409f7136.entry.js → p-ffb8c922.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-product-card/salla-product-card.d.ts +2 -0
- package/dist/types/components/salla-search/salla-search.d.ts +5 -1
- package/dist/types/components.d.ts +10 -0
- package/package.json +5 -5
- package/dist/twilight/p-301c2f68.entry.js +0 -4
- package/dist/twilight/p-504b5014.entry.js +0 -4
- package/dist/twilight/p-c9179f5b.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const SallaLocalizationModal = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
|
|
6
6
|
|
|
7
7
|
const sallaLoyaltyProgramCss = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CrfyjHDc.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
6
6
|
|
|
7
7
|
const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaMultipleBundleProductCartCss = "";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
|
|
7
7
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
var copyIcon = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-CrfyjHDc.js';
|
|
5
5
|
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
6
6
|
|
|
7
7
|
var iconFileArchive = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
|
|
7
7
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|
|
7
7
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
@@ -558,7 +558,11 @@ const SallaProductsList = class {
|
|
|
558
558
|
}
|
|
559
559
|
getInitialData() {
|
|
560
560
|
this.loading();
|
|
561
|
-
return salla.
|
|
561
|
+
return salla.api.withoutNotifier(() => salla.product.api.fetch({
|
|
562
|
+
source: Helper.getApiSource(this.getSource()),
|
|
563
|
+
source_value: this.getSourceValue(),
|
|
564
|
+
limit: this.limit
|
|
565
|
+
}).then(async (response) => {
|
|
562
566
|
if (!response.data.length) {
|
|
563
567
|
this.showPlaceholder = true;
|
|
564
568
|
this.placeholderLoader && this.placeholderLoader.remove();
|
|
@@ -574,7 +578,7 @@ const SallaProductsList = class {
|
|
|
574
578
|
return;
|
|
575
579
|
}
|
|
576
580
|
this.handleResponse(response).forEach(card => this.wrapper.append(card));
|
|
577
|
-
});
|
|
581
|
+
}));
|
|
578
582
|
}
|
|
579
583
|
async loadMore() {
|
|
580
584
|
this.infiniteScroll?.loadNextPage();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -46,7 +46,11 @@ const SallaProductsSlider = class {
|
|
|
46
46
|
this.isReady = false;
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
return salla.
|
|
49
|
+
return salla.api.withoutNotifier(() => salla.product.api.fetch({
|
|
50
|
+
source: Helper.getApiSource(this.getSource()),
|
|
51
|
+
source_value: this.getSourceValue(),
|
|
52
|
+
limit: this.limit
|
|
53
|
+
}))
|
|
50
54
|
.then(response => Helper.injectExtraFieldsToResponse(response))
|
|
51
55
|
.then(response => {
|
|
52
56
|
this.productsData = response.data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { W as WishListIcon } from './star-ZT7ehBBk.js';
|
|
6
6
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
7
7
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
8
8
|
|
|
9
|
-
const sallaSearchCss = "";
|
|
9
|
+
const sallaSearchCss = ".s-search-placeholder-wrapper{position:relative;display:inline-block}.s-search-input-wrapper{position:relative}.s-search-placeholder-trigger{cursor:pointer;appearance:none;text-align:start}";
|
|
10
10
|
|
|
11
11
|
const SallaSearch = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -16,6 +16,10 @@ const SallaSearch = class {
|
|
|
16
16
|
this.loading = false;
|
|
17
17
|
this.typing = false;
|
|
18
18
|
this.debounce = setTimeout(() => '', 1000);
|
|
19
|
+
/**
|
|
20
|
+
* Set the component to display as a placeholder (button) that will open the modal. Defaults to `false`
|
|
21
|
+
*/
|
|
22
|
+
this.placeholder = false;
|
|
19
23
|
/**
|
|
20
24
|
* Set the component display without modal window. Defaults to `false`
|
|
21
25
|
*/
|
|
@@ -36,7 +40,8 @@ const SallaSearch = class {
|
|
|
36
40
|
* Show submit action buttons at the end.
|
|
37
41
|
*/
|
|
38
42
|
this.showAction = false;
|
|
39
|
-
this.productSlot =
|
|
43
|
+
this.productSlot =
|
|
44
|
+
this.host.querySelector('[slot="product"]')?.innerHTML || this.getDefaultProductSlot();
|
|
40
45
|
salla.event.on('search::open', () => this.open());
|
|
41
46
|
salla.lang.onLoaded(() => {
|
|
42
47
|
this.translationLoaded = true;
|
|
@@ -60,12 +65,12 @@ const SallaSearch = class {
|
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
getDefaultProductSlot() {
|
|
63
|
-
return '<div class="s-search-product-image-container">' +
|
|
68
|
+
return ('<div class="s-search-product-image-container">' +
|
|
64
69
|
' <img class="s-search-product-image" src="{image}" alt="{name}"/>' +
|
|
65
70
|
'</div>' +
|
|
66
71
|
'<div class="s-search-product-details">' +
|
|
67
72
|
' <div class="s-search-product-title">{name}</div> <div class="s-search-product-price">{price} <span class="s-search-product-regular-price">{regular_price}</span></div>' +
|
|
68
|
-
'</div>';
|
|
73
|
+
'</div>');
|
|
69
74
|
}
|
|
70
75
|
debounceSearch(event) {
|
|
71
76
|
this.typing = true;
|
|
@@ -107,12 +112,13 @@ const SallaSearch = class {
|
|
|
107
112
|
this.noResults.style.display = 'none';
|
|
108
113
|
//run loading spinner or stop it
|
|
109
114
|
this.loading = true;
|
|
110
|
-
salla.product
|
|
115
|
+
salla.product
|
|
116
|
+
.fetch({ source: 'search', source_value: val })
|
|
111
117
|
.then(response => {
|
|
112
118
|
this.results = response;
|
|
113
119
|
salla.event.emit('Products Searched', val);
|
|
114
120
|
})
|
|
115
|
-
.catch(err => err !== 'Query is same as previous one!' ? this.results = undefined : null)
|
|
121
|
+
.catch(err => (err !== 'Query is same as previous one!' ? (this.results = undefined) : null))
|
|
116
122
|
.finally(() => this.afterSearching(/*isEmpty*/ false));
|
|
117
123
|
}
|
|
118
124
|
afterSearching(isEmpty = true) {
|
|
@@ -123,16 +129,25 @@ const SallaSearch = class {
|
|
|
123
129
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
124
130
|
}
|
|
125
131
|
render() {
|
|
126
|
-
const searchContent = h("div", { key: '
|
|
127
|
-
|
|
132
|
+
const searchContent = (h("div", { key: '25857ea8c54c56875ed665e9163db0b0dfc23d48', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '2d75789cec346377f1ad6e27605868a747f57ec0', class: "s-search-input-wrapper" }, h("span", { key: '68f3d318d8a1a54aff7da564f571bb7e1521d600', class: "s-search-icon-wrap" }, h("span", { key: '479b33adc20e2e6c34eff5fda4e303bfae16e445', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '4577ea9dbec8175e52603a0934a2d6f22aa26a02', 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: {
|
|
133
|
+
height: this.height + 'px',
|
|
134
|
+
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
135
|
+
} }), 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: '0607676854eefa6966ec38c0d2e6dd5a3c6423bb', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
136
|
+
's-search-product': true,
|
|
137
|
+
's-search-product-not-available': !product.is_available,
|
|
138
|
+
}, innerHTML: this.productSlot
|
|
128
139
|
.replace(/\{name\}/g, product.name)
|
|
129
140
|
.replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
|
|
130
|
-
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
141
|
+
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
142
|
+
? salla.money(product.regular_price)
|
|
143
|
+
: '')
|
|
144
|
+
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '7136791cf4dc3d523cdba41367bd7691fd4ad9ba', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
145
|
+
const modalContent = (h("salla-modal", { key: 'ec8705a09e4993459d92569a5b71836cb0acefd8', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
146
|
+
const placeholderContent = (h("div", { key: '19b7e1c22e3a40c780eff0c74a23413f089ec96b', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'd87fc19fce928f230edb427e952903262a9ba32c', class: "s-search-input-wrapper" }, h("span", { key: '6475d41b267a2b35027016b5de474463cc7e6055', class: "s-search-icon-wrap" }, h("span", { key: 'e6ebac28c76a8a9824188da7ad2c290db610094f', class: "s-search-icon", innerHTML: Search })), h("button", { key: '3d7db311a4c348d4baaf1cb50eb5a0ed7953b28e', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
147
|
+
height: this.height + 'px',
|
|
148
|
+
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
149
|
+
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
150
|
+
return this.placeholder ? (placeholderContent) : this.inline ? (h("div", { class: "s-search-modal" }, searchContent)) : (modalContent);
|
|
136
151
|
}
|
|
137
152
|
/**
|
|
138
153
|
* Run it one time after load
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaSkeletonCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const SallaSkeleton = class {
|
|
|
26
26
|
's-skeleton-item': true,
|
|
27
27
|
's-skeleton-item-circular': this.type == 'circle',
|
|
28
28
|
};
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '0d85a5f753c250b1acacb0dea809879a549d8d12', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '80c3b2555be6c0fef7794bb184c919d4be2bdf24', class: classes }, "\u00A0")));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
7
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
@@ -148,7 +148,7 @@ const SallaSocialShare = class {
|
|
|
148
148
|
window.a2a?.init('page');
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
return (h("div", { key: 'ce2897e4cac7940407f6466a0eb4b2ff9fab3236', class: "s-social-share-wrapper" }, h("slot", { key: 'a0d4beebb29febd203d619845223c4e62b6b9c21', name: 'widget' }, h("salla-button", { key: '8615149ec0475bafc2f94d4b0bacfd49048d112f', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '187e9aa3194eedafd1355fc3e79db1118e21050f', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '7a1192bbf8e39d7fa101deae229949cc730aff0b', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
152
152
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
153
153
|
if (icon.name === platform) {
|
|
154
154
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -55,7 +55,7 @@ const SallaSocial = class {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const linksArray = this.getLinksArray();
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '63d306c569080a2719d6e2731dc5fe0d6b8f77f4' }, h("ul", { key: '12c71e69359695da6c2ab3f607973b314c639e1e', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
59
59
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
60
60
|
.replace(/\{type\}/g, link.type)
|
|
61
61
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-CrfyjHDc.js';
|
|
5
5
|
|
|
6
6
|
const sallaTabContentCss = "";
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const SallaTabContent = class {
|
|
|
31
31
|
's-tabs-content': true,
|
|
32
32
|
's-tabs-content-selected': this.isSelected
|
|
33
33
|
};
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '6272014593c424e20e4fc9cc2c59dc5c4bd1abc1', class: classes }, h("slot", { key: 'd7a3c32021cc14da0d895b5830c0cf3c8a047529' })));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
|
|
|
90
90
|
's-tabs-active': this.isSelected,
|
|
91
91
|
};
|
|
92
92
|
return [
|
|
93
|
-
h("div", { key: '
|
|
93
|
+
h("div", { key: '5ac0d60331466d359ff0ba59d7702b177c96d95b', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'dc8ed7ec638ba1c24b355eedc831c67ab15ded62' })),
|
|
94
94
|
];
|
|
95
95
|
}
|
|
96
96
|
};
|
|
@@ -143,7 +143,7 @@ const SallaTabs = class {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
return [
|
|
146
|
-
h("div", { key: '
|
|
146
|
+
h("div", { key: '32051cc4308a49527f424d2bd0ce42a1ae25b8d4', class: "s-tabs" }, h("div", { key: '5d99d5835d8f3686f38a51f2eb049887d9f7229b', class: "s-tabs-header" }, h("slot", { key: '5b78f92eb7ffe9ad56c235415ae4ea93b0ed3c1d', name: "header" })), h("div", { key: '8979a8c600d60ed79ae8ebb6894754ab3ab7be97', class: "s-tabs-content-wrapper" }, h("slot", { key: '629a4e9b7934a0074a6e7579645e08e0b37c7e61', name: "content" })))
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
149
|
get host() { return getElement(this); }
|