@salla.sa/twilight-components 3.0.25 → 3.0.27

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 (368) hide show
  1. package/dist/cjs/{Helper-BSFw7uVh.js → Helper-CFeUiEPn.js} +1 -1
  2. package/dist/cjs/{filepond-DzJcpvBM.js → filepond-Cn3JTrL1.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-BILkbyw_.js → filepond-plugin-file-poster-BOIM6p80.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-DIJUAZji.js → filepond-plugin-file-validate-size-YTjl_kR1.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-4lpOf3hf.js → filepond-plugin-file-validate-type-ByB9Nk2o.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-DtE3Wj_4.js → filepond-plugin-image-edit-DT7UG1he.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-Dc_jwifJ.js → filepond-plugin-image-exif-orientation-CNqCjRvG.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-D_8qt0dd.js → filepond-plugin-image-preview-dsQXwutz.js} +1 -1
  9. package/dist/cjs/{index-D0d25H-r.js → index-DF5Yp06H.js} +6 -6
  10. package/dist/cjs/info-Do5bVPmK.js +13 -0
  11. package/dist/cjs/{intlTelInput-DqmuleM6.js → intlTelInput-CRlVjvSW.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -9
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-applied-filters.cjs.entry.js +2 -2
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +120 -5
  28. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-comment-form_9.cjs.entry.js +2 -2
  31. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  39. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-mobile-update-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
  67. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-order-items.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-order-payment.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-order-rewards.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-order-totals-card.cjs.entry.js +27 -6
  84. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  85. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  101. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-thank-you-header.cjs.entry.js +1 -1
  106. package/dist/cjs/salla-thank-you-page.cjs.entry.js +1 -1
  107. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  108. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  109. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  110. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  111. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  112. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  113. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  114. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  115. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +2 -2
  116. package/dist/cjs/twilight.cjs.js +2 -2
  117. package/dist/cjs/{vanilla-picker-DP9Hy8IR.js → vanilla-picker-qYmOs8Yb.js} +1 -1
  118. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +152 -59
  119. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +123 -4
  120. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +3 -0
  121. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +25 -4
  122. package/dist/components/index.js +2 -2
  123. package/dist/components/info.js +11 -0
  124. package/dist/components/salla-bottom-alert.js +2 -8
  125. package/dist/components/salla-cart-summary-card.js +124 -5
  126. package/dist/components/salla-order-totals-card.js +26 -5
  127. package/dist/docs.json +3 -3
  128. package/dist/esm/{Helper-DmnUAusv.js → Helper-DE5KHY4U.js} +1 -1
  129. package/dist/esm/{filepond-DZbzdjkK.js → filepond-DbayHaoA.js} +1 -1
  130. package/dist/esm/{filepond-plugin-file-poster-D9cjvoj-.js → filepond-plugin-file-poster-Dy8NIhDv.js} +1 -1
  131. package/dist/esm/{filepond-plugin-file-validate-size-D-kjllC-.js → filepond-plugin-file-validate-size-Bn4zxXDf.js} +1 -1
  132. package/dist/esm/{filepond-plugin-file-validate-type-D9hsNaJl.js → filepond-plugin-file-validate-type-DmygkxtH.js} +1 -1
  133. package/dist/esm/{filepond-plugin-image-edit-CDHAxJY8.js → filepond-plugin-image-edit-BuO-l19h.js} +1 -1
  134. package/dist/esm/{filepond-plugin-image-exif-orientation-BGKiclwK.js → filepond-plugin-image-exif-orientation-COCmniWP.js} +1 -1
  135. package/dist/esm/{filepond-plugin-image-preview-BUjvnt8G.js → filepond-plugin-image-preview-D1i9Fj6F.js} +1 -1
  136. package/dist/esm/{index-ze9e0dxM.js → index-DvJClBwJ.js} +6 -6
  137. package/dist/esm/info-OdOOjQZO.js +11 -0
  138. package/dist/esm/{intlTelInput-BkYRB6km.js → intlTelInput-WsfvuLBW.js} +1 -1
  139. package/dist/esm/loader.js +3 -3
  140. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  141. package/dist/esm/salla-accordion_6.entry.js +2 -2
  142. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  143. package/dist/esm/salla-advertisement.entry.js +1 -1
  144. package/dist/esm/salla-alert_2.entry.js +3 -9
  145. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  146. package/dist/esm/salla-applied-filters.entry.js +2 -2
  147. package/dist/esm/salla-apps-icons.entry.js +1 -1
  148. package/dist/esm/salla-attachment-view_9.entry.js +11 -11
  149. package/dist/esm/salla-badge.entry.js +1 -1
  150. package/dist/esm/salla-basket-gap.entry.js +1 -1
  151. package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
  152. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  153. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  154. package/dist/esm/salla-cart-summary-card.entry.js +120 -5
  155. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  156. package/dist/esm/salla-comment-factors.entry.js +1 -1
  157. package/dist/esm/salla-comment-form_9.entry.js +2 -2
  158. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  159. package/dist/esm/salla-contacts.entry.js +1 -1
  160. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  161. package/dist/esm/salla-count-down.entry.js +1 -1
  162. package/dist/esm/salla-custom-fields.entry.js +1 -1
  163. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  164. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  165. package/dist/esm/salla-filters-widget.entry.js +2 -2
  166. package/dist/esm/salla-filters.entry.js +2 -2
  167. package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
  168. package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
  169. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  170. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  171. package/dist/esm/salla-gifting.entry.js +1 -1
  172. package/dist/esm/salla-hook.entry.js +1 -1
  173. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  174. package/dist/esm/salla-installment.entry.js +1 -1
  175. package/dist/esm/salla-list-tile.entry.js +1 -1
  176. package/dist/esm/salla-localization-modal.entry.js +1 -1
  177. package/dist/esm/salla-login-modal.entry.js +1 -1
  178. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  179. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  180. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  181. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  182. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  183. package/dist/esm/salla-loyalty.entry.js +1 -1
  184. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  185. package/dist/esm/salla-map_3.entry.js +1 -1
  186. package/dist/esm/salla-menu.entry.js +1 -1
  187. package/dist/esm/salla-metadata.entry.js +1 -1
  188. package/dist/esm/salla-mobile-update-modal.entry.js +1 -1
  189. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  190. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  191. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  192. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  193. package/dist/esm/salla-notification-item_2.entry.js +2 -2
  194. package/dist/esm/salla-offer-modal.entry.js +1 -1
  195. package/dist/esm/salla-offer.entry.js +1 -1
  196. package/dist/esm/salla-order-branch.entry.js +1 -1
  197. package/dist/esm/salla-order-cancel.entry.js +1 -1
  198. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  199. package/dist/esm/salla-order-details-options.entry.js +1 -1
  200. package/dist/esm/salla-order-details.entry.js +1 -1
  201. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  202. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  203. package/dist/esm/salla-order-edit.entry.js +1 -1
  204. package/dist/esm/salla-order-items.entry.js +1 -1
  205. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  206. package/dist/esm/salla-order-payment.entry.js +1 -1
  207. package/dist/esm/salla-order-rewards.entry.js +1 -1
  208. package/dist/esm/salla-order-shipments.entry.js +1 -1
  209. package/dist/esm/salla-order-summary.entry.js +1 -1
  210. package/dist/esm/salla-order-totals-card.entry.js +27 -6
  211. package/dist/esm/salla-orders.entry.js +2 -2
  212. package/dist/esm/salla-payments.entry.js +1 -1
  213. package/dist/esm/salla-placeholder.entry.js +1 -1
  214. package/dist/esm/salla-price-range.entry.js +1 -1
  215. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  216. package/dist/esm/salla-product-card.entry.js +1 -1
  217. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  218. package/dist/esm/salla-products-list.entry.js +2 -2
  219. package/dist/esm/salla-products-slider.entry.js +2 -2
  220. package/dist/esm/salla-quick-order.entry.js +1 -1
  221. package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
  222. package/dist/esm/salla-rating-modal.entry.js +2 -2
  223. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  224. package/dist/esm/salla-review-order-item.entry.js +1 -1
  225. package/dist/esm/salla-scopes.entry.js +1 -1
  226. package/dist/esm/salla-search-product-card.entry.js +1 -1
  227. package/dist/esm/salla-search.entry.js +2 -2
  228. package/dist/esm/salla-skeleton.entry.js +1 -1
  229. package/dist/esm/salla-social-share.entry.js +1 -1
  230. package/dist/esm/salla-social.entry.js +1 -1
  231. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  232. package/dist/esm/salla-thank-you-header.entry.js +1 -1
  233. package/dist/esm/salla-thank-you-page.entry.js +1 -1
  234. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  235. package/dist/esm/salla-trust-badges.entry.js +1 -1
  236. package/dist/esm/salla-user-menu.entry.js +1 -1
  237. package/dist/esm/salla-user-profile.entry.js +1 -1
  238. package/dist/esm/salla-user-settings.entry.js +1 -1
  239. package/dist/esm/salla-verify.entry.js +1 -1
  240. package/dist/esm/salla-wallet.entry.js +1 -1
  241. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  242. package/dist/esm/salla-wishlist-summary.entry.js +2 -2
  243. package/dist/esm/twilight.js +3 -3
  244. package/dist/esm/{vanilla-picker-CxhuwWDi.js → vanilla-picker-DdilrJ6c.js} +1 -1
  245. package/dist/twilight/{p-bd06c200.entry.js → p-00c35c9f.entry.js} +1 -1
  246. package/dist/twilight/{p-67cf7454.entry.js → p-00f9aefc.entry.js} +1 -1
  247. package/dist/twilight/{p-da60995f.entry.js → p-029f809b.entry.js} +1 -1
  248. package/dist/twilight/{p-dceb3725.entry.js → p-02a06dcb.entry.js} +1 -1
  249. package/dist/twilight/{p-3ec3e9fb.entry.js → p-03dc3837.entry.js} +1 -1
  250. package/dist/twilight/{p-024ecda2.entry.js → p-054f32c4.entry.js} +1 -1
  251. package/dist/twilight/{p-78c04993.entry.js → p-069df650.entry.js} +1 -1
  252. package/dist/twilight/p-0a1a172d.entry.js +4 -0
  253. package/dist/twilight/{p-de10d0c3.entry.js → p-0ac5f79f.entry.js} +1 -1
  254. package/dist/twilight/{p-331003bc.entry.js → p-0c1bbd55.entry.js} +1 -1
  255. package/dist/twilight/{p-d89328d7.entry.js → p-0c4e99b4.entry.js} +1 -1
  256. package/dist/twilight/{p-fb955257.entry.js → p-0c65d35a.entry.js} +1 -1
  257. package/dist/twilight/{p-b297fe2e.entry.js → p-0d357ae2.entry.js} +1 -1
  258. package/dist/twilight/{p-11eb8675.entry.js → p-0ded0dc1.entry.js} +1 -1
  259. package/dist/twilight/p-13309e4e.entry.js +4 -0
  260. package/dist/twilight/{p-bf5b5f52.entry.js → p-16d49b35.entry.js} +1 -1
  261. package/dist/twilight/{p-f9dd6b3e.entry.js → p-19896b94.entry.js} +1 -1
  262. package/dist/twilight/{p-dbb4db25.entry.js → p-1b6b5a3c.entry.js} +1 -1
  263. package/dist/twilight/{p-d2396143.entry.js → p-1ce1b6dc.entry.js} +1 -1
  264. package/dist/twilight/{p-3a2ff4d6.entry.js → p-1d1bef93.entry.js} +1 -1
  265. package/dist/twilight/{p-4cf81a44.entry.js → p-1fce7e50.entry.js} +1 -1
  266. package/dist/twilight/{p-c122e9c1.entry.js → p-1ff27daa.entry.js} +1 -1
  267. package/dist/twilight/{p-97c5b11d.entry.js → p-22db0366.entry.js} +1 -1
  268. package/dist/twilight/p-24abaa09.entry.js +4 -0
  269. package/dist/twilight/{p-37b64e36.entry.js → p-29349910.entry.js} +1 -1
  270. package/dist/twilight/{p-d300a117.entry.js → p-29e3685e.entry.js} +1 -1
  271. package/dist/twilight/{p-71ce8e4f.entry.js → p-301a42aa.entry.js} +1 -1
  272. package/dist/twilight/{p-e849f5ef.entry.js → p-30919203.entry.js} +1 -1
  273. package/dist/twilight/{p-4c191ab4.entry.js → p-309edef2.entry.js} +1 -1
  274. package/dist/twilight/{p-7731e280.entry.js → p-3356b015.entry.js} +1 -1
  275. package/dist/twilight/{p-8d3c5d1f.entry.js → p-366403da.entry.js} +1 -1
  276. package/dist/twilight/{p-446e3f38.entry.js → p-36ee91e5.entry.js} +1 -1
  277. package/dist/twilight/{p-ed96c703.entry.js → p-388e49fe.entry.js} +1 -1
  278. package/dist/twilight/p-3a5604b1.entry.js +4 -0
  279. package/dist/twilight/{p-2dcd24fe.entry.js → p-3eae2216.entry.js} +1 -1
  280. package/dist/twilight/{p-5ceda3d5.entry.js → p-41b57414.entry.js} +1 -1
  281. package/dist/twilight/{p-776f9492.entry.js → p-43eb35a7.entry.js} +1 -1
  282. package/dist/twilight/{p-0c022fbd.entry.js → p-44621e3a.entry.js} +1 -1
  283. package/dist/twilight/{p-ffc7f526.entry.js → p-450cdcc4.entry.js} +1 -1
  284. package/dist/twilight/{p-5d8937c5.entry.js → p-46ae40a3.entry.js} +1 -1
  285. package/dist/twilight/{p-6d6b99fe.entry.js → p-4d5abe91.entry.js} +1 -1
  286. package/dist/twilight/{p-519cf4c2.entry.js → p-4e9c9419.entry.js} +1 -1
  287. package/dist/twilight/{p-5f9d87ec.entry.js → p-50898992.entry.js} +1 -1
  288. package/dist/twilight/{p-8b0b6bca.entry.js → p-52011986.entry.js} +1 -1
  289. package/dist/twilight/{p-cbd056ba.entry.js → p-52e24b0f.entry.js} +1 -1
  290. package/dist/twilight/{p-b6098938.entry.js → p-536a1841.entry.js} +1 -1
  291. package/dist/twilight/{p-47c79c49.entry.js → p-5865e825.entry.js} +1 -1
  292. package/dist/twilight/{p-20949dfb.entry.js → p-591694a7.entry.js} +1 -1
  293. package/dist/twilight/{p-474d882c.entry.js → p-60cd3462.entry.js} +1 -1
  294. package/dist/twilight/{p-9acfe389.entry.js → p-628ef86c.entry.js} +1 -1
  295. package/dist/twilight/{p-dfde387f.entry.js → p-630cce26.entry.js} +1 -1
  296. package/dist/twilight/{p-a7566af2.entry.js → p-6569bfee.entry.js} +1 -1
  297. package/dist/twilight/{p-57fafaba.entry.js → p-66f02fad.entry.js} +1 -1
  298. package/dist/twilight/{p-cdeaf60b.entry.js → p-6936e0a4.entry.js} +1 -1
  299. package/dist/twilight/{p-7fffa509.entry.js → p-6c5bd5ad.entry.js} +1 -1
  300. package/dist/twilight/{p-93571975.entry.js → p-6d0ad265.entry.js} +1 -1
  301. package/dist/twilight/{p-9fe5c0f5.entry.js → p-6e79128e.entry.js} +1 -1
  302. package/dist/twilight/{p-07e581af.entry.js → p-6ff4df6b.entry.js} +1 -1
  303. package/dist/twilight/{p-bb137dbb.entry.js → p-73f1697f.entry.js} +1 -1
  304. package/dist/twilight/{p-008740fe.entry.js → p-741cc4a4.entry.js} +1 -1
  305. package/dist/twilight/{p-c6f09614.entry.js → p-74e3b033.entry.js} +1 -1
  306. package/dist/twilight/{p-02b7dfcc.entry.js → p-7e421e8a.entry.js} +1 -1
  307. package/dist/twilight/{p-08be494e.entry.js → p-8056b437.entry.js} +1 -1
  308. package/dist/twilight/{p-89598ad3.entry.js → p-84b35a50.entry.js} +1 -1
  309. package/dist/twilight/{p-2aa9147c.entry.js → p-85bf4c43.entry.js} +1 -1
  310. package/dist/twilight/{p-0fd15433.entry.js → p-85e43124.entry.js} +1 -1
  311. package/dist/twilight/{p-1ca39f1c.entry.js → p-8a614038.entry.js} +1 -1
  312. package/dist/twilight/{p-BjUh9YCs.js → p-8iHhuUVM.js} +1 -1
  313. package/dist/twilight/{p-455a4702.entry.js → p-93439ac4.entry.js} +1 -1
  314. package/dist/twilight/{p-cb961f05.entry.js → p-963eb26d.entry.js} +1 -1
  315. package/dist/twilight/{p-bf65d2fa.entry.js → p-989e3cd6.entry.js} +1 -1
  316. package/dist/twilight/{p-4ec15515.entry.js → p-98cf67a5.entry.js} +1 -1
  317. package/dist/twilight/{p-16e2a110.entry.js → p-9ec3124c.entry.js} +1 -1
  318. package/dist/twilight/{p-9dd7cf71.entry.js → p-9ed41657.entry.js} +1 -1
  319. package/dist/twilight/{p-CICtuB_u.js → p-B1r6DqQZ.js} +1 -1
  320. package/dist/twilight/{p-DOUAavek.js → p-B8bJ6Bp4.js} +1 -1
  321. package/dist/twilight/{p-BpJsOjKP.js → p-BAfdlulm.js} +1 -1
  322. package/dist/twilight/{p-cykIAOlk.js → p-BHVWJBhN.js} +1 -1
  323. package/dist/twilight/{p-BlPdaFn2.js → p-BddjrRgx.js} +1 -1
  324. package/dist/twilight/{p-wYYV5ykR.js → p-CeKF1bL-.js} +1 -1
  325. package/dist/twilight/{p-ze9e0dxM.js → p-DvJClBwJ.js} +1 -1
  326. package/dist/twilight/{p-B8nGVDvQ.js → p-FYANWJHV.js} +1 -1
  327. package/dist/twilight/p-OdOOjQZO.js +4 -0
  328. package/dist/twilight/{p-C9ldyQUq.js → p-UebnA4Q1.js} +1 -1
  329. package/dist/twilight/{p-830abcc1.entry.js → p-a460c4be.entry.js} +1 -1
  330. package/dist/twilight/{p-792494c8.entry.js → p-a7297a33.entry.js} +1 -1
  331. package/dist/twilight/{p-f23ada45.entry.js → p-ac4b8722.entry.js} +1 -1
  332. package/dist/twilight/{p-5b118b5b.entry.js → p-accfd79c.entry.js} +1 -1
  333. package/dist/twilight/{p-e23b84bf.entry.js → p-adfdfe9d.entry.js} +1 -1
  334. package/dist/twilight/{p-73649c81.entry.js → p-ae1c28e0.entry.js} +1 -1
  335. package/dist/twilight/{p-f7c06bee.entry.js → p-b06cad39.entry.js} +1 -1
  336. package/dist/twilight/{p-59694c45.entry.js → p-b47ffe8e.entry.js} +1 -1
  337. package/dist/twilight/{p-75ad7f14.entry.js → p-be357093.entry.js} +1 -1
  338. package/dist/twilight/{p-8077d8b6.entry.js → p-c1b6d4ba.entry.js} +1 -1
  339. package/dist/twilight/{p-5e0f85ae.entry.js → p-c9e04a12.entry.js} +1 -1
  340. package/dist/twilight/{p-b71673ee.entry.js → p-ca20c66e.entry.js} +1 -1
  341. package/dist/twilight/{p-97fa91db.entry.js → p-cc84061b.entry.js} +1 -1
  342. package/dist/twilight/{p-d089ac6d.entry.js → p-cefd664d.entry.js} +1 -1
  343. package/dist/twilight/{p-a7849674.entry.js → p-d1fac437.entry.js} +1 -1
  344. package/dist/twilight/{p-7a985fe3.entry.js → p-d6015b0c.entry.js} +1 -1
  345. package/dist/twilight/{p-a865995d.entry.js → p-d6728c04.entry.js} +1 -1
  346. package/dist/twilight/{p-e3dd9502.entry.js → p-d7537ab1.entry.js} +1 -1
  347. package/dist/twilight/{p-9a2567e2.entry.js → p-d81a6a32.entry.js} +1 -1
  348. package/dist/twilight/{p-12a52f1b.entry.js → p-d8856c7b.entry.js} +1 -1
  349. package/dist/twilight/{p-45a7d444.entry.js → p-da3c7ee3.entry.js} +1 -1
  350. package/dist/twilight/{p-75f7f1d8.entry.js → p-e276cb82.entry.js} +1 -1
  351. package/dist/twilight/{p-c0301e00.entry.js → p-e73bc00f.entry.js} +1 -1
  352. package/dist/twilight/{p-03b2df97.entry.js → p-e785df2d.entry.js} +1 -1
  353. package/dist/twilight/{p-da0349f9.entry.js → p-e81d544a.entry.js} +1 -1
  354. package/dist/twilight/{p-7790a9a1.entry.js → p-e8414134.entry.js} +1 -1
  355. package/dist/twilight/{p-d61298f8.entry.js → p-ea0de552.entry.js} +1 -1
  356. package/dist/twilight/{p-a1a650ab.entry.js → p-ea58a665.entry.js} +1 -1
  357. package/dist/twilight/{p-770142fe.entry.js → p-f6b86d47.entry.js} +1 -1
  358. package/dist/twilight/{p-f054cf8e.entry.js → p-fbd7def8.entry.js} +1 -1
  359. package/dist/twilight/{p-CNQaYCUJ.js → p-zPvqMpJX.js} +1 -1
  360. package/dist/twilight/twilight.esm.js +1 -1
  361. package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +26 -0
  362. package/dist/types/components/salla-order-totals-card/interfaces.d.ts +8 -3
  363. package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +2 -1
  364. package/package.json +5 -5
  365. package/dist/twilight/p-0c0b2b36.entry.js +0 -4
  366. package/dist/twilight/p-61b98119.entry.js +0 -4
  367. package/dist/twilight/p-8d096f95.entry.js +0 -4
  368. package/dist/twilight/p-be8c42f1.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as t,h as e,a as i}from"./p-ze9e0dxM.js";const s=class{constructor(e){t(this,e),this.currentSlug=salla.config.get("page.slug"),salla.onReady((()=>{this.currentSlug=salla.config.get("page.slug")})),this.advSlot=this.host.querySelector('[slot="adv"]')?.innerHTML||'<div class="s-advertisement-content"><span class="s-advertisement-content-main">{iconElem}{urlElem}</span>{closeElem}</div>\n '}isNotVisible(t){return!(salla.config.isDebug()||salla.helpers.isPreview()||!salla.storage.get(`statusAd-${t.id}`))}setCanDisplayFlag(t,e){if(!e){salla.storage.set(`statusAd-${t.id}`,"dismissed");const e=Array.from(this.host.querySelectorAll(".s-advertisement:not(.s-hidden)")).filter((e=>e.getAttribute("data-id")!==String(t.id)));if(e.length)return this.host.querySelector(`.s-advertisement[data-id="${t.id}"]`)?.classList.add("s-hidden"),void this.host.style.setProperty("--s-advertisement-height",`${e.reduce(((t,e)=>t+e.getBoundingClientRect().height),0)}px`);this.animateHost("out")}}animateHost(t){this.host.style.setProperty("--s-advertisement-height",`${this.host.clientHeight}px`),this.host.classList.remove("s-advertisement-animate-in","s-advertisement-animate-out"),this.host.getBoundingClientRect(),this.host.classList.add(`s-advertisement-animate-${t}`)}render(){if((!Array.isArray(this.advertisements)||this.advertisements.length)&&this.advertisements)return this.advertisements.map((t=>e("div",{class:{"s-hidden":this.isNotVisible(t),"s-advertisement":!0},"data-id":t.id,style:{"background-color":t.colors.bg,color:t.colors.text}},e("div",{id:"adv-slot",innerHTML:this.advSlot.replace("{iconElem}",`<i class="s-advertisement-content-icon ${t.icon}"></i>`).replace("{urlElem}",t.url?`<a href="${t.url}" target="${t.target}">${t.description}</a>`:t.description).replace("{closeElem}",'<button class="s-advertisement-action" aria-label="close-alert"><i class="sicon-cancel"></i></button>').replace("{icon}",t.icon).replace("{url}",t.url).replace("{target}",t.target).replace("{description}",t.description).replace("{bg_color}",t.colors.bg).replace("{text_color}",t.colors.text)}))))}componentWillLoad(){return(async()=>{if(salla.config.isMobileApp())return[];const t=salla.config.isDebug()||salla.helpers.isPreview();await new Promise((t=>salla.onReady(t)));const e=t?null:this.currentSlug,i=await salla.api.advertisement.fetch(e);if(Array.isArray(i.data)){const e=i.data;this.advertisements=t?e:e.filter((t=>!salla.storage.get(`statusAd-${t.id}`)))}else this.advertisements=[];return this.advertisements})()}componentDidRender(){Array.isArray(this.advertisements)&&!this.advertisements.length||!this.advertisements||(setTimeout((()=>{this.host.querySelectorAll(".s-advertisement").forEach((t=>{const e=this.advertisements.find((e=>String(e.id)===t.getAttribute("data-id")));t.querySelector(".s-advertisement-action")?.addEventListener("click",(()=>this.setCanDisplayFlag(e,!1)))}))})),this.host.querySelectorAll("#adv-slot").forEach((t=>t?.replaceWith(t?.firstChild))),this.host.querySelector('[slot="adv"]')?.remove(),this.animateHost("in"))}get host(){return i(this)}};s.style='/*!twlt*/:host{display:block}.s-advertisement-animate-in{animation:s-advertisement-in 300ms cubic-bezier(0.45, 0, 0.55, 1) both}.s-advertisement-animate-out{animation:s-advertisement-out 300ms cubic-bezier(0.45, 0, 0.55, 1) both}@keyframes s-advertisement-in{from{height:0;opacity:0}to{height:var(--s-advertisement-height);opacity:1}}@keyframes s-advertisement-out{from{height:var(--s-advertisement-height);opacity:1}to{height:0;opacity:0}}.visible{visibility:visible}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-hidden{display:none}.s-advertisement-content{width:100%;margin-right:auto;margin-left:auto;padding-right:10px;padding-left:10px}@media (min-width: 1280px){.s-advertisement-content{max-width:1280px}}.s-advertisement-content{display:flex;align-items:center;justify-content:space-between;padding-top:0.625rem;padding-bottom:0.625rem}.s-advertisement-content-main{flex:1 1 0%;text-align:center;font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-advertisement-content-icon{display:inline-block;vertical-align:middle;font-size:1rem;line-height:1.5rem}.s-advertisement-content-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0.5rem}.s-advertisement-content-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0.5rem}.s-advertisement-action{padding-left:0.25rem;padding-right:0.25rem}';export{s as salla_advertisement}
