@salla.sa/twilight-components 2.14.373 → 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-CXs-MqTC.js → filepond-DeuvVE5J.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-C_2cyJP8.js → filepond-plugin-file-poster-Dxa8I3SY.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-4nPUz6ol.js → filepond-plugin-file-validate-size-W2mdgWG2.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CepBx5RP.js → filepond-plugin-file-validate-type-CnyOIQz9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BM279qcx.js → filepond-plugin-image-edit-CCb7ekNo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B-r1ML5w.js → filepond-plugin-image-exif-orientation-COejHavo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DAvqUcPB.js → filepond-plugin-image-preview-BO9TNEub.js} +1 -1
- package/dist/cjs/{index-B4KM1T_g.js → index-CWDMaA5x.js} +2 -2
- package/dist/cjs/{index-ClUdAQsW.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 +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 +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-DraU08VH.js → vanilla-picker-D2Lx83x-.js} +1 -1
- 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-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-TuPJAejT.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-pYAj1TCf.js → filepond-plugin-file-poster-cCpQ5Yn9.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size--DK_2h1f.js → filepond-plugin-file-validate-size-rJLWDXdJ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CLv3B3w8.js → filepond-plugin-file-validate-type-KBmivBiQ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-D_juTeqv.js → filepond-plugin-image-edit-CZ1DRDD_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-D6SDimvg.js → filepond-plugin-image-exif-orientation-B-eqhWXq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-EMuHdpX5.js → filepond-plugin-image-preview-BdtUA8MJ.js} +1 -1
- package/dist/esm/{index-DM9YbL3Z.js → index-CS4mgWBr.js} +1 -1
- package/dist/esm/{index-D0I6A6_z.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 +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 +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-Qqo0H_M-.js → vanilla-picker-s0vHL0vA.js} +1 -1
- package/dist/twilight/{p-f49fa6f4.entry.js → p-0218b0ff.entry.js} +1 -1
- package/dist/twilight/{p-e92f5e6d.entry.js → p-0543e413.entry.js} +1 -1
- package/dist/twilight/{p-078adc00.entry.js → p-067b7ce5.entry.js} +1 -1
- package/dist/twilight/{p-d69d9f88.entry.js → p-070e9633.entry.js} +1 -1
- package/dist/twilight/{p-7b6160d7.entry.js → p-0db8b7cc.entry.js} +1 -1
- package/dist/twilight/{p-b23eb62e.entry.js → p-130b9fde.entry.js} +1 -1
- package/dist/twilight/{p-d75f911d.entry.js → p-1318538a.entry.js} +1 -1
- package/dist/twilight/{p-81d6ecf6.entry.js → p-1355d443.entry.js} +1 -1
- package/dist/twilight/{p-2ea4ee86.entry.js → p-156057d6.entry.js} +1 -1
- package/dist/twilight/{p-e0aa9527.entry.js → p-15d51226.entry.js} +1 -1
- package/dist/twilight/{p-9303ae5e.entry.js → p-179298ec.entry.js} +1 -1
- package/dist/twilight/{p-a7c29ab2.entry.js → p-1c8cb0ef.entry.js} +1 -1
- package/dist/twilight/{p-d3fd6daf.entry.js → p-1e80a098.entry.js} +1 -1
- package/dist/twilight/{p-8cd9364d.entry.js → p-1f4c59ca.entry.js} +1 -1
- package/dist/twilight/p-2030e9b3.entry.js +4 -0
- package/dist/twilight/{p-ec4c5bdc.entry.js → p-21b55c4b.entry.js} +1 -1
- package/dist/twilight/{p-e7ef6d17.entry.js → p-21c806a5.entry.js} +1 -1
- package/dist/twilight/{p-beb81a94.entry.js → p-25065293.entry.js} +1 -1
- package/dist/twilight/{p-9ad56294.entry.js → p-2b964947.entry.js} +1 -1
- package/dist/twilight/p-37899dd0.entry.js +4 -0
- package/dist/twilight/{p-fhnRt3YI.js → p-3mtQhZMU.js} +2 -2
- package/dist/twilight/{p-e756721e.entry.js → p-42162ee9.entry.js} +1 -1
- package/dist/twilight/{p-6202c3db.entry.js → p-4261c148.entry.js} +1 -1
- package/dist/twilight/{p-c0d6fde8.entry.js → p-44477b3c.entry.js} +1 -1
- package/dist/twilight/{p-191b61bc.entry.js → p-531d1d9b.entry.js} +1 -1
- package/dist/twilight/{p-3bc62efe.entry.js → p-5385af9c.entry.js} +1 -1
- package/dist/twilight/{p-d532cc5c.entry.js → p-56ee82aa.entry.js} +1 -1
- package/dist/twilight/{p-12d952ec.entry.js → p-5b964337.entry.js} +1 -1
- package/dist/twilight/{p-d634d9ba.entry.js → p-61e0d078.entry.js} +1 -1
- package/dist/twilight/{p-7177877e.entry.js → p-61e83060.entry.js} +1 -1
- package/dist/twilight/{p-95c07362.entry.js → p-62614eb2.entry.js} +1 -1
- package/dist/twilight/{p-d2019eac.entry.js → p-6e016cdb.entry.js} +1 -1
- package/dist/twilight/{p-4b9b3e93.entry.js → p-6e7f4d65.entry.js} +1 -1
- package/dist/twilight/{p-b1f1e022.entry.js → p-843df720.entry.js} +1 -1
- package/dist/twilight/{p-a79a15bd.entry.js → p-8df33bfb.entry.js} +1 -1
- package/dist/twilight/{p-8a3e1f56.entry.js → p-8ecaa871.entry.js} +1 -1
- package/dist/twilight/{p-1400a600.entry.js → p-8f3ff806.entry.js} +1 -1
- package/dist/twilight/{p-84572940.entry.js → p-8fdfda0b.entry.js} +1 -1
- package/dist/twilight/{p-755ab399.entry.js → p-91973470.entry.js} +1 -1
- package/dist/twilight/{p-92cb89fe.entry.js → p-94648166.entry.js} +1 -1
- package/dist/twilight/{p-d60c17d1.entry.js → p-96216e77.entry.js} +1 -1
- package/dist/twilight/{p-797dfd7c.entry.js → p-9a9b1282.entry.js} +1 -1
- package/dist/twilight/p-9b5d0797.entry.js +4 -0
- package/dist/twilight/{p-d40c12ca.entry.js → p-9ec0d0b2.entry.js} +1 -1
- package/dist/twilight/{p-6a818aa8.entry.js → p-9f749fc5.entry.js} +1 -1
- package/dist/twilight/{p-DscsSwIa.js → p-ByQ_JtEq.js} +1 -1
- package/dist/twilight/{p-k3_m9cjN.js → p-C4_y7sLz.js} +1 -1
- package/dist/twilight/{p-CAvfXKfT.js → p-CQwuMkiJ.js} +1 -1
- package/dist/twilight/{p-D0I6A6_z.js → p-CrfyjHDc.js} +1 -1
- package/dist/twilight/{p-m0atWUhZ.js → p-DChNcvW3.js} +1 -1
- package/dist/twilight/{p-Dn05wIoL.js → p-DLIn9Lr_.js} +1 -1
- package/dist/twilight/{p-D1zOfbCq.js → p-DZ7QJ2Rp.js} +1 -1
- package/dist/twilight/{p-Bm7PVfv2.js → p-SOZG27Gu.js} +1 -1
- package/dist/twilight/{p-CXIkjeL5.js → p-TRZAgxSA.js} +1 -1
- package/dist/twilight/{p-91e8d1aa.entry.js → p-a2ef40d8.entry.js} +1 -1
- package/dist/twilight/{p-1124e117.entry.js → p-a57560cf.entry.js} +1 -1
- package/dist/twilight/{p-ac609ddd.entry.js → p-a5b3b992.entry.js} +1 -1
- package/dist/twilight/{p-a71cc1ff.entry.js → p-a6f4ea7e.entry.js} +1 -1
- package/dist/twilight/{p-3accaca5.entry.js → p-ab755139.entry.js} +1 -1
- package/dist/twilight/{p-ffcbf3a6.entry.js → p-ae9c2af6.entry.js} +1 -1
- package/dist/twilight/{p-f8255074.entry.js → p-b7f25ad6.entry.js} +1 -1
- package/dist/twilight/{p-f3267e09.entry.js → p-c6bf02e6.entry.js} +1 -1
- package/dist/twilight/{p-0a345a4f.entry.js → p-ca5cd5a1.entry.js} +1 -1
- package/dist/twilight/{p-a7501d0e.entry.js → p-ce4a4b2e.entry.js} +1 -1
- package/dist/twilight/{p-5a5d50f6.entry.js → p-d0344bd5.entry.js} +1 -1
- package/dist/twilight/{p-3fd36e29.entry.js → p-dd2b3955.entry.js} +1 -1
- package/dist/twilight/{p-87dd72b9.entry.js → p-e0d4ac10.entry.js} +1 -1
- package/dist/twilight/{p-47d61973.entry.js → p-e74049ca.entry.js} +1 -1
- package/dist/twilight/{p-049efeda.entry.js → p-e9bb3469.entry.js} +1 -1
- package/dist/twilight/{p-165e1b7c.entry.js → p-ea1c36dc.entry.js} +1 -1
- package/dist/twilight/{p-24c778de.entry.js → p-eba03779.entry.js} +1 -1
- package/dist/twilight/{p-6f9b53cf.entry.js → p-eca4d49b.entry.js} +1 -1
- package/dist/twilight/{p-c816e7ec.entry.js → p-ed3aa311.entry.js} +1 -1
- package/dist/twilight/{p-a8abd889.entry.js → p-eff7ed31.entry.js} +1 -1
- package/dist/twilight/{p-d7974589.entry.js → p-f7b7b382.entry.js} +1 -1
- package/dist/twilight/{p-6b360187.entry.js → p-fc4c3626.entry.js} +1 -1
- package/dist/twilight/{p-259053f2.entry.js → p-fda58052.entry.js} +1 -1
- package/dist/twilight/{p-bf22c662.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-503a47fc.entry.js +0 -4
- package/dist/twilight/p-a6db79a2.entry.js +0 -4
- package/dist/twilight/p-f9542326.entry.js +0 -4
|
@@ -63,6 +63,19 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
63
63
|
}
|
|
64
64
|
this.wishlistBtn?.classList.toggle('s-product-card-wishlist-added', isAdded);
|
|
65
65
|
}
|
|
66
|
+
isInWishlist() {
|
|
67
|
+
return salla.storage.get('salla::wishlist', []).includes(this.productData?.id);
|
|
68
|
+
}
|
|
69
|
+
async handleWishlistClick() {
|
|
70
|
+
const wasInWishlist = this.isInWishlist();
|
|
71
|
+
this.toggleFavoriteIcon(!wasInWishlist);
|
|
72
|
+
try {
|
|
73
|
+
await salla.wishlist.toggle(this.productData.id);
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
this.toggleFavoriteIcon(wasInWishlist);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
66
79
|
formatDate(date) {
|
|
67
80
|
let d = new Date(date);
|
|
68
81
|
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
@@ -109,14 +122,14 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
109
122
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
110
123
|
};
|
|
111
124
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
112
|
-
return (h(Host, { key: '
|
|
125
|
+
return (h(Host, { key: 'af7d81ee7f9d8d56c5a8dd6092a57dc0e12cd6f4', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '31491a836d402261afee6c8d28b1600cc5b0b06d', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '18594836114d10d13a26b307b4dd30a399c2657f', ...hrefProp }, h("img", { key: '06ccf31c089968eec9cb87fbc8a308e178459577', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
113
126
|
? 'contain'
|
|
114
127
|
: this.fitImageHeight
|
|
115
128
|
? this.fitImageHeight
|
|
116
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '
|
|
117
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () =>
|
|
129
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: 'a03cd8723f1511ab0c80b46a121f201d4b600670', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
130
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'b918024efb5f4e650c16130045d4ac76f688c66b', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
118
131
|
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
119
|
-
: '', h("div", { key: '
|
|
132
|
+
: '', h("div", { key: '41b3d71085017bce419692aa01dce166b1fe31ab', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '0d1eaecd339554a1fcd1af6fd55f0edc94474d55', class: "s-product-card-content-title" }, h("a", { key: '203bf0b7fb32629982cbcce236095b8c3663b317', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
120
133
|
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
121
134
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
122
135
|
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -125,13 +138,13 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
125
138
|
this.addBtn.donatingAmount = e.target.value;
|
|
126
139
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
127
140
|
: '')]
|
|
128
|
-
: '', h("div", { key: '
|
|
141
|
+
: '', h("div", { key: 'f15e29713c258337540bc7cbb3e16339a6e319ab', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
129
142
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Rate }), h("span", null, this.productData.rating.stars))
|
|
130
143
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
131
144
|
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
132
145
|
: '', !this.hideAddBtn && !this.compact ?
|
|
133
146
|
h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { fill: "outline", width: "wide", ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
|
|
134
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () =>
|
|
147
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick(), "data-id": "{{ product.id }}" }, h("span", { class: "text-xl", innerHTML: Heart }))
|
|
135
148
|
: '')
|
|
136
149
|
: ''), !this.hideAddBtn && this.compact ?
|
|
137
150
|
h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)))
|
|
@@ -559,7 +559,11 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
559
559
|
}
|
|
560
560
|
getInitialData() {
|
|
561
561
|
this.loading();
|
|
562
|
-
return salla.
|
|
562
|
+
return salla.api.withoutNotifier(() => salla.product.api.fetch({
|
|
563
|
+
source: Helper.getApiSource(this.getSource()),
|
|
564
|
+
source_value: this.getSourceValue(),
|
|
565
|
+
limit: this.limit
|
|
566
|
+
}).then(async (response) => {
|
|
563
567
|
if (!response.data.length) {
|
|
564
568
|
this.showPlaceholder = true;
|
|
565
569
|
this.placeholderLoader && this.placeholderLoader.remove();
|
|
@@ -575,7 +579,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
575
579
|
return;
|
|
576
580
|
}
|
|
577
581
|
this.handleResponse(response).forEach(card => this.wrapper.append(card));
|
|
578
|
-
});
|
|
582
|
+
}));
|
|
579
583
|
}
|
|
580
584
|
async loadMore() {
|
|
581
585
|
this.infiniteScroll?.loadNextPage();
|
|
@@ -57,7 +57,11 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
57
57
|
this.isReady = false;
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
return salla.
|
|
60
|
+
return salla.api.withoutNotifier(() => salla.product.api.fetch({
|
|
61
|
+
source: Helper.getApiSource(this.getSource()),
|
|
62
|
+
source_value: this.getSourceValue(),
|
|
63
|
+
limit: this.limit
|
|
64
|
+
}))
|
|
61
65
|
.then(response => Helper.injectExtraFieldsToResponse(response))
|
|
62
66
|
.then(response => {
|
|
63
67
|
this.productsData = response.data;
|
|
@@ -8,7 +8,7 @@ import { d as defineCustomElement$4 } from './salla-button2.js';
|
|
|
8
8
|
import { d as defineCustomElement$3 } from './salla-loading2.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './salla-modal2.js';
|
|
10
10
|
|
|
11
|
-
const sallaSearchCss = "";
|
|
11
|
+
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}";
|
|
12
12
|
|
|
13
13
|
const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -19,6 +19,10 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
19
19
|
this.loading = false;
|
|
20
20
|
this.typing = false;
|
|
21
21
|
this.debounce = setTimeout(() => '', 1000);
|
|
22
|
+
/**
|
|
23
|
+
* Set the component to display as a placeholder (button) that will open the modal. Defaults to `false`
|
|
24
|
+
*/
|
|
25
|
+
this.placeholder = false;
|
|
22
26
|
/**
|
|
23
27
|
* Set the component display without modal window. Defaults to `false`
|
|
24
28
|
*/
|
|
@@ -39,7 +43,8 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
39
43
|
* Show submit action buttons at the end.
|
|
40
44
|
*/
|
|
41
45
|
this.showAction = false;
|
|
42
|
-
this.productSlot =
|
|
46
|
+
this.productSlot =
|
|
47
|
+
this.host.querySelector('[slot="product"]')?.innerHTML || this.getDefaultProductSlot();
|
|
43
48
|
salla.event.on('search::open', () => this.open());
|
|
44
49
|
salla.lang.onLoaded(() => {
|
|
45
50
|
this.translationLoaded = true;
|
|
@@ -63,12 +68,12 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
63
68
|
}
|
|
64
69
|
}
|
|
65
70
|
getDefaultProductSlot() {
|
|
66
|
-
return '<div class="s-search-product-image-container">' +
|
|
71
|
+
return ('<div class="s-search-product-image-container">' +
|
|
67
72
|
' <img class="s-search-product-image" src="{image}" alt="{name}"/>' +
|
|
68
73
|
'</div>' +
|
|
69
74
|
'<div class="s-search-product-details">' +
|
|
70
75
|
' <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>' +
|
|
71
|
-
'</div>';
|
|
76
|
+
'</div>');
|
|
72
77
|
}
|
|
73
78
|
debounceSearch(event) {
|
|
74
79
|
this.typing = true;
|
|
@@ -110,12 +115,13 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
110
115
|
this.noResults.style.display = 'none';
|
|
111
116
|
//run loading spinner or stop it
|
|
112
117
|
this.loading = true;
|
|
113
|
-
salla.product
|
|
118
|
+
salla.product
|
|
119
|
+
.fetch({ source: 'search', source_value: val })
|
|
114
120
|
.then(response => {
|
|
115
121
|
this.results = response;
|
|
116
122
|
salla.event.emit('Products Searched', val);
|
|
117
123
|
})
|
|
118
|
-
.catch(err => err !== 'Query is same as previous one!' ? this.results = undefined : null)
|
|
124
|
+
.catch(err => (err !== 'Query is same as previous one!' ? (this.results = undefined) : null))
|
|
119
125
|
.finally(() => this.afterSearching(/*isEmpty*/ false));
|
|
120
126
|
}
|
|
121
127
|
afterSearching(isEmpty = true) {
|
|
@@ -126,16 +132,25 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
126
132
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
127
133
|
}
|
|
128
134
|
render() {
|
|
129
|
-
const searchContent = h("div", { key: '
|
|
130
|
-
|
|
135
|
+
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: {
|
|
136
|
+
height: this.height + 'px',
|
|
137
|
+
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
138
|
+
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '0607676854eefa6966ec38c0d2e6dd5a3c6423bb', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
139
|
+
's-search-product': true,
|
|
140
|
+
's-search-product-not-available': !product.is_available,
|
|
141
|
+
}, innerHTML: this.productSlot
|
|
131
142
|
.replace(/\{name\}/g, product.name)
|
|
132
143
|
.replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
|
|
133
|
-
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
145
|
+
? salla.money(product.regular_price)
|
|
146
|
+
: '')
|
|
147
|
+
.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')))));
|
|
148
|
+
const modalContent = (h("salla-modal", { key: 'ec8705a09e4993459d92569a5b71836cb0acefd8', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
149
|
+
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: {
|
|
150
|
+
height: this.height + 'px',
|
|
151
|
+
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
152
|
+
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
153
|
+
return this.placeholder ? (placeholderContent) : this.inline ? (h("div", { class: "s-search-modal" }, searchContent)) : (modalContent);
|
|
139
154
|
}
|
|
140
155
|
/**
|
|
141
156
|
* Run it one time after load
|
|
@@ -150,6 +165,7 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
150
165
|
}; }
|
|
151
166
|
static get style() { return sallaSearchCss; }
|
|
152
167
|
}, [0, "salla-search", {
|
|
168
|
+
"placeholder": [4],
|
|
153
169
|
"inline": [4],
|
|
154
170
|
"oval": [4],
|
|
155
171
|
"height": [2],
|
|
@@ -27,7 +27,7 @@ const SallaSkeleton = /*@__PURE__*/ proxyCustomElement(class SallaSkeleton exten
|
|
|
27
27
|
's-skeleton-item': true,
|
|
28
28
|
's-skeleton-item-circular': this.type == 'circle',
|
|
29
29
|
};
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '0d85a5f753c250b1acacb0dea809879a549d8d12', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '80c3b2555be6c0fef7794bb184c919d4be2bdf24', class: classes }, "\u00A0")));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return sallaSkeletonCss; }
|
|
33
33
|
}, [0, "salla-skeleton", {
|
|
@@ -150,7 +150,7 @@ const SallaSocialShare$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocialSha
|
|
|
150
150
|
window.a2a?.init('page');
|
|
151
151
|
}
|
|
152
152
|
render() {
|
|
153
|
-
return (h("div", { key: '
|
|
153
|
+
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 => {
|
|
154
154
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
155
155
|
if (icon.name === platform) {
|
|
156
156
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -56,7 +56,7 @@ const SallaSocial$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocial extends
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
const linksArray = this.getLinksArray();
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '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
|
|
60
60
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
61
61
|
.replace(/\{type\}/g, link.type)
|
|
62
62
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -32,7 +32,7 @@ const SallaTabContent = /*@__PURE__*/ proxyCustomElement(class SallaTabContent e
|
|
|
32
32
|
's-tabs-content': true,
|
|
33
33
|
's-tabs-content-selected': this.isSelected
|
|
34
34
|
};
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '6272014593c424e20e4fc9cc2c59dc5c4bd1abc1', class: classes }, h("slot", { key: 'd7a3c32021cc14da0d895b5830c0cf3c8a047529' })));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return sallaTabContentCss; }
|
|
38
38
|
}, [4, "salla-tab-content", {
|
|
@@ -58,7 +58,7 @@ const SallaTabHeader = /*@__PURE__*/ proxyCustomElement(class SallaTabHeader ext
|
|
|
58
58
|
's-tabs-active': this.isSelected,
|
|
59
59
|
};
|
|
60
60
|
return [
|
|
61
|
-
h("div", { key: '
|
|
61
|
+
h("div", { key: '5ac0d60331466d359ff0ba59d7702b177c96d95b', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'dc8ed7ec638ba1c24b355eedc831c67ab15ded62' })),
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
static get style() { return sallaTabHeaderCss; }
|
|
@@ -51,7 +51,7 @@ const SallaTabs = /*@__PURE__*/ proxyCustomElement(class SallaTabs extends HTMLE
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
return [
|
|
54
|
-
h("div", { key: '
|
|
54
|
+
h("div", { key: '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" })))
|
|
55
55
|
];
|
|
56
56
|
}
|
|
57
57
|
get host() { return this; }
|
|
@@ -129,7 +129,7 @@ const SallaTelInput = /*@__PURE__*/ proxyCustomElement(class SallaTelInput exten
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: 'd48f549012efc0bc465bd7da8bd5693506514d25', class: "s-tel-input" }, h("input", { key: '04fa4306973163688b74effbbbd8838b39deb6ad', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '9ae2ddda777dfc2672756f8a6ada215169c1b486', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '83961dde155948b5bfe9030575a084470d707442', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
133
133
|
}
|
|
134
134
|
componentDidLoad() {
|
|
135
135
|
this.initTelInput();
|
|
@@ -32,7 +32,7 @@ const SallaTooltip = /*@__PURE__*/ proxyCustomElement(class SallaTooltip extends
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '52b272aea520c20cdd3a46847a003c5acd099ba7', class: "s-tooltip-container" }, h("div", { key: 'b7b5663370e9c5976ffeac9325e7c871156244d1', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
36
36
|
}
|
|
37
37
|
get el() { return this; }
|
|
38
38
|
static get style() { return sallaTooltipCss; }
|
|
@@ -83,7 +83,7 @@ const SallaUserSettings$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserSett
|
|
|
83
83
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: '7ebde1b251239daf505e3ed7460d8bd21eefcb1c', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: 'ba44ce4314ef6df6a85227e5f7db5428f63c0dde', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'ae83ddc78aa668dc44ae9c32001d401b051c6503' }, h("div", { key: 'da59b1543b7d0352505db2146579183abc57d4ac', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '95999a4a02fe57158473d64847d2ad861b79384c', innerHTML: UserCancel })), h("div", { key: '416e8c839f0ee9c89ca725829594c75c7baa7b49', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '798935472d17bc427990eb0d4cb1f3172ef7c244', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'bd455f1375fa73e4dde76075f4e18dd55a7ae859', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '9148274bf7a0faccbe282531107882c072e4e918', class: "s-toggle" }, h("input", { key: 'ed079fe4e696edb5ca1e3ef2ff594a787a2030c4', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '1ab8d7680e75a743ab7c92bc533dd3466e00d6bc', class: "s-toggle-switcher" }))))), h("div", { key: 'e2beb47cd5983c0d499b44d24e2abdfd7d3bc932', class: "s-user-settings-section" }, h("salla-list-tile", { key: '15dc8a7e21faeaedb6a8b12093959d0dca89cc6a' }, h("div", { key: '2e2633ced498512feaf9af090eb2554190a6601c', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'c25d328af60bdb56af88a5783ebed45a9ab662d5', innerHTML: Bullhorn })), h("div", { key: '26a2262d700f6326acfd23455c36ccb0bbc30c90', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '5a86ab74e912a2eb8ef618c8c2a0fce9635e21ab', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'fce21eb942724cd3e662d1fa28998dd569800807', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '2d5c5fe21af1b7b4618d568aac807477377456b9', class: "s-toggle" }, h("input", { key: '6141b9aee3d7f08c1614e18622734c985f00698d', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'bb1d05fa73a6a2683fd13bbfcfda9c6da33eec5c', class: "s-toggle-switcher" }))))), h("div", { key: '725a865983025acca1fc7e38aa8ca242977e0cec', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: 'f78022f0df1fa056218cc04f634020c91e13a1de' }, h("div", { key: '0e64bb2523b466f01c73392104f433ede50d5511', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '96a246978ddc161debca6a33ca9b33c76a28c671', innerHTML: UserOff })), h("div", { key: '1b9e41414830b0d08524517959a316c410b0263e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '23baf125e4c2f93185ce23c0e75b1cdf8218bddf', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: 'c8d12d145ebc670fd43843682983c3a7ee9fd2c2', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: '94eede53889d66f641dd24492c38d2350b0901c8', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '6e6132d1d2fef544b5c504c66bc8dd84aba2a3a4', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '914742e0cb4b2b089e56c7139f2cbd4c677da85c', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '1980c63604f16ea75fafa9f3889ca29441a02e42', class: "s-user-settings-confirmation" }, h("div", { key: '82deb3934516d6132dcc006b7fde1937838b201b', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '7219b0aec0f4e3c6a269f476623929d1d993a754', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '6e5421e168e6c2b1fd04842b98e57e9bfd13c018', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'b44fa27e4afee3cadb52c39286f6130d1f6eb2a8', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
87
87
|
}
|
|
88
88
|
static get style() { return sallaUserSettingsCss; }
|
|
89
89
|
}, [0, "salla-user-settings", {
|