@salla.sa/twilight-components 2.14.353 → 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 (341) hide show
  1. package/dist/cjs/bell-ring-BfKPinNo.js +13 -0
  2. package/dist/cjs/{interfaces-CX9-6aLf.js → camera-DytepEoK.js} +0 -11
  3. package/dist/cjs/cancel-De6vslRA.js +13 -0
  4. package/dist/cjs/cart-s-x1Fshk.js +13 -0
  5. package/dist/cjs/check-circle2-BDvlT4_n.js +13 -0
  6. package/dist/cjs/{check-CLRvuniI.js → check-x3w3-gpj.js} +2 -2
  7. package/dist/cjs/{filepond-7SxqaoXb.js → filepond-D0WqQOsJ.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-file-poster-DwIv84hN.js → filepond-plugin-file-poster-ZuSz5Sia.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-file-validate-size-NUNnIo4Q.js → filepond-plugin-file-validate-size-C3-G9fQU.js} +1 -1
  10. package/dist/cjs/{filepond-plugin-file-validate-type-CXI-hfww.js → filepond-plugin-file-validate-type-pC6E-hQQ.js} +1 -1
  11. package/dist/cjs/{filepond-plugin-image-edit-fBeBGIBb.js → filepond-plugin-image-edit-B6RJ-sf_.js} +1 -1
  12. package/dist/cjs/{filepond-plugin-image-exif-orientation-BmLTdQ6d.js → filepond-plugin-image-exif-orientation-BAKA7TOr.js} +1 -1
  13. package/dist/cjs/{filepond-plugin-image-preview-CssKRM6n.js → filepond-plugin-image-preview-C_5JV3u4.js} +1 -1
  14. package/dist/{esm/gift-C0JNGIpa.js → cjs/gift-CJ-3Yw_x.js} +4 -2
  15. package/dist/cjs/image-BoZ6Hums.js +13 -0
  16. package/dist/cjs/{index-B9TEdQDE.js → index-DdedaQQE.js} +1 -1
  17. package/dist/cjs/{index-B5soIVRX.js → index-DgOViweO.js} +136 -12
  18. package/dist/cjs/interfaces-CRqrf5RX.js +15 -0
  19. package/dist/cjs/keyboard_arrow_down-DHJ3FFZq.js +13 -0
  20. package/dist/cjs/keyboard_arrow_right-BayM_Il2.js +21 -0
  21. package/dist/cjs/loader.cjs.js +2 -2
  22. package/dist/cjs/minus-CCryh1qf.js +21 -0
  23. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +775 -0
  24. package/dist/cjs/salla-accordion_6.cjs.entry.js +768 -0
  25. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +2389 -0
  26. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-alert_2.cjs.entry.js +194 -0
  28. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
  30. package/dist/cjs/salla-booking-field_7.cjs.entry.js +1565 -0
  31. package/dist/cjs/{salla-cart-item-offers.cjs.entry.js → salla-cart-item-offers_2.cjs.entry.js} +104 -5
  32. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1661 -0
  33. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
  35. package/dist/cjs/salla-count-down_2.cjs.entry.js +302 -0
  36. package/dist/cjs/salla-custom-fields.cjs.entry.js +4 -3
  37. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gifting.cjs.entry.js +488 -0
  40. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +91 -0
  42. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-list-tile.cjs.entry.js +34 -0
  44. package/dist/cjs/salla-localization-modal.cjs.entry.js +137 -0
  45. package/dist/cjs/salla-login-modal.cjs.entry.js +320 -0
  46. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  48. package/dist/cjs/salla-loyalty.cjs.entry.js +211 -0
  49. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +40 -0
  50. package/dist/cjs/salla-menu.cjs.entry.js +139 -0
  51. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +220 -0
  53. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +598 -0
  54. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +69 -0
  55. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-offer-modal.cjs.entry.js +206 -0
  58. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-summary.cjs.entry.js +3 -3
  63. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-payments.cjs.entry.js +6 -18
  66. package/dist/cjs/salla-placeholder.cjs.entry.js +51 -0
  67. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-product-size-guide.cjs.entry.js +66 -0
  69. package/dist/cjs/salla-products-list.cjs.entry.js +762 -0
  70. package/dist/cjs/salla-products-slider.cjs.entry.js +115 -0
  71. package/dist/cjs/salla-progress-bar.cjs.entry.js +73 -0
  72. package/dist/cjs/salla-quick-order.cjs.entry.js +239 -0
  73. package/dist/cjs/salla-rating-modal.cjs.entry.js +453 -0
  74. package/dist/cjs/salla-scopes.cjs.entry.js +180 -0
  75. package/dist/cjs/salla-search.cjs.entry.js +153 -0
  76. package/dist/cjs/salla-skeleton.cjs.entry.js +36 -0
  77. package/dist/cjs/salla-slider.cjs.entry.js +10428 -0
  78. package/dist/cjs/salla-social-share.cjs.entry.js +165 -0
  79. package/dist/cjs/salla-social.cjs.entry.js +4 -4
  80. package/dist/cjs/salla-tab-content_3.cjs.entry.js +157 -0
  81. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  83. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-user-menu.cjs.entry.js +275 -0
  85. package/dist/cjs/salla-user-profile.cjs.entry.js +145 -0
  86. package/dist/cjs/salla-user-settings.cjs.entry.js +88 -0
  87. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  89. package/dist/cjs/search-c7Aa7lM9.js +13 -0
  90. package/dist/cjs/{special-discount-OVG_9Kf9.js → special-discount-DC2oXurL.js} +0 -8
  91. package/dist/cjs/star-DGcH7Yso.js +13 -0
  92. package/dist/cjs/star2-R146a27p.js +13 -0
  93. package/dist/cjs/twilight.cjs.js +2 -2
  94. package/dist/cjs/{vanilla-picker-C6fk8_TR.js → vanilla-picker-Cd4v7i9t.js} +1 -1
  95. package/dist/cjs/{whatsapp2-D7Sbg8Ey.js → whatsapp2-BdMd5Gx1.js} +2 -2
  96. package/dist/collection/collection-manifest.json +56 -2
  97. package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +1 -1
  98. package/dist/collection/components/salla-payments/salla-payments.js +5 -17
  99. package/dist/collection/components/salla-product-options/salla-product-options.js +36 -3
  100. package/dist/collection/components/salla-products-slider/salla-products-slider.js +32 -1
  101. package/dist/collection/components/salla-slider/salla-slider.js +89 -29
  102. package/dist/collection/components/salla-social/salla-social.js +1 -1
  103. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  104. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  105. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  106. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  107. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  108. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  109. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  110. package/dist/components/index.js +2 -2
  111. package/dist/components/salla-apps-icons.js +1 -1
  112. package/dist/components/salla-payments.js +5 -17
  113. package/dist/components/salla-product-options2.js +19 -2
  114. package/dist/components/salla-products-slider2.js +2 -1
  115. package/dist/components/salla-slider2.js +69 -28
  116. package/dist/components/salla-social-share.js +1 -1
  117. package/dist/components/salla-social.js +1 -1
  118. package/dist/components/salla-tab-content2.js +1 -1
  119. package/dist/components/salla-tab-header2.js +1 -1
  120. package/dist/components/salla-tabs2.js +1 -1
  121. package/dist/components/salla-tel-input2.js +1 -1
  122. package/dist/components/salla-tooltip2.js +1 -1
  123. package/dist/components/salla-user-settings.js +1 -1
  124. package/dist/esm/bell-ring-D3mWkc-3.js +11 -0
  125. package/dist/esm/{interfaces-CBT_Nxny.js → camera-C6jIkM-X.js} +1 -12
  126. package/dist/esm/cancel-BsLF_HK7.js +11 -0
  127. package/dist/esm/cart-DY4LZmNP.js +11 -0
  128. package/dist/esm/{check-uTyAzPSy.js → check-BsXh13x8.js} +2 -2
  129. package/dist/esm/check-circle2-BV4kqbdL.js +11 -0
  130. package/dist/esm/{filepond-Cuqyleyy.js → filepond-YrJ-JCRn.js} +1 -1
  131. package/dist/esm/{filepond-plugin-file-poster-C6Wara8q.js → filepond-plugin-file-poster-UWiXxhAl.js} +1 -1
  132. package/dist/esm/{filepond-plugin-file-validate-size-D-M3KSxo.js → filepond-plugin-file-validate-size-CuFnfvIq.js} +1 -1
  133. package/dist/esm/{filepond-plugin-file-validate-type-DzAl1VI8.js → filepond-plugin-file-validate-type-BgYsHZEQ.js} +1 -1
  134. package/dist/esm/{filepond-plugin-image-edit-flutfc9I.js → filepond-plugin-image-edit-BQtZWl9D.js} +1 -1
  135. package/dist/esm/{filepond-plugin-image-exif-orientation-B2UkG6iE.js → filepond-plugin-image-exif-orientation-Dp7a5KRi.js} +1 -1
  136. package/dist/esm/{filepond-plugin-image-preview-B4u8N2nE.js → filepond-plugin-image-preview-DvWrR7vg.js} +1 -1
  137. package/dist/{cjs/gift-BPDUPIY_.js → esm/gift-BChI23pG.js} +2 -4
  138. package/dist/esm/image-C-tzSDxw.js +11 -0
  139. package/dist/esm/{index-xWIb6INF.js → index-DwU5NnFF.js} +1 -1
  140. package/dist/esm/{index-6mr785rH.js → index-PHxPq4LJ.js} +137 -13
  141. package/dist/esm/interfaces-OF8QcbMM.js +15 -0
  142. package/dist/esm/keyboard_arrow_down-DCZbpt2a.js +11 -0
  143. package/dist/esm/keyboard_arrow_right-Vqpj4CWE.js +18 -0
  144. package/dist/esm/loader.js +3 -3
  145. package/dist/esm/minus-DfeagqF1.js +18 -0
  146. package/dist/esm/salla-accordion-body_3.entry.js +771 -0
  147. package/dist/esm/salla-accordion_6.entry.js +761 -0
  148. package/dist/esm/salla-add-product-button_4.entry.js +2384 -0
  149. package/dist/esm/salla-advertisement.entry.js +1 -1
  150. package/dist/esm/salla-alert_2.entry.js +191 -0
  151. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  152. package/dist/esm/salla-apps-icons.entry.js +2 -2
  153. package/dist/esm/salla-booking-field_7.entry.js +1539 -0
  154. package/dist/esm/{salla-cart-item-offers.entry.js → salla-cart-item-offers_2.entry.js} +104 -6
  155. package/dist/esm/salla-comment-form_8.entry.js +1652 -0
  156. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  157. package/dist/esm/salla-contacts.entry.js +3 -3
  158. package/dist/esm/salla-count-down_2.entry.js +299 -0
  159. package/dist/esm/salla-custom-fields.entry.js +3 -2
  160. package/dist/esm/salla-filters-widget.entry.js +1 -1
  161. package/dist/esm/salla-filters.entry.js +1 -1
  162. package/dist/esm/salla-gifting.entry.js +486 -0
  163. package/dist/esm/salla-hook.entry.js +1 -1
  164. package/dist/esm/salla-infinite-scroll.entry.js +89 -0
  165. package/dist/esm/salla-installment.entry.js +1 -1
  166. package/dist/esm/salla-list-tile.entry.js +32 -0
  167. package/dist/esm/salla-localization-modal.entry.js +135 -0
  168. package/dist/esm/salla-login-modal.entry.js +318 -0
  169. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  170. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  171. package/dist/esm/salla-loyalty.entry.js +209 -0
  172. package/dist/esm/salla-maintenance-alert.entry.js +38 -0
  173. package/dist/esm/salla-menu.entry.js +137 -0
  174. package/dist/esm/salla-metadata.entry.js +1 -1
  175. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +217 -0
  176. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +595 -0
  177. package/dist/esm/salla-multiple-bundle-product.entry.js +67 -0
  178. package/dist/esm/salla-notification-item.entry.js +1 -1
  179. package/dist/esm/salla-notifications.entry.js +1 -1
  180. package/dist/esm/salla-offer-modal.entry.js +204 -0
  181. package/dist/esm/salla-offer.entry.js +1 -1
  182. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  183. package/dist/esm/salla-order-details-options.entry.js +1 -1
  184. package/dist/esm/salla-order-details.entry.js +1 -1
  185. package/dist/esm/salla-order-summary.entry.js +3 -3
  186. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  187. package/dist/esm/salla-orders.entry.js +1 -1
  188. package/dist/esm/salla-payments.entry.js +6 -18
  189. package/dist/esm/salla-placeholder.entry.js +49 -0
  190. package/dist/esm/salla-price-range.entry.js +1 -1
  191. package/dist/esm/salla-product-size-guide.entry.js +64 -0
  192. package/dist/esm/salla-products-list.entry.js +760 -0
  193. package/dist/esm/salla-products-slider.entry.js +113 -0
  194. package/dist/esm/salla-progress-bar.entry.js +71 -0
  195. package/dist/esm/salla-quick-order.entry.js +237 -0
  196. package/dist/esm/salla-rating-modal.entry.js +451 -0
  197. package/dist/esm/salla-scopes.entry.js +178 -0
  198. package/dist/esm/salla-search.entry.js +151 -0
  199. package/dist/esm/salla-skeleton.entry.js +34 -0
  200. package/dist/esm/salla-slider.entry.js +10426 -0
  201. package/dist/esm/salla-social-share.entry.js +163 -0
  202. package/dist/esm/salla-social.entry.js +3 -3
  203. package/dist/esm/salla-tab-content_3.entry.js +153 -0
  204. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  205. package/dist/esm/salla-tooltip.entry.js +2 -2
  206. package/dist/esm/salla-trust-badges.entry.js +1 -1
  207. package/dist/esm/salla-user-menu.entry.js +273 -0
  208. package/dist/esm/salla-user-profile.entry.js +143 -0
  209. package/dist/esm/salla-user-settings.entry.js +86 -0
  210. package/dist/esm/salla-verify.entry.js +1 -1
  211. package/dist/esm/salla-wallet.entry.js +1 -1
  212. package/dist/esm/search-BscTeWDc.js +11 -0
  213. package/dist/esm/{special-discount-yRO-ZESF.js → special-discount-Ctkfc4K-.js} +1 -8
  214. package/dist/esm/star-ZT7ehBBk.js +11 -0
  215. package/dist/esm/star2-D4oPi1Ov.js +11 -0
  216. package/dist/esm/twilight.js +3 -3
  217. package/dist/esm/{vanilla-picker-B4PKRAhm.js → vanilla-picker-fpTcpsmb.js} +1 -1
  218. package/dist/esm/{whatsapp2-DWksgowB.js → whatsapp2-CgR-T_ZS.js} +2 -2
  219. package/dist/twilight/p-009d1b75.entry.js +4 -0
  220. package/dist/twilight/{p-16b8d78c.entry.js → p-04e21492.entry.js} +1 -1
  221. package/dist/twilight/{p-ac6fc286.entry.js → p-0cc07ad0.entry.js} +1 -1
  222. package/dist/twilight/p-0f45b27f.entry.js +4 -0
  223. package/dist/twilight/p-112b4c91.entry.js +4 -0
  224. package/dist/twilight/p-14749ab0.entry.js +4 -0
  225. package/dist/twilight/{p-0c87ef6c.entry.js → p-1c66e567.entry.js} +1 -1
  226. package/dist/twilight/p-1e405d4e.entry.js +4 -0
  227. package/dist/twilight/{p-33ea3141.entry.js → p-1eb76272.entry.js} +1 -1
  228. package/dist/twilight/p-2322e6fc.entry.js +4 -0
  229. package/dist/twilight/{p-7e39343d.entry.js → p-2626b358.entry.js} +1 -1
  230. package/dist/twilight/{p-18ebec2c.entry.js → p-29e92637.entry.js} +1 -1
  231. package/dist/twilight/p-2ca5a8af.entry.js +4 -0
  232. package/dist/twilight/{p-4253fc44.entry.js → p-2cb04fa6.entry.js} +1 -1
  233. package/dist/twilight/{p-19e07b9e.entry.js → p-2e97a6cd.entry.js} +1 -1
  234. package/dist/twilight/{p-zHj-W7EE.js → p-2tEKDOI-.js} +1 -1
  235. package/dist/twilight/p-30b58124.entry.js +4 -0
  236. package/dist/twilight/{p-8c7b7712.entry.js → p-333171ce.entry.js} +1 -1
  237. package/dist/twilight/p-33cd8edb.entry.js +4 -0
  238. package/dist/twilight/p-3774fa61.entry.js +4 -0
  239. package/dist/twilight/{p-5067322a.entry.js → p-37aa131b.entry.js} +1 -1
  240. package/dist/twilight/{p-dde21f4b.entry.js → p-3c76e2d4.entry.js} +1 -1
  241. package/dist/twilight/{p-2d209f96.entry.js → p-3cbbd625.entry.js} +1 -1
  242. package/dist/twilight/{p-6f5d02c6.entry.js → p-3db132b8.entry.js} +1 -1
  243. package/dist/twilight/p-3eff2372.entry.js +4 -0
  244. package/dist/twilight/p-428fe4e6.entry.js +4 -0
  245. package/dist/twilight/p-475a61f8.entry.js +4 -0
  246. package/dist/twilight/{p-BijadG7g.js → p-4D4VVK4U.js} +1 -1
  247. package/dist/twilight/p-4c31b81f.entry.js +4 -0
  248. package/dist/twilight/{p-c096e336.entry.js → p-52ffcaba.entry.js} +1 -1
  249. package/dist/twilight/p-534be529.entry.js +4 -0
  250. package/dist/twilight/p-59697c9b.entry.js +4 -0
  251. package/dist/twilight/p-5c5aba15.entry.js +4 -0
  252. package/dist/twilight/p-666bea2d.entry.js +4 -0
  253. package/dist/twilight/p-6a934903.entry.js +4 -0
  254. package/dist/twilight/{p-6f576591.entry.js → p-6e89154f.entry.js} +1 -1
  255. package/dist/twilight/p-6f69cfa5.entry.js +4 -0
  256. package/dist/twilight/{p-d4aaeef4.entry.js → p-76ce3ec0.entry.js} +1 -1
  257. package/dist/twilight/p-781f1219.entry.js +4 -0
  258. package/dist/twilight/p-78e33f77.entry.js +4 -0
  259. package/dist/twilight/p-79aa2c2f.entry.js +4 -0
  260. package/dist/twilight/p-7a2bd261.entry.js +4 -0
  261. package/dist/twilight/p-7a769233.entry.js +4 -0
  262. package/dist/twilight/{p-6472200c.entry.js → p-7eef10c9.entry.js} +1 -1
  263. package/dist/twilight/{p-2a26c1d6.entry.js → p-8606c783.entry.js} +1 -1
  264. package/dist/twilight/p-8719301a.entry.js +4 -0
  265. package/dist/twilight/p-8ad78dfa.entry.js +4 -0
  266. package/dist/twilight/{p-300624bb.entry.js → p-9bea43d6.entry.js} +1 -1
  267. package/dist/twilight/{p-8b018d82.entry.js → p-9c01357f.entry.js} +1 -1
  268. package/dist/twilight/{p-C0JNGIpa.js → p-BChI23pG.js} +1 -1
  269. package/dist/twilight/{p-Cuxsz9f-.js → p-BPRHuBhm.js} +1 -1
  270. package/dist/twilight/{p-B2SkkGH8.js → p-BRh_eoK1.js} +1 -1
  271. package/dist/twilight/p-BV4kqbdL.js +4 -0
  272. package/dist/twilight/{p-tFBCbVoG.js → p-BitILwJ_.js} +1 -1
  273. package/dist/twilight/p-BsLF_HK7.js +4 -0
  274. package/dist/twilight/{p-uTyAzPSy.js → p-BsXh13x8.js} +1 -1
  275. package/dist/twilight/p-BscTeWDc.js +4 -0
  276. package/dist/twilight/{p-ChfiVIJv.js → p-Bx_UY06u.js} +1 -1
  277. package/dist/twilight/p-C-tzSDxw.js +4 -0
  278. package/dist/twilight/{p-Bp_xKTyn.js → p-C6S8Hr36.js} +1 -1
  279. package/dist/twilight/p-C6jIkM-X.js +4 -0
  280. package/dist/twilight/p-CO-PeZ27.js +4 -0
  281. package/dist/twilight/{p-DWksgowB.js → p-CgR-T_ZS.js} +1 -1
  282. package/dist/twilight/p-Ctkfc4K-.js +4 -0
  283. package/dist/twilight/p-D3mWkc-3.js +4 -0
  284. package/dist/twilight/p-D4oPi1Ov.js +4 -0
  285. package/dist/twilight/p-DCZbpt2a.js +4 -0
  286. package/dist/twilight/p-DY4LZmNP.js +4 -0
  287. package/dist/twilight/p-DfeagqF1.js +4 -0
  288. package/dist/twilight/{p-DnELO4MH.js → p-DtkaGJwR.js} +1 -1
  289. package/dist/twilight/p-OF8QcbMM.js +4 -0
  290. package/dist/twilight/{p-6mr785rH.js → p-PHxPq4LJ.js} +2 -2
  291. package/dist/twilight/p-Vqpj4CWE.js +4 -0
  292. package/dist/twilight/p-ZT7ehBBk.js +4 -0
  293. package/dist/twilight/p-a5bb66a3.entry.js +4 -0
  294. package/dist/twilight/p-ad9c9773.entry.js +4 -0
  295. package/dist/twilight/p-b502e876.entry.js +4 -0
  296. package/dist/twilight/{p-e909d28b.entry.js → p-b8d8175a.entry.js} +1 -1
  297. package/dist/twilight/p-ba5fc67a.entry.js +4 -0
  298. package/dist/twilight/p-c3750eaa.entry.js +4 -0
  299. package/dist/twilight/p-d7037864.entry.js +4 -0
  300. package/dist/twilight/p-d9880694.entry.js +4 -0
  301. package/dist/twilight/p-db0b3ed2.entry.js +4 -0
  302. package/dist/twilight/{p-81702ecb.entry.js → p-dbb4ede5.entry.js} +1 -1
  303. package/dist/twilight/{p-28900b2e.entry.js → p-e017e403.entry.js} +1 -1
  304. package/dist/twilight/p-e31177e7.entry.js +4 -0
  305. package/dist/twilight/p-e5b90edd.entry.js +4 -0
  306. package/dist/twilight/{p-b60db6c8.entry.js → p-ec3f15ee.entry.js} +1 -1
  307. package/dist/twilight/p-edc41bbc.entry.js +4 -0
  308. package/dist/twilight/p-f2c23e42.entry.js +4 -0
  309. package/dist/twilight/p-f34f5a30.entry.js +4 -0
  310. package/dist/twilight/{p-4bc98557.entry.js → p-f578dea7.entry.js} +1 -1
  311. package/dist/twilight/{p-9946fa76.entry.js → p-ffbd5949.entry.js} +1 -1
  312. package/dist/twilight/{p-C_h1JDCU.js → p-fq0HEcD_.js} +1 -1
  313. package/dist/twilight/twilight.esm.js +1 -1
  314. package/dist/types/components/salla-payments/salla-payments.d.ts +0 -2
  315. package/dist/types/components/salla-product-options/salla-product-options.d.ts +8 -1
  316. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +8 -0
  317. package/dist/types/components/salla-slider/salla-slider.d.ts +20 -2
  318. package/dist/types/components.d.ts +26 -0
  319. package/package.json +5 -5
  320. package/dist/cjs/salla-accordion_62.cjs.entry.js +0 -22470
  321. package/dist/cjs/salla-review-card.cjs.entry.js +0 -183
  322. package/dist/cjs/salla-reviews-page.cjs.entry.js +0 -695
  323. package/dist/cjs/salla-reviews.cjs.entry.js +0 -106
  324. package/dist/esm/salla-accordion_62.entry.js +0 -22389
  325. package/dist/esm/salla-review-card.entry.js +0 -181
  326. package/dist/esm/salla-reviews-page.entry.js +0 -693
  327. package/dist/esm/salla-reviews.entry.js +0 -104
  328. package/dist/twilight/p-12e49031.entry.js +0 -4
  329. package/dist/twilight/p-5bf05092.entry.js +0 -4
  330. package/dist/twilight/p-67830f2a.entry.js +0 -4
  331. package/dist/twilight/p-751dddd4.entry.js +0 -4
  332. package/dist/twilight/p-9b22a7eb.entry.js +0 -4
  333. package/dist/twilight/p-CBT_Nxny.js +0 -4
  334. package/dist/twilight/p-Dz7o69vX.js +0 -4
  335. package/dist/twilight/p-a515a8cc.entry.js +0 -4
  336. package/dist/twilight/p-c4821f8b.entry.js +0 -4
  337. package/dist/twilight/p-de807340.entry.js +0 -4
  338. package/dist/twilight/p-fa585081.entry.js +0 -4
  339. package/dist/twilight/p-yRO-ZESF.js +0 -4
  340. package/dist/cjs/{twitter-pOrUNjXi.js → facebook-DbXua6B9.js} +2 -2
  341. package/dist/esm/{twitter-Dz7o69vX.js → facebook-CO-PeZ27.js} +2 -2
