@salla.sa/twilight-components 2.14.420 → 2.14.422

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 (300) hide show
  1. package/dist/cjs/{filepond-CTL5dLDP.js → filepond-Bj2Lr664.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-B-C_VVcX.js → filepond-plugin-file-poster-D6zjqOTW.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CzKg3e_q.js → filepond-plugin-file-validate-size-DW2JtTpK.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-vnM88Tws.js → filepond-plugin-file-validate-type-Cm_dx5vR.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DI2Woa_n.js → filepond-plugin-image-edit-CyB1FduP.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-DfOieqsR.js → filepond-plugin-image-exif-orientation-CxcuYrF1.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BnoA6sXp.js → filepond-plugin-image-preview-CXF_Kqyu.js} +1 -1
  8. package/dist/cjs/{functions-DlISHrKx.js → functions-QULFiarR.js} +1 -1
  9. package/dist/cjs/{index-tOrYNNsf.js → index-C-KeWKxB.js} +1 -1
  10. package/dist/cjs/{index-vstkdqRz.js → index-CSI6rnkc.js} +2 -2
  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.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-comment-form_8.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  45. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-loyalty.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-offer-modal.cjs.entry.js +8 -2
  59. package/dist/cjs/salla-offer.cjs.entry.js +24 -4
  60. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  79. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  94. package/dist/cjs/{tracked-promise-BJe1J-1V.js → tracked-promise-DTPdQpTt.js} +1 -1
  95. package/dist/cjs/twilight.cjs.js +1 -1
  96. package/dist/cjs/{vanilla-picker-nnRs4Y1U.js → vanilla-picker-CmTZhXxo.js} +1 -1
  97. package/dist/collection/components/salla-loyalty/salla-loyalty.js +1 -1
  98. package/dist/collection/components/salla-offer/salla-offer.js +23 -3
  99. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +7 -1
  100. package/dist/components/index.js +2 -2
  101. package/dist/components/salla-loyalty.js +1 -1
  102. package/dist/components/salla-offer-modal.js +7 -1
  103. package/dist/components/salla-offer.js +23 -3
  104. package/dist/esm/{filepond-DcrhDD5e.js → filepond-CaO0jWZe.js} +1 -1
  105. package/dist/esm/{filepond-plugin-file-poster-meDD1pU1.js → filepond-plugin-file-poster-x8WSmS0o.js} +1 -1
  106. package/dist/esm/{filepond-plugin-file-validate-size-Ta6h96xm.js → filepond-plugin-file-validate-size-CxlH6WN0.js} +1 -1
  107. package/dist/esm/{filepond-plugin-file-validate-type-PVDX_x_z.js → filepond-plugin-file-validate-type-qw3WFgZc.js} +1 -1
  108. package/dist/esm/{filepond-plugin-image-edit-BR1HO3-K.js → filepond-plugin-image-edit-DuhPVO0a.js} +1 -1
  109. package/dist/esm/{filepond-plugin-image-exif-orientation-CEWqrOc9.js → filepond-plugin-image-exif-orientation-BffsImgy.js} +1 -1
  110. package/dist/esm/{filepond-plugin-image-preview-6ACW1Nfe.js → filepond-plugin-image-preview-VZtiw7aM.js} +1 -1
  111. package/dist/esm/{functions-DqpTrGHa.js → functions-DQPUS1s5.js} +1 -1
  112. package/dist/esm/{index-COvJOSNr.js → index-CDqmBYQb.js} +1 -1
  113. package/dist/esm/{index-Cb4NFvMH.js → index-DcQSprhU.js} +2 -2
  114. package/dist/esm/loader.js +2 -2
  115. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  116. package/dist/esm/salla-accordion_6.entry.js +1 -1
  117. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  118. package/dist/esm/salla-advertisement.entry.js +1 -1
  119. package/dist/esm/salla-alert_2.entry.js +1 -1
  120. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  121. package/dist/esm/salla-apps-icons.entry.js +1 -1
  122. package/dist/esm/salla-badge.entry.js +1 -1
  123. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  124. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  125. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  126. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  127. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  128. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  129. package/dist/esm/salla-contacts.entry.js +1 -1
  130. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  131. package/dist/esm/salla-count-down.entry.js +1 -1
  132. package/dist/esm/salla-custom-fields.entry.js +1 -1
  133. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  134. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  135. package/dist/esm/salla-filters-widget.entry.js +1 -1
  136. package/dist/esm/salla-filters.entry.js +1 -1
  137. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  138. package/dist/esm/salla-gifting.entry.js +1 -1
  139. package/dist/esm/salla-hook.entry.js +1 -1
  140. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  141. package/dist/esm/salla-installment.entry.js +1 -1
  142. package/dist/esm/salla-list-tile.entry.js +1 -1
  143. package/dist/esm/salla-localization-modal.entry.js +1 -1
  144. package/dist/esm/salla-login-modal.entry.js +1 -1
  145. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  146. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  147. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  148. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  149. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  150. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  151. package/dist/esm/salla-loyalty.entry.js +2 -2
  152. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  153. package/dist/esm/salla-map.entry.js +1 -1
  154. package/dist/esm/salla-menu.entry.js +1 -1
  155. package/dist/esm/salla-metadata.entry.js +1 -1
  156. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  157. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  158. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  159. package/dist/esm/salla-notification-item.entry.js +1 -1
  160. package/dist/esm/salla-notifications.entry.js +1 -1
  161. package/dist/esm/salla-offer-modal.entry.js +8 -2
  162. package/dist/esm/salla-offer.entry.js +24 -4
  163. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  164. package/dist/esm/salla-order-details-options.entry.js +1 -1
  165. package/dist/esm/salla-order-details.entry.js +1 -1
  166. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  167. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  168. package/dist/esm/salla-order-edit.entry.js +1 -1
  169. package/dist/esm/salla-order-summary.entry.js +1 -1
  170. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  171. package/dist/esm/salla-orders.entry.js +1 -1
  172. package/dist/esm/salla-payments.entry.js +1 -1
  173. package/dist/esm/salla-placeholder.entry.js +1 -1
  174. package/dist/esm/salla-price-range.entry.js +1 -1
  175. package/dist/esm/salla-product-card_2.entry.js +1 -1
  176. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  177. package/dist/esm/salla-products-list.entry.js +1 -1
  178. package/dist/esm/salla-progress-bar.entry.js +1 -1
  179. package/dist/esm/salla-quick-order.entry.js +1 -1
  180. package/dist/esm/salla-rating-modal.entry.js +1 -1
  181. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  182. package/dist/esm/salla-scopes.entry.js +1 -1
  183. package/dist/esm/salla-search.entry.js +1 -1
  184. package/dist/esm/salla-skeleton.entry.js +1 -1
  185. package/dist/esm/salla-slider.entry.js +1 -1
  186. package/dist/esm/salla-social-share.entry.js +1 -1
  187. package/dist/esm/salla-social.entry.js +1 -1
  188. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  189. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  190. package/dist/esm/salla-tooltip.entry.js +1 -1
  191. package/dist/esm/salla-trust-badges.entry.js +1 -1
  192. package/dist/esm/salla-user-menu.entry.js +1 -1
  193. package/dist/esm/salla-user-profile.entry.js +1 -1
  194. package/dist/esm/salla-user-settings.entry.js +1 -1
  195. package/dist/esm/salla-verify.entry.js +1 -1
  196. package/dist/esm/salla-wallet.entry.js +1 -1
  197. package/dist/esm/{tracked-promise-Dl5Y2VO1.js → tracked-promise-CjUGdQ4e.js} +1 -1
  198. package/dist/esm/twilight.js +2 -2
  199. package/dist/esm/{vanilla-picker-CuBrX87l.js → vanilla-picker-71UAczkS.js} +1 -1
  200. package/dist/twilight/{p-45f138dd.entry.js → p-00031f8b.entry.js} +1 -1
  201. package/dist/twilight/{p-c4f7d697.entry.js → p-013cfbf0.entry.js} +1 -1
  202. package/dist/twilight/{p-6cb4a60b.entry.js → p-0217da98.entry.js} +1 -1
  203. package/dist/twilight/{p-b8d87ece.entry.js → p-061c3ad0.entry.js} +1 -1
  204. package/dist/twilight/{p-6135ad16.entry.js → p-062ce0be.entry.js} +1 -1
  205. package/dist/twilight/p-14805623.entry.js +4 -0
  206. package/dist/twilight/{p-772b766c.entry.js → p-192e2bc3.entry.js} +1 -1
  207. package/dist/twilight/{p-293fa7ae.entry.js → p-1cf5f505.entry.js} +1 -1
  208. package/dist/twilight/{p-5fbf4640.entry.js → p-27cc8fc7.entry.js} +1 -1
  209. package/dist/twilight/{p-7ec0ac91.entry.js → p-28cd5556.entry.js} +1 -1
  210. package/dist/twilight/{p-15c3ec6b.entry.js → p-300dae0b.entry.js} +1 -1
  211. package/dist/twilight/{p-dfad4e49.entry.js → p-3115fa6f.entry.js} +1 -1
  212. package/dist/twilight/{p-e85f1f4a.entry.js → p-32a76526.entry.js} +1 -1
  213. package/dist/twilight/{p-d4d61e9d.entry.js → p-38ce7612.entry.js} +1 -1
  214. package/dist/twilight/{p-686eecd6.entry.js → p-3a3dd27f.entry.js} +1 -1
  215. package/dist/twilight/{p-73ba81cc.entry.js → p-3f01ef83.entry.js} +1 -1
  216. package/dist/twilight/{p-825cc1f7.entry.js → p-452d8cd0.entry.js} +1 -1
  217. package/dist/twilight/{p-5e62a40f.entry.js → p-489cca66.entry.js} +1 -1
  218. package/dist/twilight/{p-142ed3d7.entry.js → p-497b058a.entry.js} +1 -1
  219. package/dist/twilight/{p-4105a9cd.entry.js → p-4a8e7f09.entry.js} +1 -1
  220. package/dist/twilight/{p-9ba89557.entry.js → p-4c759f75.entry.js} +1 -1
  221. package/dist/twilight/p-4f6bff26.entry.js +4 -0
  222. package/dist/twilight/{p-68f21f26.entry.js → p-503f9bbf.entry.js} +1 -1
  223. package/dist/twilight/{p-59a083e4.entry.js → p-50b449bd.entry.js} +1 -1
  224. package/dist/twilight/{p-324dc99a.entry.js → p-5637acc5.entry.js} +1 -1
  225. package/dist/twilight/{p-85a15cc1.entry.js → p-587d6230.entry.js} +1 -1
  226. package/dist/twilight/{p-3e6f7773.entry.js → p-5e5ccdab.entry.js} +1 -1
  227. package/dist/twilight/{p-cb70fe7f.entry.js → p-63d47b05.entry.js} +1 -1
  228. package/dist/twilight/{p-213cee5f.entry.js → p-63e1b828.entry.js} +1 -1
  229. package/dist/twilight/{p-d6cfb7cf.entry.js → p-64f577be.entry.js} +1 -1
  230. package/dist/twilight/{p-f6da3fad.entry.js → p-6587c7d9.entry.js} +1 -1
  231. package/dist/twilight/{p-b5b0d57a.entry.js → p-69b6a7e6.entry.js} +1 -1
  232. package/dist/twilight/{p-4c3d17a1.entry.js → p-6c98089b.entry.js} +1 -1
  233. package/dist/twilight/{p-fd4eec62.entry.js → p-6ccbe91b.entry.js} +1 -1
  234. package/dist/twilight/{p-4a788634.entry.js → p-6d5b28c5.entry.js} +1 -1
  235. package/dist/twilight/{p-774461b2.entry.js → p-7282ff57.entry.js} +1 -1
  236. package/dist/twilight/{p-7d37007a.entry.js → p-77d1859e.entry.js} +1 -1
  237. package/dist/twilight/{p-40a41577.entry.js → p-80865031.entry.js} +1 -1
  238. package/dist/twilight/{p-e30f5be9.entry.js → p-8101bf16.entry.js} +1 -1
  239. package/dist/twilight/{p-f6bc9645.entry.js → p-81f18d48.entry.js} +1 -1
  240. package/dist/twilight/{p-3383da76.entry.js → p-868e3de6.entry.js} +1 -1
  241. package/dist/twilight/{p-3bd864fe.entry.js → p-8ad13a15.entry.js} +1 -1
  242. package/dist/twilight/{p-e94f7e62.entry.js → p-8ec0ba5b.entry.js} +1 -1
  243. package/dist/twilight/{p-d4b7ef45.entry.js → p-8eebefe9.entry.js} +1 -1
  244. package/dist/twilight/{p-95f3620c.entry.js → p-9170fe95.entry.js} +1 -1
  245. package/dist/twilight/{p-bc8070a0.entry.js → p-957bffb4.entry.js} +1 -1
  246. package/dist/twilight/{p-c4c7efc7.entry.js → p-97a43989.entry.js} +1 -1
  247. package/dist/twilight/{p-28208f79.entry.js → p-9924b574.entry.js} +1 -1
  248. package/dist/twilight/{p-e7fd1dab.entry.js → p-9cb39e42.entry.js} +1 -1
  249. package/dist/twilight/{p-DXTkDRjS.js → p-BCVUxip0.js} +1 -1
  250. package/dist/twilight/{p-BII4XUuF.js → p-BHk2Uou3.js} +1 -1
  251. package/dist/twilight/{p-14uV0Dqq.js → p-BTAUEZcN.js} +1 -1
  252. package/dist/twilight/{p-B9znPMU0.js → p-CN2sY_Li.js} +1 -1
  253. package/dist/twilight/{p-Ch9nMk63.js → p-CRRWZbuL.js} +1 -1
  254. package/dist/twilight/{p-DQjeyM6u.js → p-CT3zVv2d.js} +1 -1
  255. package/dist/twilight/{p-DvkL8Ozv.js → p-Ca8b1Y6p.js} +1 -1
  256. package/dist/twilight/{p-CBJQc5Lg.js → p-Cs04GLEl.js} +1 -1
  257. package/dist/twilight/{p-Cb4NFvMH.js → p-DcQSprhU.js} +1 -1
  258. package/dist/twilight/{p-pyjmoRFm.js → p-DeBNbBwy.js} +1 -1
  259. package/dist/twilight/{p-BIai7zYt.js → p-DgJJBXMW.js} +1 -1
  260. package/dist/twilight/{p-befbbd96.entry.js → p-a147d986.entry.js} +1 -1
  261. package/dist/twilight/{p-52f5ccfe.entry.js → p-a2fcbc1a.entry.js} +1 -1
  262. package/dist/twilight/{p-6fb7d4f8.entry.js → p-a44f888a.entry.js} +1 -1
  263. package/dist/twilight/{p-752f162a.entry.js → p-a4c32f61.entry.js} +1 -1
  264. package/dist/twilight/{p-5b7970ef.entry.js → p-a6282734.entry.js} +1 -1
  265. package/dist/twilight/{p-72e169bd.entry.js → p-acb769ec.entry.js} +1 -1
  266. package/dist/twilight/{p-65c18d39.entry.js → p-b0b2aeda.entry.js} +1 -1
  267. package/dist/twilight/{p-0bb36191.entry.js → p-b3a731c1.entry.js} +1 -1
  268. package/dist/twilight/{p-e64af075.entry.js → p-b3d565bd.entry.js} +1 -1
  269. package/dist/twilight/{p-691c3a17.entry.js → p-c13164b8.entry.js} +1 -1
  270. package/dist/twilight/{p-0c0df6f7.entry.js → p-c2a2158a.entry.js} +1 -1
  271. package/dist/twilight/{p-96343e93.entry.js → p-c34b5d8a.entry.js} +1 -1
  272. package/dist/twilight/{p-9b865b2c.entry.js → p-c49b9285.entry.js} +1 -1
  273. package/dist/twilight/{p-6f2edfae.entry.js → p-c9b8eaa4.entry.js} +1 -1
  274. package/dist/twilight/{p-628a8e24.entry.js → p-cfac18e6.entry.js} +1 -1
  275. package/dist/twilight/{p-9a6dfcde.entry.js → p-d188ddc3.entry.js} +1 -1
  276. package/dist/twilight/{p-2726ea01.entry.js → p-d46ab245.entry.js} +1 -1
  277. package/dist/twilight/{p-408ed55f.entry.js → p-d65db41e.entry.js} +1 -1
  278. package/dist/twilight/{p-15f015b1.entry.js → p-deffef72.entry.js} +1 -1
  279. package/dist/twilight/{p-03c91b77.entry.js → p-e08d36d6.entry.js} +1 -1
  280. package/dist/twilight/{p-fbfa12cf.entry.js → p-e2e790c2.entry.js} +1 -1
  281. package/dist/twilight/{p-b495fd3a.entry.js → p-e4f154ee.entry.js} +1 -1
  282. package/dist/twilight/{p-96b64fd6.entry.js → p-e79d468d.entry.js} +1 -1
  283. package/dist/twilight/{p-ebc19788.entry.js → p-e87d2534.entry.js} +1 -1
  284. package/dist/twilight/{p-7cba634a.entry.js → p-e8a3af2d.entry.js} +1 -1
  285. package/dist/twilight/{p-e9251839.entry.js → p-ea4ded2f.entry.js} +1 -1
  286. package/dist/twilight/{p-7444a1ed.entry.js → p-ecb69641.entry.js} +1 -1
  287. package/dist/twilight/{p-fca860eb.entry.js → p-f0f5e269.entry.js} +1 -1
  288. package/dist/twilight/{p-7e47c403.entry.js → p-f161933c.entry.js} +1 -1
  289. package/dist/twilight/{p-29f8baaa.entry.js → p-f2476ba0.entry.js} +1 -1
  290. package/dist/twilight/{p-38ae0da1.entry.js → p-f6ed04b2.entry.js} +1 -1
  291. package/dist/twilight/{p-8e96221d.entry.js → p-f77d4659.entry.js} +1 -1
  292. package/dist/twilight/{p-acf5c683.entry.js → p-fa5cfbbb.entry.js} +1 -1
  293. package/dist/twilight/{p-BCTUg3S2.js → p-l-JdSat8.js} +1 -1
  294. package/dist/twilight/twilight.esm.js +1 -1
  295. package/dist/types/components/salla-offer/interfaces.d.ts +6 -1
  296. package/dist/types/components/salla-offer/salla-offer.d.ts +1 -0
  297. package/dist/types/components/salla-offer-modal/offer-schema.d.ts +5 -0
  298. package/package.json +5 -5
  299. package/dist/twilight/p-95ff1eb1.entry.js +0 -4
  300. package/dist/twilight/p-aec7b53d.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var specialDiscount = require('./special-discount-DC2oXurL.js');
