@salla.sa/twilight-components 2.14.434 → 2.14.435

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 (354) hide show
  1. package/dist/cjs/{filepond-CWW6qAlB.js → filepond-DuWiTiOJ.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-tqITvQar.js → filepond-plugin-file-poster-Brwk-SiH.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BfDaORpj.js → filepond-plugin-file-validate-size-B_GcpzZ9.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DW0ppYcG.js → filepond-plugin-file-validate-type-uGHJ-vuD.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-c9ML3iba.js → filepond-plugin-image-edit-6dBX6WZW.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-XTmaoGOO.js → filepond-plugin-image-exif-orientation-BXykXXIF.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BNlkC9-r.js → filepond-plugin-image-preview-B7D0-pf6.js} +1 -1
  8. package/dist/cjs/{functions-BW_9N8hU.js → functions-DzE2MNJ6.js} +1 -1
  9. package/dist/cjs/{index-zPj2BUIM.js → index-BFWYhkR9.js} +6 -2
  10. package/dist/cjs/{index-DGugEE5Q.js → index-BrNX9-Hh.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  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 +2 -2
  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 +12 -12
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +39 -3
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +75 -0
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  83. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  88. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-BOij5kTl.js → tracked-promise-BhvuWmRX.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +2 -2
  100. package/dist/cjs/{vanilla-picker-Drd6dUY6.js → vanilla-picker-CPWEN69b.js} +1 -1
  101. package/dist/collection/collection-manifest.json +1 -0
  102. package/dist/collection/components/salla-installment/salla-installment.css +18 -0
  103. package/dist/collection/components/salla-installment/salla-installment.js +38 -1
  104. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +0 -0
  105. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +126 -0
  106. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  107. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  108. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  109. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  110. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  111. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  112. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  113. package/dist/collection/components/salla-search/salla-search.js +5 -5
  114. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  115. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  116. package/dist/collection/components/salla-social/salla-social.js +1 -1
  117. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  118. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  119. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  120. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  121. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  122. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  123. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  124. package/dist/components/index.js +2 -2
  125. package/dist/components/salla-installment.js +39 -2
  126. package/dist/components/salla-product-card-embed.d.ts +11 -0
  127. package/dist/components/salla-product-card-embed.js +97 -0
  128. package/dist/components/salla-product-size-guide.js +2 -2
  129. package/dist/components/salla-quantity-input2.js +1 -1
  130. package/dist/components/salla-quick-buy2.js +1 -1
  131. package/dist/components/salla-review-card2.js +1 -1
  132. package/dist/components/salla-reviews-page.js +1 -1
  133. package/dist/components/salla-reviews.js +1 -1
  134. package/dist/components/salla-scopes.js +1 -1
  135. package/dist/components/salla-search.js +5 -5
  136. package/dist/components/salla-searchable-dropdown2.js +4 -4
  137. package/dist/components/salla-skeleton2.js +1 -1
  138. package/dist/components/salla-social-share.js +1 -1
  139. package/dist/components/salla-social.js +1 -1
  140. package/dist/components/salla-tab-content2.js +1 -1
  141. package/dist/components/salla-tab-header2.js +1 -1
  142. package/dist/components/salla-tabs2.js +1 -1
  143. package/dist/components/salla-tel-input2.js +1 -1
  144. package/dist/components/salla-tooltip2.js +1 -1
  145. package/dist/components/salla-user-settings.js +1 -1
  146. package/dist/esm/{filepond-B8ZU0S2U.js → filepond-DFVrhE4o.js} +1 -1
  147. package/dist/esm/{filepond-plugin-file-poster-CbvNpFBW.js → filepond-plugin-file-poster-D9r1Tfdq.js} +1 -1
  148. package/dist/esm/{filepond-plugin-file-validate-size-Dvk6NFzB.js → filepond-plugin-file-validate-size-B-d8cjG6.js} +1 -1
  149. package/dist/esm/{filepond-plugin-file-validate-type-BHnSvKf9.js → filepond-plugin-file-validate-type-n8HaoHkb.js} +1 -1
  150. package/dist/esm/{filepond-plugin-image-edit-C3-HEwrk.js → filepond-plugin-image-edit-Cb0b-MEZ.js} +1 -1
  151. package/dist/esm/{filepond-plugin-image-exif-orientation-CkNQRZPb.js → filepond-plugin-image-exif-orientation-E6kA4Ohn.js} +1 -1
  152. package/dist/esm/{filepond-plugin-image-preview-BiSvHi1n.js → filepond-plugin-image-preview-TkaxSa_F.js} +1 -1
  153. package/dist/esm/{functions-B0NK3Lby.js → functions-DzwMFUQV.js} +1 -1
  154. package/dist/esm/{index-BMlmyi0X.js → index-B-ZrPbJR.js} +1 -1
  155. package/dist/esm/{index-CCvjaZrV.js → index-C3g9jJZW.js} +6 -2
  156. package/dist/esm/loader.js +3 -3
  157. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  158. package/dist/esm/salla-accordion_6.entry.js +1 -1
  159. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  160. package/dist/esm/salla-advertisement.entry.js +1 -1
  161. package/dist/esm/salla-alert_2.entry.js +1 -1
  162. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  163. package/dist/esm/salla-apps-icons.entry.js +1 -1
  164. package/dist/esm/salla-badge.entry.js +1 -1
  165. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  166. package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
  167. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  168. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  169. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  170. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  171. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  172. package/dist/esm/salla-contacts.entry.js +1 -1
  173. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  174. package/dist/esm/salla-count-down.entry.js +1 -1
  175. package/dist/esm/salla-custom-fields.entry.js +1 -1
  176. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  177. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  178. package/dist/esm/salla-filters-widget.entry.js +1 -1
  179. package/dist/esm/salla-filters.entry.js +1 -1
  180. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  181. package/dist/esm/salla-gifting.entry.js +1 -1
  182. package/dist/esm/salla-hook.entry.js +1 -1
  183. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  184. package/dist/esm/salla-installment.entry.js +39 -3
  185. package/dist/esm/salla-list-tile.entry.js +1 -1
  186. package/dist/esm/salla-localization-modal.entry.js +1 -1
  187. package/dist/esm/salla-login-modal.entry.js +1 -1
  188. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  189. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  190. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  191. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  192. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  193. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  194. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  195. package/dist/esm/salla-loyalty.entry.js +1 -1
  196. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  197. package/dist/esm/salla-map.entry.js +1 -1
  198. package/dist/esm/salla-menu.entry.js +1 -1
  199. package/dist/esm/salla-metadata.entry.js +1 -1
  200. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  201. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  202. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  203. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  204. package/dist/esm/salla-notification-item.entry.js +1 -1
  205. package/dist/esm/salla-notifications.entry.js +1 -1
  206. package/dist/esm/salla-offer-modal.entry.js +1 -1
  207. package/dist/esm/salla-offer.entry.js +1 -1
  208. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  209. package/dist/esm/salla-order-details-options.entry.js +1 -1
  210. package/dist/esm/salla-order-details.entry.js +1 -1
  211. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  212. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  213. package/dist/esm/salla-order-edit.entry.js +1 -1
  214. package/dist/esm/salla-order-summary.entry.js +1 -1
  215. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  216. package/dist/esm/salla-orders.entry.js +1 -1
  217. package/dist/esm/salla-payments.entry.js +1 -1
  218. package/dist/esm/salla-placeholder.entry.js +1 -1
  219. package/dist/esm/salla-price-range.entry.js +1 -1
  220. package/dist/esm/salla-product-card-embed.entry.js +73 -0
  221. package/dist/esm/salla-product-card_2.entry.js +1 -1
  222. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  223. package/dist/esm/salla-products-list.entry.js +1 -1
  224. package/dist/esm/salla-progress-bar.entry.js +1 -1
  225. package/dist/esm/salla-quick-order.entry.js +1 -1
  226. package/dist/esm/salla-rating-modal.entry.js +1 -1
  227. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  228. package/dist/esm/salla-scopes.entry.js +2 -2
  229. package/dist/esm/salla-search.entry.js +6 -6
  230. package/dist/esm/salla-skeleton.entry.js +2 -2
  231. package/dist/esm/salla-slider.entry.js +1 -1
  232. package/dist/esm/salla-social-share.entry.js +2 -2
  233. package/dist/esm/salla-social.entry.js +2 -2
  234. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  235. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  236. package/dist/esm/salla-tooltip.entry.js +2 -2
  237. package/dist/esm/salla-trust-badges.entry.js +1 -1
  238. package/dist/esm/salla-user-menu.entry.js +1 -1
  239. package/dist/esm/salla-user-profile.entry.js +1 -1
  240. package/dist/esm/salla-user-settings.entry.js +2 -2
  241. package/dist/esm/salla-verify.entry.js +1 -1
  242. package/dist/esm/salla-wallet.entry.js +1 -1
  243. package/dist/esm/{tracked-promise-BRNUnrUG.js → tracked-promise-mz9fGy13.js} +1 -1
  244. package/dist/esm/twilight.js +3 -3
  245. package/dist/esm/{vanilla-picker-Ce-g_3Yg.js → vanilla-picker-DDwa46yX.js} +1 -1
  246. package/dist/twilight/{p-ad9ec8cf.entry.js → p-061d4c55.entry.js} +1 -1
  247. package/dist/twilight/{p-5b94c9ec.entry.js → p-08a99ef3.entry.js} +1 -1
  248. package/dist/twilight/{p-b4fc1ab3.entry.js → p-0a8ed39c.entry.js} +1 -1
  249. package/dist/twilight/{p-2822dff4.entry.js → p-10799a52.entry.js} +1 -1
  250. package/dist/twilight/{p-ff4f4e20.entry.js → p-10efdf23.entry.js} +1 -1
  251. package/dist/twilight/{p-84d0de81.entry.js → p-139679c2.entry.js} +1 -1
  252. package/dist/twilight/{p-81108b40.entry.js → p-170636ed.entry.js} +1 -1
  253. package/dist/twilight/{p-1d011c4a.entry.js → p-18eed355.entry.js} +1 -1
  254. package/dist/twilight/{p-36adc8b6.entry.js → p-1f2b3d13.entry.js} +1 -1
  255. package/dist/twilight/{p-78d4e07b.entry.js → p-2908d91d.entry.js} +1 -1
  256. package/dist/twilight/{p-f19b6300.entry.js → p-29110454.entry.js} +1 -1
  257. package/dist/twilight/{p-fa0241ed.entry.js → p-2d57223d.entry.js} +1 -1
  258. package/dist/twilight/{p-1b978866.entry.js → p-346afa28.entry.js} +1 -1
  259. package/dist/twilight/{p-1e2b99ff.entry.js → p-36e5a9a2.entry.js} +1 -1
  260. package/dist/twilight/{p-ba00b2a5.entry.js → p-38c300df.entry.js} +1 -1
  261. package/dist/twilight/{p-b95d6343.entry.js → p-39b422da.entry.js} +1 -1
  262. package/dist/twilight/{p-742ea83d.entry.js → p-3ac6bf7c.entry.js} +1 -1
  263. package/dist/twilight/{p-d1784e5f.entry.js → p-4293a6a7.entry.js} +1 -1
  264. package/dist/twilight/{p-be938ae4.entry.js → p-42e3b99b.entry.js} +1 -1
  265. package/dist/twilight/{p-afdc1db1.entry.js → p-4586ff15.entry.js} +1 -1
  266. package/dist/twilight/{p-444c78ba.entry.js → p-46a22eec.entry.js} +1 -1
  267. package/dist/twilight/{p-bd227ed6.entry.js → p-479ef439.entry.js} +1 -1
  268. package/dist/twilight/{p-a64f6f5e.entry.js → p-4c655f32.entry.js} +1 -1
  269. package/dist/twilight/{p-d8dda828.entry.js → p-4ce7420a.entry.js} +1 -1
  270. package/dist/twilight/{p-c7571a96.entry.js → p-4e0bcbc4.entry.js} +1 -1
  271. package/dist/twilight/{p-ced59ca2.entry.js → p-4f55b4cf.entry.js} +1 -1
  272. package/dist/twilight/{p-8960b0d5.entry.js → p-5709425e.entry.js} +1 -1
  273. package/dist/twilight/{p-634115cb.entry.js → p-5710d809.entry.js} +1 -1
  274. package/dist/twilight/{p-0aa893d7.entry.js → p-573dff60.entry.js} +1 -1
  275. package/dist/twilight/{p-c12d9d20.entry.js → p-5813d16e.entry.js} +1 -1
  276. package/dist/twilight/{p-2e3879e2.entry.js → p-581532e2.entry.js} +1 -1
  277. package/dist/twilight/{p-c548c109.entry.js → p-5bb3911e.entry.js} +1 -1
  278. package/dist/twilight/{p-946e111f.entry.js → p-6dadc4cd.entry.js} +1 -1
  279. package/dist/twilight/{p-46fc566b.entry.js → p-6e130ccd.entry.js} +1 -1
  280. package/dist/twilight/{p-4a1ea811.entry.js → p-730c61f3.entry.js} +1 -1
  281. package/dist/twilight/{p-e0089ff0.entry.js → p-795d48a0.entry.js} +1 -1
  282. package/dist/twilight/{p-89e9172e.entry.js → p-79b81b73.entry.js} +1 -1
  283. package/dist/twilight/{p-174dc0a4.entry.js → p-81b8c52a.entry.js} +1 -1
  284. package/dist/twilight/{p-e048fb41.entry.js → p-824f4a2e.entry.js} +1 -1
  285. package/dist/twilight/{p-b878dafc.entry.js → p-8351d792.entry.js} +1 -1
  286. package/dist/twilight/{p-4aa09288.entry.js → p-8ed7f0a4.entry.js} +1 -1
  287. package/dist/twilight/{p-0b9688d0.entry.js → p-92eeb8ce.entry.js} +1 -1
  288. package/dist/twilight/{p-bc7c8a73.entry.js → p-9302a5f4.entry.js} +1 -1
  289. package/dist/twilight/{p-5b9c52ed.entry.js → p-93f98a1a.entry.js} +1 -1
  290. package/dist/twilight/{p-a4633c90.entry.js → p-9506dd2e.entry.js} +1 -1
  291. package/dist/twilight/{p-fb997718.entry.js → p-967138b5.entry.js} +1 -1
  292. package/dist/twilight/{p-f85b6b5e.entry.js → p-9be4c43f.entry.js} +1 -1
  293. package/dist/twilight/{p-aa68a8aa.entry.js → p-9e96ec69.entry.js} +1 -1
  294. package/dist/twilight/{p-DXHIK3BO.js → p-BK7Y-4Ut.js} +1 -1
  295. package/dist/twilight/{p-asWgwDKm.js → p-ByhVeLG_.js} +1 -1
  296. package/dist/twilight/{p-CCvjaZrV.js → p-C3g9jJZW.js} +1 -1
  297. package/dist/twilight/{p-CfnUG35R.js → p-D9oUZeJe.js} +1 -1
  298. package/dist/twilight/{p-DJRGxZpg.js → p-DBL-q92C.js} +1 -1
  299. package/dist/twilight/{p-DSNYrBKg.js → p-DC_A6MyR.js} +1 -1
  300. package/dist/twilight/{p-9b-9ka47.js → p-DGZdQMHp.js} +1 -1
  301. package/dist/twilight/{p-BO0AhOgw.js → p-DWRFx4Y0.js} +1 -1
  302. package/dist/twilight/{p-DQV39xyV.js → p-DvPh-zIV.js} +1 -1
  303. package/dist/twilight/{p-204f8cc8.entry.js → p-a0a96832.entry.js} +1 -1
  304. package/dist/twilight/{p-06bfa777.entry.js → p-a1720cd5.entry.js} +1 -1
  305. package/dist/twilight/p-a3506023.entry.js +4 -0
  306. package/dist/twilight/{p-da9007ce.entry.js → p-a43fd33c.entry.js} +1 -1
  307. package/dist/twilight/{p-541847cd.entry.js → p-a5c40cbd.entry.js} +1 -1
  308. package/dist/twilight/p-aOz-JkWm.js +4 -0
  309. package/dist/twilight/{p-c41e0c6a.entry.js → p-abd68a78.entry.js} +1 -1
  310. package/dist/twilight/{p-88d72e17.entry.js → p-aeb7c33a.entry.js} +1 -1
  311. package/dist/twilight/p-b3253253.entry.js +4 -0
  312. package/dist/twilight/{p-24b0c91d.entry.js → p-b6cbff7d.entry.js} +1 -1
  313. package/dist/twilight/{p-69ffd7f4.entry.js → p-b7cf3969.entry.js} +1 -1
  314. package/dist/twilight/{p-2b03d8dd.entry.js → p-b8fea878.entry.js} +1 -1
  315. package/dist/twilight/p-baf3df7d.entry.js +4 -0
  316. package/dist/twilight/{p-cb2717ce.entry.js → p-bb3c2dba.entry.js} +1 -1
  317. package/dist/twilight/{p-9e980184.entry.js → p-bb94f865.entry.js} +1 -1
  318. package/dist/twilight/{p-0a1ca9c1.entry.js → p-cc40335b.entry.js} +1 -1
  319. package/dist/twilight/{p-f4933141.entry.js → p-cec952b1.entry.js} +1 -1
  320. package/dist/twilight/{p-9719b3ae.entry.js → p-cfc52cde.entry.js} +1 -1
  321. package/dist/twilight/{p-afc9e2ec.entry.js → p-d2240c2a.entry.js} +1 -1
  322. package/dist/twilight/{p-448852e5.entry.js → p-d2b9a251.entry.js} +1 -1
  323. package/dist/twilight/{p-b4b54b19.entry.js → p-d4437a13.entry.js} +1 -1
  324. package/dist/twilight/{p-4445fe22.entry.js → p-d4a1fa67.entry.js} +1 -1
  325. package/dist/twilight/{p-69d37822.entry.js → p-d7e7f3d6.entry.js} +1 -1
  326. package/dist/twilight/{p-9e739b68.entry.js → p-d86daca1.entry.js} +1 -1
  327. package/dist/twilight/{p-c958ebbc.entry.js → p-d90b4fb4.entry.js} +1 -1
  328. package/dist/twilight/p-d94caac7.entry.js +4 -0
  329. package/dist/twilight/p-d9a2d4c7.entry.js +4 -0
  330. package/dist/twilight/{p-d0a50136.entry.js → p-e2759da3.entry.js} +1 -1
  331. package/dist/twilight/{p-28df3b47.entry.js → p-e5964d35.entry.js} +1 -1
  332. package/dist/twilight/{p-27aae413.entry.js → p-e5dffa93.entry.js} +1 -1
  333. package/dist/twilight/{p-c37148ce.entry.js → p-ea9b9e70.entry.js} +1 -1
  334. package/dist/twilight/{p-1c3358af.entry.js → p-ed239a3e.entry.js} +1 -1
  335. package/dist/twilight/{p-741d0133.entry.js → p-f289e0f9.entry.js} +1 -1
  336. package/dist/twilight/p-f321e33b.entry.js +4 -0
  337. package/dist/twilight/{p-e1bab84d.entry.js → p-f4d06230.entry.js} +1 -1
  338. package/dist/twilight/{p-8a86e1be.entry.js → p-f86b8d22.entry.js} +1 -1
  339. package/dist/twilight/{p-1cdc7af0.entry.js → p-fb4756f1.entry.js} +1 -1
  340. package/dist/twilight/{p-bfc9043f.entry.js → p-fb64894c.entry.js} +1 -1
  341. package/dist/twilight/{p-b49e2f80.entry.js → p-fbd79909.entry.js} +1 -1
  342. package/dist/twilight/{p-CavpTJbV.js → p-iVJ0G_Ir.js} +1 -1
  343. package/dist/twilight/{p-DNvjzv3i.js → p-sKz2QgaG.js} +1 -1
  344. package/dist/twilight/twilight.esm.js +1 -1
  345. package/dist/types/components/salla-installment/salla-installment.d.ts +7 -0
  346. package/dist/types/components/salla-product-card-embed/salla-product-card-embed.d.ts +16 -0
  347. package/dist/types/components.d.ts +29 -0
  348. package/package.json +5 -5
  349. package/dist/twilight/p-269b7e54.entry.js +0 -4
  350. package/dist/twilight/p-298e860b.entry.js +0 -4
  351. package/dist/twilight/p-76fd5e24.entry.js +0 -4
  352. package/dist/twilight/p-D3EEMM4Q.js +0 -4
  353. package/dist/twilight/p-aa77176a.entry.js +0 -4
  354. package/dist/twilight/p-adfdecf5.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
5
 
6
- const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
6
+ const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}.s-installment-klarna-wrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;padding:10px}.salla-y .s-installment-klarna-wrapper{border:1px solid var(--color-grey-dark);border-radius:12px}.s-installment-klarna-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}";
7
7
 
