@salla.sa/twilight-components 2.14.373 → 2.14.375
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-CXs-MqTC.js → filepond-C6fC8vSQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-C_2cyJP8.js → filepond-plugin-file-poster-D4aLOYiI.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-4nPUz6ol.js → filepond-plugin-file-validate-size-COkEZvyR.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CepBx5RP.js → filepond-plugin-file-validate-type-D29vog-A.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BM279qcx.js → filepond-plugin-image-edit-BRA-418C.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B-r1ML5w.js → filepond-plugin-image-exif-orientation-D49CRoKg.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DAvqUcPB.js → filepond-plugin-image-preview-CUf6Tmfs.js} +1 -1
- package/dist/cjs/{index-ClUdAQsW.js → index-BCqwgnTd.js} +1 -1
- package/dist/cjs/{index-B4KM1T_g.js → index-CkLnPQyE.js} +2 -2
- 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 +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_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 +35 -10
- 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-DraU08VH.js → vanilla-picker-D0YMvIFq.js} +1 -1
- package/dist/collection/components/salla-gifting/salla-gifting.js +34 -9
- 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-gifting.js +34 -9
- 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-DAL4Xltg.js → filepond-Dv58WYPK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-pYAj1TCf.js → filepond-plugin-file-poster-DhX_LabH.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size--DK_2h1f.js → filepond-plugin-file-validate-size-BSQTXY-0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CLv3B3w8.js → filepond-plugin-file-validate-type-BV2vkyMX.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-D_juTeqv.js → filepond-plugin-image-edit-COhLXxAR.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-D6SDimvg.js → filepond-plugin-image-exif-orientation-vGEGPdXW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-EMuHdpX5.js → filepond-plugin-image-preview-DJJEZyfF.js} +1 -1
- package/dist/esm/{index-DM9YbL3Z.js → index-BVjoLf40.js} +1 -1
- package/dist/esm/{index-D0I6A6_z.js → index-DO8ZSWrC.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 +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_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 +35 -10
- 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-Qqo0H_M-.js → vanilla-picker-CRoXEEbH.js} +1 -1
- package/dist/twilight/{p-a7501d0e.entry.js → p-066d24e3.entry.js} +1 -1
- package/dist/twilight/{p-bf22c662.entry.js → p-09866a6a.entry.js} +1 -1
- package/dist/twilight/{p-ac609ddd.entry.js → p-0db791ec.entry.js} +1 -1
- package/dist/twilight/{p-92cb89fe.entry.js → p-0f79691d.entry.js} +1 -1
- package/dist/twilight/{p-f8255074.entry.js → p-1181bf0b.entry.js} +1 -1
- package/dist/twilight/{p-8cd9364d.entry.js → p-1306b083.entry.js} +1 -1
- package/dist/twilight/{p-259053f2.entry.js → p-1a770914.entry.js} +1 -1
- package/dist/twilight/p-1b5d5a2d.entry.js +4 -0
- package/dist/twilight/{p-87dd72b9.entry.js → p-1d2eb48c.entry.js} +1 -1
- package/dist/twilight/{p-6f9b53cf.entry.js → p-1d9f0a8e.entry.js} +1 -1
- package/dist/twilight/{p-7177877e.entry.js → p-1f485253.entry.js} +1 -1
- package/dist/twilight/{p-ec4c5bdc.entry.js → p-1ff3ab59.entry.js} +1 -1
- package/dist/twilight/{p-d60c17d1.entry.js → p-20300661.entry.js} +1 -1
- package/dist/twilight/{p-91e8d1aa.entry.js → p-2093700f.entry.js} +1 -1
- package/dist/twilight/{p-a79a15bd.entry.js → p-23ed2044.entry.js} +1 -1
- package/dist/twilight/{p-078adc00.entry.js → p-2533c930.entry.js} +1 -1
- package/dist/twilight/{p-1124e117.entry.js → p-277149a3.entry.js} +1 -1
- package/dist/twilight/{p-6b360187.entry.js → p-2ca69eb5.entry.js} +1 -1
- package/dist/twilight/{p-b1f1e022.entry.js → p-2d72b610.entry.js} +1 -1
- package/dist/twilight/{p-d75f911d.entry.js → p-333b3f0c.entry.js} +1 -1
- package/dist/twilight/{p-f49fa6f4.entry.js → p-33d891a4.entry.js} +1 -1
- package/dist/twilight/{p-d7974589.entry.js → p-3a8a81b0.entry.js} +1 -1
- package/dist/twilight/p-3f211631.entry.js +4 -0
- package/dist/twilight/{p-1400a600.entry.js → p-4823b8bc.entry.js} +1 -1
- package/dist/twilight/p-4f83c6fa.entry.js +4 -0
- package/dist/twilight/{p-9303ae5e.entry.js → p-505f2ab8.entry.js} +1 -1
- package/dist/twilight/{p-c816e7ec.entry.js → p-51dcacbf.entry.js} +1 -1
- package/dist/twilight/{p-b23eb62e.entry.js → p-5e37d6c5.entry.js} +1 -1
- package/dist/twilight/{p-a71cc1ff.entry.js → p-60c93cb3.entry.js} +1 -1
- package/dist/twilight/{p-0a345a4f.entry.js → p-64d129cd.entry.js} +1 -1
- package/dist/twilight/p-67653c43.entry.js +4 -0
- package/dist/twilight/{p-7b6160d7.entry.js → p-6bd5d4de.entry.js} +1 -1
- package/dist/twilight/{p-797dfd7c.entry.js → p-6cf4f164.entry.js} +1 -1
- package/dist/twilight/{p-12d952ec.entry.js → p-732dfb48.entry.js} +1 -1
- package/dist/twilight/{p-f3267e09.entry.js → p-7abf75d6.entry.js} +1 -1
- package/dist/twilight/{p-5a5d50f6.entry.js → p-7ba45f07.entry.js} +1 -1
- package/dist/twilight/{p-beb81a94.entry.js → p-8a0c5a94.entry.js} +1 -1
- package/dist/twilight/{p-2ea4ee86.entry.js → p-8cfae1fb.entry.js} +1 -1
- package/dist/twilight/{p-d634d9ba.entry.js → p-90613df7.entry.js} +1 -1
- package/dist/twilight/{p-d3fd6daf.entry.js → p-90c6bb33.entry.js} +1 -1
- package/dist/twilight/{p-81d6ecf6.entry.js → p-944da1a0.entry.js} +1 -1
- package/dist/twilight/{p-d2019eac.entry.js → p-9aa75f51.entry.js} +1 -1
- package/dist/twilight/{p-CAvfXKfT.js → p-B7UokZmD.js} +1 -1
- package/dist/twilight/{p-CXIkjeL5.js → p-C5geWkhd.js} +1 -1
- package/dist/twilight/{p-Bm7PVfv2.js → p-C9AzkaPU.js} +1 -1
- package/dist/twilight/{p-k3_m9cjN.js → p-CUMwiyB2.js} +1 -1
- package/dist/twilight/{p-DscsSwIa.js → p-CuFlUm87.js} +1 -1
- package/dist/twilight/{p-D1zOfbCq.js → p-DJjUUwwe.js} +1 -1
- package/dist/twilight/{p-D0I6A6_z.js → p-DO8ZSWrC.js} +1 -1
- package/dist/twilight/{p-fhnRt3YI.js → p-DPHWpXVr.js} +2 -2
- package/dist/twilight/{p-m0atWUhZ.js → p-_e5z4vpX.js} +1 -1
- package/dist/twilight/{p-e756721e.entry.js → p-a14550ba.entry.js} +1 -1
- package/dist/twilight/{p-d532cc5c.entry.js → p-a33ecc4d.entry.js} +1 -1
- package/dist/twilight/{p-24c778de.entry.js → p-a6aa6c5b.entry.js} +1 -1
- package/dist/twilight/{p-95c07362.entry.js → p-a87756d8.entry.js} +1 -1
- package/dist/twilight/{p-049efeda.entry.js → p-abf88fe9.entry.js} +1 -1
- package/dist/twilight/{p-a7c29ab2.entry.js → p-af7e2568.entry.js} +1 -1
- package/dist/twilight/{p-8a3e1f56.entry.js → p-afe5ce03.entry.js} +1 -1
- package/dist/twilight/{p-84572940.entry.js → p-b166707a.entry.js} +1 -1
- package/dist/twilight/{p-191b61bc.entry.js → p-b56c127d.entry.js} +1 -1
- package/dist/twilight/{p-e0aa9527.entry.js → p-b70cf161.entry.js} +1 -1
- package/dist/twilight/{p-47d61973.entry.js → p-cead97fb.entry.js} +1 -1
- package/dist/twilight/{p-d69d9f88.entry.js → p-d1984ea3.entry.js} +1 -1
- package/dist/twilight/{p-3bc62efe.entry.js → p-d3d64095.entry.js} +1 -1
- package/dist/twilight/{p-ffcbf3a6.entry.js → p-dc47ca96.entry.js} +1 -1
- package/dist/twilight/{p-6a818aa8.entry.js → p-de778929.entry.js} +1 -1
- package/dist/twilight/{p-6202c3db.entry.js → p-e5ff81b4.entry.js} +1 -1
- package/dist/twilight/{p-e7ef6d17.entry.js → p-e6533b16.entry.js} +1 -1
- package/dist/twilight/{p-3accaca5.entry.js → p-e801da3a.entry.js} +1 -1
- package/dist/twilight/{p-755ab399.entry.js → p-e8ef633a.entry.js} +1 -1
- package/dist/twilight/{p-4b9b3e93.entry.js → p-ea6392d3.entry.js} +1 -1
- package/dist/twilight/{p-9ad56294.entry.js → p-eb6c1a49.entry.js} +1 -1
- package/dist/twilight/{p-165e1b7c.entry.js → p-ef7ddff4.entry.js} +1 -1
- package/dist/twilight/{p-3fd36e29.entry.js → p-f0a3769e.entry.js} +1 -1
- package/dist/twilight/{p-a8abd889.entry.js → p-f27e7def.entry.js} +1 -1
- package/dist/twilight/{p-c0d6fde8.entry.js → p-f61bdc96.entry.js} +1 -1
- package/dist/twilight/{p-e92f5e6d.entry.js → p-f6394d42.entry.js} +1 -1
- package/dist/twilight/{p-Dn05wIoL.js → p-jblAFAWg.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +1 -0
- 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-503a47fc.entry.js +0 -4
- package/dist/twilight/p-a6db79a2.entry.js +0 -4
- package/dist/twilight/p-d40c12ca.entry.js +0 -4
- package/dist/twilight/p-f9542326.entry.js +0 -4
|
@@ -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-DO8ZSWrC.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
7
7
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
@@ -51,6 +51,7 @@ const SallaGifting = class {
|
|
|
51
51
|
this.selectedText = undefined;
|
|
52
52
|
this.hasError = false;
|
|
53
53
|
this.timeZone = null;
|
|
54
|
+
this.receiverCountryCode = salla.config.get('store.scope.countries')?.[0] || salla.config.get('store.store_country') || 'SA';
|
|
54
55
|
this.hostId = `salla-gifting-${Math.random().toString(36).slice(2, 10)}`;
|
|
55
56
|
/**
|
|
56
57
|
* The form selector to be used to get the form data
|
|
@@ -302,18 +303,28 @@ const SallaGifting = class {
|
|
|
302
303
|
this.selectedText = event.target.value;
|
|
303
304
|
this.customTextArea.classList.remove('s-form-has-error');
|
|
304
305
|
}
|
|
306
|
+
clearError(key) {
|
|
307
|
+
if (this.errors?.[key]) {
|
|
308
|
+
const { [key]: _, ...rest } = this.errors;
|
|
309
|
+
this.errors = rest;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
305
312
|
handleSenderName(event) {
|
|
306
313
|
this.senderName = event.target.value;
|
|
314
|
+
this.clearError('sender_name');
|
|
307
315
|
}
|
|
308
316
|
handleReceiverName(event) {
|
|
309
317
|
this.receiverName = event.target.value;
|
|
318
|
+
this.clearError('receiver.name');
|
|
310
319
|
}
|
|
311
320
|
handleReceiverCity(event) {
|
|
312
321
|
this.receiverCity = event.target.value;
|
|
322
|
+
this.clearError('receiver.city_id');
|
|
313
323
|
}
|
|
314
324
|
async handleCountryChange(event) {
|
|
315
325
|
const countryId = event.target.value;
|
|
316
326
|
this.selectedCountryId = countryId;
|
|
327
|
+
this.clearError('receiver.country');
|
|
317
328
|
// Find the selected country and store its country_code
|
|
318
329
|
const selectedCountry = this.gift?.countries?.find(country => country.id == countryId);
|
|
319
330
|
this.selectedCountryCode = selectedCountry?.country_code;
|
|
@@ -358,6 +369,7 @@ const SallaGifting = class {
|
|
|
358
369
|
let phone = event.detail;
|
|
359
370
|
this.receiverMobile = phone.number;
|
|
360
371
|
this.receiverCountryCode = phone.country_code;
|
|
372
|
+
this.clearError('receiver.mobile');
|
|
361
373
|
}
|
|
362
374
|
handleDateTimePicker(event) {
|
|
363
375
|
this.deliveryDate = event.detail;
|
|
@@ -384,12 +396,24 @@ const SallaGifting = class {
|
|
|
384
396
|
this.calendarFormGroup.classList.add('s-form-has-error');
|
|
385
397
|
return;
|
|
386
398
|
}
|
|
387
|
-
// Validate
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
399
|
+
// Validate required fields
|
|
400
|
+
const requiredFields = [
|
|
401
|
+
{ key: 'sender_name', value: this.senderName, label: this.senderNameLabel },
|
|
402
|
+
{ key: 'receiver.name', value: this.receiverName, label: this.receiverNameFieldLabel },
|
|
403
|
+
{ key: 'receiver.mobile', value: this.receiverMobile, label: this.receiverMobileFieldLabel },
|
|
404
|
+
...(this.physicalProducts ? [
|
|
405
|
+
{ key: 'receiver.country', value: this.selectedCountryId, label: this.receiverCountryFieldLabel },
|
|
406
|
+
{ key: 'receiver.city_id', value: this.receiverCity, label: this.receiverCityFieldLabel },
|
|
407
|
+
] : []),
|
|
408
|
+
];
|
|
409
|
+
const validationErrors = {};
|
|
410
|
+
requiredFields.forEach(({ key, value, label }) => {
|
|
411
|
+
if (!value) {
|
|
412
|
+
validationErrors[key] = salla.lang.get('common.errors.field_required', { attribute: label });
|
|
391
413
|
}
|
|
392
|
-
|
|
414
|
+
});
|
|
415
|
+
if (Object.keys(validationErrors).length) {
|
|
416
|
+
this.errors = validationErrors;
|
|
393
417
|
this.setWrapperHeight(2, 150, 0);
|
|
394
418
|
return;
|
|
395
419
|
}
|
|
@@ -402,8 +426,9 @@ const SallaGifting = class {
|
|
|
402
426
|
donation_amount: donatingAmount ? donatingAmount : null,
|
|
403
427
|
receiver: {
|
|
404
428
|
name: this.receiverName,
|
|
405
|
-
|
|
429
|
+
mobile_country_code: this.receiverCountryCode,
|
|
406
430
|
mobile: this.receiverMobile,
|
|
431
|
+
...(this.physicalProducts && this.selectedCountryCode ? { country_code: this.selectedCountryCode } : {}),
|
|
407
432
|
...(this.receiverCity && this.physicalProducts ? { city_id: this.receiverCity } : {})
|
|
408
433
|
},
|
|
409
434
|
has_apple_pay: salla.helpers.hasApplePay(),
|
|
@@ -461,7 +486,7 @@ const SallaGifting = class {
|
|
|
461
486
|
}
|
|
462
487
|
render() {
|
|
463
488
|
return [
|
|
464
|
-
h("div", { key: '
|
|
489
|
+
h("div", { key: 'ba5575020df2e6e1d72eadc5c15ffa2629a7e0f0' }, h("salla-list-tile", { key: '2be6a003eb1881b35001d184fe4e7d8b3a48bcc2', class: this.generateClass() }, h("div", { key: 'c1c9762462177aac3571c72608921fb3a71e0c1e', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '6d25fe0684792b2b18c48b23c3a78fe1f428d371' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '8943aeec88dd610d159b3ee09e7cf784bfb85057', slot: "subtitle" }, h("div", { key: '7e93b7590c04431344d940965f851e6c21565921' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '0b4c0390853b20e1cc1dcd63215d639f6da28d5b', slot: "action" }, h("salla-button", { key: '8597cbcfecfe87c4057a0712e78cf5c3ccea9b89', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '48ee9b4c7fd63ae5d49acf137fb429292ade8fd7', name: "widget-btn-content" }, h("div", { key: '05681d9d1f8f99b0c8ac722fc4c49a0b7c9dfb7d', class: "s-gifting-widget-action-content" }, h("span", { key: '4c22063c0d47096166363bbf458ec2b57615bc6c', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '2688bf6e45d28f6696e8581d745626ac749b30c6' }, this.sectionBtnText)))))), h("salla-modal", { key: '338ce16bd3c615b5a97d8bf09d1bd1fa6388194e', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '33662376e8979c321fce3d2c01060881439bb652', slot: "loading" }, h("div", { key: 'ae3173d44990f7c2f41206f9ecd63dc1b30c2a1e', class: "s-gifting-skeleton" }, h("div", { key: 'dcab87f7a921763c0a52d122c2eb5b87aca41792', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'c41d6ced2a82554aeb7e36986111832bef6f1f0f', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: 'cbf4e6c3eccc896f4b2675f5877df055d5b884be', class: "s-gifting-modal-title" }, h("div", { key: '544134f67bdac37775af422cac9688c7975b0c4b', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '62d175f4b42d24ded6f87f3af700af35febe108f', height: '15px', width: '150px' })))), h("div", { key: '7dc39034234bfb0e57cbbc2c395a639cd383a77b', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '5d73d76103a98cd477f4604c3408b6071434c2f5', height: '10px', width: '150px' }), h("salla-skeleton", { key: '477ee6bf604e799336e7c45f119cfcdbc23cb0ed', height: '230px' }), h("salla-skeleton", { key: 'b8c51be1f614081b900465e1445d726be5bb3d48', height: '10px', width: '150px' }), h("salla-skeleton", { key: '6dae16f42decbd267fa03b7a71103a32fe30e2b1', height: '30px' }), h("salla-skeleton", { key: '1b077b2a03c438446a0a9c115e2b61377fcbd542', height: '40px' })))), h("slot", { key: 'fb0253f4ca6c6e4cafd0c8496e94d0e6da37d748', name: "header" }), !!this.hasError ?
|
|
465
490
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
466
491
|
:
|
|
467
492
|
[
|
|
@@ -472,12 +497,12 @@ const SallaGifting = class {
|
|
|
472
497
|
: ""), h("div", { class: "anime-item" }, h("div", { class: "s-form-group s-gifting-selectText", ref: el => this.textSelect = el }, h("select", { id: "gift-text-selection", name: "gift-text-selection", class: "s-form-control s-gifting-select", onChange: e => this.toggleGiftText(e) }, h("option", { "data-id": null, selected: true }, this.selectGiftMessage), this.gift && this.gift.gift_texts ?
|
|
473
498
|
this.gift?.gift_texts.map((txt) => h("option", { "data-id": txt.id, value: txt.text, key: txt.id }, txt.text)) : '', h("option", { "data-id": "custom" }, this.giftCustomText))), h("div", { class: this.showGiftText ? "s-form-group s-gifting-textarea shown" : "s-form-group s-gifting-textarea hide", ref: (el) => this.customTextArea = el }, h("label", { htmlFor: "gift-custom-text", class: "s-form-label" }, this.giftCustomText), h("div", { class: "mt-1" }, h("textarea", { onInput: (event) => this.handleTextAreaChange(event), rows: 4, ref: (el) => this.textArea = el, name: "gift-custom-text", id: "gift-custom-text", class: "s-form-control" })))), h("div", { class: "anime-item" }, h("salla-button", { color: "primary", width: "wide", onClick: () => this.goToStep2() }, h("span", null, this.nextStep)))), h("div", { class: "s-gifting-step-two gift-step-2", ref: el => this.step2Elems = el }, h("div", { class: this.errors && this.errors['sender_name'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { htmlFor: "sender_name", class: "s-form-label" }, this.senderNameLabel), h("input", { type: "text", class: "s-form-control", name: "sender_name", id: "sender_name", value: this.senderName, onInput: (event) => this.handleSenderName(event), placeholder: "" }), this.errors && this.errors['sender_name'] ?
|
|
474
499
|
h("span", { class: "s-gifting-error" }, this.errors['sender_name']) : ''), h("div", { class: this.errors && this.errors['receiver.name'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { htmlFor: "receiver_name", class: "s-form-label" }, this.receiverNameFieldLabel), h("input", { type: "text", class: "s-form-control", name: "receiver_name", id: "receiver_name", value: "", onInput: (event) => this.handleReceiverName(event), placeholder: "" }), this.errors && this.errors['receiver.name'] ?
|
|
475
|
-
h("span", { class: "s-gifting-error" }, this.errors['receiver.name']) : ''), h("div", { class: this.errors && this.errors['receiver.mobile'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverMobileFieldLabel), h("salla-tel-input", { class: "s-gifting-tel-input", phone: this.receiverMobile, countryCode: this.
|
|
500
|
+
h("span", { class: "s-gifting-error" }, this.errors['receiver.name']) : ''), h("div", { class: this.errors && this.errors['receiver.mobile'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverMobileFieldLabel), h("salla-tel-input", { class: "s-gifting-tel-input", phone: this.receiverMobile, countryCode: this.receiverCountryCode, onPhoneEntered: (e) => this.handlePhoneInputChange(e) }), this.errors && this.errors['receiver.mobile'] ?
|
|
476
501
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.mobile']) : ''), this.physicalProducts &&
|
|
477
502
|
h("div", null, h("div", { class: this.errors && this.errors['receiver.country'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverCountryFieldLabel), h("select", { name: "country", class: "s-form-control", onChange: (event) => this.handleCountryChange(event), required: true }, h("option", { value: "" }, this.selectCountry), this.gift?.countries?.map((country) => (h("option", { value: country.id }, country.name)))), this.errors && this.errors['receiver.country'] ?
|
|
478
503
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.country']) : ''), h("div", { class: this.errors && this.errors['receiver.city_id'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
|
|
479
504
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), h("div", { class: "s-gifting-info anime-item opacity-0" }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo))), !this.physicalProducts && h("div", { class: "anime-item opacity-0" }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: "s-gifting-step-two-footer anime-item opacity-0" }, h("a", { href: "#!", innerHTML: arrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
480
|
-
], h("slot", { key: '
|
|
505
|
+
], h("slot", { key: '8b69297ac7f9a527c12325a64a267825ea5ee48b', name: "footer" })))
|
|
481
506
|
];
|
|
482
507
|
}
|
|
483
508
|
};
|
|
@@ -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-DO8ZSWrC.js';
|
|
5
5
|
|
|
6
6
|
const SallaHook = 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, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.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-DO8ZSWrC.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|