8
8
  var tag = require('./tag-D-PcUR33.js');
9
9
  var cart2 = require('./cart2-B98PSAFN.js');
@@ -111,6 +111,9 @@ const SallaOfferModal = class {
111
111
  else if (this.offer.get.brands?.length) {
112
112
  this.offer_type = 'brands';
113
113
  }
114
+ else if (this.offer.get.tags?.length) {
115
+ this.offer_type = 'tags';
116
+ }
114
117
  this.modal.setTitle(this.offer_name);
115
118
  this.emitPromotionViewed(this.offer);
116
119
  }
@@ -183,6 +186,9 @@ const SallaOfferModal = class {
183
186
  else if (this.offer.get.brands?.length) {
184
187
  return index.h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.brands?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.brands?.length <= 2 ? 'false' : 'true' }, index.h("div", { slot: 'items' }, this.offer.get.brands.map((brand) => index.h("a", { href: brand.url || salla.url.create('brands', brand.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-brand-item" }, index.h("div", { class: "s-offer-modal-brand-logo" }, index.h("img", { src: brand.logo, alt: brand.name })), index.h("span", { class: "s-offer-modal-badge-text" }, brand.name)))));
185
188
  }
189
+ else if (this.offer.get.tags?.length) {
190
+ return index.h("salla-slider", { type: "carousel", class: { "s-offer-modal-slider-centered": this.offer.get.tags?.length <= 2, "s-offer-modal-slider": true }, id: "offer-modal-slider", "controls-outer": true, "show-controls": this.offer.get.tags?.length <= 2 ? 'false' : 'true' }, index.h("div", { slot: 'items' }, this.offer.get.tags.map((tag$1) => index.h("a", { href: tag$1.url || salla.url.create('tags', tag$1.id), class: "s-offer-modal-badge s-offer-modal-slider-item s-offer-modal-tag-item" }, index.h("span", { class: "s-offer-modal-badge-icon", innerHTML: tag.SITag }), index.h("span", { class: "s-offer-modal-badge-text" }, tag$1.name)))));
191
+ }
186
192
  }
187
193
  //todo:: pass event then use sallaButton from it
188
194
  // private addItem() {
@@ -200,7 +206,7 @@ const SallaOfferModal = class {
200
206
  // '</div>';
201
207
  // }
202
208
  render() {
203
- return index.h("salla-modal", { key: '8be68e5882a9cbb1f4286f765f5db3ce88689c16', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, index.h("div", { key: '570bcafe6a1a00534b26ee25aa154e46594cb662', slot: 'loading' }, index.h("div", { key: 'baee23d1ad4429e8663fcf043004bf0747fe47de', class: "s-offer-modal-skeleton" }, index.h("div", { key: '1c6967ecfb17092c48247c17c2ce86b8ca048c77', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'a6ce5a415d4e6350c2467d7d3c070fddaeccd074', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '2d65ed027b9fff7eae7ecbb372f9e584a0334cf5', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '247706c9ddf7d2b9f96c7ea2deac960de3449017', height: '10px', width: '30%' })), index.h("div", { key: 'b5c9fec6565313706e2d6b73e2f060e4b216ffbc', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: cart2.SICart2 }))))), index.h("div", { key: '58e2d38061e8e4434113b1fc16f3601969e342da', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: 'c388e246236e4849e5d97592ea6a803e6409083f', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '4ccd783b15647cf62f1b5b4d760f3e7feead7bfb', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
209
+ return index.h("salla-modal", { key: '3387816ac4997e48ce463de1acae69583a99eef1', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, index.h("div", { key: '38ee273912aeec936b6762cac52eca16b65c2744', slot: 'loading' }, index.h("div", { key: '05911f31ca0884953185cbc1ac1c7b7ad007baf1', class: "s-offer-modal-skeleton" }, index.h("div", { key: '095055ba94627a2800e65be09a516286f3eea9c3', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'b1469e4e49e0d90602b9d0fac8672a9a063141f6', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '7b738f6b9b153a49d03bb76a57690e2de9749d87', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '6d88e7ad3e419ab5a647bdd2215976bacd892e8d', height: '10px', width: '30%' })), index.h("div", { key: 'ee012a7a75a728ee76fa0888c487ac6d63c05efa', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: cart2.SICart2 }))))), index.h("div", { key: 'db71ea2e16e6d219bfeb1320b174e75d9e5fab19', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '862658e0a5df3c1a2350c2a571f4f0e8f8a4d0af', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '0f3c58145caf12c90626742c8cbc768a442a3ce4', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
204
210
  ? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
205
211
  index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
206
212
  : '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var PageType;
9
9
  (function (PageType) {
@@ -192,6 +192,9 @@ const SallaOffer = class {
192
192
  if (details.apply_to === 'brand' && details.targets) {
193
193
  details.brands = details.targets;
194
194
  }
195
+ if (details.apply_to === 'tag' && details.targets) {
196
+ details.tags = details.targets;
197
+ }
195
198
  if (offer.type === OfferType.BuyXGetY && details.get) {
196
199
  const getY = details.get;
197
200
  if (getY.source === 'products' && getY.source_value) {
@@ -312,7 +315,7 @@ const SallaOffer = class {
312
315
  const products = this.getOfferProducts(offer);
313
316
  const hasProducts = products && products.length > 0;
314
317
  const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
315
- return (index.h("div", { class: "s-offer-drawer-card" }, index.h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (index.h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (index.h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer))) : (index.h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer))))), hasProducts && (index.h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, index.h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, index.h("div", { slot: "title", class: "s-offer-products-thumbnails" }, index.h("span", { class: "s-offer-products-title" }, this.products_link_text, index.h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), index.h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index$1) => (index.h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index$1 + 1}` } }, index.h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (index.h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), index.h("salla-accordion-body", null, index.h("div", { class: "s-offer-products-content" }, index.h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
318
+ return (index.h("div", { class: "s-offer-drawer-card" }, index.h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (index.h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (index.h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))) : (index.h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))))), hasProducts && (index.h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, index.h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, index.h("div", { slot: "title", class: "s-offer-products-thumbnails" }, index.h("span", { class: "s-offer-products-title" }, this.products_link_text, index.h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), index.h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index$1) => (index.h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index$1 + 1}` } }, index.h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (index.h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), index.h("salla-accordion-body", null, index.h("div", { class: "s-offer-products-content" }, index.h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
316
319
  }
317
320
  renderOfferCard(offer, position = 1) {
318
321
  return (index.h("div", { class: "s-offer-slide-one-fourth swiper-slide", onClick: () => this.emitPromotionClicked(offer, position) }, index.h("div", { class: "s-offer-card" }, index.h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), index.h("div", { class: "s-offer-card-content" }, index.h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && index.h("p", { class: "s-offer-card-description" }, offer.description), index.h("div", { class: "s-offer-card-details" }, offer.type === OfferType.DiscountsTable
@@ -321,11 +324,13 @@ const SallaOffer = class {
321
324
  ? [
322
325
  this.renderPercentageOrFixedOfferContent(offer),
323
326
  this.renderOfferCategories(offer),
324
- this.renderOfferBrands(offer)
327
+ this.renderOfferBrands(offer),
328
+ this.renderOfferTags(offer)
325
329
  ]
326
330
  : [
327
331
  this.renderOfferCategories(offer),
328
- this.renderOfferBrands(offer)
332
+ this.renderOfferBrands(offer),
333
+ this.renderOfferTags(offer)
329
334
  ], this.renderProductsLinkForModalCard(offer, false))))));
330
335
  }
331
336
  getOfferIcon(offerType) {
@@ -405,6 +410,21 @@ const SallaOffer = class {
405
410
  this.toggleCategoryExpansion(offer.id);
406
411
  } }, isExpanded ? (index.h("span", null, index.h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (index.h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${brands.length - maxVisible}`, ' ', index.h("i", { class: "sicon-keyboard_arrow_down" }))))))));
407
412
  }
413
+ renderOfferTags(offer) {
414
+ const details = offer.details;
415
+ const tags = details.tags || [];
416
+ if (!tags.length)
417
+ return null;
418
+ const maxVisible = 3;
419
+ const isExpanded = this.expandedCategories[offer.id];
420
+ const shouldShowMore = tags.length > maxVisible;
421
+ const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
422
+ return (index.h("div", { class: "s-offer-categories" }, index.h("div", { class: "s-offer-categories-list" }, visibleTags.map((tag, index$1) => (index.h("a", { key: index$1, class: "s-offer-category-item", href: tag.url || salla.url.create('tags', tag.id) }, tag.name))), shouldShowMore && (index.h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
423
+ e.preventDefault();
424
+ e.stopPropagation();
425
+ this.toggleCategoryExpansion(offer.id);
426
+ } }, isExpanded ? (index.h("span", null, index.h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (index.h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${tags.length - maxVisible}`, ' ', index.h("i", { class: "sicon-keyboard_arrow_down" }))))))));
427
+ }
408
428
  /**
409
429
  * Toggle category expansion for a specific offer
410
430
  */
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaOrderDetailsMultipleBundleProductCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var copyIcon = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaOrderDetailsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var helpers = require('./helpers-BJ2rnhxz.js');
8
8
  require('./interfaces-Bh7W0bEU.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaOrderEditProductCardCss = ":host{display:block;min-width:0}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var helpers = require('./helpers-BJ2rnhxz.js');
8
8
  require('./interfaces-Bh7W0bEU.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var check = require('./check-BnVBPQNp.js');
8
8
 
9
9
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaOrderTotalsCardCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var Helper = require('./Helper-CU4Xuiki.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaPaymentsCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var Inbox = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
 
9
9
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var star2 = require('./star2-R146a27p.js');
8
8
  var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
9
9
  var Helper = require('./Helper-CU4Xuiki.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaProgressBarCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var iphoneX = require('./iphone-x-qC21wCLj.js');
8
8
  var mail = require('./mail-Bgvt2hc9.js');
9
9
  var cancel = require('./cancel-B5SbMYEk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var star = require('./star-DGcH7Yso.js');
8
8
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
9
9
  var Helper = require('./Helper-CU4Xuiki.js');
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
7
- var functions = require('./functions-DlISHrKx.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
+ var functions = require('./functions-QULFiarR.js');
8
8
  var gift = require('./gift-DbNivqYO.js');
9
9
  var tag = require('./tag-D-PcUR33.js');
10
10
  var check = require('./check-BnVBPQNp.js');
11
11
  var cancel = require('./cancel-B5SbMYEk.js');
12
- var trackedPromise = require('./tracked-promise-BJe1J-1V.js');
12
+ var trackedPromise = require('./tracked-promise-DTPdQpTt.js');
13
13
 
14
14
  const sallaLoyaltyProgramCss$3 = "";
15
15
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
9
  var mail = require('./mail-Bgvt2hc9.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
  var mail = require('./mail-Bgvt2hc9.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  function TrackedPromise(fn, options = {}) {
9
9
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
9
  /*
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-vstkdqRz.js');
6
+ var index = require('./index-CSI6rnkc.js');
7
7
 
8
8
  function _mergeNamespaces(n, m) {
9
9
  m.forEach(function (e) {
@@ -157,7 +157,7 @@ export class SallaLoyalty {
157
157
  [
158
158
  h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }), h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
159
159
  h("salla-tabs", { key: this.tabsKey }, this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title }, h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize, index) => h("salla-tab-content", { slot: "content", name: prize.title }, h("salla-slider", { class: "s-loyalty-slider", loop: false, "controls-outer": true, id: 'loyalty-popup-slider-' + index, type: "carousel" }, h("div", { slot: 'items' }, prize.items.map((item) => this.prizeItem(item))))))),
160
- this.activeTabType?.toUpperCase() === 'FREE_PRODUCT'
160
+ this.activeTabType?.toUpperCase() === 'FREE_PRODUCT' && (salla.config.get('store.features') || []).includes('loyalty-system-v2')
161
161
  ? h("a", { href: salla.url.get(''), class: "s-loyalty-program-redeem-btn s-button-element s-button-btn s-button-solid s-button-wide s-button-primary s-button-wrap" }, salla.lang.get('pages.loyalty_program.shop_now'))
162
162
  : h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, salla.lang.get('pages.loyalty_program.exchange_points')),
163
163
  ]
@@ -181,6 +181,9 @@ export class SallaOffer {
181
181
  if (details.apply_to === 'brand' && details.targets) {
182
182
  details.brands = details.targets;
183
183
  }
184
+ if (details.apply_to === 'tag' && details.targets) {
185
+ details.tags = details.targets;
186
+ }
184
187
  if (offer.type === OfferType.BuyXGetY && details.get) {
185
188
  const getY = details.get;
186
189
  if (getY.source === 'products' && getY.source_value) {
@@ -301,7 +304,7 @@ export class SallaOffer {
301
304
  const products = this.getOfferProducts(offer);
302
305
  const hasProducts = products && products.length > 0;
303
306
  const isCollapsed = this.collapsedOffers[offer.id] !== false; // Default to collapsed
304
- return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
307
+ return (h("div", { class: "s-offer-drawer-card" }, h("div", { class: "s-offer-card-main", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), offer.type === OfferType.DiscountsTable ? (h("div", { class: "s-offer-card-details" }, this.renderDiscountTableOfferContent(offer))) : (offer.type === OfferType.PercentageOrFixed || offer.type === OfferType.Percentage || offer.type === OfferType.FixedAmount) ? (h("div", { class: "s-offer-card-details" }, this.renderPercentageOrFixedOfferContent(offer), this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))) : (h("div", { class: "s-offer-card-details" }, this.renderOfferCategories(offer), this.renderOfferBrands(offer), this.renderOfferTags(offer))))), hasProducts && (h("salla-accordion", { collapsed: isCollapsed, collapsible: true, size: "sm", onClick: (e) => e.stopPropagation(), onAccordionToggle: (e) => this.handleAccordionToggle(offer.id, e.detail.payload.collapsed) }, h("salla-accordion-head", { collapsible: true, collapsed: isCollapsed }, h("div", { slot: "title", class: "s-offer-products-thumbnails" }, h("span", { class: "s-offer-products-title" }, this.products_link_text, h("i", { class: `sicon-keyboard_arrow_${isCollapsed ? 'down' : 'up'} s-offer-products-link-icon` })), h("div", { class: "s-offer-products-thumbnails-stack" }, products.slice(0, 3).map((product, index) => (h("div", { class: "s-offer-product-thumbnail", style: { zIndex: `${index + 1}` } }, h("img", { src: product.thumbnail || product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.name })))), products.length > 3 && (h("div", { class: "s-offer-products-more-count", style: { zIndex: '7' } }, "+", products.length - 3))))), h("salla-accordion-body", null, h("div", { class: "s-offer-products-content" }, h("salla-products-list", { source: "selected", "source-value": JSON.stringify(products.map(p => p.id)), "product-card-component": this.productCardComponent, "horizontal-cards": true, "compact-cards": true, includes: ["images"] })))))));
305
308
  }
306
309
  renderOfferCard(offer, position = 1) {
307
310
  return (h("div", { class: "s-offer-slide-one-fourth swiper-slide", onClick: () => this.emitPromotionClicked(offer, position) }, h("div", { class: "s-offer-card" }, h("div", { class: "s-offer-card-icon" }, this.getOfferIcon(offer.type)), h("div", { class: "s-offer-card-content" }, h("h3", { class: "s-offer-card-title", title: offer.title }, offer.title), offer.description && h("p", { class: "s-offer-card-description" }, offer.description), h("div", { class: "s-offer-card-details" }, offer.type === OfferType.DiscountsTable
@@ -310,11 +313,13 @@ export class SallaOffer {
310
313
  ? [
311
314
  this.renderPercentageOrFixedOfferContent(offer),
312
315
  this.renderOfferCategories(offer),
313
- this.renderOfferBrands(offer)
316
+ this.renderOfferBrands(offer),
317
+ this.renderOfferTags(offer)
314
318
  ]
315
319
  : [
316
320
  this.renderOfferCategories(offer),
317
- this.renderOfferBrands(offer)
321
+ this.renderOfferBrands(offer),
322
+ this.renderOfferTags(offer)
318
323
  ], this.renderProductsLinkForModalCard(offer, false))))));
319
324
  }
320
325
  getOfferIcon(offerType) {
@@ -394,6 +399,21 @@ export class SallaOffer {
394
399
  this.toggleCategoryExpansion(offer.id);
395
400
  } }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${brands.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
396
401
  }
402
+ renderOfferTags(offer) {
403
+ const details = offer.details;
404
+ const tags = details.tags || [];
405
+ if (!tags.length)
406
+ return null;
407
+ const maxVisible = 3;
408
+ const isExpanded = this.expandedCategories[offer.id];
409
+ const shouldShowMore = tags.length > maxVisible;
410
+ const visibleTags = isExpanded ? tags : tags.slice(0, maxVisible);
411
+ return (h("div", { class: "s-offer-categories" }, h("div", { class: "s-offer-categories-list" }, visibleTags.map((tag, index) => (h("a", { key: index, class: "s-offer-category-item", href: tag.url || salla.url.create('tags', tag.id) }, tag.name))), shouldShowMore && (h("span", { class: "s-offer-categories-toggle", onClick: (e) => {
412
+ e.preventDefault();
413
+ e.stopPropagation();
414
+ this.toggleCategoryExpansion(offer.id);
415
+ } }, isExpanded ? (h("span", null, h("i", { class: "sicon-keyboard_arrow_up" }), ' ', salla.lang.get('common.elements.hide', 'إخفاء'))) : (h("span", null, salla.lang.get('common.elements.show', 'عرض'), " ", `+${tags.length - maxVisible}`, ' ', h("i", { class: "sicon-keyboard_arrow_down" }))))))));
416
+ }
397
417
  /**
398
418
  * Toggle category expansion for a specific offer
399
419
  */