@salla.sa/twilight-components 2.14.354 → 2.14.355
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-CuKErtOy.js → filepond-D0WqQOsJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-d-8BSuST.js → filepond-plugin-file-poster-ZuSz5Sia.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-zgI_JcqY.js → filepond-plugin-file-validate-size-C3-G9fQU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cy8IgG2P.js → filepond-plugin-file-validate-type-pC6E-hQQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-9ZAUzCvh.js → filepond-plugin-image-edit-B6RJ-sf_.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DzNe_tY2.js → filepond-plugin-image-exif-orientation-BAKA7TOr.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Cfna6xTB.js → filepond-plugin-image-preview-C_5JV3u4.js} +1 -1
- package/dist/cjs/{index-ff-xJfhj.js → index-DdedaQQE.js} +1 -1
- package/dist/cjs/{index-Ce40E8tZ.js → index-DgOViweO.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 +2 -2
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- 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-count-down_2.cjs.entry.js +1 -1
- 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 +6 -18
- 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 +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +2 -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 +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +68 -29
- 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-zQsXQIff.js → vanilla-picker-Cd4v7i9t.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +5 -17
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +32 -1
- package/dist/collection/components/salla-slider/salla-slider.js +89 -29
- 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-apps-icons.js +1 -1
- package/dist/components/salla-payments.js +5 -17
- package/dist/components/salla-products-slider2.js +2 -1
- package/dist/components/salla-slider2.js +69 -28
- 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-DEzyRrdH.js → filepond-YrJ-JCRn.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DyLcCcHM.js → filepond-plugin-file-poster-UWiXxhAl.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cxp5Yzea.js → filepond-plugin-file-validate-size-CuFnfvIq.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D2qNOQP4.js → filepond-plugin-file-validate-type-BgYsHZEQ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DndTlA7m.js → filepond-plugin-image-edit-BQtZWl9D.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CiT1CQoK.js → filepond-plugin-image-exif-orientation-Dp7a5KRi.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DBG7keFZ.js → filepond-plugin-image-preview-DvWrR7vg.js} +1 -1
- package/dist/esm/{index-BLw7mdtM.js → index-DwU5NnFF.js} +1 -1
- package/dist/esm/{index-B74h9G6a.js → index-PHxPq4LJ.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 +2 -2
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- 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-count-down_2.entry.js +1 -1
- 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 +6 -18
- 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 +1 -1
- package/dist/esm/salla-products-slider.entry.js +2 -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 +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +68 -29
- 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-CtwkXTap.js → vanilla-picker-fpTcpsmb.js} +1 -1
- package/dist/twilight/{p-3cffa4c9.entry.js → p-009d1b75.entry.js} +1 -1
- package/dist/twilight/{p-fe983809.entry.js → p-04e21492.entry.js} +1 -1
- package/dist/twilight/{p-9051a540.entry.js → p-0cc07ad0.entry.js} +1 -1
- package/dist/twilight/{p-309a0ba4.entry.js → p-0f45b27f.entry.js} +1 -1
- package/dist/twilight/p-112b4c91.entry.js +4 -0
- package/dist/twilight/{p-afd61e47.entry.js → p-14749ab0.entry.js} +1 -1
- package/dist/twilight/{p-a2756650.entry.js → p-1c66e567.entry.js} +1 -1
- package/dist/twilight/{p-2de9df64.entry.js → p-1e405d4e.entry.js} +1 -1
- package/dist/twilight/{p-c56a47b0.entry.js → p-1eb76272.entry.js} +1 -1
- package/dist/twilight/{p-b71fc1b5.entry.js → p-2322e6fc.entry.js} +1 -1
- package/dist/twilight/{p-f57ca123.entry.js → p-2626b358.entry.js} +1 -1
- package/dist/twilight/{p-b588ef46.entry.js → p-29e92637.entry.js} +1 -1
- package/dist/twilight/{p-229275db.entry.js → p-2ca5a8af.entry.js} +1 -1
- package/dist/twilight/{p-6c8f5c94.entry.js → p-2cb04fa6.entry.js} +1 -1
- package/dist/twilight/{p-32ca34ec.entry.js → p-2e97a6cd.entry.js} +1 -1
- package/dist/twilight/{p-bVqtOl1F.js → p-2tEKDOI-.js} +1 -1
- package/dist/twilight/{p-6be7bbb0.entry.js → p-30b58124.entry.js} +1 -1
- package/dist/twilight/{p-efc18ce6.entry.js → p-333171ce.entry.js} +1 -1
- package/dist/twilight/{p-f4039c40.entry.js → p-33cd8edb.entry.js} +1 -1
- package/dist/twilight/p-3774fa61.entry.js +4 -0
- package/dist/twilight/{p-212a0710.entry.js → p-37aa131b.entry.js} +1 -1
- package/dist/twilight/{p-232185ec.entry.js → p-3c76e2d4.entry.js} +1 -1
- package/dist/twilight/{p-f5ad6572.entry.js → p-3cbbd625.entry.js} +1 -1
- package/dist/twilight/{p-6fa02770.entry.js → p-3db132b8.entry.js} +1 -1
- package/dist/twilight/{p-8c189d76.entry.js → p-3eff2372.entry.js} +1 -1
- package/dist/twilight/{p-c73189e3.entry.js → p-428fe4e6.entry.js} +1 -1
- package/dist/twilight/{p-40fe4b01.entry.js → p-475a61f8.entry.js} +1 -1
- package/dist/twilight/{p-i5J7XGS6.js → p-4D4VVK4U.js} +1 -1
- package/dist/twilight/{p-fc65084f.entry.js → p-4c31b81f.entry.js} +1 -1
- package/dist/twilight/{p-654429df.entry.js → p-52ffcaba.entry.js} +1 -1
- package/dist/twilight/{p-d4edfed4.entry.js → p-534be529.entry.js} +1 -1
- package/dist/twilight/{p-f47b130c.entry.js → p-59697c9b.entry.js} +1 -1
- package/dist/twilight/{p-fd81a311.entry.js → p-5c5aba15.entry.js} +1 -1
- package/dist/twilight/{p-5d044466.entry.js → p-666bea2d.entry.js} +1 -1
- package/dist/twilight/p-6a934903.entry.js +4 -0
- package/dist/twilight/{p-10dcd981.entry.js → p-6e89154f.entry.js} +1 -1
- package/dist/twilight/{p-5d21334a.entry.js → p-6f69cfa5.entry.js} +1 -1
- package/dist/twilight/{p-01daaaa6.entry.js → p-76ce3ec0.entry.js} +1 -1
- package/dist/twilight/{p-9f1c561f.entry.js → p-781f1219.entry.js} +1 -1
- package/dist/twilight/{p-5c9281d3.entry.js → p-78e33f77.entry.js} +1 -1
- package/dist/twilight/{p-b206a0a1.entry.js → p-79aa2c2f.entry.js} +1 -1
- package/dist/twilight/{p-4036d5dc.entry.js → p-7a2bd261.entry.js} +1 -1
- package/dist/twilight/{p-a100bd38.entry.js → p-7a769233.entry.js} +1 -1
- package/dist/twilight/{p-d86ce978.entry.js → p-7eef10c9.entry.js} +1 -1
- package/dist/twilight/{p-0134b4fd.entry.js → p-8606c783.entry.js} +1 -1
- package/dist/twilight/{p-e3e33238.entry.js → p-8719301a.entry.js} +1 -1
- package/dist/twilight/{p-3e0d814c.entry.js → p-8ad78dfa.entry.js} +1 -1
- package/dist/twilight/{p-bf65b263.entry.js → p-9bea43d6.entry.js} +1 -1
- package/dist/twilight/{p-aab45a16.entry.js → p-9c01357f.entry.js} +1 -1
- package/dist/twilight/{p-DpsbV3x1.js → p-BPRHuBhm.js} +1 -1
- package/dist/twilight/{p-B69XOH6h.js → p-BRh_eoK1.js} +1 -1
- package/dist/twilight/{p-_-aXm0Wb.js → p-BitILwJ_.js} +1 -1
- package/dist/twilight/{p-CQq81yb5.js → p-Bx_UY06u.js} +1 -1
- package/dist/twilight/{p-BPqZ249Z.js → p-C6S8Hr36.js} +1 -1
- package/dist/twilight/{p-shFpk0H3.js → p-DtkaGJwR.js} +1 -1
- package/dist/twilight/{p-B74h9G6a.js → p-PHxPq4LJ.js} +1 -1
- package/dist/twilight/{p-d1203242.entry.js → p-a5bb66a3.entry.js} +1 -1
- package/dist/twilight/{p-b2332516.entry.js → p-ad9c9773.entry.js} +1 -1
- package/dist/twilight/{p-7040ea33.entry.js → p-b502e876.entry.js} +1 -1
- package/dist/twilight/{p-32732ca7.entry.js → p-b8d8175a.entry.js} +1 -1
- package/dist/twilight/{p-3d0bb451.entry.js → p-ba5fc67a.entry.js} +1 -1
- package/dist/twilight/{p-e6bb7362.entry.js → p-c3750eaa.entry.js} +1 -1
- package/dist/twilight/{p-ec2fd37e.entry.js → p-d7037864.entry.js} +1 -1
- package/dist/twilight/{p-6b8453be.entry.js → p-d9880694.entry.js} +1 -1
- package/dist/twilight/{p-aae761ff.entry.js → p-db0b3ed2.entry.js} +1 -1
- package/dist/twilight/{p-08badc32.entry.js → p-dbb4ede5.entry.js} +1 -1
- package/dist/twilight/{p-e7813c80.entry.js → p-e017e403.entry.js} +1 -1
- package/dist/twilight/{p-47ac0ca5.entry.js → p-e31177e7.entry.js} +1 -1
- package/dist/twilight/{p-b1fc6dfc.entry.js → p-e5b90edd.entry.js} +1 -1
- package/dist/twilight/{p-ec77c523.entry.js → p-ec3f15ee.entry.js} +1 -1
- package/dist/twilight/{p-07da7390.entry.js → p-edc41bbc.entry.js} +1 -1
- package/dist/twilight/{p-8f1f052c.entry.js → p-f2c23e42.entry.js} +1 -1
- package/dist/twilight/{p-2d880232.entry.js → p-f34f5a30.entry.js} +1 -1
- package/dist/twilight/{p-0aa5a12a.entry.js → p-f578dea7.entry.js} +1 -1
- package/dist/twilight/{p-33093880.entry.js → p-ffbd5949.entry.js} +1 -1
- package/dist/twilight/{p-BCxm-ISm.js → p-fq0HEcD_.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-payments/salla-payments.d.ts +0 -2
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +8 -0
- package/dist/types/components/salla-slider/salla-slider.d.ts +20 -2
- package/dist/types/components.d.ts +22 -0
- package/package.json +5 -5
- package/dist/twilight/p-2a927eac.entry.js +0 -4
- package/dist/twilight/p-4cd9da44.entry.js +0 -4
- package/dist/twilight/p-d9e7973d.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-PHxPq4LJ.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-PHxPq4LJ.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-PHxPq4LJ.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.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-PHxPq4LJ.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-PHxPq4LJ.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-PHxPq4LJ.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-PHxPq4LJ.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.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-PHxPq4LJ.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -25,36 +25,24 @@ const SallaPayments = class {
|
|
|
25
25
|
this.exclude = [];
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.codSlot = this.host.querySelector('[slot="cod"]')?.innerHTML || `<li class="s-payments-list-item"> <img width="100%" height="100%" src="${this.placeholderImage}" data-src={image} class="lazy" alt="COD"/><li>`;
|
|
28
|
+
this.paymentSlot = this.host.querySelector('[slot="payment"]')?.innerHTML || `<li class="s-payments-list-item"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" alt="{payment}" /></li>`;
|
|
29
|
+
this.sbcSlot = this.host.querySelector('[slot="sbc"]')?.innerHTML || `<li class="s-payments-list-item"><a target="_blank" href="{link}"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" class="s-payments-sbc-image" alt="SBC" /></a></li>`;
|
|
30
|
+
this.codSlot = this.host.querySelector('[slot="cod"]')?.innerHTML || `<li class="s-payments-list-item"><img width="100%" height="100%" decoding="async" loading="lazy" src="{image}" alt="COD" /></li>`;
|
|
32
31
|
this.payments = salla.config.get('store.settings.payments');
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
render() {
|
|
36
35
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
37
36
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
38
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'd93c9cfafd67203e3d85f78296b6256dbdfd8d78', class: "s-payments-list-wrap" }, h("ul", { key: '9520b4979082d6e733edb3ec5d6defe97beec6de', class: "s-payments-list" }, madeInKSA && h("li", { key: '93ba9c342f5809d6b75ab00f99126a351c18ccc5', class: "s-payments-list-item" }, h("img", { key: '8e62415523f4a1ccf839d394d5089ee49e0873c4', width: "100%", height: "100%", decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
39
38
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
40
39
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
41
40
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
42
41
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
43
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
42
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '0acb0d8a0f4c4c53c9e439127418081684cd2bd1', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
44
43
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
45
44
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
46
45
|
}
|
|
47
|
-
componentDidLoad() {
|
|
48
|
-
//todo:: double check about the following workaround, it looks not normal
|
|
49
|
-
document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
|
|
50
|
-
// fix lazy loaded images that have 100% width and height
|
|
51
|
-
this.host.querySelectorAll('.lazy').forEach((img) => {
|
|
52
|
-
img.addEventListener('load', () => {
|
|
53
|
-
img.setAttribute('width', "100%");
|
|
54
|
-
img.setAttribute('height', "100%");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
46
|
componentDidRender() {
|
|
59
47
|
//todo:: double check about the following workaround to reduce the dom length, it looks unusal
|
|
60
48
|
this.host.querySelectorAll('#payment-slot').forEach(el => el.replaceWith(el.firstChild));
|
|
@@ -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-PHxPq4LJ.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-PHxPq4LJ.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-PHxPq4LJ.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-PHxPq4LJ.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-B5RLi6Xo.js';
|
|
@@ -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-PHxPq4LJ.js';
|
|
5
5
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -104,7 +104,7 @@ const SallaProductsSlider = class {
|
|
|
104
104
|
if (!this.canRender()) {
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
|
|
107
|
+
return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, ...(this.sliderProps || {}), "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
|
|
108
108
|
}
|
|
109
109
|
get host() { return getElement(this); }
|
|
110
110
|
};
|
|
@@ -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-PHxPq4LJ.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-PHxPq4LJ.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-B5RLi6Xo.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-PHxPq4LJ.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- 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-PHxPq4LJ.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { H as Helper } from './Helper-B5RLi6Xo.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -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-PHxPq4LJ.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -9857,6 +9857,11 @@ const SallaSlider = class {
|
|
|
9857
9857
|
* Show/hide thumbs slider arrows
|
|
9858
9858
|
*/
|
|
9859
9859
|
this.showThumbsControls = true;
|
|
9860
|
+
/**
|
|
9861
|
+
* When enabled and there is exactly one slide in the `items` slot,
|
|
9862
|
+
* render without initializing Swiper (single slide mode).
|
|
9863
|
+
*/
|
|
9864
|
+
this.enableSingleSlideMode = false;
|
|
9860
9865
|
/**
|
|
9861
9866
|
* Enable autoplay - working with `type="carousel" only`
|
|
9862
9867
|
*/
|
|
@@ -9888,6 +9893,9 @@ const SallaSlider = class {
|
|
|
9888
9893
|
this.isBeginning = true;
|
|
9889
9894
|
/** Use matchMedia instead of window.innerWidth to avoid forced reflow (Lighthouse recommended) */
|
|
9890
9895
|
this.isDesktopViewport = typeof window !== 'undefined' ? window.matchMedia('(min-width: 768px)').matches : true;
|
|
9896
|
+
/** When true, only one slide is present; we render without Swiper for performance. */
|
|
9897
|
+
this.singleSlideMode = false;
|
|
9898
|
+
this._rafId = null;
|
|
9891
9899
|
this.viewportMediaQuery = null;
|
|
9892
9900
|
this.hasThumbSlot = false;
|
|
9893
9901
|
this.pre_defined_config = {
|
|
@@ -9943,7 +9951,7 @@ const SallaSlider = class {
|
|
|
9943
9951
|
* @returns The Swiper slider instance
|
|
9944
9952
|
*/
|
|
9945
9953
|
async sliderInstance() {
|
|
9946
|
-
return this.slider;
|
|
9954
|
+
return this.singleSlideMode ? undefined : this.slider;
|
|
9947
9955
|
}
|
|
9948
9956
|
/**
|
|
9949
9957
|
* Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
|
|
@@ -9953,6 +9961,8 @@ const SallaSlider = class {
|
|
|
9953
9961
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
9954
9962
|
* **/
|
|
9955
9963
|
async slideTo(index, speed, runCallbacks) {
|
|
9964
|
+
if (!this.slider)
|
|
9965
|
+
return;
|
|
9956
9966
|
return this.slider.slideTo(index, speed, runCallbacks);
|
|
9957
9967
|
}
|
|
9958
9968
|
/**
|
|
@@ -9980,7 +9990,7 @@ const SallaSlider = class {
|
|
|
9980
9990
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
9981
9991
|
* **/
|
|
9982
9992
|
async slideToLoop(index, speed, runCallbacks) {
|
|
9983
|
-
this.slider
|
|
9993
|
+
this.slider?.slideToLoop(index, speed, runCallbacks);
|
|
9984
9994
|
}
|
|
9985
9995
|
/**
|
|
9986
9996
|
* Does the same as .slideNext but for the case when used with enabled loop. So this method will slide to next slide with realIndex matching to next index
|
|
@@ -9989,7 +9999,7 @@ const SallaSlider = class {
|
|
|
9989
9999
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
9990
10000
|
* **/
|
|
9991
10001
|
async slideNextLoop(speed, runCallbacks) {
|
|
9992
|
-
this.slider
|
|
10002
|
+
this.slider?.slideNextLoop(speed, runCallbacks);
|
|
9993
10003
|
}
|
|
9994
10004
|
/**
|
|
9995
10005
|
* Does the same as .slidePrev but for the case when used with enabled loop. So this method will slide to previous slide with realIndex matching to previous index
|
|
@@ -9998,7 +10008,7 @@ const SallaSlider = class {
|
|
|
9998
10008
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
9999
10009
|
* **/
|
|
10000
10010
|
async slidePrevLoop(speed, runCallbacks) {
|
|
10001
|
-
this.slider
|
|
10011
|
+
this.slider?.slidePrevLoop(speed, runCallbacks);
|
|
10002
10012
|
}
|
|
10003
10013
|
/**
|
|
10004
10014
|
* Reset slider position to currently active slide for the duration equal to 'speed' parameter.
|
|
@@ -10007,7 +10017,7 @@ const SallaSlider = class {
|
|
|
10007
10017
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
10008
10018
|
* **/
|
|
10009
10019
|
async slideReset(speed, runCallbacks) {
|
|
10010
|
-
this.slider
|
|
10020
|
+
this.slider?.slideReset(speed, runCallbacks);
|
|
10011
10021
|
}
|
|
10012
10022
|
/**
|
|
10013
10023
|
* Reset slider position to closest slide/snap point for the duration equal to 'speed' parameter.
|
|
@@ -10015,56 +10025,56 @@ const SallaSlider = class {
|
|
|
10015
10025
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
10016
10026
|
* **/
|
|
10017
10027
|
async slideToClosest(speed, runCallbacks) {
|
|
10018
|
-
this.slider
|
|
10028
|
+
this.slider?.slideToClosest(speed, runCallbacks);
|
|
10019
10029
|
}
|
|
10020
10030
|
/**
|
|
10021
10031
|
* You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately:
|
|
10022
10032
|
* **/
|
|
10023
10033
|
async update() {
|
|
10024
|
-
this.slider
|
|
10034
|
+
this.slider?.update();
|
|
10025
10035
|
}
|
|
10026
10036
|
/**
|
|
10027
10037
|
* Force slider to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
|
|
10028
10038
|
* @param {number} speed - Transition duration (in ms).
|
|
10029
10039
|
* **/
|
|
10030
10040
|
async updateAutoHeight(speed) {
|
|
10031
|
-
this.slider
|
|
10041
|
+
this.slider?.updateAutoHeight(speed);
|
|
10032
10042
|
}
|
|
10033
10043
|
/**
|
|
10034
10044
|
* recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
|
|
10035
10045
|
* **/
|
|
10036
10046
|
async updateSlides() {
|
|
10037
|
-
this.slider
|
|
10047
|
+
this.slider?.updateSlides();
|
|
10038
10048
|
}
|
|
10039
10049
|
/**
|
|
10040
10050
|
* recalculate slider progress
|
|
10041
10051
|
* **/
|
|
10042
10052
|
async updateProgress() {
|
|
10043
|
-
this.slider
|
|
10053
|
+
this.slider?.updateProgress();
|
|
10044
10054
|
}
|
|
10045
10055
|
/**
|
|
10046
10056
|
* update active/prev/next classes on slides and bullets
|
|
10047
10057
|
* **/
|
|
10048
10058
|
async updateSlidesClasses() {
|
|
10049
|
-
this.slider
|
|
10059
|
+
this.slider?.updateSlidesClasses();
|
|
10050
10060
|
}
|
|
10051
10061
|
/**
|
|
10052
10062
|
* Get slider slides
|
|
10053
10063
|
* **/
|
|
10054
10064
|
async getSlides() {
|
|
10055
|
-
return await this.slider?.slides;
|
|
10065
|
+
return this.singleSlideMode ? undefined : await this.slider?.slides;
|
|
10056
10066
|
}
|
|
10057
10067
|
/**
|
|
10058
10068
|
* Get slider slides
|
|
10059
10069
|
* **/
|
|
10060
10070
|
async updateSize() {
|
|
10061
|
-
return await this.slider
|
|
10071
|
+
return await this.slider?.updateSize();
|
|
10062
10072
|
}
|
|
10063
10073
|
/**
|
|
10064
10074
|
* Get thumbs slider update
|
|
10065
10075
|
* **/
|
|
10066
10076
|
async sliderInit() {
|
|
10067
|
-
return await this.slider
|
|
10077
|
+
return await this.slider?.init();
|
|
10068
10078
|
}
|
|
10069
10079
|
/**
|
|
10070
10080
|
* Get thumbs slider slides
|
|
@@ -10103,6 +10113,8 @@ const SallaSlider = class {
|
|
|
10103
10113
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
10104
10114
|
* **/
|
|
10105
10115
|
async thumbsSlideTo(index, speed, runCallbacks) {
|
|
10116
|
+
if (!this.thumbsSlider)
|
|
10117
|
+
return;
|
|
10106
10118
|
return this.thumbsSlider.slideTo(index, speed, runCallbacks);
|
|
10107
10119
|
}
|
|
10108
10120
|
/**
|
|
@@ -10290,7 +10302,16 @@ const SallaSlider = class {
|
|
|
10290
10302
|
classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
|
|
10291
10303
|
classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
|
|
10292
10304
|
classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
|
|
10293
|
-
|
|
10305
|
+
if (this.singleSlideMode) {
|
|
10306
|
+
return (h(Host, { class: 's-slider-wrapper s-slider-single-mode ' + classes }, this.blockTitle || this.displayAllUrl ?
|
|
10307
|
+
h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
10308
|
+
h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
10309
|
+
: '', this.displayAllUrl ?
|
|
10310
|
+
h("div", { class: "s-slider-block__title-left" }, h("a", { href: this.displayAllUrl, class: "s-slider-block__display-all" }, this.displayAllTitle))
|
|
10311
|
+
: '')
|
|
10312
|
+
: '', h("div", { class: "swiper s-slider-container s-slider-single", dir: this.vertical ? "ltr" : this.direction }, h("slot", null), h("div", { class: "swiper-wrapper s-slider-swiper-wrapper" }, h("slot", { name: 'items' })))));
|
|
10313
|
+
}
|
|
10314
|
+
return (h(Host, { class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
|
|
10294
10315
|
h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
10295
10316
|
h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
10296
10317
|
: '', h("div", { class: "s-slider-block__title-left" }, this.displayAllUrl ?
|
|
@@ -10298,7 +10319,7 @@ const SallaSlider = class {
|
|
|
10298
10319
|
: '', this.showControls ?
|
|
10299
10320
|
h("div", { class: "s-slider-block__title-nav", dir: "rtl" }, h("button", { "aria-label": "Previous Slide", class: "s-slider-prev s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), h("button", { "aria-label": "Next Slide", class: "s-slider-next s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
10300
10321
|
: ''))
|
|
10301
|
-
: '', h("div", {
|
|
10322
|
+
: '', h("div", { class: "swiper s-slider-container", ref: el => this.sliderContainer = el, dir: this.vertical ? "ltr" : this.direction }, h("slot", null), h("div", { class: "swiper-wrapper s-slider-swiper-wrapper", ref: el => this.sliderWrapper = el }, h("slot", { name: 'items' })), this.pagination ? h("div", { class: "swiper-pagination" }) : ''), this.type == 'thumbs' && this.hasThumbSlot ? h("div", { class: "s-slider-thumbs" }, h("div", { class: "swiper s-slider-thumbs-container", dir: this.getThumbsDirection(), ref: el => this.thumbsSliderContainer = el }, h("div", { class: { "s-slider-swiper-wrapper swiper-wrapper": true, "s-slider-grid-thumbs": this.gridThumbs }, ref: el => this.thumbsSliderWrapper = el }, h("slot", { name: "thumbs" })), this.showThumbsControls ?
|
|
10302
10323
|
h("div", { class: "s-slider-thumbs-nav", dir: "rtl" }, h("button", { "aria-label": "Previous Slide", class: "s-slider-thumbs-prev s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), h("button", { "aria-label": "Next Slide", class: "s-slider-thumbs-next s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
10303
10324
|
: null))
|
|
10304
10325
|
: null));
|
|
@@ -10357,25 +10378,43 @@ const SallaSlider = class {
|
|
|
10357
10378
|
}
|
|
10358
10379
|
this.lazyObserver.observe(el);
|
|
10359
10380
|
}
|
|
10360
|
-
/** Keep only element nodes so Swiper never sees text nodes (getAttribute would throw). */
|
|
10361
|
-
flattenSlotToElements(container, slotSelector) {
|
|
10362
|
-
const slotEl = container?.querySelector(slotSelector);
|
|
10363
|
-
if (!slotEl)
|
|
10364
|
-
return;
|
|
10365
|
-
const elements = Array.from(slotEl.children).filter((node) => node.nodeType === Node.ELEMENT_NODE);
|
|
10366
|
-
if (elements.length)
|
|
10367
|
-
slotEl.replaceWith(...elements);
|
|
10368
|
-
}
|
|
10369
10381
|
componentDidLoad() {
|
|
10370
|
-
|
|
10382
|
+
// 1. Batch Reads (Get all elements first without modifying DOM)
|
|
10383
|
+
const tasks = [];
|
|
10384
|
+
let _singleSlideMode = false;
|
|
10385
|
+
const prepareFlatten = (container, slotSelector) => {
|
|
10386
|
+
const slotEl = container?.querySelector(slotSelector);
|
|
10387
|
+
if (!slotEl)
|
|
10388
|
+
return;
|
|
10389
|
+
const elements = Array.from(slotEl.children).filter((node) => node.nodeType === Node.ELEMENT_NODE);
|
|
10390
|
+
if (elements.length) {
|
|
10391
|
+
// Queue the Write operation
|
|
10392
|
+
tasks.push(() => slotEl.replaceWith(...elements));
|
|
10393
|
+
if (elements.length === 1 && this.enableSingleSlideMode) {
|
|
10394
|
+
_singleSlideMode = true;
|
|
10395
|
+
elements[0].classList.add('swiper-slide');
|
|
10396
|
+
}
|
|
10397
|
+
}
|
|
10398
|
+
};
|
|
10399
|
+
prepareFlatten(this.sliderWrapper, 'div[slot="items"]');
|
|
10371
10400
|
if (this.type == 'thumbs' && this.hasThumbSlot) {
|
|
10372
|
-
|
|
10401
|
+
prepareFlatten(this.thumbsSliderWrapper, 'div[slot="thumbs"]');
|
|
10373
10402
|
}
|
|
10374
|
-
|
|
10403
|
+
// 2. Batch Writes (Execute all DOM modifications together)
|
|
10404
|
+
tasks.forEach(task => task());
|
|
10405
|
+
// 3. Init Swiper inside rAF
|
|
10406
|
+
this._rafId = requestAnimationFrame(() => {
|
|
10407
|
+
this.singleSlideMode = _singleSlideMode;
|
|
10408
|
+
if (!_singleSlideMode) {
|
|
10409
|
+
this.initSlider();
|
|
10410
|
+
}
|
|
10411
|
+
});
|
|
10375
10412
|
this.viewportMediaQuery = window.matchMedia('(min-width: 768px)');
|
|
10376
10413
|
this.viewportMediaQuery.addEventListener('change', this.onViewportChange);
|
|
10377
10414
|
}
|
|
10378
10415
|
disconnectedCallback() {
|
|
10416
|
+
if (this._rafId)
|
|
10417
|
+
cancelAnimationFrame(this._rafId);
|
|
10379
10418
|
this.viewportMediaQuery?.removeEventListener('change', this.onViewportChange);
|
|
10380
10419
|
this.lazyObserver?.disconnect();
|
|
10381
10420
|
this.lazyImageObserver?.disconnect();
|
|
@@ -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-PHxPq4LJ.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
7
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
@@ -148,7 +148,7 @@ const SallaSocialShare = class {
|
|
|
148
148
|
window.a2a?.init('page');
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h("div", { key: '
|
|
151
|
+
return (h("div", { key: '05350f69911825a04716569eaac5769c67b07e24', class: "s-social-share-wrapper" }, h("slot", { key: 'c9bb03b5907e8d211d1a2bc7d36b0924dd2fa00b', name: 'widget' }, h("salla-button", { key: '3120d746deabb24bc2b3994a1088a42e355c2796', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '7874b8c8aceb1372d061d0142405a3f07e3c0ba3', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: 'deaa966a6ae4a91a350361f44316d749f8459cec', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
152
152
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
153
153
|
if (icon.name === platform) {
|
|
154
154
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-PHxPq4LJ.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -55,7 +55,7 @@ const SallaSocial = class {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const linksArray = this.getLinksArray();
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '20f01d2027bf9ac9fa635c2e814bf9778c5abf8c' }, h("ul", { key: '016fc5a496d6efd36cf15dc805dd83ee4d6a9845', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
59
59
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
60
60
|
.replace(/\{type\}/g, link.type)
|
|
61
61
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|