@salla.sa/twilight-components 2.14.400 → 2.14.402

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 (276) hide show
  1. package/dist/cjs/{filepond-8oBYaby8.js → filepond-PWJcd3M3.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C9_FxKYE.js → filepond-plugin-file-poster-Bt4qeA2f.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DH5y0nbW.js → filepond-plugin-file-validate-size-C-9PDDsS.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CeUAOvr1.js → filepond-plugin-file-validate-type-tA2SP9JO.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BBY0rrW9.js → filepond-plugin-image-edit-jcfxLe8v.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CFHoWFvz.js → filepond-plugin-image-exif-orientation-DVDjcytZ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CUvopkJW.js → filepond-plugin-image-preview-CenIamTW.js} +1 -1
  8. package/dist/cjs/{index-CTlqP1j4.js → index-Cuq57q32.js} +2 -2
  9. package/dist/cjs/{index-CXnvDEKA.js → index-ZlRhYmjA.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  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 +10 -10
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +18 -4
  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 +43 -5
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +2 -2
  87. package/dist/cjs/{vanilla-picker-DIOht-QE.js → vanilla-picker-C8OtoDdM.js} +1 -1
  88. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +17 -3
  89. package/dist/collection/components/salla-comment-form/salla-comment-form.js +33 -3
  90. package/dist/collection/components/salla-comments/salla-comment-item.js +1 -1
  91. package/dist/collection/components/salla-comments/salla-comments.js +34 -0
  92. package/dist/components/index.js +2 -2
  93. package/dist/components/salla-bullet-delivery.js +17 -3
  94. package/dist/components/salla-comment-form2.js +17 -4
  95. package/dist/components/salla-comment-item2.js +1 -1
  96. package/dist/components/salla-comments.js +26 -1
  97. package/dist/esm/{filepond-C3JoxS5H.js → filepond-kua7JWt0.js} +1 -1
  98. package/dist/esm/{filepond-plugin-file-poster-BtPqGW1l.js → filepond-plugin-file-poster-D9ZjwPcg.js} +1 -1
  99. package/dist/esm/{filepond-plugin-file-validate-size-CzU4paDx.js → filepond-plugin-file-validate-size-BVMhUXTI.js} +1 -1
  100. package/dist/esm/{filepond-plugin-file-validate-type-vDW3qAnV.js → filepond-plugin-file-validate-type-CkwmRCJd.js} +1 -1
  101. package/dist/esm/{filepond-plugin-image-edit-D7B65tS9.js → filepond-plugin-image-edit-YEt9I2Ff.js} +1 -1
  102. package/dist/esm/{filepond-plugin-image-exif-orientation-CG2VBxZQ.js → filepond-plugin-image-exif-orientation-B5Q7AlDn.js} +1 -1
  103. package/dist/esm/{filepond-plugin-image-preview-D3kctuA5.js → filepond-plugin-image-preview-B3J-p8BK.js} +1 -1
  104. package/dist/esm/{index-NBDrHfxi.js → index-BYCfehfD.js} +2 -2
  105. package/dist/esm/{index-CEMIzZOC.js → index-Qfjn4tFb.js} +1 -1
  106. package/dist/esm/loader.js +3 -3
  107. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  108. package/dist/esm/salla-accordion_6.entry.js +1 -1
  109. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  110. package/dist/esm/salla-advertisement.entry.js +1 -1
  111. package/dist/esm/salla-alert_2.entry.js +1 -1
  112. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  113. package/dist/esm/salla-apps-icons.entry.js +1 -1
  114. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  115. package/dist/esm/salla-bullet-delivery.entry.js +18 -4
  116. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  117. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  118. package/dist/esm/salla-comment-form_8.entry.js +43 -5
  119. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  120. package/dist/esm/salla-contacts.entry.js +1 -1
  121. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  122. package/dist/esm/salla-count-down.entry.js +1 -1
  123. package/dist/esm/salla-custom-fields.entry.js +1 -1
  124. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  125. package/dist/esm/salla-filters-widget.entry.js +1 -1
  126. package/dist/esm/salla-filters.entry.js +1 -1
  127. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  128. package/dist/esm/salla-gifting.entry.js +1 -1
  129. package/dist/esm/salla-hook.entry.js +1 -1
  130. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  131. package/dist/esm/salla-installment.entry.js +1 -1
  132. package/dist/esm/salla-list-tile.entry.js +1 -1
  133. package/dist/esm/salla-localization-modal.entry.js +1 -1
  134. package/dist/esm/salla-login-modal.entry.js +1 -1
  135. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  136. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  137. package/dist/esm/salla-loyalty.entry.js +1 -1
  138. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  139. package/dist/esm/salla-map.entry.js +1 -1
  140. package/dist/esm/salla-menu.entry.js +1 -1
  141. package/dist/esm/salla-metadata.entry.js +1 -1
  142. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  143. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  144. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  145. package/dist/esm/salla-notification-item.entry.js +1 -1
  146. package/dist/esm/salla-notifications.entry.js +1 -1
  147. package/dist/esm/salla-offer-modal.entry.js +1 -1
  148. package/dist/esm/salla-offer.entry.js +1 -1
  149. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  150. package/dist/esm/salla-order-details-options.entry.js +1 -1
  151. package/dist/esm/salla-order-details.entry.js +1 -1
  152. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  153. package/dist/esm/salla-order-edit.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 +1 -1
  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-card.entry.js +1 -1
  161. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  162. package/dist/esm/salla-products-list.entry.js +1 -1
  163. package/dist/esm/salla-products-slider.entry.js +1 -1
  164. package/dist/esm/salla-progress-bar.entry.js +1 -1
  165. package/dist/esm/salla-quick-order.entry.js +1 -1
  166. package/dist/esm/salla-rating-modal.entry.js +1 -1
  167. package/dist/esm/salla-scopes.entry.js +1 -1
  168. package/dist/esm/salla-search.entry.js +1 -1
  169. package/dist/esm/salla-skeleton.entry.js +1 -1
  170. package/dist/esm/salla-slider.entry.js +1 -1
  171. package/dist/esm/salla-social-share.entry.js +1 -1
  172. package/dist/esm/salla-social.entry.js +1 -1
  173. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  174. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  175. package/dist/esm/salla-tooltip.entry.js +1 -1
  176. package/dist/esm/salla-trust-badges.entry.js +1 -1
  177. package/dist/esm/salla-user-menu.entry.js +1 -1
  178. package/dist/esm/salla-user-profile.entry.js +1 -1
  179. package/dist/esm/salla-user-settings.entry.js +1 -1
  180. package/dist/esm/salla-verify.entry.js +1 -1
  181. package/dist/esm/salla-wallet.entry.js +1 -1
  182. package/dist/esm/twilight.js +3 -3
  183. package/dist/esm/{vanilla-picker-DBbYurWw.js → vanilla-picker-B4glVCCp.js} +1 -1
  184. package/dist/twilight/{p-88b8dbb0.entry.js → p-011ff091.entry.js} +1 -1
  185. package/dist/twilight/{p-da07cf74.entry.js → p-078c884b.entry.js} +1 -1
  186. package/dist/twilight/{p-651bf6b4.entry.js → p-09fcfe8f.entry.js} +1 -1
  187. package/dist/twilight/{p-a446e236.entry.js → p-0b265c17.entry.js} +1 -1
  188. package/dist/twilight/{p-6c963eef.entry.js → p-0cfd333a.entry.js} +1 -1
  189. package/dist/twilight/{p-628f6c31.entry.js → p-140f5001.entry.js} +1 -1
  190. package/dist/twilight/{p-4adfbc23.entry.js → p-156660b7.entry.js} +1 -1
  191. package/dist/twilight/p-15d44ede.entry.js +4 -0
  192. package/dist/twilight/{p-c1e6c417.entry.js → p-164ae46f.entry.js} +1 -1
  193. package/dist/twilight/{p-4269d1ab.entry.js → p-1819894b.entry.js} +1 -1
  194. package/dist/twilight/{p-7db1d294.entry.js → p-24b86104.entry.js} +1 -1
  195. package/dist/twilight/{p-a15e729f.entry.js → p-28fba512.entry.js} +1 -1
  196. package/dist/twilight/{p-aa3fff4a.entry.js → p-2a19f553.entry.js} +1 -1
  197. package/dist/twilight/{p-d72ca3c9.entry.js → p-2edec63c.entry.js} +1 -1
  198. package/dist/twilight/{p-ce6c7675.entry.js → p-2f060d69.entry.js} +1 -1
  199. package/dist/twilight/{p-76657623.entry.js → p-30695c34.entry.js} +1 -1
  200. package/dist/twilight/{p-845757fa.entry.js → p-32a21d3e.entry.js} +1 -1
  201. package/dist/twilight/{p-4c5165f2.entry.js → p-336f0f06.entry.js} +1 -1
  202. package/dist/twilight/{p-316c06ab.entry.js → p-39ad489e.entry.js} +1 -1
  203. package/dist/twilight/{p-97be11f8.entry.js → p-3df24aaf.entry.js} +1 -1
  204. package/dist/twilight/{p-1308876f.entry.js → p-3ed67200.entry.js} +1 -1
  205. package/dist/twilight/{p-95c5460a.entry.js → p-470433cb.entry.js} +1 -1
  206. package/dist/twilight/{p-dfd9ad83.entry.js → p-4797dab5.entry.js} +1 -1
  207. package/dist/twilight/{p-49da4d80.entry.js → p-4e941f6a.entry.js} +1 -1
  208. package/dist/twilight/{p-48fb61ee.entry.js → p-52192d08.entry.js} +1 -1
  209. package/dist/twilight/{p-4b466145.entry.js → p-5381a86d.entry.js} +1 -1
  210. package/dist/twilight/{p-83cc5e65.entry.js → p-54c7e570.entry.js} +1 -1
  211. package/dist/twilight/{p-7a545ff1.entry.js → p-5871fc28.entry.js} +1 -1
  212. package/dist/twilight/{p-2137a11f.entry.js → p-5ca700cd.entry.js} +1 -1
  213. package/dist/twilight/{p-6a4489da.entry.js → p-5fe6bb62.entry.js} +1 -1
  214. package/dist/twilight/{p-85bbede4.entry.js → p-60aa25f0.entry.js} +1 -1
  215. package/dist/twilight/{p-b68bee1a.entry.js → p-62b949f1.entry.js} +1 -1
  216. package/dist/twilight/{p-0483d511.entry.js → p-63778992.entry.js} +1 -1
  217. package/dist/twilight/{p-8312c50c.entry.js → p-64fe6c2f.entry.js} +1 -1
  218. package/dist/twilight/{p-d88ba652.entry.js → p-65928570.entry.js} +1 -1
  219. package/dist/twilight/{p-b01d79c5.entry.js → p-67f20b74.entry.js} +1 -1
  220. package/dist/twilight/{p-0765013e.entry.js → p-6cf0e5f0.entry.js} +1 -1
  221. package/dist/twilight/{p-6b255e44.entry.js → p-6f0a262a.entry.js} +1 -1
  222. package/dist/twilight/{p-909f8055.entry.js → p-72487957.entry.js} +1 -1
  223. package/dist/twilight/{p-56be56e1.entry.js → p-7c78c1a5.entry.js} +1 -1
  224. package/dist/twilight/{p-30ea3256.entry.js → p-887c9a29.entry.js} +1 -1
  225. package/dist/twilight/{p-5a35d33a.entry.js → p-8d9b1865.entry.js} +1 -1
  226. package/dist/twilight/{p-e7a55f86.entry.js → p-90045f50.entry.js} +1 -1
  227. package/dist/twilight/{p-eb8a1a26.entry.js → p-955aab42.entry.js} +1 -1
  228. package/dist/twilight/{p-a184090f.entry.js → p-97aad44a.entry.js} +1 -1
  229. package/dist/twilight/{p-281511b7.entry.js → p-99aa0a59.entry.js} +1 -1
  230. package/dist/twilight/{p-D-4mkc7-.js → p-9XUl8eNt.js} +1 -1
  231. package/dist/twilight/{p-NBDrHfxi.js → p-BYCfehfD.js} +1 -1
  232. package/dist/twilight/{p-DBURTRIs.js → p-C45ROGL4.js} +1 -1
  233. package/dist/twilight/{p-BGX5s3RM.js → p-CVG84YNJ.js} +1 -1
  234. package/dist/twilight/{p-Dsmct0bT.js → p-D2bKqo2L.js} +1 -1
  235. package/dist/twilight/{p-sc0K09yT.js → p-DPak7cFa.js} +1 -1
  236. package/dist/twilight/{p-J_Xt7993.js → p-DtXQ785R.js} +1 -1
  237. package/dist/twilight/{p-CGCKtSMz.js → p-Dx9FGzIq.js} +1 -1
  238. package/dist/twilight/{p-BYvYgYyR.js → p-Wts3eSQu.js} +1 -1
  239. package/dist/twilight/{p-247ea302.entry.js → p-a0171740.entry.js} +1 -1
  240. package/dist/twilight/{p-zDAub2oK.js → p-a8mIwFp8.js} +1 -1
  241. package/dist/twilight/{p-7f55a45e.entry.js → p-ac973857.entry.js} +1 -1
  242. package/dist/twilight/{p-e0fdbe87.entry.js → p-af6a34af.entry.js} +1 -1
  243. package/dist/twilight/{p-150d9ac5.entry.js → p-b80c87f3.entry.js} +1 -1
  244. package/dist/twilight/{p-b3981d77.entry.js → p-ba128435.entry.js} +1 -1
  245. package/dist/twilight/{p-9cdacf0b.entry.js → p-c5a12dde.entry.js} +1 -1
  246. package/dist/twilight/{p-71fea388.entry.js → p-c5ab5c1b.entry.js} +1 -1
  247. package/dist/twilight/{p-6fcec199.entry.js → p-c65832b1.entry.js} +1 -1
  248. package/dist/twilight/{p-4b36ece0.entry.js → p-cd9f175a.entry.js} +1 -1
  249. package/dist/twilight/{p-cd3b5f80.entry.js → p-d112b260.entry.js} +1 -1
  250. package/dist/twilight/{p-d2680a8c.entry.js → p-d130f149.entry.js} +1 -1
  251. package/dist/twilight/{p-95e85f05.entry.js → p-d3a119aa.entry.js} +1 -1
  252. package/dist/twilight/{p-a8ae86e2.entry.js → p-d4f3797c.entry.js} +1 -1
  253. package/dist/twilight/{p-af018a37.entry.js → p-d93e90fb.entry.js} +1 -1
  254. package/dist/twilight/{p-2da209d8.entry.js → p-d9b8aa69.entry.js} +1 -1
  255. package/dist/twilight/{p-cef3ce10.entry.js → p-e23cc9c1.entry.js} +1 -1
  256. package/dist/twilight/{p-677f58c6.entry.js → p-e5ccdc1d.entry.js} +1 -1
  257. package/dist/twilight/{p-f94df09f.entry.js → p-ea0c19be.entry.js} +1 -1
  258. package/dist/twilight/{p-47609dd0.entry.js → p-ebb782d3.entry.js} +1 -1
  259. package/dist/twilight/{p-7488ee16.entry.js → p-ec873193.entry.js} +1 -1
  260. package/dist/twilight/{p-3e0c6da6.entry.js → p-ee14a23d.entry.js} +1 -1
  261. package/dist/twilight/{p-1422dc91.entry.js → p-f136e41b.entry.js} +1 -1
  262. package/dist/twilight/{p-a870f6da.entry.js → p-f4060b10.entry.js} +1 -1
  263. package/dist/twilight/{p-8fb92a3e.entry.js → p-f4c6434f.entry.js} +1 -1
  264. package/dist/twilight/p-f68e2787.entry.js +4 -0
  265. package/dist/twilight/{p-68437972.entry.js → p-f8183098.entry.js} +1 -1
  266. package/dist/twilight/{p-d48fb649.entry.js → p-f8527980.entry.js} +1 -1
  267. package/dist/twilight/{p-17f5e992.entry.js → p-fa3ceb7c.entry.js} +1 -1
  268. package/dist/twilight/{p-99320491.entry.js → p-fa44f874.entry.js} +1 -1
  269. package/dist/twilight/twilight.esm.js +1 -1
  270. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +5 -0
  271. package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +15 -0
  272. package/dist/types/components/salla-comments/salla-comments.d.ts +4 -0
  273. package/dist/types/components.d.ts +35 -0
  274. package/package.json +5 -5
  275. package/dist/twilight/p-849a530e.entry.js +0 -4
  276. package/dist/twilight/p-d8031f07.entry.js +0 -4
@@ -536,6 +536,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
536
536
  * Closes the bullet delivery modal
537
537
  */
538
538
  async close() {
539
+ if (this.shouldForceNonClosable() && !this.confirming) {
540
+ return;
541
+ }
539
542
  // If submit flow is waiting and user dismissed the modal, release the pending gate.
540
543
  if (this.cartSubmitConfirmationPending && !this.confirming) {
541
544
  this.resolvePendingCartSubmit();
@@ -633,6 +636,17 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
633
636
  return !!intent.branch_id;
634
637
  return false;
635
638
  }
639
+ /**
640
+ * Authenticated users on the cart page must select/confirm an address before
641
+ * they can dismiss the modal.
642
+ */
643
+ shouldForceNonClosable() {
644
+ if (this.isGuestUser())
645
+ return false;
646
+ if (!Salla.url.is_page("cart"))
647
+ return false;
648
+ return !this.hasCompleteIntentForLoggedInUser();
649
+ }
636
650
  shouldPromptIncompleteIntentThisSession() {
637
651
  const storage = this.getShownStorage();
638
652
  return (this.hasIncompleteUserAddressIntent() &&
@@ -1810,7 +1824,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
1810
1824
  const activeTabView = this.activeTab === "branch" && this.supportsPickup
1811
1825
  ? this.renderPickupTab()
1812
1826
  : this.renderDeliveryTab();
1813
- return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, Salla.lang.get("blocks.home.select_the_receiving_method")), h("p", { class: "s-bullet-delivery-subtitle" }, Salla.lang.get("pages.checkout.delivery_pickup_availability_hint"))), this.renderTabs(), this.showCartWillBeClearedBanner &&
1827
+ return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.add_address_for_order_delivery') : Salla.lang.get('blocks.home.how_prefer_to_receive_order')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping') : Salla.lang.get('blocks.home.products_available_for_delivery_or_pickup_shown_while_shopping'))), this.renderTabs(), this.showCartWillBeClearedBanner &&
1814
1828
  this.renderAlert(Salla.lang.get("blocks.scope.empty_cart_warning")), this.allocationOutOfCoverageMessage &&