4
+ import{r as t,h as e,a as i}from"./p-DvJClBwJ.js";const s=class{constructor(e){t(this,e),this.currentSlug=salla.config.get("page.slug"),salla.onReady((()=>{this.currentSlug=salla.config.get("page.slug")})),this.advSlot=this.host.querySelector('[slot="adv"]')?.innerHTML||'<div class="s-advertisement-content"><span class="s-advertisement-content-main">{iconElem}{urlElem}</span>{closeElem}</div>\n '}isNotVisible(t){return!(salla.config.isDebug()||salla.helpers.isPreview()||!salla.storage.get(`statusAd-${t.id}`))}setCanDisplayFlag(t,e){if(!e){salla.storage.set(`statusAd-${t.id}`,"dismissed");const e=Array.from(this.host.querySelectorAll(".s-advertisement:not(.s-hidden)")).filter((e=>e.getAttribute("data-id")!==String(t.id)));if(e.length)return this.host.querySelector(`.s-advertisement[data-id="${t.id}"]`)?.classList.add("s-hidden"),void this.host.style.setProperty("--s-advertisement-height",`${e.reduce(((t,e)=>t+e.getBoundingClientRect().height),0)}px`);this.animateHost("out")}}animateHost(t){this.host.style.setProperty("--s-advertisement-height",`${this.host.clientHeight}px`),this.host.classList.remove("s-advertisement-animate-in","s-advertisement-animate-out"),this.host.getBoundingClientRect(),this.host.classList.add(`s-advertisement-animate-${t}`)}render(){if((!Array.isArray(this.advertisements)||this.advertisements.length)&&this.advertisements)return this.advertisements.map((t=>e("div",{class:{"s-hidden":this.isNotVisible(t),"s-advertisement":!0},"data-id":t.id,style:{"background-color":t.colors.bg,color:t.colors.text}},e("div",{id:"adv-slot",innerHTML:this.advSlot.replace("{iconElem}",`<i class="s-advertisement-content-icon ${t.icon}"></i>`).replace("{urlElem}",t.url?`<a href="${t.url}" target="${t.target}">${t.description}</a>`:t.description).replace("{closeElem}",'<button class="s-advertisement-action" aria-label="close-alert"><i class="sicon-cancel"></i></button>').replace("{icon}",t.icon).replace("{url}",t.url).replace("{target}",t.target).replace("{description}",t.description).replace("{bg_color}",t.colors.bg).replace("{text_color}",t.colors.text)}))))}componentWillLoad(){return(async()=>{if(salla.config.isMobileApp())return[];const t=salla.config.isDebug()||salla.helpers.isPreview();await new Promise((t=>salla.onReady(t)));const e=t?null:this.currentSlug,i=await salla.api.advertisement.fetch(e);if(Array.isArray(i.data)){const e=i.data;this.advertisements=t?e:e.filter((t=>!salla.storage.get(`statusAd-${t.id}`)))}else this.advertisements=[];return this.advertisements})()}componentDidRender(){Array.isArray(this.advertisements)&&!this.advertisements.length||!this.advertisements||(setTimeout((()=>{this.host.querySelectorAll(".s-advertisement").forEach((t=>{const e=this.advertisements.find((e=>String(e.id)===t.getAttribute("data-id")));t.querySelector(".s-advertisement-action")?.addEventListener("click",(()=>this.setCanDisplayFlag(e,!1)))}))})),this.host.querySelectorAll("#adv-slot").forEach((t=>t?.replaceWith(t?.firstChild))),this.host.querySelector('[slot="adv"]')?.remove(),this.animateHost("in"))}get host(){return i(this)}};s.style='/*!twlt*/:host{display:block}.s-advertisement-animate-in{animation:s-advertisement-in 300ms cubic-bezier(0.45, 0, 0.55, 1) both}.s-advertisement-animate-out{animation:s-advertisement-out 300ms cubic-bezier(0.45, 0, 0.55, 1) both}@keyframes s-advertisement-in{from{height:0;opacity:0}to{height:var(--s-advertisement-height);opacity:1}}@keyframes s-advertisement-out{from{height:var(--s-advertisement-height);opacity:1}to{height:0;opacity:0}}.visible{visibility:visible}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-hidden{display:none}.s-advertisement-content{width:100%;margin-right:auto;margin-left:auto;padding-right:10px;padding-left:10px}@media (min-width: 1280px){.s-advertisement-content{max-width:1280px}}.s-advertisement-content{display:flex;align-items:center;justify-content:space-between;padding-top:0.625rem;padding-bottom:0.625rem}.s-advertisement-content-main{flex:1 1 0%;text-align:center;font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-advertisement-content-icon{display:inline-block;vertical-align:middle;font-size:1rem;line-height:1.5rem}.s-advertisement-content-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0.5rem}.s-advertisement-content-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0.5rem}.s-advertisement-action{padding-left:0.25rem;padding-right:0.25rem}';export{s as salla_advertisement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as e,h as t,F as i}from"./p-ze9e0dxM.js";const r=class{constructor(t){e(this,t),this.source="header",this.useReactLink=!1,this.menus=[],this.displayAllText=""}async componentWillLoad(){return salla.onReady((()=>{if(this.displayAllText=salla.lang.get("blocks.home.display_all"),!this.sourceValue||"json"!==this.source)return this.getMenuItems();this.menus="string"==typeof this.sourceValue?JSON.parse(this.sourceValue):this.sourceValue||[]}))}getMenuItems(){return salla.api.component.getMenus(this.source).then((async({data:e})=>{this.menus=e,await salla.hooks.call("salla-menu","afterFetchMenuItems",this)})).catch((e=>{salla.logger.error("salla-menu::Error fetching menus",e)}))}hasChildren(e){return e?.children?.length>0}hasProducts(e){return e?.products?.length>0}getDesktopClasses(e,t){return`s-menu-desktop-item !hidden lg:!block ${t?"root-level s-menu-root-level lg:!inline-block":"s-menu-non-root-level relative"} ${e.products?" mega-menu s-menu-mega-menu":""}\n ${this.hasChildren(e)?"has-children s-menu-has-children":""}`}getAttributes(e){return e.trim().split(" ").reduce(((e,t)=>{let[i,r]=t.split("=");return e[i]=r.replace(/"/g,""),e}),{})}getMobileMenu(e,r){const n=e.image?t("img",{src:e.image,class:"s-menu-category-image rounded-full",width:"48",height:"48",alt:e.title}):null;return t("li",{class:"s-menu-mobile-item lg:hidden text-sm font-bold",...this.getAttributes(e.attrs)},this.hasChildren(e)?t(i,null,t("span",{class:e.image?"s-menu-title-with-image !py-3":""},n,e.title),t("ul",null,t("li",{class:"s-menu-mobile-sub-menu-item text-sm font-bold"},t("a",{href:e.url,class:"s-menu-mobile-link text-gray-500"},r)),e.children.map((e=>this.getMobileMenu(e,r))))):t("a",{href:e.url,"aria-label":e.title||"category",class:"s-menu-mobile-link text-gray-500 "+(e.image?"s-menu-title-with-image !py-3":""),...this.getAttributes(e.link_attrs)},n,t("span",null,e.title||"")))}getDesktopMenu(e,i){return t("li",{class:this.getDesktopClasses(e,i),...this.getAttributes(e.attrs)},t("a",{href:e.url,"aria-label":e.title||"category",...this.getAttributes(e.link_attrs)},t("span",null,e.title)),this.hasChildren(e)?t("div",{class:"sub-menu s-menu-sub-menu shadow-default "+(this.hasProducts(e)?"s-menu-sub-menu-with-product w-full left-0 flex":"s-menu-sub-menu-without-product w-56")},t("ul",{class:this.hasProducts(e)?"s-menu-sub-menu-unordered-list w-56 shrink-0 m-8 rtl:ml-0 ltr:mr-0":""},e.children.map((e=>this.getDesktopMenu(e,!1)))),this.hasProducts(e)?t("div",{class:"s-menu-products-wrapper"},t("salla-products-list",{source:"selected","shadow-on-hover":!0,"source-value":`[${e.products}]`})):null):null)}getFooterMenu(e){const i=this.topnav||this.limit?e.slice(0,this.limit||3):e;return t("div",null,t("div",{class:{"s-menu-footer-list":!this.topnav,"s-menu-topnav-list":this.topnav}},i.map((e=>t("a",{key:e.id,href:e.url,target:e.target,class:{"s-menu-footer-item":!this.topnav,"s-menu-topnav-item topnav-link-item right-side":this.topnav},...e.callback?{onClick:e.callback}:{}},e.title)))))}getHeaderMenu(e){return e.map((e=>[this.getMobileMenu(e,this.displayAllText),this.getDesktopMenu(e,!0)]))}render(){return"footer"===this.source?this.getFooterMenu(this.menus):[t("nav",{key:"main-nav",id:"mobile-menu",class:"mobile-menu"},t("ul",{class:"main-menu"},this.getHeaderMenu(this.menus)),t("button",{class:"btn--close close-mobile-menu sicon-cancel lg:hidden"})),t("button",{key:"close-btn",class:"btn--close-sm close-mobile-menu sicon-cancel hidden"})]}};r.style='/*!twlt*/:host{display:block}.relative{position:relative}.left-0{left:0px}.m-8{margin:2rem}.flex{display:flex}.\\!hidden{display:none !important}.hidden{display:none}.w-56{width:14rem}.w-full{width:100%}.shrink-0{flex-shrink:0}.rounded-full{border-radius:9999px}.\\!py-3{padding-top:0.75rem !important;padding-bottom:0.75rem !important}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.shadow-default{--tw-shadow:5px 10px 30px #2B2D340D;--tw-shadow-colored:5px 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-menu-item{display:none !important}@media (min-width: 1024px){.s-menu-item{display:block !important}.s-menu-root-level{display:inline-block !important}}.s-menu-non-root-level{position:relative}.s-menu-products-container{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:1rem}.s-menu-submenu-unordered-list{margin:2rem;width:14rem;flex-shrink:0}.s-menu-submenu-unordered-list:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.s-menu-submenu-unordered-list:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}.s-menu-submenu-with-product{left:0px;display:flex;width:100%}.s-menu-submenu-without-product{width:14rem}.s-menu-desktop-item{display:none !important}@media (min-width: 1024px){.s-menu-desktop-item{display:block !important}}.s-menu-sub-menu-with-product{left:0px;display:flex;width:100%}.s-menu-sub-menu-without-product{width:14rem}.s-menu-sub-menu-unordered-list{margin:2rem;width:14rem;flex-shrink:0}.s-menu-sub-menu-unordered-list:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.s-menu-sub-menu-unordered-list:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}.s-menu-mobile-item{font-size:0.875rem;line-height:1.25rem;font-weight:700}@media (min-width: 1024px){.s-menu-mobile-item{display:none}}.s-menu-mobile-sub-menu-item{font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-menu-mobile-link{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-menu-category-image{border-radius:9999px}.s-menu-title-with-image{padding-top:0.75rem !important;padding-bottom:0.75rem !important}.s-menu-footer-item{margin-bottom:1.25rem;display:block;font-size:0.875rem;line-height:1.25rem;line-height:1}.s-menu-footer-item:last-child{margin-bottom:0px}.s-menu-topnav-list{display:none;align-items:center;white-space:nowrap}@media (min-width: 1024px){.s-menu-topnav-list{display:flex}}.s-menu-topnav-list:where([dir="ltr"],[dir="ltr"] *){padding-right:1rem}.s-menu-topnav-list:where([dir="rtl"],[dir="rtl"] *){padding-left:1rem}.s-menu-topnav-item{display:inline-block;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-left:1rem;padding-right:1rem;padding-top:1px;padding-bottom:1px;font-size:0.875rem;line-height:1.25rem;line-height:1;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-menu-topnav-item:hover{opacity:0.8}.s-menu-topnav-item:where([dir="ltr"],[dir="ltr"] *){border-right-width:1px}.s-menu-topnav-item:first-child:where([dir="ltr"],[dir="ltr"] *){padding-left:0px}.s-menu-topnav-item:last-child:where([dir="ltr"],[dir="ltr"] *){border-width:0px;padding-right:0px}.s-menu-topnav-item:where([dir="rtl"],[dir="rtl"] *){border-left-width:1px}.s-menu-topnav-item:first-child:where([dir="rtl"],[dir="rtl"] *){padding-right:0px}.s-menu-topnav-item:last-child:where([dir="rtl"],[dir="rtl"] *){border-width:0px;padding-left:0px}@media (min-width: 1024px){.lg\\:\\!block{display:block !important}.lg\\:\\!inline-block{display:inline-block !important}.lg\\:hidden{display:none}}.ltr\\:mr-0:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.rtl\\:ml-0:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}';export{r as salla_menu}
4
+ import{r as e,h as t,F as i}from"./p-DvJClBwJ.js";const r=class{constructor(t){e(this,t),this.source="header",this.useReactLink=!1,this.menus=[],this.displayAllText=""}async componentWillLoad(){return salla.onReady((()=>{if(this.displayAllText=salla.lang.get("blocks.home.display_all"),!this.sourceValue||"json"!==this.source)return this.getMenuItems();this.menus="string"==typeof this.sourceValue?JSON.parse(this.sourceValue):this.sourceValue||[]}))}getMenuItems(){return salla.api.component.getMenus(this.source).then((async({data:e})=>{this.menus=e,await salla.hooks.call("salla-menu","afterFetchMenuItems",this)})).catch((e=>{salla.logger.error("salla-menu::Error fetching menus",e)}))}hasChildren(e){return e?.children?.length>0}hasProducts(e){return e?.products?.length>0}getDesktopClasses(e,t){return`s-menu-desktop-item !hidden lg:!block ${t?"root-level s-menu-root-level lg:!inline-block":"s-menu-non-root-level relative"} ${e.products?" mega-menu s-menu-mega-menu":""}\n ${this.hasChildren(e)?"has-children s-menu-has-children":""}`}getAttributes(e){return e.trim().split(" ").reduce(((e,t)=>{let[i,r]=t.split("=");return e[i]=r.replace(/"/g,""),e}),{})}getMobileMenu(e,r){const n=e.image?t("img",{src:e.image,class:"s-menu-category-image rounded-full",width:"48",height:"48",alt:e.title}):null;return t("li",{class:"s-menu-mobile-item lg:hidden text-sm font-bold",...this.getAttributes(e.attrs)},this.hasChildren(e)?t(i,null,t("span",{class:e.image?"s-menu-title-with-image !py-3":""},n,e.title),t("ul",null,t("li",{class:"s-menu-mobile-sub-menu-item text-sm font-bold"},t("a",{href:e.url,class:"s-menu-mobile-link text-gray-500"},r)),e.children.map((e=>this.getMobileMenu(e,r))))):t("a",{href:e.url,"aria-label":e.title||"category",class:"s-menu-mobile-link text-gray-500 "+(e.image?"s-menu-title-with-image !py-3":""),...this.getAttributes(e.link_attrs)},n,t("span",null,e.title||"")))}getDesktopMenu(e,i){return t("li",{class:this.getDesktopClasses(e,i),...this.getAttributes(e.attrs)},t("a",{href:e.url,"aria-label":e.title||"category",...this.getAttributes(e.link_attrs)},t("span",null,e.title)),this.hasChildren(e)?t("div",{class:"sub-menu s-menu-sub-menu shadow-default "+(this.hasProducts(e)?"s-menu-sub-menu-with-product w-full left-0 flex":"s-menu-sub-menu-without-product w-56")},t("ul",{class:this.hasProducts(e)?"s-menu-sub-menu-unordered-list w-56 shrink-0 m-8 rtl:ml-0 ltr:mr-0":""},e.children.map((e=>this.getDesktopMenu(e,!1)))),this.hasProducts(e)?t("div",{class:"s-menu-products-wrapper"},t("salla-products-list",{source:"selected","shadow-on-hover":!0,"source-value":`[${e.products}]`})):null):null)}getFooterMenu(e){const i=this.topnav||this.limit?e.slice(0,this.limit||3):e;return t("div",null,t("div",{class:{"s-menu-footer-list":!this.topnav,"s-menu-topnav-list":this.topnav}},i.map((e=>t("a",{key:e.id,href:e.url,target:e.target,class:{"s-menu-footer-item":!this.topnav,"s-menu-topnav-item topnav-link-item right-side":this.topnav},...e.callback?{onClick:e.callback}:{}},e.title)))))}getHeaderMenu(e){return e.map((e=>[this.getMobileMenu(e,this.displayAllText),this.getDesktopMenu(e,!0)]))}render(){return"footer"===this.source?this.getFooterMenu(this.menus):[t("nav",{key:"main-nav",id:"mobile-menu",class:"mobile-menu"},t("ul",{class:"main-menu"},this.getHeaderMenu(this.menus)),t("button",{class:"btn--close close-mobile-menu sicon-cancel lg:hidden"})),t("button",{key:"close-btn",class:"btn--close-sm close-mobile-menu sicon-cancel hidden"})]}};r.style='/*!twlt*/:host{display:block}.relative{position:relative}.left-0{left:0px}.m-8{margin:2rem}.flex{display:flex}.\\!hidden{display:none !important}.hidden{display:none}.w-56{width:14rem}.w-full{width:100%}.shrink-0{flex-shrink:0}.rounded-full{border-radius:9999px}.\\!py-3{padding-top:0.75rem !important;padding-bottom:0.75rem !important}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.shadow-default{--tw-shadow:5px 10px 30px #2B2D340D;--tw-shadow-colored:5px 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-menu-item{display:none !important}@media (min-width: 1024px){.s-menu-item{display:block !important}.s-menu-root-level{display:inline-block !important}}.s-menu-non-root-level{position:relative}.s-menu-products-container{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:1rem}.s-menu-submenu-unordered-list{margin:2rem;width:14rem;flex-shrink:0}.s-menu-submenu-unordered-list:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.s-menu-submenu-unordered-list:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}.s-menu-submenu-with-product{left:0px;display:flex;width:100%}.s-menu-submenu-without-product{width:14rem}.s-menu-desktop-item{display:none !important}@media (min-width: 1024px){.s-menu-desktop-item{display:block !important}}.s-menu-sub-menu-with-product{left:0px;display:flex;width:100%}.s-menu-sub-menu-without-product{width:14rem}.s-menu-sub-menu-unordered-list{margin:2rem;width:14rem;flex-shrink:0}.s-menu-sub-menu-unordered-list:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.s-menu-sub-menu-unordered-list:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}.s-menu-mobile-item{font-size:0.875rem;line-height:1.25rem;font-weight:700}@media (min-width: 1024px){.s-menu-mobile-item{display:none}}.s-menu-mobile-sub-menu-item{font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-menu-mobile-link{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-menu-category-image{border-radius:9999px}.s-menu-title-with-image{padding-top:0.75rem !important;padding-bottom:0.75rem !important}.s-menu-footer-item{margin-bottom:1.25rem;display:block;font-size:0.875rem;line-height:1.25rem;line-height:1}.s-menu-footer-item:last-child{margin-bottom:0px}.s-menu-topnav-list{display:none;align-items:center;white-space:nowrap}@media (min-width: 1024px){.s-menu-topnav-list{display:flex}}.s-menu-topnav-list:where([dir="ltr"],[dir="ltr"] *){padding-right:1rem}.s-menu-topnav-list:where([dir="rtl"],[dir="rtl"] *){padding-left:1rem}.s-menu-topnav-item{display:inline-block;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-left:1rem;padding-right:1rem;padding-top:1px;padding-bottom:1px;font-size:0.875rem;line-height:1.25rem;line-height:1;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-menu-topnav-item:hover{opacity:0.8}.s-menu-topnav-item:where([dir="ltr"],[dir="ltr"] *){border-right-width:1px}.s-menu-topnav-item:first-child:where([dir="ltr"],[dir="ltr"] *){padding-left:0px}.s-menu-topnav-item:last-child:where([dir="ltr"],[dir="ltr"] *){border-width:0px;padding-right:0px}.s-menu-topnav-item:where([dir="rtl"],[dir="rtl"] *){border-left-width:1px}.s-menu-topnav-item:first-child:where([dir="rtl"],[dir="rtl"] *){padding-right:0px}.s-menu-topnav-item:last-child:where([dir="rtl"],[dir="rtl"] *){border-width:0px;padding-left:0px}@media (min-width: 1024px){.lg\\:\\!block{display:block !important}.lg\\:\\!inline-block{display:inline-block !important}.lg\\:hidden{display:none}}.ltr\\:mr-0:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}.rtl\\:ml-0:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}';export{r as salla_menu}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import{r as t,h as e,H as o,a}from"./p-DvJClBwJ.js";import{I as r}from"./p-OdOOjQZO.js";import{C as s}from"./p-gFG8By9O.js";import{I as i}from"./p-C-tzSDxw.js";import{s as l}from"./p-CxrJQ3Jf.js";const n=class{constructor(e){t(this,e),this.variant="info"}renderIcon(){const t=this.icon||this.variant;if("none"===t)return null;switch(t){case"success":return e("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"},e("path",{d:"M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z"}));case"warning":return e("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"},e("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));case"error":return e("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"},e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 \n 10 10 10-4.48 10-10S17.52 2 12 2zm5 \n 13.59L15.59 17 12 13.41 8.41 17 \n 7 15.59 10.59 12 7 8.41 8.41 7 \n 12 10.59 15.59 7 17 8.41 13.41 \n 12 17 15.59z"}));default:return e("span",{innerHTML:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.99935 18.3332C5.39697 18.3332 1.66602 14.6022 1.66602 9.99984C1.66602 5.39746 5.39697 1.6665 9.99935 1.6665C14.6017 1.6665 18.3327 5.39746 18.3327 9.99984C18.3327 14.6022 14.6017 18.3332 9.99935 18.3332ZM9.99935 16.6665C13.6813 16.6665 16.666 13.6818 16.666 9.99984C16.666 6.31794 13.6813 3.33317 9.99935 3.33317C6.31745 3.33317 3.33268 6.31794 3.33268 9.99984C3.33268 13.6818 6.31745 16.6665 9.99935 16.6665ZM9.16602 5.83317H10.8327V7.49984H9.16602V5.83317ZM9.16602 9.1665H10.8327V14.1665H9.16602V9.1665Z" fill="#417AC8"/>\n</svg>\n'})}}render(){return e(o,{key:"71805281122dfa7252d86f2f1ae898a253242189",class:`s-alert-wrapper s-alert-${this.variant}`},e("span",{key:"6d771816e11e074c670b5b06d8408a58c351bf76",class:"s-alert-icon"},this.renderIcon()),e("span",{key:"d9a9280ab96d5e2e87ccf3598ff7d1d8f77f464b",class:"s-alert-text"},this.message,e("slot",{key:"73955ef17f4d71ac1ada5665e2b0d6dc73959e16"})))}};n.style="/*!twlt*/:host{display:block}.s-alert-wrapper{display:flex;align-items:center;justify-content:flex-end;border-radius:0.375rem;border-width:1px;border-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;font-size:0.75rem;line-height:1.5rem}.s-alert-info{--tw-border-opacity:1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1));--tw-text-opacity:1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.s-alert-success{--tw-border-opacity:1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1));--tw-text-opacity:1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.s-alert-warning{--tw-border-opacity:1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1));--tw-text-opacity:1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.s-alert-error{--tw-border-opacity:1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));--tw-text-opacity:1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.s-alert-icon{margin-left:0.5rem;display:flex;align-items:center}.s-alert-text{flex:1 1 0%;text-align:start}";const m=class{constructor(e){t(this,e),this.storeId=salla.config.get("store.id"),this.template=salla.config.get("store.template"),this.loading=!1,this.templateData={},this.defaultMessage=salla.lang.getWithDefault("common.elements.store_is_available_for_purchase","هذا المتجر تطويري ومتاح للشراء من"),this.defaultActionLabel=salla.lang.get("common.elements.know_more"),this.storeFeatures=salla.lang.get("common.elements.store_features"),this.storeDetails=salla.lang.get("common.elements.store_details"),this.storePrice=salla.lang.getWithDefault("common.elements.store_price","سعر المتجر"),this.storePriceDetails=salla.lang.getWithDefault("common.elements.store_price_details","السعر يشمل"),this.theDeveloper=salla.lang.get("common.elements.the_developer"),this.templateInformation=salla.lang.get("common.elements.template_information"),this.buyTheTemplate=salla.lang.get("common.elements.buy_the_template"),this.isRtl=salla.config.get("theme.is_rtl",!0),this.storeName=salla.config.get("store.name"),this.salla=salla.lang.getWithDefault("common.elements.salla","سلة"),this.readyStores=salla.lang.getWithDefault("common.elements.ready_stores","المتاجر الجاهزة"),this.moreDetailsLabel=salla.lang.getWithDefault("common.elements.more_details","تفاصيل أكثر"),this.type="popup"}connectedCallback(){this.langUnsubscribe=salla.lang.subscribe((()=>{this.defaultMessage=salla.lang.get("common.elements.experimental_and_available_store"),this.defaultActionLabel=salla.lang.get("common.elements.know_more"),this.storeFeatures=salla.lang.get("common.elements.store_features"),this.storeDetails=salla.lang.get("common.elements.store_details"),this.templateInformation=salla.lang.get("common.elements.template_information"),this.buyTheTemplate=salla.lang.get("common.elements.buy_the_template");const t=salla.lang.messages?.["ar.trans"],e=salla.lang.messages?.["en.trans"];t&&e&&(l("ar.trans","common.elements.more_details","تفاصيل أكثر"),l("en.trans","common.elements.more_details","More Details"),l("ar.trans","common.elements.store_price","سعر المتجر"),l("en.trans","common.elements.store_price","Store Price"),l("ar.trans","common.elements.the_developer","المطور"),l("en.trans","common.elements.the_developer","the developer"),l("ar.trans","common.elements.store_price_details","السعر يشمل"),l("en.trans","common.elements.store_price_details","Price Includes"),l("ar.trans","common.elements.salla","سلة"),l("en.trans","common.elements.salla","Salla"),l("ar.trans","common.elements.store_is_available_for_purchase","هذا المتجر تطويري ومتاح للشراء من"),l("en.trans","common.elements.store_is_available_for_purchase","This ready store is available for purchase from"),l("ar.trans","common.elements.ready_stores","المتاجر الجاهزة"),l("en.trans","common.elements.ready_stores","Ready Stores"),setTimeout((()=>{this.storePrice=salla.lang.get("common.elements.store_price"),this.theDeveloper=salla.lang.get("common.elements.the_developer"),this.storePriceDetails=salla.lang.getWithDefault("common.elements.store_price_details","السعر يشمل"),this.salla=salla.lang.getWithDefault("common.elements.salla","سلة"),this.defaultMessage=salla.lang.getWithDefault("common.elements.store_is_available_for_purchase","هذا المتجر تطويري ومتاح للشراء من"),this.readyStores=salla.lang.getWithDefault("common.elements.ready_stores","المتاجر الجاهزة"),this.moreDetailsLabel=salla.lang.getWithDefault("common.elements.more_details","More Details")}),100))}))}disconnectedCallback(){this.langUnsubscribe?.()}componentDidLoad(){this.template&&"object"==typeof this.template&&Object.keys(this.template).length>0&&this.fetchTemplateData()}open(){return this.drawer.open()}fetchTemplateData(){if(!Object.keys(this.templateData).length)return this.loading=!0,salla.api.request("/store/template",{},"get",{"Store-Identifier":this.storeId}).then((t=>{this.templateData=t.data,this.loading=!1})).catch((()=>{this.loading=!1}))}handleAction(){"link"===this.type&&(window.location.href=this.actionUrl),"popup"===this.type&&this.open()}popup(){return e("salla-drawer",{class:"s-bottom-alert-modal",ref:t=>this.drawer=t,"no-padding":!0,onLoad:()=>{this.drawer&&Object.keys(this.templateData).length&&this.drawer.setTitle(this.storeDetails+" "+this.storeName)}},Object.keys(this.templateData).length?[e("div",{class:"s-bottom-alert-modal-inner s-scrollbar"},e("div",{class:{"s-bottom-alert-modal-content":!0}},this.templateData?.features?[e("div",{class:"s-bottom-alert-modal-content-title"},e("i",{innerHTML:i,class:"s-bottom-alert-modal-content-icon"}),e("span",null,this.storeFeatures)),e("div",{class:"s-bottom-alert-modal-content-features",innerHTML:this.templateData?.features})]:""),e("div",{class:{"s-bottom-alert-modal-content":!0,"s-bottom-alert-modal-content-extra-padding":this.templateData?.price}},this.templateData?.features?[e("div",{class:"s-bottom-alert-modal-content-title"},e("i",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>money-card</title>\n<path d="M17.333 14.667h-2.667c-0.736 0-1.333-0.599-1.333-1.333s0.597-1.333 1.333-1.333h4c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333h-1.333v-1.333c0-0.736-0.596-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v1.333c-2.205 0-4 1.795-4 4s1.795 4 4 4h2.667c0.736 0 1.333 0.597 1.333 1.333s-0.597 1.333-1.333 1.333h-4c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h1.333v1.333c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-1.333c2.205 0 4-1.795 4-4s-1.795-4-4-4zM28 2.667h-24c-2.205 0-4 1.795-4 4v18.667c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-18.667c0-2.205-1.795-4-4-4zM29.333 25.333c0 0.736-0.597 1.333-1.333 1.333h-24c-0.736 0-1.333-0.597-1.333-1.333v-18.667c0-0.735 0.597-1.333 1.333-1.333h24c0.736 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n',class:"s-bottom-alert-modal-content-icon"}),e("span",null,this.storePriceDetails)),e("div",{class:"s-bottom-alert-modal-content-price-details"},this.templateData?.price_details?.items.map((t=>e("div",{class:"s-bottom-alert-modal-content-price-details-item"},e("i",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>check-circle</title>\n<path d="M19.557 11.26l-4.593 6.891-2.891-1.927c-0.616-0.411-1.441-0.243-1.849 0.369-0.409 0.612-0.244 1.441 0.369 1.849l4 2.667c0.228 0.152 0.485 0.224 0.739 0.224 0.431 0 0.855-0.208 1.111-0.593l5.333-8c0.409-0.612 0.244-1.441-0.369-1.849-0.616-0.411-1.443-0.243-1.849 0.369zM16 0c-8.823 0-16 7.177-16 16s7.177 16 16 16 16-7.177 16-16-7.177-16-16-16zM16 29.333c-7.352 0-13.333-5.981-13.333-13.333s5.981-13.333 13.333-13.333 13.333 5.981 13.333 13.333-5.981 13.333-13.333 13.333z"></path>\n</svg>\n',class:"s-bottom-alert-modal-content-price-details-item-icon"}),e("span",{class:"s-bottom-alert-modal-content-price-details-item-name"},t.name),e("span",{class:"s-bottom-alert-modal-content-price-details-item-price",innerHTML:salla.money(t.price)})))))]:""),this.templateData?.link?e("div",{class:"s-bottom-alert-modal-content-footer"},e("salla-button",{color:"primary",size:"medium",width:"wide",href:this.templateData?.link},e("i",{innerHTML:s}),this.buyTheTemplate)):"")]:"")}render(){const t=this.template&&"object"==typeof this.template&&Object.keys(this.template).length>0;return e(o,{key:"e3aa3e9170abe209c668d986cdee8a1e218796b5",class:"s-bottom-alert-wrapper "+(t?"s-bottom-alert-wrapper-with-template":"")},t&&e("div",{key:"92c6cce5cee33c11f8efe6365e647967fa7f5233",class:"s-bottom-alert-logo-section"},e("img",{key:"4ad9449846a7e30daaa1b6bcc9739c91073e8c37",src:"https://cdn.salla.network/images/logo/logo-light.svg",alt:"Salla",class:"s-bottom-alert-logo"}),e("span",{key:"7075d44f4a2c73661f491a9dd66cc59bda60db58",class:"s-bottom-alert-logo-text"},this.readyStores)),e("div",{key:"d0f63ff07acd57b6f7f5663dc40e533a1cab6b99",class:"s-bottom-alert-content"},e("div",{key:"bbacb8bba096ab59ccba5faf90c7a9d67b618831",class:"flex items-center gap-2"},e("div",{key:"8d6fd88b4865d9eb736bad0caf37aabd48e462f2",class:"s-bottom-alert-icon"},e("i",this.icon?{class:this.icon}:{innerHTML:r})),e("div",{key:"92beef20dc89d12250dfcd4a07f5eaa0d69e9612",class:"s-bottom-alert-message"},this.message?this.message:t?e("span",{class:"flex flex-wrap items-center gap-1"},this.defaultMessage,e("span",{class:{"s-bottom-alert-message-highlight":!0},"aria-label":"Developer"},this.salla),e("span",{innerHTML:salla.money(this.template.price)})):this.defaultMessage)),"banner"!==this.type&&e("div",{key:"86d72792e488df2c1cd18929c8e4d92fac27488f",class:t?"s-bottom-alert-actions-group":"s-bottom-alert-action"},t?this.loading?e("salla-loading",{size:"20"}):e("div",{class:"s-bottom-alert-actions-group-container"},e("a",{class:"s-bottom-alert-action-link",onClick:()=>this.handleAction()},this.actionLabel||this.moreDetailsLabel),this.templateData?.link?e("button",{type:"button",class:"s-bottom-alert-action-purchase-button",onClick:()=>window.open(this.templateData?.link,"_blank")},this.buyTheTemplate):null):e("salla-button",{href:this.actionUrl,size:"medium",onClick:()=>this.handleAction(),width:"normal"},this.actionLabel||this.defaultActionLabel)),"popup"===this.type&&this.popup()))}get host(){return a(this)}};m.style="/*!twlt*/:host{display:block}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-1{gap:0.25rem}.gap-2{gap:0.5rem}.s-scrollbar::-webkit-scrollbar{width:5px}.s-scrollbar::-webkit-scrollbar-track{background-color:#eee}.s-scrollbar::-webkit-scrollbar-thumb{background-color:var(--color-primary);border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px}.s-bottom-alert-wrapper{position:fixed;bottom:0px;z-index:50;display:flex;min-height:4rem;width:100%;flex-direction:column;align-items:center;justify-content:center;background-color:var(--color-primary);padding-left:0.625rem;padding-right:0.625rem;padding-top:0.625rem;padding-bottom:0.625rem}@media (min-width: 768px){.s-bottom-alert-wrapper{padding-left:2.5rem;padding-right:2.5rem}}.s-bottom-alert-wrapper-with-template{flex-direction:column;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgb(0 73 86 / var(--tw-bg-opacity, 1));font-family:PingARLT,system-ui;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-bottom-alert-wrapper-with-template{flex-direction:row}}.s-bottom-alert-logo-section{display:flex;align-items:center;gap:0.5rem;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem}.s-bottom-alert-logo{height:auto;width:3rem}.s-bottom-alert-logo-text{font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity:1;color:rgb(186 243 230 / var(--tw-text-opacity, 1))}.s-bottom-alert-icon svg{height:1rem;width:1rem;fill:#fff}.s-bottom-alert-message{font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-bottom-alert-message-highlight{cursor:default;font-size:1rem;line-height:1.5rem;font-weight:700}.s-bottom-alert-message-splitter{margin-left:0.5rem;margin-right:0.5rem}.s-bottom-alert-message-link{cursor:pointer;text-decoration-line:underline}.s-bottom-alert-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:1rem}@media (min-width: 768px){.s-bottom-alert-content{flex-direction:row}}.s-bottom-alert-action button{background-color:var(--color-primary-reverse);font-size:0.875rem;line-height:1.25rem;color:var(--color-primary)}.s-bottom-alert-actions-group{display:flex;align-items:center;gap:1rem}.s-bottom-alert-action-link{cursor:pointer;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(186 243 230 / var(--tw-text-opacity, 1));text-decoration-line:underline;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-bottom-alert-action-link:hover{opacity:0.8}.s-bottom-alert-action-purchase-button{border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(186 243 230 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;--tw-text-opacity:1;color:rgb(0 73 86 / var(--tw-text-opacity, 1))}.s-bottom-alert-actions-group-container{display:flex;align-items:center;gap:1rem}.s-bottom-alert-modal .s-modal-body{padding-top:1rem;padding-bottom:1rem}.s-bottom-alert-modal-cover img{height:300px;width:100%;object-fit:cover}.s-bottom-alert-modal-inner{max-height:80vh;overflow-y:auto;overflow-x:hidden;padding-left:1rem;padding-right:1rem}.s-bottom-alert-modal-content-title{margin-top:1rem;margin-bottom:1rem;display:flex;align-items:center;gap:0.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;color:var(--color-primary-dark)}.s-bottom-alert-modal-content-icon svg{height:1.25rem;width:1.25rem;fill:var(--color-primary-dark)}.s-bottom-alert-modal-content-extra-padding{padding-bottom:100px}.s-bottom-alert-modal-content hr{margin-top:1rem}.s-bottom-alert-modal-content-screenshots{margin-top:1rem;margin-bottom:1rem}.s-bottom-alert-modal-content-screenshot.swiper-slide{height:200px !important;width:370px !important}.s-bottom-alert-modal-content-screenshot img{height:100%;width:100%;object-fit:cover}.s-bottom-alert-modal-content-footer button .s-button-text{display:flex;align-items:center;gap:0.5rem}.s-bottom-alert-modal-content-footer{position:fixed;left:0px;right:0px;bottom:0px;z-index:2;width:100%;--tw-bg-opacity:1;background-color:rgb(252 252 252 / var(--tw-bg-opacity, 1));padding:0.625rem}.s-bottom-alert-modal-content-price-details{display:flex;flex-direction:column;gap:0.5rem}.s-bottom-alert-modal-content-price-details-item{display:flex;align-items:center;gap:0.375rem}.s-bottom-alert-modal-content-price-details-item-icon svg{height:1rem;width:1rem;fill:var(--color-primary-dark)}.s-bottom-alert-modal-content-price-details-item-name{--tw-text-opacity:1;color:rgb(68 68 68 / var(--tw-text-opacity, 1))}.s-bottom-alert-modal-content-price-details-item-price{font-weight:500;--tw-text-opacity:1;color:rgb(102 102 102 / var(--tw-text-opacity, 1))}.s-bottom-alert-modal-price-wrapper{margin-bottom:0.625rem;display:flex;align-items:center;justify-content:space-between;font-size:1rem;line-height:1.5rem}.s-bottom-alert-modal-price-wrapper-amount{font-size:1.125rem;line-height:1.75rem;font-weight:700}";export{n as salla_alert,m as salla_bottom_alert}