@salla.sa/twilight-components 2.14.455 → 2.14.457

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 (311) hide show
  1. package/dist/cjs/{filepond-CASXTVVn.js → filepond-DI8ISGjS.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-NwV0t9zF.js → filepond-plugin-file-poster-ESJxh-Bw.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-S-_ZCnL0.js → filepond-plugin-file-validate-size-DxnZdfmW.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-8fAsih_V.js → filepond-plugin-file-validate-type-COsVrixD.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BdKPXtEG.js → filepond-plugin-image-edit-DiJ6-7Hm.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-iTp4daNS.js → filepond-plugin-image-exif-orientation-BWCeP8LZ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-D5CX6xww.js → filepond-plugin-image-preview-pGgHkIkq.js} +1 -1
  8. package/dist/cjs/{functions-BlV_viZ0.js → functions-Eywmk_-l.js} +1 -1
  9. package/dist/cjs/{index-CXqniRSt.js → index-C1PF-Plo.js} +2 -2
  10. package/dist/cjs/{index-BANBu7pv.js → index-C5wAeBp0.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +2 -2
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  83. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +7 -2
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +172 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-TlVxYBIU.js → tracked-promise-Ct6pS37v.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +1 -1
  100. package/dist/cjs/{vanilla-picker-B3HS631p.js → vanilla-picker-nIHoyXND.js} +1 -1
  101. package/dist/collection/components/salla-offer/salla-offer.js +1 -1
  102. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +6 -1
  103. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +171 -0
  104. package/dist/components/index.js +2 -2
  105. package/dist/components/salla-offer.js +1 -1
  106. package/dist/components/salla-tiered-offer.js +6 -1
  107. package/dist/components/salla-trust-badges.js +171 -0
  108. package/dist/esm/{filepond-HUxLccYt.js → filepond-CfX7rWSP.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-poster-CKU5WMer.js → filepond-plugin-file-poster-Df2yVqup.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-validate-size-BJ7uOb2z.js → filepond-plugin-file-validate-size-BPKCT1Yo.js} +1 -1
  111. package/dist/esm/{filepond-plugin-file-validate-type-ZilEA2CP.js → filepond-plugin-file-validate-type-5Jsz5nHO.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-edit-k3H2LHPc.js → filepond-plugin-image-edit-DlpOgBS2.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-exif-orientation-C1fWSMsF.js → filepond-plugin-image-exif-orientation-_FOJPmuq.js} +1 -1
  114. package/dist/esm/{filepond-plugin-image-preview-CBiR7yYc.js → filepond-plugin-image-preview-BeFU1che.js} +1 -1
  115. package/dist/esm/{functions-BUK_6AVv.js → functions-Di2eP8On.js} +1 -1
  116. package/dist/esm/{index-B8tvf2Er.js → index-BPFCDJsY.js} +1 -1
  117. package/dist/esm/{index-B27mc3DA.js → index-DzuK832n.js} +2 -2
  118. package/dist/esm/loader.js +2 -2
  119. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  120. package/dist/esm/salla-accordion_6.entry.js +1 -1
  121. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  122. package/dist/esm/salla-advertisement.entry.js +1 -1
  123. package/dist/esm/salla-alert_2.entry.js +1 -1
  124. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  125. package/dist/esm/salla-apps-icons.entry.js +1 -1
  126. package/dist/esm/salla-badge.entry.js +1 -1
  127. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  128. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  129. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  130. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  131. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  132. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  133. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  134. package/dist/esm/salla-contacts.entry.js +1 -1
  135. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  136. package/dist/esm/salla-count-down.entry.js +1 -1
  137. package/dist/esm/salla-custom-fields.entry.js +1 -1
  138. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  139. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  140. package/dist/esm/salla-filters-widget.entry.js +1 -1
  141. package/dist/esm/salla-filters.entry.js +1 -1
  142. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  143. package/dist/esm/salla-gifting.entry.js +1 -1
  144. package/dist/esm/salla-hook.entry.js +1 -1
  145. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  146. package/dist/esm/salla-installment.entry.js +1 -1
  147. package/dist/esm/salla-list-tile.entry.js +1 -1
  148. package/dist/esm/salla-localization-modal.entry.js +1 -1
  149. package/dist/esm/salla-login-modal.entry.js +1 -1
  150. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  151. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  152. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  153. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  154. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  155. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  156. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  157. package/dist/esm/salla-loyalty.entry.js +1 -1
  158. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  159. package/dist/esm/salla-map.entry.js +1 -1
  160. package/dist/esm/salla-menu.entry.js +1 -1
  161. package/dist/esm/salla-metadata.entry.js +1 -1
  162. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  163. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  164. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  165. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  166. package/dist/esm/salla-notification-item.entry.js +1 -1
  167. package/dist/esm/salla-notifications.entry.js +1 -1
  168. package/dist/esm/salla-offer-modal.entry.js +1 -1
  169. package/dist/esm/salla-offer.entry.js +2 -2
  170. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  171. package/dist/esm/salla-order-details-options.entry.js +1 -1
  172. package/dist/esm/salla-order-details.entry.js +1 -1
  173. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  174. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  175. package/dist/esm/salla-order-edit.entry.js +1 -1
  176. package/dist/esm/salla-order-summary.entry.js +1 -1
  177. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  178. package/dist/esm/salla-orders.entry.js +1 -1
  179. package/dist/esm/salla-payments.entry.js +1 -1
  180. package/dist/esm/salla-placeholder.entry.js +1 -1
  181. package/dist/esm/salla-price-range.entry.js +1 -1
  182. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  183. package/dist/esm/salla-product-card_2.entry.js +1 -1
  184. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  185. package/dist/esm/salla-products-list.entry.js +1 -1
  186. package/dist/esm/salla-progress-bar.entry.js +1 -1
  187. package/dist/esm/salla-quick-order.entry.js +1 -1
  188. package/dist/esm/salla-rating-modal.entry.js +1 -1
  189. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  190. package/dist/esm/salla-scopes.entry.js +1 -1
  191. package/dist/esm/salla-search.entry.js +1 -1
  192. package/dist/esm/salla-skeleton.entry.js +1 -1
  193. package/dist/esm/salla-slider.entry.js +1 -1
  194. package/dist/esm/salla-social-share.entry.js +1 -1
  195. package/dist/esm/salla-social.entry.js +1 -1
  196. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  197. package/dist/esm/salla-tiered-offer.entry.js +7 -2
  198. package/dist/esm/salla-tooltip.entry.js +1 -1
  199. package/dist/esm/salla-trust-badges.entry.js +172 -1
  200. package/dist/esm/salla-user-menu.entry.js +1 -1
  201. package/dist/esm/salla-user-profile.entry.js +1 -1
  202. package/dist/esm/salla-user-settings.entry.js +1 -1
  203. package/dist/esm/salla-verify.entry.js +1 -1
  204. package/dist/esm/salla-wallet.entry.js +1 -1
  205. package/dist/esm/{tracked-promise-BhMK_w_-.js → tracked-promise-DJfvIynp.js} +1 -1
  206. package/dist/esm/twilight.js +2 -2
  207. package/dist/esm/{vanilla-picker-CqDptb8B.js → vanilla-picker-Ceac_CZi.js} +1 -1
  208. package/dist/twilight/{p-c014a283.entry.js → p-04c6aef7.entry.js} +1 -1
  209. package/dist/twilight/{p-0154dd29.entry.js → p-060755f8.entry.js} +1 -1
  210. package/dist/twilight/{p-224aeae6.entry.js → p-06fe4aac.entry.js} +1 -1
  211. package/dist/twilight/{p-025899d4.entry.js → p-08d6ce33.entry.js} +1 -1
  212. package/dist/twilight/p-0ac67d41.entry.js +4 -0
  213. package/dist/twilight/{p-c151d43a.entry.js → p-0df546c7.entry.js} +1 -1
  214. package/dist/twilight/{p-3869c01a.entry.js → p-0eb01f59.entry.js} +1 -1
  215. package/dist/twilight/{p-eb395203.entry.js → p-1012a314.entry.js} +1 -1
  216. package/dist/twilight/{p-3194b8f1.entry.js → p-110ad875.entry.js} +1 -1
  217. package/dist/twilight/{p-acf1d397.entry.js → p-1165d905.entry.js} +1 -1
  218. package/dist/twilight/{p-39521cc9.entry.js → p-155a2173.entry.js} +1 -1
  219. package/dist/twilight/{p-3a824c45.entry.js → p-159bc4a8.entry.js} +1 -1
  220. package/dist/twilight/{p-9856394d.entry.js → p-16b6aaf1.entry.js} +1 -1
  221. package/dist/twilight/{p-b151943e.entry.js → p-1810a066.entry.js} +1 -1
  222. package/dist/twilight/{p-8ebc59c6.entry.js → p-1f2dd00f.entry.js} +1 -1
  223. package/dist/twilight/{p-583fbeac.entry.js → p-275bf5bc.entry.js} +1 -1
  224. package/dist/twilight/{p-8cc38fe2.entry.js → p-289ee72b.entry.js} +1 -1
  225. package/dist/twilight/{p-2f2d596c.entry.js → p-2abd6569.entry.js} +1 -1
  226. package/dist/twilight/{p-873b3598.entry.js → p-3414beb0.entry.js} +1 -1
  227. package/dist/twilight/{p-708c9d55.entry.js → p-37183635.entry.js} +1 -1
  228. package/dist/twilight/{p-77adb9d5.entry.js → p-3e5b5d89.entry.js} +1 -1
  229. package/dist/twilight/{p-87691e20.entry.js → p-3e8b2de2.entry.js} +1 -1
  230. package/dist/twilight/{p-295ed7eb.entry.js → p-42c91eaa.entry.js} +1 -1
  231. package/dist/twilight/{p-e0d55016.entry.js → p-49356d3a.entry.js} +1 -1
  232. package/dist/twilight/{p-9608cb48.entry.js → p-4b3fd1cd.entry.js} +1 -1
  233. package/dist/twilight/{p-9ac73546.entry.js → p-4db2517c.entry.js} +1 -1
  234. package/dist/twilight/{p-bc2df32d.entry.js → p-52a092f5.entry.js} +1 -1
  235. package/dist/twilight/{p-0d42f5f7.entry.js → p-57cdc67d.entry.js} +1 -1
  236. package/dist/twilight/{p-496b138e.entry.js → p-580161e4.entry.js} +1 -1
  237. package/dist/twilight/{p-f1c1c640.entry.js → p-5bcb626c.entry.js} +1 -1
  238. package/dist/twilight/{p-27c704c4.entry.js → p-5cc7a121.entry.js} +1 -1
  239. package/dist/twilight/{p-1952dfe2.entry.js → p-5e520119.entry.js} +1 -1
  240. package/dist/twilight/{p-3dcf296d.entry.js → p-5e636354.entry.js} +1 -1
  241. package/dist/twilight/p-6bd404aa.entry.js +4 -0
  242. package/dist/twilight/{p-e0810a73.entry.js → p-6c870b6f.entry.js} +1 -1
  243. package/dist/twilight/{p-4365ccdf.entry.js → p-6e4402ff.entry.js} +1 -1
  244. package/dist/twilight/{p-7170bbe5.entry.js → p-77e38f23.entry.js} +1 -1
  245. package/dist/twilight/{p-37fa2c33.entry.js → p-7863b9a5.entry.js} +1 -1
  246. package/dist/twilight/{p-f7139cc6.entry.js → p-7c7a6161.entry.js} +1 -1
  247. package/dist/twilight/{p-09fa0a96.entry.js → p-7d395fbe.entry.js} +1 -1
  248. package/dist/twilight/{p-c6d833e5.entry.js → p-7d827f74.entry.js} +1 -1
  249. package/dist/twilight/{p-1c717064.entry.js → p-7e0b913c.entry.js} +1 -1
  250. package/dist/twilight/{p-8a07799b.entry.js → p-838ff338.entry.js} +1 -1
  251. package/dist/twilight/{p-a3fb3aa0.entry.js → p-87241e88.entry.js} +1 -1
  252. package/dist/twilight/{p-9ada1f3d.entry.js → p-883a555a.entry.js} +1 -1
  253. package/dist/twilight/{p-e9b8ac57.entry.js → p-89ac6701.entry.js} +1 -1
  254. package/dist/twilight/{p-4cc417ec.entry.js → p-89f4edb7.entry.js} +1 -1
  255. package/dist/twilight/{p-D6ttjw8h.js → p-8TBr5YYa.js} +1 -1
  256. package/dist/twilight/{p-5414f877.entry.js → p-8ccc2e24.entry.js} +1 -1
  257. package/dist/twilight/{p-7d79041c.entry.js → p-920f7f1f.entry.js} +1 -1
  258. package/dist/twilight/{p-22cdee08.entry.js → p-925f99d0.entry.js} +1 -1
  259. package/dist/twilight/{p-52dccf8f.entry.js → p-93d301fe.entry.js} +1 -1
  260. package/dist/twilight/{p-df76f90f.entry.js → p-9545c121.entry.js} +1 -1
  261. package/dist/twilight/{p-a74c0330.entry.js → p-97c06c97.entry.js} +1 -1
  262. package/dist/twilight/{p-0cce3436.entry.js → p-9afb191a.entry.js} +1 -1
  263. package/dist/twilight/{p-a5b876da.entry.js → p-9ba332ef.entry.js} +1 -1
  264. package/dist/twilight/{p-DNVKaOjC.js → p-B_1X3ghS.js} +1 -1
  265. package/dist/twilight/{p-DXVnxhxo.js → p-BpqnVE1u.js} +1 -1
  266. package/dist/twilight/p-C8D5rUa4.js +9 -0
  267. package/dist/twilight/{p-C8a5AE0g.js → p-CASql_Bi.js} +1 -1
  268. package/dist/twilight/{p-CJxdBsuY.js → p-CJHZswvP.js} +1 -1
  269. package/dist/twilight/{p-kzSVkHK7.js → p-CrxsAk8y.js} +1 -1
  270. package/dist/twilight/{p-Tj_9K_OT.js → p-DhhUpOxO.js} +1 -1
  271. package/dist/twilight/{p-oKl48ETd.js → p-DxUobFF1.js} +1 -1
  272. package/dist/twilight/{p-B27mc3DA.js → p-DzuK832n.js} +1 -1
  273. package/dist/twilight/{p-3fe0b0d9.entry.js → p-a0a0a278.entry.js} +1 -1
  274. package/dist/twilight/{p-8b775b6c.entry.js → p-a430cf7b.entry.js} +1 -1
  275. package/dist/twilight/{p-28880d56.entry.js → p-a5f080a9.entry.js} +1 -1
  276. package/dist/twilight/{p-f1c253a9.entry.js → p-a5f1b4ee.entry.js} +1 -1
  277. package/dist/twilight/{p-7054b12e.entry.js → p-a79ae695.entry.js} +1 -1
  278. package/dist/twilight/{p-63453993.entry.js → p-b212b49f.entry.js} +1 -1
  279. package/dist/twilight/{p-01fd4f64.entry.js → p-b77f9e65.entry.js} +1 -1
  280. package/dist/twilight/{p-2ad70328.entry.js → p-b7968973.entry.js} +1 -1
  281. package/dist/twilight/{p-731ddff8.entry.js → p-b7a0fea9.entry.js} +1 -1
  282. package/dist/twilight/{p-02c191cb.entry.js → p-b93a7adb.entry.js} +1 -1
  283. package/dist/twilight/{p-0c369b88.entry.js → p-b9e787cb.entry.js} +1 -1
  284. package/dist/twilight/{p-ffe3256d.entry.js → p-bcfea8e6.entry.js} +1 -1
  285. package/dist/twilight/{p-4e340653.entry.js → p-bdfba028.entry.js} +1 -1
  286. package/dist/twilight/{p-af896a9c.entry.js → p-c33046c1.entry.js} +1 -1
  287. package/dist/twilight/{p-8610d773.entry.js → p-c48ca641.entry.js} +1 -1
  288. package/dist/twilight/{p-04555243.entry.js → p-c7359aad.entry.js} +1 -1
  289. package/dist/twilight/{p-0d733ece.entry.js → p-cd164d87.entry.js} +1 -1
  290. package/dist/twilight/{p-033a25d9.entry.js → p-cd9cec40.entry.js} +1 -1
  291. package/dist/twilight/{p-099511cb.entry.js → p-d231e351.entry.js} +1 -1
  292. package/dist/twilight/{p-3ce0ec88.entry.js → p-d96cf392.entry.js} +1 -1
  293. package/dist/twilight/{p-a9200d8b.entry.js → p-d97d23d8.entry.js} +1 -1
  294. package/dist/twilight/{p-349723b8.entry.js → p-dcc97187.entry.js} +1 -1
  295. package/dist/twilight/{p-cc5f66f2.entry.js → p-e1cdebc4.entry.js} +1 -1
  296. package/dist/twilight/{p-1eadcb01.entry.js → p-e397a094.entry.js} +1 -1
  297. package/dist/twilight/{p-716fa631.entry.js → p-e6d5e5be.entry.js} +1 -1
  298. package/dist/twilight/{p-f8f54860.entry.js → p-ea028b8c.entry.js} +1 -1
  299. package/dist/twilight/{p-caa938d4.entry.js → p-f13145d5.entry.js} +1 -1
  300. package/dist/twilight/{p-f762c572.entry.js → p-f7533e3f.entry.js} +1 -1
  301. package/dist/twilight/{p-0a5bffbb.entry.js → p-f8bc596f.entry.js} +1 -1
  302. package/dist/twilight/{p-45e86a35.entry.js → p-fa86a0bc.entry.js} +1 -1
  303. package/dist/twilight/{p-14ca613a.entry.js → p-fcc7ab3c.entry.js} +1 -1
  304. package/dist/twilight/{p-BUeUpASK.js → p-hHZs35On.js} +1 -1
  305. package/dist/twilight/{p-twQLVtaI.js → p-oTUgiqv4.js} +1 -1
  306. package/dist/twilight/twilight.esm.js +1 -1
  307. package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +25 -0
  308. package/package.json +5 -5
  309. package/dist/twilight/p-88309e40.entry.js +0 -4
  310. package/dist/twilight/p-BDVAyd15.js +0 -9
  311. package/dist/twilight/p-ef2fbf89.entry.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as e,a as t}from"./p-B27mc3DA.js";var o,i;!function(s){s.ProductDetail="product.single",s.Cart="cart"}(o||(o={})),function(s){s.Conditional="conditional",s.PercentageOrFixed="fixed",s.DiscountsTable="discounts_table",s.Bank="bank",s.BuyXGetY="buy_x_get_y",s.SpecialPrice="special_price",s.Percentage="percentage",s.FixedAmount="fixed_amount"}(i||(i={}));const r=class{constructor(e){s(this,e),this.productCardComponent="salla-product-card",this.offersList=[],this.canRender=!1,this.showOffer=salla.config.get("store.settings.product.show_special_offers"),this.showAllOffersModal=!1,this.showProductsModal=!1,this.selectedOfferProducts=[],this.collapsedOffers={},this.expandedCategories={},this.productsLoaded=!1,this.offer_with_price_text=salla.lang.get("pages.offer.with_price",{price:""}),this.with_discount_text=salla.lang.get("pages.products.with_a_discount"),this.product_discount_text=salla.lang.get("pages.products.discount"),this.special_offer_text=salla.lang.get("pages.products.special_offer"),this.buy_quantity_text=s=>salla.lang.get("pages.offer.buy_quantity",{quantity:s}),this.products_link_text=salla.lang.get("pages.offer.included_products","المنتجات المشمولة"),this.min_spend_text=(s,e)=>salla.lang.get("pages.offer.min_spend_amount",{amount:s,currency:e},`بحد أدنى ${s} ${e} من مبلغ الشراء`),this.min_items_text=s=>salla.lang.get("pages.offer.min_items",{items:s},`بحد أدنى ${s} منتجات`),this.product_text=salla.lang.get("common.elements.product","منتج"),salla.lang.onLoaded((()=>{this.offer_with_price_text=salla.lang.get("pages.offer.with_price"),this.with_discount_text=salla.lang.get("pages.products.with_a_discount"),this.product_discount_text=salla.lang.get("pages.products.discount"),this.special_offer_text=salla.lang.get("pages.products.special_offer"),this.buy_quantity_text(0),this.products_link_text=salla.lang.get("pages.offer.included_products","المنتجات المشمولة"),this.min_spend_text=(s,e)=>salla.lang.get("pages.offer.min_spend_amount",{amount:s,currency:e},`بحد أدنى ${s} ${e} من مبلغ الشراء`),this.min_items_text=s=>salla.lang.get("pages.offer.min_items",{items:s},`بحد أدنى ${s} منتجات`),this.product_text=salla.lang.get("common.elements.product","منتج")})),salla.onReady((()=>{this.currentPage=salla.config.get("page.slug");const s=salla.config.get("currencies")||{},e=salla.config.get("user.currency_code");this.userCurrency=s[e]||{symbol:"",code:e||"SAR",name:""}}))}async getEndpointByPageName(){return this.currentPage==o.Cart?`offers/cart/${await Salla.cart.getCurrentCartId()}`:this.currentPage==o.ProductDetail?`offers/product/${salla.config.get("page.id")}`:"offers"}emitPromotionViewed(){if(!(this.offersList.length&&this.canRender&&this.showOffer))return;const s=this.offersList.slice(0,5).map(((s,e)=>({id:s.id,name:s.title,creative:s.description||"",position:e+1})));salla.event.emit("salla::offer.promotion.viewed",s)}emitPromotionClicked(s,e=1){if(!(this.offersList.length&&this.canRender&&this.showOffer))return;const t=s||this.offersList[0];salla.event.emit("salla::offer.promotion.clicked",[{id:t.id,name:t.title,creative:t.description||"",position:e}])}componentWillLoad(){return this.hasCustomComponent=!!customElements.get(this.productCardComponent),new Promise((s=>salla.onReady(s))).then((()=>{if(this.showOffer=!salla.url.is_page("product.single")||salla.config.get("store.settings.product.show_special_offers"),!this.showOffer)throw new Error("Merchant disabled showing the offers on product page")})).then((async()=>salla.api.request(await this.getEndpointByPageName()))).then((async s=>{if(!(this.offersList=s.data).length)throw new Error("salla-offers:: There is no offers!");if(this.offersList=this.offersList.filter((s=>[i.SpecialPrice,i.Bank,i.BuyXGetY,i.DiscountsTable,i.PercentageOrFixed,i.Percentage,i.FixedAmount].includes(s.type))),!this.offersList.length)throw new Error("salla-offers:: No supported offer types found!");let e=null;this.offersList.some((s=>{const e=s.details;return"category"===e.apply_to&&e.targets||"categories"===e.apply_to&&e.targets||s.type===i.BuyXGetY&&("categories"===e.get?.source||"category"===e.get?.source)}))&&(e=(await salla.product.api.categories()).data);const t=new Set;for(const s of this.offersList){const e=s.details;"product"!==e.apply_to&&"products"!==e.apply_to||!e.targets||e.targets.forEach((s=>t.add(s))),s.type===i.BuyXGetY&&"products"===e.get?.source&&e.get?.source_value&&e.get.source_value.forEach((s=>t.add(s))),s.type!==i.BuyXGetY||"products"!==e.buy?.source&&"product"!==e.buy?.source||!e.buy?.source_value||e.buy.source_value.forEach((s=>t.add(s)))}let o={};if(t.size>0)try{const s=await salla.product.api.fetch({source:"selected",source_value:Array.from(t)});o=Object.fromEntries(s.data.map((s=>[s.id,s])))}catch(s){o={}}for(const s of this.offersList){const t=s.details;if(("category"===t.apply_to&&t.targets||"categories"===t.apply_to&&t.targets)&&e&&(t.categories=this.findCategories(e,t.targets)),"product"!==t.apply_to&&"products"!==t.apply_to||!t.targets||(t.products=t.targets.map((s=>o[s])).filter(Boolean)),"brand"===t.apply_to&&t.targets&&(t.brands=t.targets),"tag"===t.apply_to&&t.targets&&(t.tags=t.targets),s.type===i.BuyXGetY&&t.get){const s=t.get;"products"===s.source&&s.source_value?s.products=s.source_value.map((s=>o[s])).filter(Boolean):("categories"===s.source||"category"===s.source)&&e&&s.source_value&&(s.categories=this.findCategories(e,s.source_value),t.categories=s.categories)}if(s.type===i.BuyXGetY&&t.buy){const s=t.buy;"products"!==s.source&&"product"!==s.source||!s.source_value||(s.products=s.source_value.map((s=>o[s])).filter(Boolean))}}return this.offersList})).then((()=>{this.canRender=!0})).catch((s=>{salla.logger.warn(s)}))}componentDidLoad(){let s=this.host.querySelector(".s-slider-block__title-nav");s?.classList.add("s-offer-bank-payment-nav"),this.emitPromotionViewed()}findCategories(s,e){let t=[];for(const o of s)e.includes(o.id_||o.id)&&t.push(o),o.sub_categories?.length>0&&(t=t.concat(this.findCategories(o.sub_categories,e)));return t}render(){if(!this.offersList.length||!this.canRender||!this.showOffer)return null;const s=salla.lang.get("pages.offer.offers_title","عروض المنتج"),t=salla.lang.get("pages.offer.offers_subtitle","احصل على المنتج بسعر مخفض مع أفضل العروض");return[e("div",{class:"s-offer-wrapper"},e("salla-slider",{type:"carousel",id:"offers-slider","block-title":s,"block-subTitle":t,"show-controls":this.offersList.length>1},e("div",{slot:"items"},this.offersList.slice(0,5).map(((s,e)=>this.renderOfferCard(s,e+1))),this.offersList.length>5&&this.renderShowMoreCard()))),this.renderAllOffersModal(),this.renderProductsModal()]}renderShowMoreCard(){return e("div",{class:"s-offer-slide-one-fourth swiper-slide",onClick:s=>{s.preventDefault(),s.stopPropagation(),this.openAllOffersModal()}},e("div",{class:"s-offer-card s-offer-show-more-card"},e("i",{class:"sicon-add s-offer-show-more-icon"}),e("h3",{class:"s-offer-show-more-title"},salla.lang.get("pages.offer.show_more_offers","عرض المزيد من العروض"))))}openAllOffersModal(){this.showAllOffersModal=!0}closeAllOffersModal(){this.showAllOffersModal=!1}closeProductsModal(){this.showProductsModal=!1,this.selectedOfferProducts=[],this.productsLoaded=!1}handleAccordionToggle(s,e){this.collapsedOffers={...this.collapsedOffers,[s]:e}}getOfferProducts(s){const e=s.details;return e.products&&e.products.length>0?e.products:s.type===i.BuyXGetY&&e.get?.products?e.get.products:[]}renderProductsLinkForModalCard(s,t){const o=this.getOfferProducts(s);return o&&0!==o.length?e("div",{class:"s-offer-products-link",onClick:s=>{s.stopPropagation(),this.selectedOfferProducts=o,this.showProductsModal=!0}},e("span",{class:"s-offer-products-link-text"},this.products_link_text),t&&e("i",{class:"sicon-keyboard_arrow_down s-offer-products-link-icon"})):null}renderAllOffersModal(){return e("salla-drawer",{visible:this.showAllOffersModal,position:"right",width:"md","no-padding":!0,"drawer-title":salla.lang.get("pages.offer.all_offers_title","جميع العروض"),onDrawerVisibilityChanged:s=>!s.detail&&this.closeAllOffersModal()},e("div",{class:"s-offer-drawer-content"},this.offersList.map(((s,e)=>this.renderModalOfferCard(s,e+1)))))}renderProductsModal(){return e("salla-drawer",{visible:this.showProductsModal,width:"md",position:"right","no-padding":!0,"drawer-title":this.products_link_text,onDrawerVisibilityChanged:s=>!s.detail&&this.closeProductsModal()},e("div",{class:"s-offer-products-drawer-content"},this.selectedOfferProducts?.length>0?e("div",null,!this.productsLoaded&&e("div",{class:"flex items-center justify-center p-8"},e("salla-loading",{size:"24"})),e("salla-products-list",{source:"selected","source-value":JSON.stringify(this.selectedOfferProducts.map((s=>s.id))),"product-card-component":this.productCardComponent,"horizontal-cards":!0,"compact-cards":!0,includes:["images"],onProductsFetched:()=>this.productsLoaded=!0})):e("div",{class:"p-4 text-center text-gray-500"},salla.lang.get("blocks.products.no_products_found","لا توجد منتجات"))))}renderModalOfferCard(s,t=1){const o=this.getOfferProducts(s),r=o&&o.length>0,a=!1!==this.collapsedOffers[s.id];return e("div",{class:"s-offer-drawer-card"},e("div",{class:"s-offer-card-main",onClick:()=>this.emitPromotionClicked(s,t)},e("div",{class:"s-offer-card-icon"},this.getOfferIcon(s.type)),e("div",{class:"s-offer-card-content"},e("h3",{class:"s-offer-card-title",title:s.title},s.title),s.description&&e("p",{class:"s-offer-card-description"},s.description),s.type===i.DiscountsTable?e("div",{class:"s-offer-card-details"},this.renderDiscountTableOfferContent(s)):s.type===i.PercentageOrFixed||s.type===i.Percentage||s.type===i.FixedAmount?e("div",{class:"s-offer-card-details"},this.renderPercentageOrFixedOfferContent(s),this.renderOfferCategories(s),this.renderOfferBrands(s),this.renderOfferTags(s)):e("div",{class:"s-offer-card-details"},this.renderOfferCategories(s),this.renderOfferBrands(s),this.renderOfferTags(s)))),r&&e("salla-accordion",{collapsed:a,collapsible:!0,size:"sm",onClick:s=>s.stopPropagation(),onAccordionToggle:e=>this.handleAccordionToggle(s.id,e.detail.payload.collapsed)},e("salla-accordion-head",{collapsible:!0,collapsed:a},e("div",{slot:"title",class:"s-offer-products-thumbnails"},e("span",{class:"s-offer-products-title"},this.products_link_text,e("i",{class:`sicon-keyboard_arrow_${a?"down":"up"} s-offer-products-link-icon`})),e("div",{class:"s-offer-products-thumbnails-stack"},o.slice(0,3).map(((s,t)=>e("div",{class:"s-offer-product-thumbnail",style:{zIndex:`${t+1}`}},e("img",{src:s.thumbnail||s.image?.url||salla.url.cdn("images/s-empty.png"),alt:s.name})))),o.length>3&&e("div",{class:"s-offer-products-more-count",style:{zIndex:"7"}},"+",o.length-3)))),e("salla-accordion-body",null,e("div",{class:"s-offer-products-content"},e("salla-products-list",{source:"selected","source-value":JSON.stringify(o.map((s=>s.id))),"product-card-component":this.productCardComponent,"horizontal-cards":!0,"compact-cards":!0,includes:["images"]})))))}renderOfferCard(s,t=1){return e("div",{class:"s-offer-slide-one-fourth swiper-slide",onClick:()=>this.emitPromotionClicked(s,t)},e("div",{class:"s-offer-card"},e("div",{class:"s-offer-card-icon"},this.getOfferIcon(s.type)),e("div",{class:"s-offer-card-content"},e("h3",{class:"s-offer-card-title",title:s.title},s.title),s.description&&e("p",{class:"s-offer-card-description"},s.description),e("div",{class:"s-offer-card-details"},s.type===i.DiscountsTable?this.renderDiscountTableOfferContent(s):s.type===i.PercentageOrFixed||s.type===i.Percentage||s.type===i.FixedAmount?[this.renderPercentageOrFixedOfferContent(s),this.renderOfferCategories(s),this.renderOfferBrands(s),this.renderOfferTags(s)]:[this.renderOfferCategories(s),this.renderOfferBrands(s),this.renderOfferTags(s)],this.renderProductsLinkForModalCard(s,!1)))))}getOfferIcon(s){return e("i",{class:{[i.DiscountsTable]:"sicon-discount-calculator",[i.Bank]:"sicon-bank",[i.SpecialPrice]:"sicon-fire",[i.BuyXGetY]:"sicon-gift",[i.PercentageOrFixed]:"sicon-special-discount",[i.Percentage]:"sicon-special-discount",[i.FixedAmount]:"sicon-special-discount"}[s]||"sicon-discount"})}renderDiscountTableOfferContent(s){const t=s.details.discounts||[];return t.length?e("div",null,e("div",{class:"s-offer-card-description"},salla.lang.get("pages.offer.discount_table_subtitle","وفر اكتر بشراء منتجات أكثر")),e("table",{class:"s-offer-discount-table"},e("tbody",null,this.groupDiscountsByRows(t,3).map(((s,t)=>e("tr",{key:t},s.map(((s,t)=>e("td",{key:t},e("div",{class:"s-offer-discount-percentage"},s.percentage,"%"),e("div",{class:"s-offer-discount-condition"},this.formatDiscountCondition(s))))))))))):null}renderPercentageOrFixedOfferContent(s){const t=s.details;return t.discount_value||t.min_spend>0||t.min_items>0?e("div",{class:"s-offer-percentage-fixed-content"},t.min_spend>0&&e("div",{class:"s-offer-min-spend"},this.min_spend_text(t.min_spend,this.userCurrency?.symbol||"")),t.min_items>0&&e("div",{class:"s-offer-min-items"},this.min_items_text(t.min_items))):null}groupDiscountsByRows(s,e){const t=[];for(let o=0;o<s.length;o+=e)t.push(s.slice(o,o+e));return t}formatDiscountCondition(s){return s.discounted_amount?`${s.discounted_amount} ${this.userCurrency?.symbol||""}`:null!=s.quantity?this.buy_quantity_text(s.quantity):`1 ${this.product_text}`}renderOfferCategories(s){const t=s.details;let o=t.categories||[];if(s.type===i.BuyXGetY&&t.get?.categories&&(o=t.get.categories),!o.length)return null;const r=this.expandedCategories[s.id],a=o.length>3,l=r?o:o.slice(0,3);return e("div",{class:"s-offer-categories"},e("div",{class:"s-offer-categories-list"},l.map(((s,t)=>e("a",{key:t,class:"s-offer-category-item",href:s.url||salla.url.create("categories",s.id||s.id_)},s.name))),a&&e("span",{class:"s-offer-categories-toggle",onClick:e=>{e.preventDefault(),e.stopPropagation(),this.toggleCategoryExpansion(s.id)}},r?e("span",null,e("i",{class:"sicon-keyboard_arrow_up"})," ",salla.lang.get("common.elements.hide","إخفاء")):e("span",null,salla.lang.get("common.elements.show","عرض")," ","+"+(o.length-3)," ",e("i",{class:"sicon-keyboard_arrow_down"})))))}renderOfferBrands(s){const t=s.details.brands||[];if(!t.length)return null;const o=this.expandedCategories[s.id],i=t.length>3,r=o?t:t.slice(0,3);return e("div",{class:"s-offer-categories"},e("div",{class:"s-offer-categories-list"},r.map(((s,t)=>e("a",{key:t,class:"s-offer-category-item",href:s.url},s.name))),i&&e("span",{class:"s-offer-categories-toggle",onClick:e=>{e.preventDefault(),e.stopPropagation(),this.toggleCategoryExpansion(s.id)}},o?e("span",null,e("i",{class:"sicon-keyboard_arrow_up"})," ",salla.lang.get("common.elements.hide","إخفاء")):e("span",null,salla.lang.get("common.elements.show","عرض")," ","+"+(t.length-3)," ",e("i",{class:"sicon-keyboard_arrow_down"})))))}renderOfferTags(s){const t=s.details.tags||[];if(!t.length)return null;const o=this.expandedCategories[s.id],i=t.length>3,r=o?t:t.slice(0,3);return e("div",{class:"s-offer-categories"},e("div",{class:"s-offer-categories-list"},r.map(((s,t)=>e("a",{key:t,class:"s-offer-category-item",href:s.url||salla.url.create("tags",s.id)},s.name))),i&&e("span",{class:"s-offer-categories-toggle",onClick:e=>{e.preventDefault(),e.stopPropagation(),this.toggleCategoryExpansion(s.id)}},o?e("span",null,e("i",{class:"sicon-keyboard_arrow_up"})," ",salla.lang.get("common.elements.hide","إخفاء")):e("span",null,salla.lang.get("common.elements.show","عرض")," ","+"+(t.length-3)," ",e("i",{class:"sicon-keyboard_arrow_down"})))))}toggleCategoryExpansion(s){this.expandedCategories={...this.expandedCategories,[s]:!this.expandedCategories[s]}}get host(){return t(this)}};r.style=":host .s-drawer-close:where([dir=rtl],[dir=rtl] *){left:0}";export{r as salla_offer}