8
8
  const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallment extends HTMLElement {
9
9
  constructor() {
@@ -51,6 +51,7 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
51
51
  this.emkanIsActive = installment.emkan;
52
52
  this.madfuActive = installment.madfu;
53
53
  this.rajehiIsActive = installment.mokafaa_alrajhi;
54
+ this.klarnaIsActive = installment.klarna;
54
55
  }
55
56
  salla.event.on('product::price.updated', ({ data }) => {
56
57
  if (!data.price || data.price == this.price) {
@@ -83,7 +84,7 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
83
84
  installments: 5,
84
85
  }) })))) : (''), this.madfuActive && this.currency === "SAR" ? (h("div", { class: "s-installment-madfu-wrapper" }, h("div", { class: "s-installment-madfu-content" }, h("img", { src: salla.url.cdn('images/payment/png/madfu.png'), alt: "madfu" }), h("span", { class: "s-installment-madfu-content-text" }, salla.lang.get('pages.products.installments_madfu'))))) : (''), (isSAR && this.rajehiIsActive) ?
85
86
  h("div", { class: "s-installment-rajehi-wrapper" }, h("div", { class: "s-installment-rajehi-content" }, h("img", { src: salla.url.cdn('images/payment/png/mokafaa_alrajhi_loyalty.png'), alt: "mokafaa_alrajhi_loyalty" }), h("span", { class: "s-installment-rajehi-content-text" }, salla.lang.get("pages.products.rajahi_earn_points", { points: Math.floor(+this.price * this.rajehiIsActive.pointsPerRiyal) }))))