1815
1829
  this.renderAllocationOutOfCoverageAlert(), activeTabView, !isAddressEmptyState && this.renderFooter()));
1816
1830
  }
@@ -1935,9 +1949,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
1935
1949
  }
1936
1950
  }
1937
1951
  render() {
1938
- return (h(Host, { key: '751566707c28202b5ccf4ecde28bfb09550ae886', class: "s-bullet-delivery" }, h("salla-modal", { key: '25a18755aa4aa85b55f08bb73829e30833ca5328', ref: (modal) => {
1952
+ return (h(Host, { key: 'd394b11d70bea07946e29d6d61222f8cd75baa15', class: "s-bullet-delivery" }, h("salla-modal", { key: '63b559f49babc32958bb191b3ebfed13a1b7a7ad', ref: (modal) => {
1939
1953
  this.modal = modal;
1940
- }, isClosable: !this.isRequired, class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
1954
+ }, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
1941
1955
  }
1942
1956
  componentDidLoad() {
1943
1957
  // Mark component as ready
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
4
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
5
5
  import { d as defineCustomElement$1 } from './salla-button2.js';
6
6
 
7
7
  const sallaCommentFormCss = ":host{display:block}";
@@ -10,6 +10,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
10
10
  constructor() {
11
11
  super();
12
12
  this.__registerHost();
13
+ this.commentAdded = createEvent(this, "commentAdded", 7);
13
14
  this.placeholder = salla.lang.get('blocks.comments.placeholder');
14
15
  this.submitText = salla.lang.get('blocks.comments.submit');
15
16
  salla.lang.onLoaded(() => {
@@ -27,12 +28,24 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
27
28
  salla.log('CommentForm:: validation error!');
28
29
  return;
29
30
  }
31
+ const commentText = this.commentField.value;
30
32
  this.submitBtn.load()
31
- .then(() => salla.comment.add({ id: this.itemId, comment: this.commentField.value, type: this.type }))
32
- .finally(() => this.submitBtn.stop);
33
+ .then(() => salla.comment.add({ id: this.itemId, comment: commentText, type: this.type }))
34
+ .then(() => {
35
+ this.commentAdded.emit({
36
+ name: salla.config.get('user.name'),
37
+ avatar: salla.config.get('user.avatar'),
38
+ content: commentText,
39
+ is_pending: true,
40
+ created_at: { date: new Date().toISOString().replace('T', ' ').substring(0, 19) },
41
+ images: [],
42
+ });
43
+ this.commentField.value = '';
44
+ })
45
+ .finally(() => this.submitBtn.stop());
33
46
  }
34
47
  render() {
35
- return (h(Host, { key: '24b73030ff1828a6f21c1c36a00be2c8651f6edf' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
48
+ return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
36
49
  h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
37
50
  }
38
51
  static get style() { return sallaCommentFormCss; }
@@ -151,7 +151,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
151
151
  h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
152
152
  : null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
153
153
  h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
154
- : null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
154
+ : null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
155
155
  h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
156
156
  this.getReplies().map((reply) => {
157
157
  return h("div", null, h("salla-comment-item", { comment: reply }));
@@ -233,6 +233,31 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
233
233
  return this.loadInitialData();
234
234
  });
235
235
  }
236
+ /**
237
+ * Catch the commentAdded event emitted by salla-comment-form and instantly render it
238
+ */
239
+ onCommentAdded(event) {
240
+ const comment = event.detail;
241
+ if (!comment)
242
+ return;
243
+ // If comments were empty, clear the placeholder and initialize the list
244
+ if (this.showPlaceholder || !this.total) {
245
+ this.showPlaceholder = false;
246
+ this.total = (this.total || 0) + 1;
247
+ this.comments = this.comments || [];
248
+ }
249
+ else {
250
+ this.total = (this.total || 0) + 1;
251
+ }
252
+ // Wait for next render tick so wrapper is available if placeholder was just removed
253
+ setTimeout(() => {
254
+ if (!this.wrapper)
255
+ return;
256
+ const commentItem = this.getCommentHTML(comment);
257
+ this.wrapper.prepend(commentItem);
258
+ this.animateItems([commentItem]);
259
+ }, 0);
260
+ }
236
261
  // Load initial data
237
262
  async loadInitialData() {
238
263
  try {
@@ -331,7 +356,7 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
331
356
  "showRatingSummary": [32],
332
357
  "allowLikes": [32],
333
358
  "reload": [64]
334
- }]);
359
+ }, [[0, "commentAdded", "onCommentAdded"]]]);
335
360
  function defineCustomElement$1() {
336
361
  if (typeof customElements === "undefined") {
337
362
  return;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BYCfehfD.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {