@salla.sa/twilight-components 2.14.392 → 2.14.394

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 (290) hide show
  1. package/dist/cjs/{filepond-D-ur1GA-.js → filepond-C_gLbAbF.js} +10 -5
  2. package/dist/cjs/{filepond-plugin-file-poster-DigEeKId.js → filepond-plugin-file-poster-DXWo2FUU.js} +10 -6
  3. package/dist/cjs/{filepond-plugin-file-validate-size-R9el3Yro.js → filepond-plugin-file-validate-size-fBXMP7ez.js} +1 -1
  4. package/dist/cjs/filepond-plugin-file-validate-type-DEo7juC7.js +271 -0
  5. package/dist/cjs/{filepond-plugin-image-edit-bhI8kqN_.js → filepond-plugin-image-edit-4j4e1VEp.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-COXZUVRV.js → filepond-plugin-image-exif-orientation-DWqiXxv1.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-COP8QJBf.js → filepond-plugin-image-preview-emT_teia.js} +1 -1
  8. package/dist/cjs/{index-CGnPURjZ.js → index-B03mYCWz.js} +1206 -817
  9. package/dist/cjs/{index-BILBEE9f.js → index-Y-2uyQDK.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion-body_2.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 +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-count-down.cjs.entry.js +33 -9
  27. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-notifications.cjs.entry.js +48 -3
  51. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-slider.cjs.entry.js +19 -13
  75. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  86. package/dist/cjs/twilight.cjs.js +1 -1
  87. package/dist/cjs/{vanilla-picker-DI3TImGd.js → vanilla-picker-CKZvBtHS.js} +1 -1
  88. package/dist/collection/components/salla-count-down/salla-count-down.js +32 -8
  89. package/dist/collection/components/salla-file-upload/salla-file-upload.css +1 -1
  90. package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -1
  91. package/dist/collection/components/salla-notifications/salla-notifications.js +47 -2
  92. package/dist/collection/components/salla-slider/salla-slider.css +9 -2
  93. package/dist/components/axios.js +1123 -791
  94. package/dist/components/filepond-plugin-file-poster.js +9 -5
  95. package/dist/components/filepond-plugin-file-validate-type.js +215 -231
  96. package/dist/components/filepond.js +9 -4
  97. package/dist/components/index.js +83 -26
  98. package/dist/components/salla-count-down2.js +32 -8
  99. package/dist/components/salla-file-upload2.js +1 -1
  100. package/dist/components/salla-notifications.js +47 -2
  101. package/dist/components/salla-slider2.js +18 -12
  102. package/dist/esm/{filepond-kTbl0kuh.js → filepond-Be7JObSq.js} +10 -5
  103. package/dist/esm/{filepond-plugin-file-poster-CyywnjKv.js → filepond-plugin-file-poster-DF0NWKCQ.js} +10 -6
  104. package/dist/esm/{filepond-plugin-file-validate-size-DgteZhje.js → filepond-plugin-file-validate-size-DJFlJHtE.js} +1 -1
  105. package/dist/esm/filepond-plugin-file-validate-type-DykpLW1Z.js +269 -0
  106. package/dist/esm/{filepond-plugin-image-edit-pZ_mETE7.js → filepond-plugin-image-edit-CyIHxrnW.js} +1 -1
  107. package/dist/esm/{filepond-plugin-image-exif-orientation-CjKYl7HL.js → filepond-plugin-image-exif-orientation-DbCOAhSu.js} +1 -1
  108. package/dist/esm/{filepond-plugin-image-preview-BzJTl_2A.js → filepond-plugin-image-preview-CGRGZcft.js} +1 -1
  109. package/dist/esm/{index-C23tPnnH.js → index-Cz6cYzxG.js} +1206 -817
  110. package/dist/esm/{index-3Kis_Ivk.js → index-_kPnZdm0.js} +1 -1
  111. package/dist/esm/loader.js +2 -2
  112. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  113. package/dist/esm/salla-accordion_6.entry.js +1 -1
  114. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  115. package/dist/esm/salla-advertisement.entry.js +1 -1
  116. package/dist/esm/salla-alert_2.entry.js +1 -1
  117. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  118. package/dist/esm/salla-apps-icons.entry.js +1 -1
  119. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  120. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  121. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  122. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  123. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  124. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  125. package/dist/esm/salla-contacts.entry.js +1 -1
  126. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  127. package/dist/esm/salla-count-down.entry.js +33 -9
  128. package/dist/esm/salla-custom-fields.entry.js +1 -1
  129. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  130. package/dist/esm/salla-filters-widget.entry.js +1 -1
  131. package/dist/esm/salla-filters.entry.js +1 -1
  132. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  133. package/dist/esm/salla-gifting.entry.js +1 -1
  134. package/dist/esm/salla-hook.entry.js +1 -1
  135. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  136. package/dist/esm/salla-installment.entry.js +1 -1
  137. package/dist/esm/salla-list-tile.entry.js +1 -1
  138. package/dist/esm/salla-localization-modal.entry.js +1 -1
  139. package/dist/esm/salla-login-modal.entry.js +1 -1
  140. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  141. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  142. package/dist/esm/salla-loyalty.entry.js +1 -1
  143. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  144. package/dist/esm/salla-map.entry.js +1 -1
  145. package/dist/esm/salla-menu.entry.js +1 -1
  146. package/dist/esm/salla-metadata.entry.js +1 -1
  147. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  148. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  149. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  150. package/dist/esm/salla-notification-item.entry.js +1 -1
  151. package/dist/esm/salla-notifications.entry.js +48 -3
  152. package/dist/esm/salla-offer-modal.entry.js +1 -1
  153. package/dist/esm/salla-offer.entry.js +1 -1
  154. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  155. package/dist/esm/salla-order-details-options.entry.js +1 -1
  156. package/dist/esm/salla-order-details.entry.js +1 -1
  157. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  158. package/dist/esm/salla-order-edit.entry.js +1 -1
  159. package/dist/esm/salla-order-summary.entry.js +1 -1
  160. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  161. package/dist/esm/salla-orders.entry.js +1 -1
  162. package/dist/esm/salla-payments.entry.js +1 -1
  163. package/dist/esm/salla-placeholder.entry.js +1 -1
  164. package/dist/esm/salla-price-range.entry.js +1 -1
  165. package/dist/esm/salla-product-card.entry.js +1 -1
  166. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  167. package/dist/esm/salla-products-list.entry.js +1 -1
  168. package/dist/esm/salla-products-slider.entry.js +1 -1
  169. package/dist/esm/salla-progress-bar.entry.js +1 -1
  170. package/dist/esm/salla-quick-order.entry.js +1 -1
  171. package/dist/esm/salla-rating-modal.entry.js +1 -1
  172. package/dist/esm/salla-scopes.entry.js +1 -1
  173. package/dist/esm/salla-search.entry.js +1 -1
  174. package/dist/esm/salla-skeleton.entry.js +1 -1
  175. package/dist/esm/salla-slider.entry.js +19 -13
  176. package/dist/esm/salla-social-share.entry.js +1 -1
  177. package/dist/esm/salla-social.entry.js +1 -1
  178. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  179. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  180. package/dist/esm/salla-tooltip.entry.js +1 -1
  181. package/dist/esm/salla-trust-badges.entry.js +1 -1
  182. package/dist/esm/salla-user-menu.entry.js +1 -1
  183. package/dist/esm/salla-user-profile.entry.js +1 -1
  184. package/dist/esm/salla-user-settings.entry.js +1 -1
  185. package/dist/esm/salla-verify.entry.js +1 -1
  186. package/dist/esm/salla-wallet.entry.js +1 -1
  187. package/dist/esm/twilight.js +2 -2
  188. package/dist/esm/{vanilla-picker-CEy5x8Cf.js → vanilla-picker-C_YV5LtA.js} +1 -1
  189. package/dist/twilight/p-0200cddd.entry.js +4 -0
  190. package/dist/twilight/p-04dc0b71.entry.js +4 -0
  191. package/dist/twilight/{p-f251e744.entry.js → p-0bac200e.entry.js} +1 -1
  192. package/dist/twilight/{p-1899f283.entry.js → p-0ef99df1.entry.js} +1 -1
  193. package/dist/twilight/{p-82e3c734.entry.js → p-1087f0dd.entry.js} +1 -1
  194. package/dist/twilight/{p-2a1871c2.entry.js → p-17dd8b68.entry.js} +1 -1
  195. package/dist/twilight/{p-5d37cc33.entry.js → p-25a9bf1b.entry.js} +1 -1
  196. package/dist/twilight/{p-3745a7d0.entry.js → p-2602927d.entry.js} +1 -1
  197. package/dist/twilight/{p-54f65187.entry.js → p-268695ff.entry.js} +1 -1
  198. package/dist/twilight/{p-b6ded196.entry.js → p-34920aac.entry.js} +1 -1
  199. package/dist/twilight/p-3656b48d.entry.js +4 -0
  200. package/dist/twilight/{p-b4f07395.entry.js → p-3857beb4.entry.js} +1 -1
  201. package/dist/twilight/{p-f1f74b41.entry.js → p-39c601e3.entry.js} +1 -1
  202. package/dist/twilight/{p-c68f3054.entry.js → p-3c810881.entry.js} +1 -1
  203. package/dist/twilight/{p-7b717899.entry.js → p-3cf5c61f.entry.js} +1 -1
  204. package/dist/twilight/{p-9f23dd30.entry.js → p-413a7236.entry.js} +1 -1
  205. package/dist/twilight/{p-1dbaefb8.entry.js → p-42778349.entry.js} +1 -1
  206. package/dist/twilight/{p-bdcf3926.entry.js → p-45e4f6f4.entry.js} +1 -1
  207. package/dist/twilight/{p-3a5aaa20.entry.js → p-4680956b.entry.js} +1 -1
  208. package/dist/twilight/{p-4e00f827.entry.js → p-468b999f.entry.js} +1 -1
  209. package/dist/twilight/{p-e89812d8.entry.js → p-46d1823f.entry.js} +1 -1
  210. package/dist/twilight/{p-9deae4f4.entry.js → p-49db497f.entry.js} +1 -1
  211. package/dist/twilight/{p-ff6f769c.entry.js → p-4b033276.entry.js} +1 -1
  212. package/dist/twilight/{p-866b297b.entry.js → p-4f7bc9c3.entry.js} +1 -1
  213. package/dist/twilight/{p-81f6638f.entry.js → p-543ee624.entry.js} +1 -1
  214. package/dist/twilight/{p-81f648a2.entry.js → p-5957f774.entry.js} +1 -1
  215. package/dist/twilight/{p-97df32eb.entry.js → p-5a4f0b99.entry.js} +1 -1
  216. package/dist/twilight/{p-5ef1b170.entry.js → p-5a8c0fd2.entry.js} +1 -1
  217. package/dist/twilight/{p-05663bb1.entry.js → p-5ab7a295.entry.js} +1 -1
  218. package/dist/twilight/{p-ba4b672c.entry.js → p-5e496aaa.entry.js} +1 -1
  219. package/dist/twilight/{p-1c215c8c.entry.js → p-5f440956.entry.js} +1 -1
  220. package/dist/twilight/{p-face0448.entry.js → p-60fafcd9.entry.js} +1 -1
  221. package/dist/twilight/{p-2aa48902.entry.js → p-708f02db.entry.js} +1 -1
  222. package/dist/twilight/{p-8c6db6d7.entry.js → p-7829ea8a.entry.js} +1 -1
  223. package/dist/twilight/{p-c8aa5377.entry.js → p-7d3e592a.entry.js} +1 -1
  224. package/dist/twilight/{p-81f76d49.entry.js → p-81876026.entry.js} +1 -1
  225. package/dist/twilight/{p-194d87c6.entry.js → p-8306ef5e.entry.js} +1 -1
  226. package/dist/twilight/{p-f8b6967f.entry.js → p-8403cd93.entry.js} +1 -1
  227. package/dist/twilight/{p-ce9fee6d.entry.js → p-8474c4f6.entry.js} +1 -1
  228. package/dist/twilight/{p-549f59ed.entry.js → p-8552160a.entry.js} +1 -1
  229. package/dist/twilight/p-8c9b0e2a.entry.js +4 -0
  230. package/dist/twilight/{p-27f34c85.entry.js → p-8f2dfc57.entry.js} +1 -1
  231. package/dist/twilight/{p-1b1f9f71.entry.js → p-94b1a2ae.entry.js} +1 -1
  232. package/dist/twilight/{p-85ceef78.entry.js → p-95dad1af.entry.js} +1 -1
  233. package/dist/twilight/{p-d81ad2c3.entry.js → p-964b7db9.entry.js} +1 -1
  234. package/dist/twilight/{p-a76b3dba.entry.js → p-99735748.entry.js} +1 -1
  235. package/dist/twilight/{p-BgG5eq1x.js → p-BZKDQg1s.js} +1 -1
  236. package/dist/twilight/{p-IoI86ovS.js → p-B_sN7OnY.js} +1 -1
  237. package/dist/twilight/{p-BHjlzmYy.js → p-Bpi0aG1F.js} +1 -1
  238. package/dist/twilight/p-CP8rFQ5n.js +9 -0
  239. package/dist/twilight/p-CfmIbM8B.js +9 -0
  240. package/dist/twilight/{p-BqCmPfAo.js → p-CpO1SrBd.js} +2 -2
  241. package/dist/twilight/p-Cz6cYzxG.js +5 -0
  242. package/dist/twilight/p-Do4hSOGo.js +9 -0
  243. package/dist/twilight/p-JJmlh-ji.js +9 -0
  244. package/dist/twilight/{p-ff9b33bb.entry.js → p-a4aedcfe.entry.js} +1 -1
  245. package/dist/twilight/{p-651fe6e4.entry.js → p-b0d01f9f.entry.js} +1 -1
  246. package/dist/twilight/{p-eb5a8329.entry.js → p-b8404cfb.entry.js} +1 -1
  247. package/dist/twilight/{p-407828e4.entry.js → p-b8e3e180.entry.js} +1 -1
  248. package/dist/twilight/{p-d1dd1db6.entry.js → p-bd687cd0.entry.js} +1 -1
  249. package/dist/twilight/{p-67fe5680.entry.js → p-c0037fac.entry.js} +1 -1
  250. package/dist/twilight/{p-c3d0c062.entry.js → p-c121f8e4.entry.js} +1 -1
  251. package/dist/twilight/{p-d022b6ec.entry.js → p-c29907df.entry.js} +1 -1
  252. package/dist/twilight/{p-4e9e3ab1.entry.js → p-c39675ef.entry.js} +1 -1
  253. package/dist/twilight/{p-344c1910.entry.js → p-cb7a985e.entry.js} +1 -1
  254. package/dist/twilight/{p-346b55d6.entry.js → p-cbe620c4.entry.js} +1 -1
  255. package/dist/twilight/{p-b55da21d.entry.js → p-d2fd79b4.entry.js} +1 -1
  256. package/dist/twilight/{p-98eb495e.entry.js → p-d6cf0ffd.entry.js} +1 -1
  257. package/dist/twilight/{p-f201122a.entry.js → p-d8f60f2f.entry.js} +1 -1
  258. package/dist/twilight/{p-0652987b.entry.js → p-d99610f9.entry.js} +1 -1
  259. package/dist/twilight/{p-11767786.entry.js → p-dc897bdd.entry.js} +1 -1
  260. package/dist/twilight/{p-50621375.entry.js → p-dca46236.entry.js} +1 -1
  261. package/dist/twilight/{p-1ca75c99.entry.js → p-e48853c9.entry.js} +1 -1
  262. package/dist/twilight/{p-a50f7f70.entry.js → p-e4fdb206.entry.js} +1 -1
  263. package/dist/twilight/{p-1c8394db.entry.js → p-ed913ae7.entry.js} +1 -1
  264. package/dist/twilight/{p-3962c34c.entry.js → p-f067fcd6.entry.js} +1 -1
  265. package/dist/twilight/{p-a00e249b.entry.js → p-f2cd6975.entry.js} +1 -1
  266. package/dist/twilight/{p-713590e2.entry.js → p-f2ffbfbb.entry.js} +1 -1
  267. package/dist/twilight/p-f3166e60.entry.js +4 -0
  268. package/dist/twilight/{p-827edf95.entry.js → p-f8fcc8f4.entry.js} +1 -1
  269. package/dist/twilight/{p-775b42ec.entry.js → p-f9e52fd9.entry.js} +1 -1
  270. package/dist/twilight/{p-753464fd.entry.js → p-fcddbfc3.entry.js} +1 -1
  271. package/dist/twilight/{p-f2ee9ceb.entry.js → p-fe7ac9bb.entry.js} +1 -1
  272. package/dist/twilight/{p-744d6394.entry.js → p-ff14dca3.entry.js} +1 -1
  273. package/dist/twilight/{p-CU-HtXWh.js → p-mlFGjxcj.js} +1 -1
  274. package/dist/twilight/twilight.esm.js +1 -1
  275. package/dist/types/components/salla-count-down/salla-count-down.d.ts +6 -0
  276. package/dist/types/components/salla-notifications/interfaces.d.ts +20 -0
  277. package/dist/types/components/salla-notifications/salla-notifications.d.ts +17 -0
  278. package/package.json +5 -5
  279. package/dist/cjs/filepond-plugin-file-validate-type-Dfy66STE.js +0 -287
  280. package/dist/esm/filepond-plugin-file-validate-type-BYs_scJr.js +0 -285
  281. package/dist/twilight/p-14529fd6.entry.js +0 -4
  282. package/dist/twilight/p-726513f8.entry.js +0 -4
  283. package/dist/twilight/p-AfW2b46_.js +0 -9
  284. package/dist/twilight/p-C23tPnnH.js +0 -5
  285. package/dist/twilight/p-CrYUKEsF.js +0 -9
  286. package/dist/twilight/p-HWjjIZ9_.js +0 -9
  287. package/dist/twilight/p-Ig1Tafsp.js +0 -9
  288. package/dist/twilight/p-c9001d7f.entry.js +0 -4
  289. package/dist/twilight/p-cf9573fd.entry.js +0 -4
  290. package/dist/twilight/p-e6124fab.entry.js +0 -4
@@ -1,287 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- 'use strict';
5
-
6
- var index = require('./index-CGnPURjZ.js');
7
-
8
- function _mergeNamespaces(n, m) {
9
- m.forEach(function (e) {
10
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
11
- if (k !== 'default' && !(k in n)) {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- });
20
- return Object.freeze(n);
21
- }
22
-
23
- var filepondPluginFileValidateType$3 = {exports: {}};
24
-
25
- /*!
26
- * FilePondPluginFileValidateType 1.2.8
27
- * Licensed under MIT, https://opensource.org/licenses/MIT/
28
- * Please visit https://pqina.nl/filepond/ for details.
29
- */
30
- var filepondPluginFileValidateType$2 = filepondPluginFileValidateType$3.exports;
31
-
32
- var hasRequiredFilepondPluginFileValidateType;
33
-
34
- function requireFilepondPluginFileValidateType () {
35
- if (hasRequiredFilepondPluginFileValidateType) return filepondPluginFileValidateType$3.exports;
36
- hasRequiredFilepondPluginFileValidateType = 1;
37
- (function (module, exports) {
38
- /* eslint-disable */
39
-
40
- (function(global, factory) {
41
- (module.exports = factory())
42
- ;
43
- })(filepondPluginFileValidateType$2, function() {
44
-
45
- var plugin = function plugin(_ref) {
46
- var addFilter = _ref.addFilter,
47
- utils = _ref.utils;
48
- // get quick reference to Type utils
49
- var Type = utils.Type,
50
- isString = utils.isString,
51
- replaceInString = utils.replaceInString,
52
- guesstimateMimeType = utils.guesstimateMimeType,
53
- getExtensionFromFilename = utils.getExtensionFromFilename,
54
- getFilenameFromURL = utils.getFilenameFromURL;
55
-
56
- var mimeTypeMatchesWildCard = function mimeTypeMatchesWildCard(
57
- mimeType,
58
- wildcard
59
- ) {
60
- var mimeTypeGroup = (/^[^/]+/.exec(mimeType) || []).pop(); // image/png -> image
61
- var wildcardGroup = wildcard.slice(0, -2); // image/* -> image
62
- return mimeTypeGroup === wildcardGroup;
63
- };
64
-
65
- var isValidMimeType = function isValidMimeType(
66
- acceptedTypes,
67
- userInputType
68
- ) {
69
- return acceptedTypes.some(function(acceptedType) {
70
- // accepted is wildcard mime type
71
- if (/\*$/.test(acceptedType)) {
72
- return mimeTypeMatchesWildCard(userInputType, acceptedType);
73
- }
74
-
75
- // is normal mime type
76
- return acceptedType === userInputType;
77
- });
78
- };
79
-
80
- var getItemType = function getItemType(item) {
81
- // if the item is a url we guess the mime type by the extension
82
- var type = '';
83
- if (isString(item)) {
84
- var filename = getFilenameFromURL(item);
85
- var extension = getExtensionFromFilename(filename);
86
- if (extension) {
87
- type = guesstimateMimeType(extension);
88
- }
89
- } else {
90
- type = item.type;
91
- }
92
-
93
- return type;
94
- };
95
-
96
- var validateFile = function validateFile(
97
- item,
98
- acceptedFileTypes,
99
- typeDetector
100
- ) {
101
- // no types defined, everything is allowed \o/
102
- if (acceptedFileTypes.length === 0) {
103
- return true;
104
- }
105
-
106
- // gets the item type
107
- var type = getItemType(item);
108
-
109
- // no type detector, test now
110
- if (!typeDetector) {
111
- return isValidMimeType(acceptedFileTypes, type);
112
- }
113
-
114
- // use type detector
115
- return new Promise(function(resolve, reject) {
116
- typeDetector(item, type)
117
- .then(function(detectedType) {
118
- if (isValidMimeType(acceptedFileTypes, detectedType)) {
119
- resolve();
120
- } else {
121
- reject();
122
- }
123
- })
124
- .catch(reject);
125
- });
126
- };
127
-
128
- var applyMimeTypeMap = function applyMimeTypeMap(map) {
129
- return function(acceptedFileType) {
130
- return map[acceptedFileType] === null
131
- ? false
132
- : map[acceptedFileType] || acceptedFileType;
133
- };
134
- };
135
-
136
- // setup attribute mapping for accept
137
- addFilter('SET_ATTRIBUTE_TO_OPTION_MAP', function(map) {
138
- return Object.assign(map, {
139
- accept: 'acceptedFileTypes'
140
- });
141
- });
142
-
143
- // filtering if an item is allowed in hopper
144
- addFilter('ALLOW_HOPPER_ITEM', function(file, _ref2) {
145
- var query = _ref2.query;
146
- // if we are not doing file type validation exit
147
- if (!query('GET_ALLOW_FILE_TYPE_VALIDATION')) {
148
- return true;
149
- }
150
-
151
- // we validate the file against the accepted file types
152
- return validateFile(file, query('GET_ACCEPTED_FILE_TYPES'));
153
- });
154
-
155
- // called for each file that is loaded
156
- // right before it is set to the item state
157
- // should return a promise
158
- addFilter('LOAD_FILE', function(file, _ref3) {
159
- var query = _ref3.query;
160
- return new Promise(function(resolve, reject) {
161
- if (!query('GET_ALLOW_FILE_TYPE_VALIDATION')) {
162
- resolve(file);
163
- return;
164
- }
165
-
166
- var acceptedFileTypes = query('GET_ACCEPTED_FILE_TYPES');
167
-
168
- // custom type detector method
169
- var typeDetector = query('GET_FILE_VALIDATE_TYPE_DETECT_TYPE');
170
-
171
- // if invalid, exit here
172
- var validationResult = validateFile(
173
- file,
174
- acceptedFileTypes,
175
- typeDetector
176
- );
177
-
178
- var handleRejection = function handleRejection() {
179
- var acceptedFileTypesMapped = acceptedFileTypes
180
- .map(
181
- applyMimeTypeMap(
182
- query('GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP')
183
- )
184
- )
185
- .filter(function(label) {
186
- return label !== false;
187
- });
188
-
189
- var acceptedFileTypesMapped_unique = acceptedFileTypesMapped.filter(
190
- function(item, index) {
191
- return acceptedFileTypesMapped.indexOf(item) === index;
192
- }
193
- );
194
-
195
- reject({
196
- status: {
197
- main: query('GET_LABEL_FILE_TYPE_NOT_ALLOWED'),
198
- sub: replaceInString(
199
- query('GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES'),
200
- {
201
- allTypes: acceptedFileTypesMapped_unique.join(', '),
202
- allButLastType: acceptedFileTypesMapped_unique
203
- .slice(0, -1)
204
- .join(', '),
205
- lastType:
206
- acceptedFileTypesMapped_unique[
207
- acceptedFileTypesMapped.length - 1
208
- ]
209
- }
210
- )
211
- }
212
- });
213
- };
214
-
215
- // has returned new filename immidiately
216
- if (typeof validationResult === 'boolean') {
217
- if (!validationResult) {
218
- return handleRejection();
219
- }
220
- return resolve(file);
221
- }
222
-
223
- // is promise
224
- validationResult
225
- .then(function() {
226
- resolve(file);
227
- })
228
- .catch(handleRejection);
229
- });
230
- });
231
-
232
- // expose plugin
233
- return {
234
- // default options
235
- options: {
236
- // Enable or disable file type validation
237
- allowFileTypeValidation: [true, Type.BOOLEAN],
238
-
239
- // What file types to accept
240
- acceptedFileTypes: [[], Type.ARRAY],
241
- // - must be comma separated
242
- // - mime types: image/png, image/jpeg, image/gif
243
- // - extensions: .png, .jpg, .jpeg ( not enabled yet )
244
- // - wildcards: image/*
245
-
246
- // label to show when a type is not allowed
247
- labelFileTypeNotAllowed: ['File is of invalid type', Type.STRING],
248
-
249
- // nicer label
250
- fileValidateTypeLabelExpectedTypes: [
251
- 'Expects {allButLastType} or {lastType}',
252
- Type.STRING
253
- ],
254
-
255
- // map mime types to extensions
256
- fileValidateTypeLabelExpectedTypesMap: [{}, Type.OBJECT],
257
-
258
- // Custom function to detect type of file
259
- fileValidateTypeDetectType: [null, Type.FUNCTION]
260
- }
261
- };
262
- };
263
-
264
- // fire pluginloaded event if running in browser, this allows registering the plugin when using async script tags
265
- var isBrowser =
266
- typeof window !== 'undefined' && typeof window.document !== 'undefined';
267
- if (isBrowser) {
268
- document.dispatchEvent(
269
- new CustomEvent('FilePond:pluginloaded', { detail: plugin })
270
- );
271
- }
272
-
273
- return plugin;
274
- });
275
- } (filepondPluginFileValidateType$3));
276
- return filepondPluginFileValidateType$3.exports;
277
- }
278
-
279
- var filepondPluginFileValidateTypeExports = requireFilepondPluginFileValidateType();
280
- var filepondPluginFileValidateType = /*@__PURE__*/index.getDefaultExportFromCjs(filepondPluginFileValidateTypeExports);
281
-
282
- var filepondPluginFileValidateType$1 = /*#__PURE__*/_mergeNamespaces({
283
- __proto__: null,
284
- default: filepondPluginFileValidateType
285
- }, [filepondPluginFileValidateTypeExports]);
286
-
287
- exports.filepondPluginFileValidateType = filepondPluginFileValidateType$1;
@@ -1,285 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { d as getDefaultExportFromCjs } from './index-C23tPnnH.js';
5
-
6
- function _mergeNamespaces(n, m) {
7
- m.forEach(function (e) {
8
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
9
- if (k !== 'default' && !(k in n)) {
10
- var d = Object.getOwnPropertyDescriptor(e, k);
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: function () { return e[k]; }
14
- });
15
- }
16
- });
17
- });
18
- return Object.freeze(n);
19
- }
20
-
21
- var filepondPluginFileValidateType$3 = {exports: {}};
22
-
23
- /*!
24
- * FilePondPluginFileValidateType 1.2.8
25
- * Licensed under MIT, https://opensource.org/licenses/MIT/
26
- * Please visit https://pqina.nl/filepond/ for details.
27
- */
28
- var filepondPluginFileValidateType$2 = filepondPluginFileValidateType$3.exports;
29
-
30
- var hasRequiredFilepondPluginFileValidateType;
31
-
32
- function requireFilepondPluginFileValidateType () {
33
- if (hasRequiredFilepondPluginFileValidateType) return filepondPluginFileValidateType$3.exports;
34
- hasRequiredFilepondPluginFileValidateType = 1;
35
- (function (module, exports) {
36
- /* eslint-disable */
37
-
38
- (function(global, factory) {
39
- (module.exports = factory())
40
- ;
41
- })(filepondPluginFileValidateType$2, function() {
42
-
43
- var plugin = function plugin(_ref) {
44
- var addFilter = _ref.addFilter,
45
- utils = _ref.utils;
46
- // get quick reference to Type utils
47
- var Type = utils.Type,
48
- isString = utils.isString,
49
- replaceInString = utils.replaceInString,
50
- guesstimateMimeType = utils.guesstimateMimeType,
51
- getExtensionFromFilename = utils.getExtensionFromFilename,
52
- getFilenameFromURL = utils.getFilenameFromURL;
53
-
54
- var mimeTypeMatchesWildCard = function mimeTypeMatchesWildCard(
55
- mimeType,
56
- wildcard
57
- ) {
58
- var mimeTypeGroup = (/^[^/]+/.exec(mimeType) || []).pop(); // image/png -> image
59
- var wildcardGroup = wildcard.slice(0, -2); // image/* -> image
60
- return mimeTypeGroup === wildcardGroup;
61
- };
62
-
63
- var isValidMimeType = function isValidMimeType(
64
- acceptedTypes,
65
- userInputType
66
- ) {
67
- return acceptedTypes.some(function(acceptedType) {
68
- // accepted is wildcard mime type
69
- if (/\*$/.test(acceptedType)) {
70
- return mimeTypeMatchesWildCard(userInputType, acceptedType);
71
- }
72
-
73
- // is normal mime type
74
- return acceptedType === userInputType;
75
- });
76
- };
77
-
78
- var getItemType = function getItemType(item) {
79
- // if the item is a url we guess the mime type by the extension
80
- var type = '';
81
- if (isString(item)) {
82
- var filename = getFilenameFromURL(item);
83
- var extension = getExtensionFromFilename(filename);
84
- if (extension) {
85
- type = guesstimateMimeType(extension);
86
- }
87
- } else {
88
- type = item.type;
89
- }
90
-
91
- return type;
92
- };
93
-
94
- var validateFile = function validateFile(
95
- item,
96
- acceptedFileTypes,
97
- typeDetector
98
- ) {
99
- // no types defined, everything is allowed \o/
100
- if (acceptedFileTypes.length === 0) {
101
- return true;
102
- }
103
-
104
- // gets the item type
105
- var type = getItemType(item);
106
-
107
- // no type detector, test now
108
- if (!typeDetector) {
109
- return isValidMimeType(acceptedFileTypes, type);
110
- }
111
-
112
- // use type detector
113
- return new Promise(function(resolve, reject) {
114
- typeDetector(item, type)
115
- .then(function(detectedType) {
116
- if (isValidMimeType(acceptedFileTypes, detectedType)) {
117
- resolve();
118
- } else {
119
- reject();
120
- }
121
- })
122
- .catch(reject);
123
- });
124
- };
125
-
126
- var applyMimeTypeMap = function applyMimeTypeMap(map) {
127
- return function(acceptedFileType) {
128
- return map[acceptedFileType] === null
129
- ? false
130
- : map[acceptedFileType] || acceptedFileType;
131
- };
132
- };
133
-
134
- // setup attribute mapping for accept
135
- addFilter('SET_ATTRIBUTE_TO_OPTION_MAP', function(map) {
136
- return Object.assign(map, {
137
- accept: 'acceptedFileTypes'
138
- });
139
- });
140
-
141
- // filtering if an item is allowed in hopper
142
- addFilter('ALLOW_HOPPER_ITEM', function(file, _ref2) {
143
- var query = _ref2.query;
144
- // if we are not doing file type validation exit
145
- if (!query('GET_ALLOW_FILE_TYPE_VALIDATION')) {
146
- return true;
147
- }
148
-
149
- // we validate the file against the accepted file types
150
- return validateFile(file, query('GET_ACCEPTED_FILE_TYPES'));
151
- });
152
-
153
- // called for each file that is loaded
154
- // right before it is set to the item state
155
- // should return a promise
156
- addFilter('LOAD_FILE', function(file, _ref3) {
157
- var query = _ref3.query;
158
- return new Promise(function(resolve, reject) {
159
- if (!query('GET_ALLOW_FILE_TYPE_VALIDATION')) {
160
- resolve(file);
161
- return;
162
- }
163
-
164
- var acceptedFileTypes = query('GET_ACCEPTED_FILE_TYPES');
165
-
166
- // custom type detector method
167
- var typeDetector = query('GET_FILE_VALIDATE_TYPE_DETECT_TYPE');
168
-
169
- // if invalid, exit here
170
- var validationResult = validateFile(
171
- file,
172
- acceptedFileTypes,
173
- typeDetector
174
- );
175
-
176
- var handleRejection = function handleRejection() {
177
- var acceptedFileTypesMapped = acceptedFileTypes
178
- .map(
179
- applyMimeTypeMap(
180
- query('GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP')
181
- )
182
- )
183
- .filter(function(label) {
184
- return label !== false;
185
- });
186
-
187
- var acceptedFileTypesMapped_unique = acceptedFileTypesMapped.filter(
188
- function(item, index) {
189
- return acceptedFileTypesMapped.indexOf(item) === index;
190
- }
191
- );
192
-
193
- reject({
194
- status: {
195
- main: query('GET_LABEL_FILE_TYPE_NOT_ALLOWED'),
196
- sub: replaceInString(
197
- query('GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES'),
198
- {
199
- allTypes: acceptedFileTypesMapped_unique.join(', '),
200
- allButLastType: acceptedFileTypesMapped_unique
201
- .slice(0, -1)
202
- .join(', '),
203
- lastType:
204
- acceptedFileTypesMapped_unique[
205
- acceptedFileTypesMapped.length - 1
206
- ]
207
- }
208
- )
209
- }
210
- });
211
- };
212
-
213
- // has returned new filename immidiately
214
- if (typeof validationResult === 'boolean') {
215
- if (!validationResult) {
216
- return handleRejection();
217
- }
218
- return resolve(file);
219
- }
220
-
221
- // is promise
222
- validationResult
223
- .then(function() {
224
- resolve(file);
225
- })
226
- .catch(handleRejection);
227
- });
228
- });
229
-
230
- // expose plugin
231
- return {
232
- // default options
233
- options: {
234
- // Enable or disable file type validation
235
- allowFileTypeValidation: [true, Type.BOOLEAN],
236
-
237
- // What file types to accept
238
- acceptedFileTypes: [[], Type.ARRAY],
239
- // - must be comma separated
240
- // - mime types: image/png, image/jpeg, image/gif
241
- // - extensions: .png, .jpg, .jpeg ( not enabled yet )
242
- // - wildcards: image/*
243
-
244
- // label to show when a type is not allowed
245
- labelFileTypeNotAllowed: ['File is of invalid type', Type.STRING],
246
-
247
- // nicer label
248
- fileValidateTypeLabelExpectedTypes: [
249
- 'Expects {allButLastType} or {lastType}',
250
- Type.STRING
251
- ],
252
-
253
- // map mime types to extensions
254
- fileValidateTypeLabelExpectedTypesMap: [{}, Type.OBJECT],
255
-
256
- // Custom function to detect type of file
257
- fileValidateTypeDetectType: [null, Type.FUNCTION]
258
- }
259
- };
260
- };
261
-
262
- // fire pluginloaded event if running in browser, this allows registering the plugin when using async script tags
263
- var isBrowser =
264
- typeof window !== 'undefined' && typeof window.document !== 'undefined';
265
- if (isBrowser) {
266
- document.dispatchEvent(
267
- new CustomEvent('FilePond:pluginloaded', { detail: plugin })
268
- );
269
- }
270
-
271
- return plugin;
272
- });
273
- } (filepondPluginFileValidateType$3));
274
- return filepondPluginFileValidateType$3.exports;
275
- }
276
-
277
- var filepondPluginFileValidateTypeExports = requireFilepondPluginFileValidateType();
278
- var filepondPluginFileValidateType = /*@__PURE__*/getDefaultExportFromCjs(filepondPluginFileValidateTypeExports);
279
-
280
- var filepondPluginFileValidateType$1 = /*#__PURE__*/_mergeNamespaces({
281
- __proto__: null,
282
- default: filepondPluginFileValidateType
283
- }, [filepondPluginFileValidateTypeExports]);
284
-
285
- export { filepondPluginFileValidateType$1 as f };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as e,h as t,H as a}from"./p-C23tPnnH.js";const s=class{constructor(t){e(this,t),this.href=void 0,this.target="_self"}generateClass(){return{"s-list-tile-item":!0,"s-list-tile-item-href":!!this.href}}render(){return t(a,{key:"e1528afcea1eda05a5ce206e95791e7611d24dd0"},t("a",{key:"749a73c76d68ad36f1a6609ada69778662d56566",class:this.generateClass(),href:this.href||"#",target:this.target,"aria-label":"List Tile Link"},t("div",{key:"7bfd448f86790b2afe0b7a5b8a5460c3b2be66ee",class:"s-list-tile-item-icon"},t("slot",{key:"383e28a8832483e8ecc61e4f48a3ff1fe5db1038",name:"icon"})),t("div",{key:"c42bf126a9ff4014a4e2d85ff12b41d1a88a0e03",class:"s-list-tile-item-content"},t("div",{key:"18a4a9ebd39e3a710f70dc33554d24e3c2850e53",class:"s-list-tile-item-title"},t("slot",{key:"7211d627511bf2448cf161f40cc82b1822dd1e7a",name:"title"})),t("div",{key:"044a7d76e05841f484387c7ed299107f33c9bc21",class:"s-list-tile-item-subtitle"},t("slot",{key:"df131034f1c5434722543e25552caed142794d55",name:"subtitle"}))),t("div",{key:"37abe0abab720da11cd55660578ec256c062e763",class:"s-list-tile-item-action"},t("slot",{key:"fcac02da17981ef4c6fa3cea50c551e3010352d9",name:"action"}))))}};s.style="";export{s as salla_list_tile}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as t,h as s,a as i}from"./p-C23tPnnH.js";import{H as n}from"./p-CHf8XdiS.js";import"./p-CgtvEd63.js";const a=class{constructor(s){t(this,s),this.itemPerPage=10,this.no_notifications_trans=salla.lang.get("blocks.header.no_notifications"),this.load_more_text_trans=salla.lang.get("common.elements.load_more"),salla.lang.onLoaded((()=>{this.no_notifications_trans=salla.lang.get("blocks.header.no_notifications"),this.load_more_text_trans=salla.lang.get("common.elements.load_more")}))}loading(t=!0){let s=this.status?.querySelector(".s-button-text");s&&(n.toggleElementClassIf(s,"s-button-hide","s-button-show",(()=>t)),this.btnLoader.style.display=t?"inherit":"none")}getNotificationCard(t){const s=document.createElement("salla-notification-item");return s.notification=t,s.classList.add("s-block"),s}render(){return this.showPlaceholder?s("div",{class:"s-notifications-no-content"},s("salla-placeholder",{alignment:"center"},s("span",{slot:"title"},this.no_notifications_trans))):s("div",{class:"s-notifications-wrapper"},s("div",{class:"s-notifications-container",ref:t=>this.wrapper=t}),this.nextPage&&s("div",{class:"s-infinite-scroll-wrapper",ref:t=>this.status=t},s("button",{onClick:()=>this.loadMore(),class:"s-infinite-scroll-btn s-button-btn s-button-primary"},s("span",{class:"s-button-text s-infinite-scroll-btn-text"},this.loadMoreText??this.load_more_text_trans),s("span",{class:"s-button-loader s-button-loader-center s-infinite-scroll-btn-loader",ref:t=>this.btnLoader=t,style:{display:"none"}}))))}handleResponse(t){return t.map((t=>this.getNotificationCard(t)))}initiateInfiniteScroll(){this.wrapper?(this.infiniteScroll=salla.infiniteScroll.initiate(this.wrapper,this.wrapper,{path:()=>this.nextPage,history:!0,nextPage:this.nextPage,scrollThreshold:!1},!0),this.infiniteScroll?.on("request",(()=>{this.loading()})),this.infiniteScroll?.on("load",(t=>{this.loading(!1),this.pagination=t.pagination,this.nextPage=t.pagination.links?.next||null,this.handleResponse(t.data).forEach((t=>this.wrapper.append(t)));let s=this.host.querySelectorAll("salla-notification-item:not(.animated)");n.animateItems(s)})),this.infiniteScroll?.on("error",(t=>{salla.logger.error("Error loading more comments:",t)}))):salla.logger.error("Wrapper is undefined. Cannot initiate infinite scroll.")}async loadInitialData(){await salla.api.notifications.fetch({per_page:this.itemPerPage}).then((t=>{this.pagination=t.pagination,this.total=t.pagination.total,this.nextPage=t.pagination.links?.next||null,setTimeout((()=>{if(!t.data.length)return this.showPlaceholder=!0;this.handleResponse(t.data).forEach((t=>this.wrapper.append(t))),this.initiateInfiniteScroll();let s=this.wrapper.querySelectorAll("salla-notification-item:not(.animated)");n.animateItems(s)}),100)})).catch((t=>{salla.logger.error(t),this.showPlaceholder=!0,this.loading(!1)}))}async loadMore(){this.infiniteScroll?.loadNextPage()}async componentWillLoad(){await this.loadInitialData()}get host(){return i(this)}};a.style="";export{a as salla_notifications}