86
- : ''));
87
+ : '', this.klarnaIsActive && this.klarnaIsActive.locales?.length > 0 && (h("div", { class: "s-installment-klarna-wrapper" }, h("klarna-placement", { "data-key": this.klarnaIsActive.dataKey || 'credit-promotion-badge', "data-locale": this.getKlarnaLocale(), "data-purchase-amount": String(Math.round(parseFloat(this.price) * 100)) })))));
87
88
  }
88
89
  renderInstallments(isUpdating = false) {
89
90
  if (!this.isValidPrice(this.price)) {
@@ -173,6 +174,10 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
173
174
  // // setTimeout()
174
175
  // }
175
176
  }
177
+ // Klarna
178
+ if (this.klarnaIsActive && this.klarnaIsActive.locales?.length > 0) {
179
+ this.loadKlarna(isUpdating);
180
+ }
176
181
  // Mispay
177
182
  if (this.shouldShowMispay() && this.mispayActive.publicKey) {
178
183
  this.loadExternalScript({
@@ -246,6 +251,37 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
246
251
  }
247
252
  }
248
253
  }
254
+ loadKlarna(isUpdating) {
255
+ window.KlarnaOnsiteService = window.KlarnaOnsiteService || [];
256
+ if (isUpdating) {
257
+ const placement = this.host.querySelector('klarna-placement');
258
+ if (placement) {
259
+ placement.setAttribute('data-purchase-amount', String(Math.round(parseFloat(this.price) * 100)));
260
+ window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
261
+ }
262
+ return;
263
+ }
264
+ var oldKlarnaScript = document.querySelector('script[src="https://js.klarna.com/web-sdk/v1/klarna.js"]');
265
+ if (oldKlarnaScript) {
266
+ window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
267
+ return;
268
+ }
269
+ var klarnaScript = document.createElement('script');
270
+ klarnaScript.async = true;
271
+ klarnaScript.setAttribute('src', 'https://js.klarna.com/web-sdk/v1/klarna.js');
272
+ klarnaScript.setAttribute('data-client-id', this.klarnaIsActive.clientId);
273
+ klarnaScript.onload = () => {
274
+ window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
275
+ };
276
+ document.body.appendChild(klarnaScript);
277
+ }
278
+ getKlarnaLocale() {
279
+ const locales = this.klarnaIsActive?.locales || [];
280
+ if (!locales.length)
281
+ return null;
282
+ const byLang = new Map(locales?.map(l => [l.split('-')[0], l]));
283
+ return byLang.get(this.language) ?? byLang.get('en') ?? locales[0];
284
+ }
249
285
  shouldShowMispay() {
250
286
  return this.currency === 'SAR' && this.mispayActive;
251
287
  }
@@ -286,6 +322,7 @@ const SallaInstallment$1 = /*@__PURE__*/ proxyCustomElement(class SallaInstallme
286
322
  "emkanIsActive": [32],
287
323
  "madfuActive": [32],
288
324
  "rajehiIsActive": [32],
325
+ "klarnaIsActive": [32],
289
326
  "installment_sheria_text": [32]
290
327
  }]);
