@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.
Files changed (267) hide show
  1. package/dist/cjs/{filepond-CuKErtOy.js → filepond-D0WqQOsJ.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-d-8BSuST.js → filepond-plugin-file-poster-ZuSz5Sia.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-zgI_JcqY.js → filepond-plugin-file-validate-size-C3-G9fQU.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Cy8IgG2P.js → filepond-plugin-file-validate-type-pC6E-hQQ.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-9ZAUzCvh.js → filepond-plugin-image-edit-B6RJ-sf_.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-DzNe_tY2.js → filepond-plugin-image-exif-orientation-BAKA7TOr.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-Cfna6xTB.js → filepond-plugin-image-preview-C_5JV3u4.js} +1 -1
  8. package/dist/cjs/{index-ff-xJfhj.js → index-DdedaQQE.js} +1 -1
  9. package/dist/cjs/{index-Ce40E8tZ.js → index-DgOViweO.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  19. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-payments.cjs.entry.js +6 -18
  54. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
  59. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-slider.cjs.entry.js +68 -29
  66. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  67. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  68. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  69. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  71. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  75. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  77. package/dist/cjs/twilight.cjs.js +2 -2
  78. package/dist/cjs/{vanilla-picker-zQsXQIff.js → vanilla-picker-Cd4v7i9t.js} +1 -1
  79. package/dist/collection/collection-manifest.json +1 -1
  80. package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +1 -1
  81. package/dist/collection/components/salla-payments/salla-payments.js +5 -17
  82. package/dist/collection/components/salla-products-slider/salla-products-slider.js +32 -1
  83. package/dist/collection/components/salla-slider/salla-slider.js +89 -29
  84. package/dist/collection/components/salla-social/salla-social.js +1 -1
  85. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  86. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  87. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  88. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  89. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  90. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  91. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  92. package/dist/components/index.js +2 -2
  93. package/dist/components/salla-apps-icons.js +1 -1
  94. package/dist/components/salla-payments.js +5 -17
  95. package/dist/components/salla-products-slider2.js +2 -1
  96. package/dist/components/salla-slider2.js +69 -28
  97. package/dist/components/salla-social-share.js +1 -1
  98. package/dist/components/salla-social.js +1 -1
  99. package/dist/components/salla-tab-content2.js +1 -1
  100. package/dist/components/salla-tab-header2.js +1 -1
  101. package/dist/components/salla-tabs2.js +1 -1
  102. package/dist/components/salla-tel-input2.js +1 -1
  103. package/dist/components/salla-tooltip2.js +1 -1
  104. package/dist/components/salla-user-settings.js +1 -1
  105. package/dist/esm/{filepond-DEzyRrdH.js → filepond-YrJ-JCRn.js} +1 -1
  106. package/dist/esm/{filepond-plugin-file-poster-DyLcCcHM.js → filepond-plugin-file-poster-UWiXxhAl.js} +1 -1
  107. package/dist/esm/{filepond-plugin-file-validate-size-Cxp5Yzea.js → filepond-plugin-file-validate-size-CuFnfvIq.js} +1 -1
  108. package/dist/esm/{filepond-plugin-file-validate-type-D2qNOQP4.js → filepond-plugin-file-validate-type-BgYsHZEQ.js} +1 -1
  109. package/dist/esm/{filepond-plugin-image-edit-DndTlA7m.js → filepond-plugin-image-edit-BQtZWl9D.js} +1 -1
  110. package/dist/esm/{filepond-plugin-image-exif-orientation-CiT1CQoK.js → filepond-plugin-image-exif-orientation-Dp7a5KRi.js} +1 -1
  111. package/dist/esm/{filepond-plugin-image-preview-DBG7keFZ.js → filepond-plugin-image-preview-DvWrR7vg.js} +1 -1
  112. package/dist/esm/{index-BLw7mdtM.js → index-DwU5NnFF.js} +1 -1
  113. package/dist/esm/{index-B74h9G6a.js → index-PHxPq4LJ.js} +2 -2
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  116. package/dist/esm/salla-accordion_6.entry.js +1 -1
  117. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  118. package/dist/esm/salla-advertisement.entry.js +1 -1
  119. package/dist/esm/salla-alert_2.entry.js +1 -1
  120. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  121. package/dist/esm/salla-apps-icons.entry.js +2 -2
  122. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  123. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  124. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  125. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  126. package/dist/esm/salla-contacts.entry.js +1 -1
  127. package/dist/esm/salla-count-down_2.entry.js +1 -1
  128. package/dist/esm/salla-custom-fields.entry.js +1 -1
  129. package/dist/esm/salla-filters-widget.entry.js +1 -1
  130. package/dist/esm/salla-filters.entry.js +1 -1
  131. package/dist/esm/salla-gifting.entry.js +1 -1
  132. package/dist/esm/salla-hook.entry.js +1 -1
  133. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  134. package/dist/esm/salla-installment.entry.js +1 -1
  135. package/dist/esm/salla-list-tile.entry.js +1 -1
  136. package/dist/esm/salla-localization-modal.entry.js +1 -1
  137. package/dist/esm/salla-login-modal.entry.js +1 -1
  138. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  139. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  140. package/dist/esm/salla-loyalty.entry.js +1 -1
  141. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  142. package/dist/esm/salla-menu.entry.js +1 -1
  143. package/dist/esm/salla-metadata.entry.js +1 -1
  144. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  145. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  146. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  147. package/dist/esm/salla-notification-item.entry.js +1 -1
  148. package/dist/esm/salla-notifications.entry.js +1 -1
  149. package/dist/esm/salla-offer-modal.entry.js +1 -1
  150. package/dist/esm/salla-offer.entry.js +1 -1
  151. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  152. package/dist/esm/salla-order-details-options.entry.js +1 -1
  153. package/dist/esm/salla-order-details.entry.js +1 -1
  154. package/dist/esm/salla-order-summary.entry.js +1 -1
  155. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  156. package/dist/esm/salla-orders.entry.js +1 -1
  157. package/dist/esm/salla-payments.entry.js +6 -18
  158. package/dist/esm/salla-placeholder.entry.js +1 -1
  159. package/dist/esm/salla-price-range.entry.js +1 -1
  160. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  161. package/dist/esm/salla-products-list.entry.js +1 -1
  162. package/dist/esm/salla-products-slider.entry.js +2 -2
  163. package/dist/esm/salla-progress-bar.entry.js +1 -1
  164. package/dist/esm/salla-quick-order.entry.js +1 -1
  165. package/dist/esm/salla-rating-modal.entry.js +1 -1
  166. package/dist/esm/salla-scopes.entry.js +1 -1
  167. package/dist/esm/salla-search.entry.js +1 -1
  168. package/dist/esm/salla-skeleton.entry.js +1 -1
  169. package/dist/esm/salla-slider.entry.js +68 -29
  170. package/dist/esm/salla-social-share.entry.js +2 -2
  171. package/dist/esm/salla-social.entry.js +2 -2
  172. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  173. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  174. package/dist/esm/salla-tooltip.entry.js +2 -2
  175. package/dist/esm/salla-trust-badges.entry.js +1 -1
  176. package/dist/esm/salla-user-menu.entry.js +1 -1
  177. package/dist/esm/salla-user-profile.entry.js +1 -1
  178. package/dist/esm/salla-user-settings.entry.js +2 -2
  179. package/dist/esm/salla-verify.entry.js +1 -1
  180. package/dist/esm/salla-wallet.entry.js +1 -1
  181. package/dist/esm/twilight.js +3 -3
  182. package/dist/esm/{vanilla-picker-CtwkXTap.js → vanilla-picker-fpTcpsmb.js} +1 -1
  183. package/dist/twilight/{p-3cffa4c9.entry.js → p-009d1b75.entry.js} +1 -1
  184. package/dist/twilight/{p-fe983809.entry.js → p-04e21492.entry.js} +1 -1
  185. package/dist/twilight/{p-9051a540.entry.js → p-0cc07ad0.entry.js} +1 -1
  186. package/dist/twilight/{p-309a0ba4.entry.js → p-0f45b27f.entry.js} +1 -1
  187. package/dist/twilight/p-112b4c91.entry.js +4 -0
  188. package/dist/twilight/{p-afd61e47.entry.js → p-14749ab0.entry.js} +1 -1
  189. package/dist/twilight/{p-a2756650.entry.js → p-1c66e567.entry.js} +1 -1
  190. package/dist/twilight/{p-2de9df64.entry.js → p-1e405d4e.entry.js} +1 -1
  191. package/dist/twilight/{p-c56a47b0.entry.js → p-1eb76272.entry.js} +1 -1
  192. package/dist/twilight/{p-b71fc1b5.entry.js → p-2322e6fc.entry.js} +1 -1
  193. package/dist/twilight/{p-f57ca123.entry.js → p-2626b358.entry.js} +1 -1
  194. package/dist/twilight/{p-b588ef46.entry.js → p-29e92637.entry.js} +1 -1
  195. package/dist/twilight/{p-229275db.entry.js → p-2ca5a8af.entry.js} +1 -1
  196. package/dist/twilight/{p-6c8f5c94.entry.js → p-2cb04fa6.entry.js} +1 -1
  197. package/dist/twilight/{p-32ca34ec.entry.js → p-2e97a6cd.entry.js} +1 -1
  198. package/dist/twilight/{p-bVqtOl1F.js → p-2tEKDOI-.js} +1 -1
  199. package/dist/twilight/{p-6be7bbb0.entry.js → p-30b58124.entry.js} +1 -1
  200. package/dist/twilight/{p-efc18ce6.entry.js → p-333171ce.entry.js} +1 -1
  201. package/dist/twilight/{p-f4039c40.entry.js → p-33cd8edb.entry.js} +1 -1
  202. package/dist/twilight/p-3774fa61.entry.js +4 -0
  203. package/dist/twilight/{p-212a0710.entry.js → p-37aa131b.entry.js} +1 -1
  204. package/dist/twilight/{p-232185ec.entry.js → p-3c76e2d4.entry.js} +1 -1
  205. package/dist/twilight/{p-f5ad6572.entry.js → p-3cbbd625.entry.js} +1 -1
  206. package/dist/twilight/{p-6fa02770.entry.js → p-3db132b8.entry.js} +1 -1
  207. package/dist/twilight/{p-8c189d76.entry.js → p-3eff2372.entry.js} +1 -1
  208. package/dist/twilight/{p-c73189e3.entry.js → p-428fe4e6.entry.js} +1 -1
  209. package/dist/twilight/{p-40fe4b01.entry.js → p-475a61f8.entry.js} +1 -1
  210. package/dist/twilight/{p-i5J7XGS6.js → p-4D4VVK4U.js} +1 -1
  211. package/dist/twilight/{p-fc65084f.entry.js → p-4c31b81f.entry.js} +1 -1
  212. package/dist/twilight/{p-654429df.entry.js → p-52ffcaba.entry.js} +1 -1
  213. package/dist/twilight/{p-d4edfed4.entry.js → p-534be529.entry.js} +1 -1
  214. package/dist/twilight/{p-f47b130c.entry.js → p-59697c9b.entry.js} +1 -1
  215. package/dist/twilight/{p-fd81a311.entry.js → p-5c5aba15.entry.js} +1 -1
  216. package/dist/twilight/{p-5d044466.entry.js → p-666bea2d.entry.js} +1 -1
  217. package/dist/twilight/p-6a934903.entry.js +4 -0
  218. package/dist/twilight/{p-10dcd981.entry.js → p-6e89154f.entry.js} +1 -1
  219. package/dist/twilight/{p-5d21334a.entry.js → p-6f69cfa5.entry.js} +1 -1
  220. package/dist/twilight/{p-01daaaa6.entry.js → p-76ce3ec0.entry.js} +1 -1
  221. package/dist/twilight/{p-9f1c561f.entry.js → p-781f1219.entry.js} +1 -1
  222. package/dist/twilight/{p-5c9281d3.entry.js → p-78e33f77.entry.js} +1 -1
  223. package/dist/twilight/{p-b206a0a1.entry.js → p-79aa2c2f.entry.js} +1 -1
  224. package/dist/twilight/{p-4036d5dc.entry.js → p-7a2bd261.entry.js} +1 -1
  225. package/dist/twilight/{p-a100bd38.entry.js → p-7a769233.entry.js} +1 -1
  226. package/dist/twilight/{p-d86ce978.entry.js → p-7eef10c9.entry.js} +1 -1
  227. package/dist/twilight/{p-0134b4fd.entry.js → p-8606c783.entry.js} +1 -1
  228. package/dist/twilight/{p-e3e33238.entry.js → p-8719301a.entry.js} +1 -1
  229. package/dist/twilight/{p-3e0d814c.entry.js → p-8ad78dfa.entry.js} +1 -1
  230. package/dist/twilight/{p-bf65b263.entry.js → p-9bea43d6.entry.js} +1 -1
  231. package/dist/twilight/{p-aab45a16.entry.js → p-9c01357f.entry.js} +1 -1
  232. package/dist/twilight/{p-DpsbV3x1.js → p-BPRHuBhm.js} +1 -1
  233. package/dist/twilight/{p-B69XOH6h.js → p-BRh_eoK1.js} +1 -1
  234. package/dist/twilight/{p-_-aXm0Wb.js → p-BitILwJ_.js} +1 -1
  235. package/dist/twilight/{p-CQq81yb5.js → p-Bx_UY06u.js} +1 -1
  236. package/dist/twilight/{p-BPqZ249Z.js → p-C6S8Hr36.js} +1 -1
  237. package/dist/twilight/{p-shFpk0H3.js → p-DtkaGJwR.js} +1 -1
  238. package/dist/twilight/{p-B74h9G6a.js → p-PHxPq4LJ.js} +1 -1
  239. package/dist/twilight/{p-d1203242.entry.js → p-a5bb66a3.entry.js} +1 -1
  240. package/dist/twilight/{p-b2332516.entry.js → p-ad9c9773.entry.js} +1 -1
  241. package/dist/twilight/{p-7040ea33.entry.js → p-b502e876.entry.js} +1 -1
  242. package/dist/twilight/{p-32732ca7.entry.js → p-b8d8175a.entry.js} +1 -1
  243. package/dist/twilight/{p-3d0bb451.entry.js → p-ba5fc67a.entry.js} +1 -1
  244. package/dist/twilight/{p-e6bb7362.entry.js → p-c3750eaa.entry.js} +1 -1
  245. package/dist/twilight/{p-ec2fd37e.entry.js → p-d7037864.entry.js} +1 -1
  246. package/dist/twilight/{p-6b8453be.entry.js → p-d9880694.entry.js} +1 -1
  247. package/dist/twilight/{p-aae761ff.entry.js → p-db0b3ed2.entry.js} +1 -1
  248. package/dist/twilight/{p-08badc32.entry.js → p-dbb4ede5.entry.js} +1 -1
  249. package/dist/twilight/{p-e7813c80.entry.js → p-e017e403.entry.js} +1 -1
  250. package/dist/twilight/{p-47ac0ca5.entry.js → p-e31177e7.entry.js} +1 -1
  251. package/dist/twilight/{p-b1fc6dfc.entry.js → p-e5b90edd.entry.js} +1 -1
  252. package/dist/twilight/{p-ec77c523.entry.js → p-ec3f15ee.entry.js} +1 -1
  253. package/dist/twilight/{p-07da7390.entry.js → p-edc41bbc.entry.js} +1 -1
  254. package/dist/twilight/{p-8f1f052c.entry.js → p-f2c23e42.entry.js} +1 -1
  255. package/dist/twilight/{p-2d880232.entry.js → p-f34f5a30.entry.js} +1 -1
  256. package/dist/twilight/{p-0aa5a12a.entry.js → p-f578dea7.entry.js} +1 -1
  257. package/dist/twilight/{p-33093880.entry.js → p-ffbd5949.entry.js} +1 -1
  258. package/dist/twilight/{p-BCxm-ISm.js → p-fq0HEcD_.js} +1 -1
  259. package/dist/twilight/twilight.esm.js +1 -1
  260. package/dist/types/components/salla-payments/salla-payments.d.ts +0 -2
  261. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +8 -0
  262. package/dist/types/components/salla-slider/salla-slider.d.ts +20 -2
  263. package/dist/types/components.d.ts +22 -0
  264. package/package.json +5 -5
  265. package/dist/twilight/p-2a927eac.entry.js +0 -4
  266. package/dist/twilight/p-4cd9da44.entry.js +0 -4
  267. 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-B74h9G6a.js';
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-B74h9G6a.js';
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, H as Host } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h, H as Host } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaMultipleBundleProductCss = ":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 } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
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-B74h9G6a.js';
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-B74h9G6a.js';
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, a as getElement } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-PHxPq4LJ.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -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-B74h9G6a.js';
4
+ import { r as registerInstance, h, H as Host } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaOrderDetailsMultipleBundleProductCss = "";
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-B74h9G6a.js';
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, F as Fragment, H as Host } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaOrderDetailsCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-B74h9G6a.js';
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, H as Host } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h, H as Host } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaOrderTotalsCardCss = ":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, a as getElement } from './index-B74h9G6a.js';
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-B74h9G6a.js';
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.placeholderImage = salla.url.cdn(`images/s-empty.png`);
29
- this.paymentSlot = this.host.querySelector('[slot="payment"]')?.innerHTML || `<li class="s-payments-list-item"><img class="lazy" width="100%" height="100%" src="${this.placeholderImage}" data-src="{image}" alt={payment} /><li>`;
30
- this.sbcSlot = this.host.querySelector('[slot="sbc"]')?.innerHTML || `<li class="s-payments-list-item"><a target="_blank" href="{link}"> <img width="100%" height="100%" src="${this.placeholderImage}" data-src={image} class="lazy s-payments-sbc-image" alt="SBC"/></a><li>`;
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: '171f3100fd67a51ad678cfdf648ff69c64c2a3a1', class: "s-payments-list-wrap" }, h("ul", { key: 'e6f55f5a6b1670d1f2c270cf4316c90ff5353a08', class: "s-payments-list" }, madeInKSA && h("li", { key: '42bd30418212c78184ccc22a449d724cc82df46b', class: "s-payments-list-item" }, h("img", { key: '8affc4db8a1fd708197a00dceba7f31759b7febd', class: "lazy", width: "100%", height: "100%", decoding: "async", loading: "lazy", "data-src": salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
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: 'a0b88ee6a9c0378bc2946ab5506747ba0ff4ff12', id: "sbc-slot", innerHTML: this.sbcSlot
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-B74h9G6a.js';
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-B74h9G6a.js';
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-B74h9G6a.js';
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-B74h9G6a.js';
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-B74h9G6a.js';
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, h } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaProgressBarCss = "";
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-B74h9G6a.js';
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-B74h9G6a.js';
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-B74h9G6a.js';
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-B74h9G6a.js';
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, h, H as Host } from './index-B74h9G6a.js';
4
+ import { r as registerInstance, h, H as Host } from './index-PHxPq4LJ.js';
5
5
 
6
6
  const sallaSkeletonCss = ":host{display:block}";
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-B74h9G6a.js';
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.slideToLoop(index, speed, runCallbacks);
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.slideNextLoop(speed, runCallbacks);
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.slidePrevLoop(speed, runCallbacks);
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.slideReset(speed, runCallbacks);
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.slideToClosest(speed, runCallbacks);
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.update();
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.updateAutoHeight(speed);
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.updateSlides();
10047
+ this.slider?.updateSlides();
10038
10048
  }
10039
10049
  /**
10040
10050
  * recalculate slider progress
10041
10051
  * **/
10042
10052
  async updateProgress() {
10043
- this.slider.updateProgress();
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.updateSlidesClasses();
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.updateSize();
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.init();
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
- return (h(Host, { key: '44f6baf2ec3a6421cd8d8ce6779c6ce781cecc7f', class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
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", { key: '384d3224e9e2f9ad08d71093ee4c6f907232c07e', class: "swiper s-slider-container", ref: el => this.sliderContainer = el, dir: this.vertical ? "ltr" : this.direction }, h("slot", { key: '578756df5b652d9b7e86d3f0424e4ec886b7a75f' }), h("div", { key: '7966a00ec720374a3dac1533d72fdfeb31db8105', class: "swiper-wrapper s-slider-swiper-wrapper", ref: el => this.sliderWrapper = el }, h("slot", { key: '39f9656cabb053dc4878ae1f2bd94a6efc19f975', 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 ?
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
- this.flattenSlotToElements(this.sliderWrapper, 'div[slot="items"]');
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
- this.flattenSlotToElements(this.thumbsSliderWrapper, 'div[slot="thumbs"]');
10401
+ prepareFlatten(this.thumbsSliderWrapper, 'div[slot="thumbs"]');
10373
10402
  }
10374
- this.initSlider();
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-B74h9G6a.js';
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: 'c4ac8faea4a8ec8aa5ba9f4e744710d508387d78', class: "s-social-share-wrapper" }, h("slot", { key: '6c6b54513f67be8818a9a042570286d09b7115f8', name: 'widget' }, h("salla-button", { key: '8a57650940dad634cf3576dada4cc35687ed447c', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '207f2fb0e2f89e7057775153ffcc68eebb069824', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: 'fd9b25a483a93efa10994c2a7a876b6741d976c2', 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 => {
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-B74h9G6a.js';
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: 'a0bcd60fddd2fd8e86f32cd71d484ec76d02cf49' }, h("ul", { key: 'b595d8de59199de5081370b9440c8a46cb8c751f', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
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()) })))))));