@@ -0,0 +1,180 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-DgOViweO.js');
7
+ var search = require('./search-c7Aa7lM9.js');
8
+
9
+ var StoreAlt = `<!-- Generated by IcoMoon.io -->
10
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
11
+ <title>store-alt</title>
12
+ <path d="M6.667 24h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333zM31.86 10.071l-4-8c-0.227-0.452-0.688-0.737-1.193-0.737h-21.333c-0.505 0-0.967 0.285-1.193 0.737l-4 8c-0.092 0.184-0.14 0.389-0.14 0.596v18.667c0 0.737 0.597 1.333 1.333 1.333h29.333c0.736 0 1.333-0.596 1.333-1.333v-18.667c0-0.207-0.048-0.412-0.14-0.596zM6.157 4h19.685l3.333 6.667h-26.352zM24 28h-5.333v-9.333h5.333zM29.333 28h-2.667v-10.667c0-0.737-0.597-1.333-1.333-1.333h-8c-0.736 0-1.333 0.596-1.333 1.333v10.667h-13.333v-14.667h26.667zM6.667 18.667h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333z"></path>
13
+ </svg>
14
+ `;
15
+
16
+ var ModeType;
17
+ (function (ModeType) {
18
+ ModeType["DEFAULT"] = "default";
19
+ ModeType["AVAILABILITY"] = "availability";
20
+ })(ModeType || (ModeType = {}));
21
+
22
+ const sallaScopesCss = ".s-scopes-availability-content{display:flex;justify-content:center;align-items:center}.s-scopes-placeholder{flex:0 0 85%}";
23
+
24
+ const SallaScopees = class {
25
+ constructor(hostRef) {
26
+ index.registerInstance(this, hostRef);
27
+ //to avoid over loading scopes in each open call
28
+ this.loadedScopes = {
29
+ [ModeType.DEFAULT]: null,
30
+ [ModeType.AVAILABILITY]: null,
31
+ };
32
+ this.translationLoaded = false;
33
+ this.mode = ModeType.DEFAULT;
34
+ this.scopes = [];
35
+ this.originalScopesList = [];
36
+ this.isOpenedBefore = salla.storage.get("branch-choosed-before");
37
+ this.hasError = false;
38
+ this.loading = false;
39
+ /**
40
+ * Optionally open the modal or enforce the pop-up to the viewer
41
+ */
42
+ this.selection = 'optional';
43
+ /**
44
+ * Dictates when to show the search field
45
+ */
46
+ this.searchDisplayLimit = 6;
47
+ this.getFormTitle = () => {
48
+ if (this.originalScopesList?.length < 2)
49
+ return "";
50
+ const isMultiCountries = salla.config.get('store.features')?.includes('multi-countries');
51
+ if (this.mode === ModeType.DEFAULT) {
52
+ return salla.lang.get(isMultiCountries
53
+ ? "blocks.scope.shopping_from_another_market"
54
+ : "blocks.scope.shopping_from_another_branch");
55
+ }
56
+ return salla.lang.get('blocks.scope.search_for_availability_in_other_branches');
57
+ };
58
+ salla.event.on('scopes::open', ({ mode = null, product_id = null }) => {
59
+ this.open(mode, product_id);
60
+ });
61
+ salla.lang.onLoaded(() => {
62
+ this.translationLoaded = true;
63
+ });
64
+ }
65
+ /**
66
+ * Closes the scope modal.
67
+ */
68
+ async close() {
69
+ return await this.modal?.close();
70
+ }
71
+ /**
72
+ * Opens the scope modal.
73
+ */
74
+ async open(mode = ModeType.DEFAULT, product_id = null) {
75
+ this.hasError = false;
76
+ this.mode = [ModeType.AVAILABILITY, ModeType.DEFAULT].includes(mode) ? mode : ModeType.DEFAULT;
77
+ this.loading = !this.loadedScopes[this.mode];
78
+ this.setScopeValues([]);
79
+ salla.log('SallaScope:: opened');
80
+ this.modal.open();
81
+ if (!this.loading) {
82
+ this.setScopeValues(this.loadedScopes[this.mode]);
83
+ return this.modal.stopLoading();
84
+ }
85
+ let callback = () => mode == ModeType.AVAILABILITY ? salla.scope.getProductAvailability(product_id) : salla.scope.get();
86
+ return await salla.api.withoutNotifier(callback)
87
+ .then((resp) => {
88
+ if (mode == ModeType.AVAILABILITY) {
89
+ return this.setScopeValues(this.loadedScopes[ModeType.AVAILABILITY] = resp.data);
90
+ }
91
+ this.setScopeValues(this.loadedScopes[this.mode] = resp.data.scopes);
92
+ }).catch(e => {
93
+ console.log(e);
94
+ this.hasError = true;
95
+ })
96
+ .finally(() => {
97
+ this.modal.stopLoading();
98
+ this.loading = false;
99
+ });
100
+ }
101
+ /**
102
+ * Submit form to change exsiting scope.
103
+ */
104
+ async handleSubmit() {
105
+ let payload = { 'id': this.current_scope.id };
106
+ this.changeBtn.load();
107
+ return await salla.scope.change(payload)
108
+ .then(() => {
109
+ salla.storage.set("branch-choosed-before", true);
110
+ salla.storage.set("scope", {
111
+ 'type': this.current_scope.type,
112
+ 'id': this.current_scope.id
113
+ });
114
+ salla.cart.reset();
115
+ window.location.replace(salla.helpers.addParamToUrl('scope', this.current_scope.id));
116
+ }).catch(e => console.log(e))
117
+ .finally(() => {
118
+ this.changeBtn.stop();
119
+ });
120
+ }
121
+ setScopeValues(value) {
122
+ this.scopes = value;
123
+ this.originalScopesList = value;
124
+ if (value?.length == 1) {
125
+ this.current_scope = value[0];
126
+ this.selected_scope = value[0];
127
+ this.scopes = [value[0]]; // Just to make sure it's consistent, might not have that much effect though.
128
+ }
129
+ else {
130
+ this.current_scope = value?.find(scope => scope.selected);
131
+ this.selected_scope = value?.find(scope => scope.selected);
132
+ }
133
+ }
134
+ handleSearchFieldTyping(e) {
135
+ let value = e.target.value.toLocaleLowerCase();
136
+ if (!!value) {
137
+ this.scopes = this.originalScopesList.filter(scope => scope.name.toLowerCase().includes(value));
138
+ }
139
+ else {
140
+ this.scopes = this.originalScopesList;
141
+ }
142
+ }
143
+ handleScopeSelection(event) {
144
+ this.current_scope = this.scopes?.find(scope => scope.id == event.target.value);
145
+ }
146
+ placeholderContent() {
147
+ return index.h("salla-placeholder", { alignment: "center", class: "s-scopes-placeholder" }, index.h("span", { slot: "title" }, salla.lang.get("blocks.scope.branch_looking_for_not_found")), index.h("span", { slot: "description" }, salla.lang.get("blocks.scope.our_services_not_available_in_this_branch")));
148
+ }
149
+ defaultContent() {
150
+ return [index.h("div", { class: "s-scopes-container s-scrollbar" }, this.scopes?.map((scope) => index.h("div", { class: "s-scopes-input-wrap", "data-selection": this.selection }, index.h("input", { id: `${this.selection} + '_scope_' + ${scope.id}`, name: "lang", type: "radio", value: scope.id, onChange: (event) => this.handleScopeSelection(event), class: "s-scopes-input", checked: !!this.current_scope && this.current_scope.id == scope.id }), index.h("label", { htmlFor: `${this.selection} + '_scope_' + ${scope.id}`, class: "s-scopes-label s-scopes-clickable" }, index.h("span", null, scope.name))))), this.footerContent()];
151
+ }
152
+ availabilityContent() {
153
+ return index.h("div", { class: "s-scopes-container" }, this.scopes?.map((scope) => index.h("div", { class: "s-scopes-input-wrap", "data-selection": this.selection }, index.h("h2", { class: { "s-scopes-label": true, "s-scopes-clickable": this.mode === ModeType.DEFAULT } }, index.h("span", null, scope.name)), index.h("h2", { style: { 'color': scope?.availability?.color }, class: `s-scopes-${scope?.availability?.key}` }, scope?.availability?.label))));
154
+ }
155
+ footerContent() {
156
+ return index.h("div", { class: "s-scopes-footer" }, index.h("slot", { name: "footer" }, index.h("salla-button", { ref: btn => this.changeBtn = btn, disabled: !this.current_scope, onClick: () => this.handleSubmit(), class: "s-scopes-submit", "loader-position": "center", width: "wide" }, salla.lang.get('common.elements.confirm'))));
157
+ }
158
+ //let's wait to salla to be ready then render it.
159
+ componentWillLoad() {
160
+ return salla.onReady();
161
+ }
162
+ render() {
163
+ return (index.h(index.Host, { key: '8cbe5fbbe87bff9b835ae59fc92278725a9d09cf' }, index.h("salla-modal", { key: '82017d18802be5fa8fff95b2cbe32886308bb23e', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
164
+ index.h("div", { slot: "loading" }, index.h("div", { class: "s-scopes-skeleton" }, index.h("salla-list-tile", { class: "s-scopes-header" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon" }, index.h("salla-skeleton", { type: "circle" })), index.h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, index.h("salla-skeleton", { height: '15px', width: '50%' })), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, index.h("salla-skeleton", { height: '10px' }), index.h("salla-skeleton", { height: '10px', width: '75%' }))), index.h("div", { class: "s-scopes-skeleton-search" }, index.h("salla-skeleton", { height: '10px', width: '50%' }), index.h("salla-skeleton", { height: '30px', width: '100%' })), index.h("div", { class: "s-scopes-skeleton-scopes" }, index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' })), index.h("div", { class: "s-scopes-skeleton-btn" }, index.h("salla-skeleton", { height: '40px', width: '100%' }))))
165
+ :
166
+ [index.h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
167
+ index.h("div", { class: "s-scopes-search-wrapper" }, index.h("div", { class: "s-scopes-search-icon", innerHTML: search.Search }), index.h("input", { type: "text", class: "s-scopes-search-input", onInput: e => this.handleSearchFieldTyping(e), enterkeyhint: "search", placeholder: salla.lang.get('blocks.scope.searching_for_a_branch') }))
168
+ : "", this.hasError || (!this.originalScopesList?.length && this.mode !== ModeType.AVAILABILITY) ?
169
+ this.placeholderContent()
170
+ : this.mode === ModeType.DEFAULT ? this.defaultContent() : this.availabilityContent())])));
171
+ }
172
+ componentDidLoad() {
173
+ if (!this.isOpenedBefore && this.selection == 'mandatory') {
174
+ this.open();
175
+ }
176
+ }
177
+ };
178
+ SallaScopees.style = sallaScopesCss;
179
+
180
+ exports.salla_scopes = SallaScopees;
@@ -0,0 +1,153 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-DgOViweO.js');
7
+ var search = require('./search-c7Aa7lM9.js');
8
+ var Helper = require('./Helper-DHRnzcFm.js');
9
+ require('./anime.es-BqW8JHZi.js');
10
+
11
+ const sallaSearchCss = "";
12
+
13
+ const SallaSearch = class {
14
+ constructor(hostRef) {
15
+ index.registerInstance(this, hostRef);
16
+ this.inputValue = '';
17
+ this.translationLoaded = false;
18
+ this.loading = false;
19
+ this.typing = false;
20
+ this.debounce = setTimeout(() => '', 1000);
21
+ /**
22
+ * Set the component display without modal window. Defaults to `false`
23
+ */
24
+ this.inline = false;
25
+ /**
26
+ * Adds a border radius to the input. Half of the height.
27
+ */
28
+ this.oval = false;
29
+ /**
30
+ * Sets the height of the input
31
+ */
32
+ this.height = 60;
33
+ /**
34
+ * Maximum number of words allowed in the input
35
+ */
36
+ this.maxWords = 5;
37
+ /**
38
+ * Show submit action buttons at the end.
39
+ */
40
+ this.showAction = false;
41
+ this.productSlot = this.host.querySelector('[slot="product"]')?.innerHTML || this.getDefaultProductSlot();
42
+ salla.event.on('search::open', () => this.open());
43
+ salla.lang.onLoaded(() => {
44
+ this.translationLoaded = true;
45
+ });
46
+ salla.event.on('modalClosed', () => this.onModalClose());
47
+ }
48
+ async open() {
49
+ if (!this.inline) {
50
+ await this.modal.open().then(() => setTimeout(() => this.searchInput.focus(), 300));
51
+ }
52
+ }
53
+ onModalClose() {
54
+ this.searchInput.value = '';
55
+ this.results = undefined;
56
+ this.afterSearching();
57
+ this.container.classList.remove('s-search-no-results');
58
+ }
59
+ handleKeyDown(ev) {
60
+ if (ev.key === 'Enter' && this.search_term?.length) {
61
+ window.location.href = salla.url.get('search?q=' + encodeURI(this.search_term));
62
+ }
63
+ }
64
+ getDefaultProductSlot() {
65
+ return '<div class="s-search-product-image-container">' +
66
+ ' <img class="s-search-product-image" src="{image}" alt="{name}"/>' +
67
+ '</div>' +
68
+ '<div class="s-search-product-details">' +
69
+ ' <div class="s-search-product-title">{name}</div> <div class="s-search-product-price">{price} <span class="s-search-product-regular-price">{regular_price}</span></div>' +
70
+ '</div>';
71
+ }
72
+ debounceSearch(event) {
73
+ this.typing = true;
74
+ clearTimeout(this.debounce);
75
+ this.debounce = setTimeout(() => {
76
+ this.typing = false;
77
+ this.search_term = event.target.value;
78
+ }, 700);
79
+ }
80
+ limitWordsAndSearch(event) {
81
+ let value = event.target.value;
82
+ const words = value.trim().split(/\s+/);
83
+ if (words.length > this.maxWords) {
84
+ const truncatedInput = words.slice(0, this.maxWords).join(' ');
85
+ this.searchInput.value = truncatedInput;
86
+ }
87
+ this.debounceSearch(event);
88
+ }
89
+ getQueryParam(param) {
90
+ const urlParams = new URLSearchParams(window.location.search);
91
+ return urlParams.get(param);
92
+ }
93
+ handleActionClick() {
94
+ if (!!this.search_term && this.search_term.length > 2) {
95
+ return this.search(this.search_term);
96
+ }
97
+ }
98
+ handleSearch(val) {
99
+ this.inputValue = val;
100
+ if (val.length > 2) {
101
+ this.search(val);
102
+ }
103
+ else {
104
+ this.results = undefined;
105
+ this.afterSearching();
106
+ }
107
+ }
108
+ search(val) {
109
+ this.noResults.style.display = 'none';
110
+ //run loading spinner or stop it
111
+ this.loading = true;
112
+ salla.product.fetch({ source: "search", source_value: val })
113
+ .then(response => {
114
+ this.results = response;
115
+ salla.event.emit('Products Searched', val);
116
+ })
117
+ .catch(err => err !== 'Query is same as previous one!' ? this.results = undefined : null)
118
+ .finally(() => this.afterSearching(/*isEmpty*/ false));
119
+ }
120
+ afterSearching(isEmpty = true) {
121
+ this.noResults.style.display = isEmpty || this.results?.data.length > 0 ? 'none' : 'block';
122
+ Helper.Helper.toggleElementClassIf(this.container, 's-search-container-open', 's-search-no-results', () => this.results?.data.length);
123
+ this.loading = false;
124
+ salla.product.api.previousQuery = ''; //avoid having error 'Query is same as previous one!' after reopen modal;
125
+ this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
126
+ }
127
+ render() {
128
+ const searchContent = index.h("div", { key: '2e945555af379b5992375336c5b33a1dbb92589b', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, index.h("div", { key: '28c948e49a1d72a3a79e87477f37cc5f26dd4b3a', class: "s-search-input-wrapper" }, index.h("span", { key: 'b053ea1b4e6ed3c4030010dd61923421fcfeb214', class: "s-search-icon-wrap" }, index.h("span", { key: 'e1ecd01ab77d0ddd0b7b2010788fe28deaebd2af', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.h("input", { key: 'bca441ce72aac9bb85f2862413c77fa853e703c6', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => this.searchInput = input, style: { height: this.height + 'px', borderRadius: this.oval ? this.height / 2 + 'px' : '' } }), this.showAction ?
129
+ index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search })) : null), index.h("div", { key: '07ed4d8828b8343dd05bacb3a6904ad30eacce7a', class: "s-search-results" }, this.results?.data.map((product) => index.h("a", { href: product.url + '?from=search-bar', class: { "s-search-product": true, 's-search-product-not-available': !product.is_available }, innerHTML: this.productSlot
130
+ .replace(/\{name\}/g, product.name)
131
+ .replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
132
+ .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price ? salla.money(product.regular_price) : '')
133
+ .replace(/\{image\}/g, product.image.url) })), index.h("p", { key: '7a3420f60f2172f39c44633176a454f9ae06f0ce', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
134
+ return (this.inline ?
135
+ index.h("div", { class: "s-search-modal" }, searchContent)
136
+ :
137
+ index.h("salla-modal", { position: "top", class: "s-search-modal", ref: modal => this.modal = modal }, searchContent));
138
+ }
139
+ /**
140
+ * Run it one time after load
141
+ */
142
+ componentDidLoad() {
143
+ this.afterSearching();
144
+ this.searchInput.value = this.getQueryParam('q');
145
+ }
146
+ get host() { return index.getElement(this); }
147
+ static get watchers() { return {
148
+ "search_term": ["handleSearch"]
149
+ }; }
150
+ };
151
+ SallaSearch.style = sallaSearchCss;
152
+
153
+ exports.salla_search = SallaSearch;
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-DgOViweO.js');
7
+
8
+ const sallaSkeletonCss = ":host{display:block}";
9
+
10
+ const SallaSkeleton = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ /**
14
+ * Set the shape type of the skeleton is it circle or normal
15
+ */
16
+ this.type = 'normal';
17
+ /**
18
+ * Set the skeleton width
19
+ */
20
+ this.width = '100%';
21
+ /**
22
+ * Set the skeleton height
23
+ */
24
+ this.height = '100%';
25
+ }
26
+ render() {
27
+ const classes = {
28
+ 's-skeleton-item': true,
29
+ 's-skeleton-item-circular': this.type == 'circle',
30
+ };
31
+ return (index.h(index.Host, { key: 'ad465a77b10e2f1d739c802643076f63985cfda5', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '0b05bcfc21d3bcb85389a2a0c9b63c3a7aa28d60', class: classes }, "\u00A0")));
32
+ }
33
+ };
34
+ SallaSkeleton.style = sallaSkeletonCss;
35
+
36
+ exports.salla_skeleton = SallaSkeleton;