291
328
  function defineCustomElement$1() {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaProductCardEmbed extends Components.SallaProductCardEmbed, HTMLElement {}
4
+ export const SallaProductCardEmbed: {
5
+ prototype: SallaProductCardEmbed;
6
+ new (): SallaProductCardEmbed;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,97 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+
6
+ const sallaProductCardEmbedCss = "";
7
+
8
+ const SallaProductCardEmbed$1 = /*@__PURE__*/ proxyCustomElement(class SallaProductCardEmbed extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.loading = false;
13
+ this.hasError = false;
14
+ this.productData = null;
15
+ }
16
+ async componentWillLoad() {
17
+ await salla.onReady();
18
+ await this.fetchProduct();
19
+ }
20
+ componentDidRender() {
21
+ this.renderCardNode();
22
+ }
23
+ fetchProduct() {
24
+ if (!this.productId) {
25
+ this.productData = null;
26
+ this.loading = false;
27
+ this.hasError = false;
28
+ return;
29
+ }
30
+ this.loading = true;
31
+ this.hasError = false;
32
+ return salla.api
33
+ .withoutNotifier(() => salla.product.api.getDetails(this.productId))
34
+ .then((response) => {
35
+ const data = response.data;
36
+ this.productData = data ?? null;
37
+ this.hasError = !data;
38
+ })
39
+ .catch((_error) => {
40
+ this.productData = null;
41
+ this.hasError = true;
42
+ })
43
+ .finally(() => {
44
+ this.loading = false;
45
+ });
46
+ }
47
+ renderCardNode() {
48
+ if (!this.cardContainer)
49
+ return;
50
+ this.cardContainer.textContent = '';
51
+ if (!this.productData || this.loading || this.hasError)
52
+ return;
53
+ const tag = window.customElements.get('custom-salla-product-card')
54
+ ? 'custom-salla-product-card'
55
+ : 'salla-product-card';
56
+ const card = document.createElement(tag);
57
+ card.product = this.productData;
58
+ this.cardContainer.appendChild(card);
59
+ }
60
+ render() {
61
+ const cardClasses = {
62
+ 's-product-card-embed-card': true,
63
+ 's-product-card-embed-card-align-left': this.align === 'left',
64
+ 's-product-card-embed-card-align-right': this.align === 'right',
65
+ 's-product-card-embed-card-align-center': this.align === 'center',
66
+ };
67
+ return (h(Host, { key: '77c85dadd3d886ab94323d5676b3a8135157352e' }, this.hasError && h("span", { key: 'ee80e9375cbdbc08546ae6ad0d1020b32a3dafc8', class: "s-product-card-embed-fallback" }), h("div", { key: '50e35de032d0d66f7772a8e44b5744587307795c', class: cardClasses, ref: (el) => {
68
+ this.cardContainer = el;
69
+ } })));
70
+ }
71
+ static get style() { return sallaProductCardEmbedCss; }
72
+ }, [0, "salla-product-card-embed", {
73
+ "productId": [8, "product-id"],
74
+ "align": [513],
75
+ "loading": [32],
76
+ "hasError": [32],
77
+ "productData": [32]
78
+ }]);
79
+ function defineCustomElement$1() {
80
+ if (typeof customElements === "undefined") {
81
+ return;
82
+ }
83
+ const components = ["salla-product-card-embed"];
84
+ components.forEach(tagName => { switch (tagName) {
85
+ case "salla-product-card-embed":
86
+ if (!customElements.get(tagName)) {
87
+ customElements.define(tagName, SallaProductCardEmbed$1);
88
+ }
89
+ break;
90
+ } });
91
+ }
92
+ defineCustomElement$1();
93
+
94
+ const SallaProductCardEmbed = SallaProductCardEmbed$1;
95
+ const defineCustomElement = defineCustomElement$1;
96
+
97
+ export { SallaProductCardEmbed, defineCustomElement };
@@ -59,11 +59,11 @@ const SallaProductSizeGuide$1 = /*@__PURE__*/ proxyCustomElement(class SallaProd
59
59
  return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
60
60
  }
61
61
  render() {
62
- return (h("salla-modal", { key: 'df2e5102905d69bd07e1faf02330c3453676282a', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '6a97d6b0f35ba6d90772c72c4ed20d520c97b98d', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: 'babf929a6c385e2314338a1b50ef71de3fb8c8ba', slot: "loading" }, h("div", { key: '95818d8be3112f32f78d180dda347596167fd2b6', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '1bf1b7c5b5393b89d593b0a9e071ba9f8d158fbb', height: '15px', width: '25%' }), h("div", { key: 'bf4112773abdc284154ee6843b7eef4d1d94bdcc', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'dbbcc175879ed02058af3c998ec4b7aeefe25d60', height: '40px' }), h("salla-skeleton", { key: '0507d63b57bd4d6cae40f1b21d7e85c75c59e8ae', height: '40px' }), h("salla-skeleton", { key: '386c3d4e83233f953a41aea5092fc480bf7f2237', height: '40px' }), h("salla-skeleton", { key: 'bb5c6f5ac3bb1d1f64d353865bb70c410568d20e', height: '40px' })), h("div", { key: 'c9e0886006385022900d632349f93d531ff72ba8', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '588a847c1665a8f8808b91748028ab14ed40c54a', height: '15px', width: '25%' }), h("salla-skeleton", { key: '7ad4c78d9a968c26544847db18469e38ff61c32f', height: '10px', width: '75%' }), h("salla-skeleton", { key: 'cac7a94e1dcb21eeb721a535cb9ef3e1396d3f5b', height: '10px', width: '50%' }), h("salla-skeleton", { key: 'e753cfe0187d178e3640b4567fb5bf2107e52abe', height: '10px', width: '75%' }), h("salla-skeleton", { key: '8d4ade1d66244b5e1280f849b100ccd88edd8a8f', height: '10px', width: '100%' }), h("salla-skeleton", { key: '7ad153aecd33bbb345e03c54708878ea6803a93c', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'f61c9db0c8ce1faf66ee4a40c4cba3bb8a51f131', height: '10px', width: '60%' }), h("salla-skeleton", { key: '1ab1002b8c35569eac30f58682834733e0948e7a', height: '10px', width: '45%' }), h("salla-skeleton", { key: 'a00cb2b88a9dfba2f8caa5b2e4ebf1fa82f969b4', height: '10px', width: '30%' })))), h("slot", { key: 'd4f0a35976d27416b60bc3d1e6959df8139359d5', name: "header" }), !this.hasError && !!this.guides ?
62
+ return (h("salla-modal", { key: 'ad8cbc23e60bc0d463f5b94febeab699dd96e2b4', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: 'b3dc61221d36a2680f74280e5fdb7601e5e70e62', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '9735c6681e3e7c15c5d346f6cfca4c7d34542061', slot: "loading" }, h("div", { key: '65224399d086d931c5c978dd00cf2d4d1ec3c082', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '05c0eda8bc21f5a2e2a89424bed145e61cd5a29e', height: '15px', width: '25%' }), h("div", { key: 'af0e4801d3e27f664b38577c61ae3fc15e4c5c95', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '614ad02c61d7c44ec768a060cf7a25f04b618056', height: '40px' }), h("salla-skeleton", { key: 'a4da4e2fa6ded411938fd90c4e11d368baadf03e', height: '40px' }), h("salla-skeleton", { key: 'fb2fc13e520d704ad02d9c90f3678d7ec18e89f9', height: '40px' }), h("salla-skeleton", { key: '8b4723988f62458876f4b915f11df73bbf7717a8', height: '40px' })), h("div", { key: '9ae65ff980ee9458d1c2996465dcd7815bae0c1f', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '9d970f8d2d116845a902f7bcab944b48c781024f', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'a8150338ad24a94552796f948b4dddfd280179aa', height: '10px', width: '75%' }), h("salla-skeleton", { key: '34446a9a1948c7c006f6e13b26cacd7e20d16238', height: '10px', width: '50%' }), h("salla-skeleton", { key: '8838c419ac7f384861188d7ab96e8f42473c04c0', height: '10px', width: '75%' }), h("salla-skeleton", { key: '21f8e182ba77e35b0f02f1cbcd21ee8effd94ac0', height: '10px', width: '100%' }), h("salla-skeleton", { key: '5391e8a3a133dd2ccf7087590113391da080ca8a', height: '10px', width: '25%' }), h("salla-skeleton", { key: '743ba490362dd541229cb5c60feb0b6dc5750714', height: '10px', width: '60%' }), h("salla-skeleton", { key: '58e6839c74e13e11f4ef84fa4ec85e1f2f9868f4', height: '10px', width: '45%' }), h("salla-skeleton", { key: 'a6f771e12046112b282dede2d759ed3d019bedcc', height: '10px', width: '30%' })))), h("slot", { key: '3ed1875a19be5a65afbf912fb0819dd92ded3062', name: "header" }), !this.hasError && !!this.guides ?
63
63
  [
64
64
  h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
65
65
  ]
66
- : this.showPlaceholder(), h("slot", { key: '63d8114c56ae8ede12322792df6cb60f9111f928', name: "footer" })));
66
+ : this.showPlaceholder(), h("slot", { key: 'ca9526f3f95675dab2a38d2715ed3cf842d93174', name: "footer" })));
67
67
  }
68
68
  get host() { return this; }
69
69
  static get style() { return sallaProductSizeGuideCss; }
@@ -95,7 +95,7 @@ const SallaQuantityInput = /*@__PURE__*/ proxyCustomElement(class SallaQuantityI
95
95
  if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
96
96
  inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
97
97
  }
98
- return (h(Host, { key: '349b3cd1d83e0451132dd5c93b93b0d70a7628bb', class: "s-quantity-input" }, h("div", { key: '4c9e950f8485c6b4558de88763208d7ee38858aa', class: "s-quantity-input-container" }, h("button", { key: 'ae21915513d6061b990d7cb62f627ca16bd9b087', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'd2333916fc2376f2de964ee08b51ed9a23e0885a', name: "increment-button" })), h("input", { key: 'bac1692e0d207643411ffe40fb1296735c1a1898', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: 'c121075780405d3d64ef5e0c5489e6cc43a90538', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '157ca6b862329e57aa58337b95cf9c90a2b8e1f9', name: "decrement-button" })))));
98
+ return (h(Host, { key: '77565ee635cdda42e956be4fea503905fe4bf199', class: "s-quantity-input" }, h("div", { key: 'f8aa9fb2200032d503cdfc65a65bc2bf94e00eb8', class: "s-quantity-input-container" }, h("button", { key: '1711c74ee9b8f212c2651f9c3a2f3e6737fbe8f4', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '65803c2b491b5dbb1ae79787eec6151f742b517f', name: "increment-button" })), h("input", { key: '1b16e0e0603d91b3a12c968a98575f4146f2d7b6', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: 'ad33507fa617ddb6ebeee842c5f1f0b3595a475b', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '341b8e5d941e63c13c78061d24ecd2ba64d9a7a1', name: "decrement-button" })))));
99
99
  }
100
100
  get host() { return this; }
101
101
  static get watchers() { return {
@@ -1141,7 +1141,7 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
1141
1141
  });
1142
1142
  }
1143
1143
  render() {
1144
- return h(Host, { key: 'c748ae20633d0002e23a3c7295d3235b3f543245' }, this.quickBuyButton());
1144
+ return h(Host, { key: '76958d08c18982d3f643c65ac1f6119830414d5d' }, this.quickBuyButton());
1145
1145
  }
1146
1146
  quickBuyButton() {
1147
1147
  return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
@@ -172,7 +172,7 @@ const SallaReviewCard = /*@__PURE__*/ proxyCustomElement(class SallaReviewCard e
172
172
  return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
173
173
  }
174
174
  render() {
175
- return h("div", { key: 'ec2ded8609dba5e1bbd86056a6dbc9021f36a212', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'd1ee883d27ebb03c2877f2ec8d2b5fcb11eaa3e5', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '787ec1bef7fd4b2916f6b106e075ff1a87b06f81', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
175
+ return h("div", { key: 'e5a7774e29dff0fd1ce5ce1e8ca01ee2367f5078', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '69c22179536a152eddb72a4790f8bd20c9b6b886', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '28e980d499e7078006486e94f5e87f5b71790400', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
176
176
  }
177
177
  get el() { return this; }
178
178
  static get style() { return sallaReviewCardCss; }
@@ -685,7 +685,7 @@ const SallaReviewsPage$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviewsPa
685
685
  return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
686
686
  }
687
687
  render() {
688
- return (h("host", { key: '9d393d47dde31817178d398dacf0be9d1961f487' }, h("div", { key: '2109c18f3cf9ebb5769291ee88dc733e2b96759f', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'f9259ac0832ea3041a517ee3dd8dccb41a3bd903', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'f49098ca0e3f911669c610a310dbf331922e9b8a', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '739397b8f7389cfab453d435868b20be49871d6d', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '92bd0f40b758f394ca3c1604ba207653e2263bac', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'a2b42e0c18c9192a3ff33f61ca21e50355655ed4', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
688
+ return (h("host", { key: '80224727f57c3075fab3814bc31ad69e13bebd5e' }, h("div", { key: 'b014fad2937c226921ffafd4504cfab975ea9a39', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'bf6ae4aa8c922fda85176708b5f4669c10bf6c08', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: '63c6fde2d510cbc49a435ad8d91bc15c4323fa1d', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '3ecb8d184bb112b2961aedf7500f29d53c6bc516', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '6a0ff38fe00c276c4e90233dab20bf2c4d561e82', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'b0f3528c27cf620fbde83293f2c48dccb51590ea', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
689
689
  this.wrapper = el;
690
690
  } }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
691
691
  : h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
@@ -98,7 +98,7 @@ const SallaReviews$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviews exten
98
98
  });
99
99
  }
100
100
  render() {
101
- return (h("div", { key: '889f426abadef56e0bfbde908d5066945c7a8543', class: "s-reviews-container" }, h("div", { key: '2965a05ba4845b9662f473a9ebd170c57cf36451', class: "s-reviews-header-wrapper" }, h("h1", { key: 'c9a77566e31c32657b0db3adbe2a49fe0c0f65e0', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '40dd000abc65ae509b451f19919f55972eeb6af3', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'fd32e5d7fa8b49ed07d45585d5da2acc23d0e7f2', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
101
+ return (h("div", { key: 'd527bf318afcd25134abc80d1c402b19113040da', class: "s-reviews-container" }, h("div", { key: '89236aef8cbfcc26c7cb3df6f6b905c0b3047236', class: "s-reviews-header-wrapper" }, h("h1", { key: '3c9068fd0a7c91fb661fc08e50f552b1f6962f3f', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '298151de4f6ce169dd9f5d2092c1895dfa4dc264', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'a8cf3322655adb74a6a7b30d2d7e2e80d6eb2b55', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
102
102
  }
103
103
  static get style() { return sallaReviewsCss; }
104
104
  }, [0, "salla-reviews", {
@@ -165,7 +165,7 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
165
165
  return salla.onReady();
166
166
  }
167
167
  render() {
168
- return (h(Host, { key: '3b477eba55e3d9b8067b5b2e889a66a038cdfeaa' }, h("salla-modal", { key: '82aefd868b472b3f2265140845ab40eb8a2afa72', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
168
+ return (h(Host, { key: '18d5a944f5034e2079c30b6595b3c7969b92f939' }, h("salla-modal", { key: 'a254d29b1a9cb363ba72417e234af5d81e9f2b8c', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
169
169
  h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
170
170
  :
171
171
  [h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
@@ -132,10 +132,10 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
132
132
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
133
133
  }
134
134
  render() {
135
- const searchContent = (h("div", { key: '9ed37ceb9eb7ef3468b69b0f9efaecdbc071f52a', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: 'bc83f0c8cc26d23c4b26b98438666c1053300ae9', class: "s-search-input-wrapper" }, h("span", { key: '5d5537a2cd6b4deadaf6451f0f301ee609ec07b6', class: "s-search-icon-wrap" }, h("span", { key: '36151c40fe3c6e48d028980c405592947d762bcc', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '3b488e2282d93b2df22309434753ce94f4ab9b8b', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
135
+ const searchContent = (h("div", { key: 'd152ce7b41f44975724214a4957b366a3d372efe', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '19c13742ed6b78300da453503c01052cc56e6224', class: "s-search-input-wrapper" }, h("span", { key: '65b092ca1797d23fca0370578c3780bb553bbc2e', class: "s-search-icon-wrap" }, h("span", { key: '14caaa450614f8dd99b05edd447184ab79cd94f2', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '4656f0002ff24e9948c5799d5bbed20e59eee2e9', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
136
136
  height: this.height + 'px',
137
137
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
138
- } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: 'e5310efe972f797f6b0be3cd283c531799852380', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
138
+ } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: 'ca998ee139b31b0284ae72ccd1f9466f697feb6a', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
139
139
  's-search-product': true,
140
140
  's-search-product-not-available': !product.is_available,
141
141
  }, innerHTML: this.productSlot
@@ -144,9 +144,9 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
144
144
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
145
145
  ? salla.money(product.regular_price)
146
146
  : '')
147
- .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'b3ca75a3641d75a445e9b187dd7f91d0f3a053e1', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
148
- const modalContent = (h("salla-modal", { key: '1bdb2348d3af824ba5b6d624f9613ed406145e5b', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
149
- const placeholderContent = (h("div", { key: '90a4dd34c763e9390c8cc5caf09b0f8af67a671a', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '2baf596e2163e42c6b1537b23297d791f76dd382', class: "s-search-input-wrapper" }, h("span", { key: '3048a62a758cb3b5a61a50f7c7e4af1fb6f013b1', class: "s-search-icon-wrap" }, h("span", { key: '3b0336f934d449c189e01c5c9072915781779280', class: "s-search-icon", innerHTML: Search })), h("button", { key: '991d1ff811b93c2700e6526efbc2948117e58669', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
147
+ .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'c8f2750a602097c96b1424acc35d2a190f86bf5d', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
148
+ const modalContent = (h("salla-modal", { key: '2656ec22b40c5d69c9ce9887ff683d119ef826e2', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
149
+ const placeholderContent = (h("div", { key: '8f771fddec5620cbfc8259a6d94e955db0f5e787', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'a6ac18f63248ae303d05f8ed62f0dadfded33fad', class: "s-search-input-wrapper" }, h("span", { key: '5996163e3314b9c9240018e438f121d553e58e0f', class: "s-search-icon-wrap" }, h("span", { key: '581c625690b9fc000108bc5ba642f3a3452f67c8', class: "s-search-icon", innerHTML: Search })), h("button", { key: '8f7edf24f999f3c5a37cca2c82c664822e729088', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
150
150
  height: this.height + 'px',
151
151
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
152
152
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -179,18 +179,18 @@ const SallaSearchableDropdown = /*@__PURE__*/ proxyCustomElement(class SallaSear
179
179
  render() {
180
180
  const hasSelection = this.selectedItem != null;
181
181
  const listboxId = `${this.inputId}-listbox`;
182
- return (h(Host, { key: 'cdb96259f3951c9e2a068e1aa170e3dd1b60331c', class: "s-searchable-dropdown" }, h("div", { key: 'e4a4523e6fc13a00b06c949080a00c217aa07b4d', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '9e8d9d1157e2236357512b74cc96622287764347', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: 'a5e66b934d13d113de8b5c033fc26d8982e52fba', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '42ddef68f5177532a143b4569115fd5b7e006fa3', class: {
182
+ return (h(Host, { key: '3545a75c07ae7c2a2c82ee54fa710f6f5d8bcfce', class: "s-searchable-dropdown" }, h("div", { key: '022fb98602228c5837cadb758f24f00956fafc22', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '24e09036df24d45ce74799ec06b20b03df866866', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '94277d1659f2b22c96de02a77a37920eefff13ef', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '077e0662f0570c1bf9339577e7699d75f9b337de', class: {
183
183
  's-searchable-dropdown-trigger': true,
184
184
  's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
185
185
  's-searchable-dropdown-trigger--open': this.isOpen,
186
- }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: 'd0af58c577361ea1f64bcb8e8e6bcf82f662bc71', class: {
186
+ }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '134a95003036f1c8a7df91a06542178e6ec12c04', class: {
187
187
  'sicon-keyboard_arrow_down': true,
188
188
  's-searchable-dropdown-trigger-icon': true,
189
189
  's-searchable-dropdown-trigger-icon--open': this.isOpen,
190
- }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '5452d81395fdfe59925ff7d07ec7660909f5ce63', class: {
190
+ }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'be6eb6c94d4b73c27959722ccb4bc87722035d1c', class: {
191
191
  's-searchable-dropdown-panel': true,
192
192
  's-searchable-dropdown-panel--up': this.dropUp,
193
- }, ref: (el) => (this.panelRef = el) }, h("div", { key: '5b7e286c7ce3128f3c0fc1a8983d524042ea66fd', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '0dde5c7d2125e8346e53a4fd42eccfc7615f5ea0', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '1c483ac2d199cbd7b086bc016878b00d51798b84', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId })), h("div", { key: 'f10f0a612008f4d0863685a238d6baefd7903a66', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
193
+ }, ref: (el) => (this.panelRef = el) }, h("div", { key: 'd97ce90a0fd26043a45c1a45616f8fde621e8ac5', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'c7683e2dd873306e18afea983bb410827d883796', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '64c4259b6c5453a9b1cb5985c58c65dd01ec139f', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId })), h("div", { key: '9748f507fcb884b520ffc847800cc3543546b8ce', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
194
194
  }
195
195
  renderListContent() {
196
196
  if (this.searching || this.loading) {
@@ -27,7 +27,7 @@ const SallaSkeleton = /*@__PURE__*/ proxyCustomElement(class SallaSkeleton exten
27
27
  's-skeleton-item': true,
28
28
  's-skeleton-item-circular': this.type == 'circle',
29
29
  };
30
- return (h(Host, { key: 'f645a6a85c27f28f0f4753a21f0a635bd29b1066', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '7146a8905fd164c30ed54729e6e1d7a23b1df94e', class: classes }, "\u00A0")));
30
+ return (h(Host, { key: 'bbd3b59181da4c7c97a2fbf862eedebbedbe0634', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '137814e704aabda9931441f744bac595dd506d0e', class: classes }, "\u00A0")));
31
31
  }
32
32
  static get style() { return sallaSkeletonCss; }
33
33
  }, [0, "salla-skeleton", {
@@ -150,7 +150,7 @@ const SallaSocialShare$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocialSha
150
150
  window.a2a?.init('page');
151
151
  }
152
152
  render() {
153
- return (h("div", { key: '52c1d99308e8512060d0b28bfe9e8bbe6d9e421d', class: "s-social-share-wrapper" }, h("slot", { key: '9086cdb5e2a3f1544e8711c8c9c7b166fa81cb75', name: 'widget' }, h("salla-button", { key: 'b32d67924c0fd2d75bc01d026a81cc4eea06a53e', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'a18db03d476a004e779ad1b7696678dc871b4c2b', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '133254b1c2a797fca7b8e0af40f397d8e8e7651f', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
153
+ return (h("div", { key: '006a40f33ae7513a265f6f3f04425e68a1193cdb', class: "s-social-share-wrapper" }, h("slot", { key: 'e089609f48cd6c231e17488bdd89e78f76b0df78', name: 'widget' }, h("salla-button", { key: '788679ca99d366efbc37faac11332e554a2a7bde', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '97f86e7e8d22f05c13db6cb0dfdf51e18bc3c814', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '8b13d93d51ba38ff1a3794646d9f68b10c6500ff', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
154
154
  return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
155
155
  if (icon.name === platform) {
156
156
  return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -56,7 +56,7 @@ const SallaSocial$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocial extends
56
56
  }
57
57
  render() {
58
58
  const linksArray = this.getLinksArray();
59
- return (h(Host, { key: 'b3377f6f933a69e9b9b8d633b6825d0f7fa1f6b0' }, h("ul", { key: 'ee82940597a4a18a721415c9c192adedbcd2c67d', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
+ return (h(Host, { key: 'a4c05f6fcf54b6d34c547d7b27a61d4afbd91f10' }, h("ul", { key: 'ab690b3eba0190d6830a5988510c404dafa4e450', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
60
60
  .replace(/\{icon\}/g, this.iconsList[link.type])
61
61
  .replace(/\{type\}/g, link.type)
62
62
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -32,7 +32,7 @@ const SallaTabContent = /*@__PURE__*/ proxyCustomElement(class SallaTabContent e
32
32
  's-tabs-content': true,
33
33
  's-tabs-content-selected': this.isSelected
34
34
  };
35
- return (h("div", { key: '7e434cb1ef165f74434be7a81332ac03b75b7fbf', class: classes }, h("slot", { key: 'cf6f81543421fddcd25ae6a4110101e749065e58' })));
35
+ return (h("div", { key: '59729323fd707b74b2b1fd8707fcb122ee21ed9f', class: classes }, h("slot", { key: 'a273156c8bbb3dbf25dc2e556d060c4402a8a394' })));
36
36
  }
37
37
  static get style() { return sallaTabContentCss; }
38
38
  }, [4, "salla-tab-content", {
@@ -58,7 +58,7 @@ const SallaTabHeader = /*@__PURE__*/ proxyCustomElement(class SallaTabHeader ext
58
58
  's-tabs-active': this.isSelected,
59
59
  };
60
60
  return [
61
- h("div", { key: '83a46a1c9b08bbbfeae3db10a482a50930645e26', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '14f194bf5d1152f4fb0976a5784e00fda3504f5e' })),
61
+ h("div", { key: 'cdeff834ff1a1e4a5cd19c52e5c36bcc51491064', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '5aeedafb3c074f588cd2a343fe48fc5b8807821d' })),
62
62
  ];
63
63
  }
64
64
  static get style() { return sallaTabHeaderCss; }
@@ -51,7 +51,7 @@ const SallaTabs = /*@__PURE__*/ proxyCustomElement(class SallaTabs extends HTMLE
51
51
  }
52
52
  render() {
53
53
  return [
54
- h("div", { key: '5584079da6ec0297e1b5b0696b951d9a1e59737a', class: "s-tabs" }, h("div", { key: '7ccbf64b3dd3b8a0cc26dbac085b0a6b4fdd674b', class: "s-tabs-header" }, h("slot", { key: 'aad3107a146bb0ee7130b17ebb622fdb5cf6b1e7', name: "header" })), h("div", { key: '4f6a38f41b7788162549123fed9c8a256e3f7c94', class: "s-tabs-content-wrapper" }, h("slot", { key: '51cb020f8f95c76959c3b3f730d8763419570b43', name: "content" })))
54
+ h("div", { key: '1d2c28a8025c9c9c1d988dbded489263794cb92e', class: "s-tabs" }, h("div", { key: '54f011017f5378e7053b4f3a135d6a050e08479c', class: "s-tabs-header" }, h("slot", { key: 'efd25fb8dd73b9296015be1e224b84fc53ab9082', name: "header" })), h("div", { key: 'f80582281746ae231092360e26d65331cc98f480', class: "s-tabs-content-wrapper" }, h("slot", { key: 'c97cde11dcbd37124dc1c24559c918111c57e6fe', name: "content" })))
55
55
  ];
56
56
  }
57
57
  get host() { return this; }
@@ -129,7 +129,7 @@ const SallaTelInput = /*@__PURE__*/ proxyCustomElement(class SallaTelInput exten
129
129
  }
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: 'f9dbd104d08e371c2d948d4e2f521f180f0e9728', class: "s-tel-input" }, h("input", { key: '88d9aec228b90558b51d94efca25404603fa028b', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '3e143a4a2021889e0c2dec33968ec7cf127cf635', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'bec80ffbd16d6f36a70205bcdc3dae180270be62', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
132
+ return (h(Host, { key: '3d6d30dec797f67178adf57497e9b1a0dc92c195', class: "s-tel-input" }, h("input", { key: 'e6f1bb82efa3d08d791cb39d82c1c0c6acb3e253', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'ddbb70dd419742bac9a2a34480f4195f282a2c7c', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'b168210708af8d78628ae6b104b268890e60fb8f', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
133
133
  }
134
134
  componentDidLoad() {
135
135
  this.initTelInput();
@@ -32,7 +32,7 @@ const SallaTooltip = /*@__PURE__*/ proxyCustomElement(class SallaTooltip extends
32
32
  }
33
33
  render() {
34
34
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
35
- return (h("div", { key: 'cc5a63847902e9030444f09e503884b89911804e', class: "s-tooltip-container" }, h("div", { key: '8c468cff2093ab72b6021af8935dea9089208d06', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
35
+ return (h("div", { key: '4d433085f726528933c9ca19a86b0be84fc35a43', class: "s-tooltip-container" }, h("div", { key: 'a458c284385d21f3b4e89f18dd46ff25760a0b10', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
36
36
  }
37
37
  get el() { return this; }
38
38
  static get style() { return sallaTooltipCss; }
@@ -83,7 +83,7 @@ const SallaUserSettings$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserSett
83
83
  await salla.profile.delete().finally(() => this.confirmationModal.close());
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: '3b503ea1843a9fa0931a7c3478822994140f1a8d', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '5e4874063fbd5936351f92ea04b9b303c0bd49a3', class: "s-user-settings-section" }, h("salla-list-tile", { key: '6a966de44e40d51e03f1b81f9e170e8d716084e7' }, h("div", { key: '1f5f4ab2d595253304d977c34ad0b4f86c88d900', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'f93006050cd12ea0ad453c7ada465422519f0833', innerHTML: UserCancel })), h("div", { key: '7e8f6021ecf415cbbdfc5b7279b3d06370159df2', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'd4faf62bde6ef5e9ebad40058e411aa56ed14eff', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '1f285539e0627b62b0072a02c51d7134d560a733', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'fae13b1910d84447218d493745b523c40f41376f', class: "s-toggle" }, h("input", { key: '1d36c238f51814e0b201b957182109f2721a8581', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '829fd12d0b4693ccb412767594f6c4060962f027', class: "s-toggle-switcher" }))))), h("div", { key: '3eb2c9d0deacc89cba4ec04788d11e0f25724f84', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'a81db53d1ab9f8477325e279f9e54c58047f4ac2' }, h("div", { key: '8f9368d8ad52ed31872cf95a408c6ffd8da4279c', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '2d7e0c5bf9c54b657ea5ba3299cf09e3d3666e9b', innerHTML: Bullhorn })), h("div", { key: '6a6471a37d98522aa3d118fce39af89b45971b9b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '3844d2bb30e191cdd32681dd4b6601bb6b29975c', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '5eba79efdc171ab9bd0b6b10d0782a3a50d914e7', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '22a4c9433aad0060c2b61c8baa982d9634ddd9e7', class: "s-toggle" }, h("input", { key: '784dc34cdf5f539bf63f788369dcd9a83e4cddb4', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '138bf3b64ef06eb0ccc420e6774feaa5cf296c3d', class: "s-toggle-switcher" }))))), h("div", { key: '04b416e46d89a4acceb2fa17f480729751d78fa5', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: 'c5a3d7e16b97d773219c14de9f51ea6280bd5784' }, h("div", { key: '90f4db05c86c64a33ec9cc39565524a01f44ccd4', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '4cef5fd2411d81a23cc8e9bcd399d5dbd360be6c', innerHTML: UserOff })), h("div", { key: '57d16bf204b0854355368049aab0b45d398da6fc', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '596c8d4c165f2bd71f5c70ec984aa86252841493', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: 'c5912d000eaa947223013fc562e0a3607bb0c6d5', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: '9501681d074dc16fbe82c2ded6bc73bb045715e7', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '34ebc1adaabccbc44f5f742305c087c2916d310a', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '8e3c8f4bccc605051d092ea0f507808157faacc8', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '0e9cfb8c990bf86cf846d25e8f17c8823212a651', class: "s-user-settings-confirmation" }, h("div", { key: '672ab4c5689ff9fa0a2af07d3ddcc77f8babd7ce', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '65f5e0eaeab3b4f28998dc84e2ba225fac44c294', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '7f19101736ff2e2e1ad932cbd84e01ab19520d9b', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '80a161ac2fbe61d9ba1f0999f6a055aa378f05bd', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
86
+ return (h(Host, { key: 'd49fe1cc125040388326a346cf6349cdff3e8827', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '4f6227afbf0f1a9ac4ae6c0404c04de65ef2c22d', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'd084e7c978e0f41b8997299690e1b419f1dcecea' }, h("div", { key: '732f09a315529dd23a690ec2e2db2ca157f30b3f', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '57854cdcd75e9bdf261cc10108b9dd03ba886c9a', innerHTML: UserCancel })), h("div", { key: '4d42778a9a52a6a539f9c84103a4e35ab10eadce', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '45ea0bf9bbc5d055e50de279ed21c77f69194a83', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'addf60ce92d9bd5d7307af22f8e08ca627f52692', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'db9bfdd607f9578349051126893fcd77eccc8aea', class: "s-toggle" }, h("input", { key: '5c56ac1adffc24c7d1190251713d99214ef242e3', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '5f275e5c3517a6df99e781537ac17135d54b5d9a', class: "s-toggle-switcher" }))))), h("div", { key: '0cb50e709e0dbc49f769b4f107002eadadb41c32', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'f710c59a481aedca13fb36d003ddb5b71905771f' }, h("div", { key: 'b8e81786c8cea4cc36d81ad4e5a53381fea20ed4', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'b4b3b36769c216f4981fcebec511e33461e703d5', innerHTML: Bullhorn })), h("div", { key: 'a5a9271e04367bbc512656176bf7b9c59855c497', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'f7191566d7fea659a0d080f7680ace28f74fc5e1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'edaed3be64edc7e98640d33ae57112e8586e3354', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '9a444d833c61719f65200b6a16ce8bf47406b84f', class: "s-toggle" }, h("input", { key: 'bd18d96449c3eb4d6b263bc5cbf7a9b8d639bd6d', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '5742974d46ab2e1084f85d3902ead64a4d2340e3', class: "s-toggle-switcher" }))))), h("div", { key: 'cd920209f8188531735c0a12b40f290ffafd31ab', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '49ea382b58e36475794f8e80e41caf7db938ddc4' }, h("div", { key: '7cb1d0abc1c178862111e49804cb750ddd01aea3', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'de51a80143d6b44ec3ad1f6422e769e57432dd9e', innerHTML: UserOff })), h("div", { key: '1a00838952cac6c3fafe29b9e7e32f5ed3126f30', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'f4b2794e0dd8a036ce404b7243986b7ba5a63340', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '72cb29457621699ed1449cdd52eb5151023637ab', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'aba35845332da5f0da393078e06a0e0498bf2d28', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '4fd811fbbc6e7fcc1a6a8d23e8bfa05b7499dcbc', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '712fe566292404c42aa79970978f03fb23b4d2ab', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '69ce40edbcaf775e33d62a3e242e5fcc9cce3cef', class: "s-user-settings-confirmation" }, h("div", { key: 'f71c23f124449b12ad7db1f523ca3b80b5c50a2b', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '6995699f126fb98cc6271a0f476dd6b4f53cfd3c', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'f45563215e757ee3b172622c346cd40fca1a79a6', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '1ba83fc0690f0a10176008bb2470759878471cee', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
87
87
  }
88
88
  static get style() { return sallaUserSettingsCss; }
89
89
  }, [0, "salla-user-settings", {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CCvjaZrV.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C3g9jJZW.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {