@salla.sa/twilight-components 2.14.458 → 2.14.460

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 (327) hide show
  1. package/dist/cjs/{Helper-CU4Xuiki.js → Helper-CgGR9Qf8.js} +12 -0
  2. package/dist/cjs/{filepond-feaMFOj_.js → filepond-CGfIHI6f.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-BZT9ukbc.js → filepond-plugin-file-poster-BogxH8wL.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size--7D0QTWS.js → filepond-plugin-file-validate-size-DSlzvO7P.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-cLz_UQvD.js → filepond-plugin-file-validate-type-QKvTiG_U.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit--i9lQj9g.js → filepond-plugin-image-edit-CdCoWANz.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-DCA1ZCDJ.js → filepond-plugin-image-exif-orientation-CJ84EvSe.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-DGipSjOn.js → filepond-plugin-image-preview-BSABZf_n.js} +1 -1
  9. package/dist/cjs/{functions-45yOAuh2.js → functions-8bJoQsbY.js} +1 -1
  10. package/dist/cjs/{index-DoKZADm3.js → index-ClIoplYB.js} +2 -2
  11. package/dist/cjs/{index-D1MNaBOd.js → index-D0dSQBmL.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +19 -9
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  51. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  74. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-card_2.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  81. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  85. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-trust-badges.cjs.entry.js +11 -4
  95. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  100. package/dist/cjs/{tracked-promise-DBfKp0i-.js → tracked-promise-YbXLxnty.js} +1 -1
  101. package/dist/cjs/twilight.cjs.js +2 -2
  102. package/dist/cjs/{vanilla-picker-BlZm-f_Z.js → vanilla-picker-CQ98NxBN.js} +1 -1
  103. package/dist/collection/Helpers/Helper.js +12 -0
  104. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +5 -1
  105. package/dist/collection/components/salla-product-availability/salla-product-availability.js +13 -8
  106. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +10 -3
  107. package/dist/components/Helper.js +12 -0
  108. package/dist/components/index.js +2 -2
  109. package/dist/components/salla-add-product-button2.js +5 -1
  110. package/dist/components/salla-product-availability2.js +13 -8
  111. package/dist/components/salla-trust-badges.js +10 -3
  112. package/dist/esm/{Helper-DFMXF2_h.js → Helper-BXj4f_Qj.js} +12 -0
  113. package/dist/esm/{filepond-CffxACiY.js → filepond-C4Vtw3hu.js} +1 -1
  114. package/dist/esm/{filepond-plugin-file-poster-LzXPemRj.js → filepond-plugin-file-poster-DHC1vUJ9.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-validate-size-BBeG1YQF.js → filepond-plugin-file-validate-size-CBM0hQ0G.js} +1 -1
  116. package/dist/esm/{filepond-plugin-file-validate-type-DWCw6g0N.js → filepond-plugin-file-validate-type-BEekNkNc.js} +1 -1
  117. package/dist/esm/{filepond-plugin-image-edit-0ClTm033.js → filepond-plugin-image-edit-C9OQtxCr.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-exif-orientation-CR7WTm7O.js → filepond-plugin-image-exif-orientation-CmDE8Rj3.js} +1 -1
  119. package/dist/esm/{filepond-plugin-image-preview-CHGE8apT.js → filepond-plugin-image-preview-BZJQYto9.js} +1 -1
  120. package/dist/esm/{functions-Dd4f5cCM.js → functions-DXqv01Ta.js} +1 -1
  121. package/dist/esm/{index-DohtU8-7.js → index-COrBCyov.js} +1 -1
  122. package/dist/esm/{index-BxKt36mx.js → index-iJ5sq_zX.js} +2 -2
  123. package/dist/esm/loader.js +3 -3
  124. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  125. package/dist/esm/salla-accordion_6.entry.js +2 -2
  126. package/dist/esm/salla-add-product-button_5.entry.js +19 -9
  127. package/dist/esm/salla-advertisement.entry.js +1 -1
  128. package/dist/esm/salla-alert_2.entry.js +1 -1
  129. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  130. package/dist/esm/salla-apps-icons.entry.js +1 -1
  131. package/dist/esm/salla-badge.entry.js +1 -1
  132. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  133. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  134. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  135. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  136. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  137. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  138. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  139. package/dist/esm/salla-contacts.entry.js +1 -1
  140. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  141. package/dist/esm/salla-count-down.entry.js +1 -1
  142. package/dist/esm/salla-custom-fields.entry.js +1 -1
  143. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  144. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  145. package/dist/esm/salla-filters-widget.entry.js +2 -2
  146. package/dist/esm/salla-filters.entry.js +2 -2
  147. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  148. package/dist/esm/salla-gifting.entry.js +1 -1
  149. package/dist/esm/salla-hook.entry.js +1 -1
  150. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  151. package/dist/esm/salla-installment.entry.js +1 -1
  152. package/dist/esm/salla-list-tile.entry.js +1 -1
  153. package/dist/esm/salla-localization-modal.entry.js +1 -1
  154. package/dist/esm/salla-login-modal.entry.js +1 -1
  155. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  156. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  157. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  158. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  159. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  160. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  161. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  162. package/dist/esm/salla-loyalty.entry.js +1 -1
  163. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  164. package/dist/esm/salla-map.entry.js +1 -1
  165. package/dist/esm/salla-menu.entry.js +1 -1
  166. package/dist/esm/salla-metadata.entry.js +1 -1
  167. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  168. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  169. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  170. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  171. package/dist/esm/salla-notification-item.entry.js +1 -1
  172. package/dist/esm/salla-notifications.entry.js +2 -2
  173. package/dist/esm/salla-offer-modal.entry.js +1 -1
  174. package/dist/esm/salla-offer.entry.js +1 -1
  175. package/dist/esm/salla-order-branch.entry.js +1 -1
  176. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  177. package/dist/esm/salla-order-details-options.entry.js +1 -1
  178. package/dist/esm/salla-order-details.entry.js +1 -1
  179. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  180. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  181. package/dist/esm/salla-order-edit.entry.js +1 -1
  182. package/dist/esm/salla-order-summary.entry.js +1 -1
  183. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  184. package/dist/esm/salla-orders.entry.js +2 -2
  185. package/dist/esm/salla-payments.entry.js +1 -1
  186. package/dist/esm/salla-placeholder.entry.js +1 -1
  187. package/dist/esm/salla-price-range.entry.js +1 -1
  188. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  189. package/dist/esm/salla-product-card_2.entry.js +2 -2
  190. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  191. package/dist/esm/salla-products-list.entry.js +2 -2
  192. package/dist/esm/salla-progress-bar.entry.js +1 -1
  193. package/dist/esm/salla-quick-order.entry.js +1 -1
  194. package/dist/esm/salla-rating-modal.entry.js +2 -2
  195. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  196. package/dist/esm/salla-scopes.entry.js +1 -1
  197. package/dist/esm/salla-search.entry.js +2 -2
  198. package/dist/esm/salla-skeleton.entry.js +1 -1
  199. package/dist/esm/salla-slider.entry.js +1 -1
  200. package/dist/esm/salla-social-share.entry.js +1 -1
  201. package/dist/esm/salla-social.entry.js +1 -1
  202. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  203. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  204. package/dist/esm/salla-tooltip.entry.js +1 -1
  205. package/dist/esm/salla-trust-badges.entry.js +11 -4
  206. package/dist/esm/salla-user-menu.entry.js +1 -1
  207. package/dist/esm/salla-user-profile.entry.js +1 -1
  208. package/dist/esm/salla-user-settings.entry.js +1 -1
  209. package/dist/esm/salla-verify.entry.js +1 -1
  210. package/dist/esm/salla-wallet.entry.js +1 -1
  211. package/dist/esm/{tracked-promise-tXUCoIr3.js → tracked-promise-BqdEjVrn.js} +1 -1
  212. package/dist/esm/twilight.js +3 -3
  213. package/dist/esm/{vanilla-picker-Bn8UZjWt.js → vanilla-picker-sDHf8LOA.js} +1 -1
  214. package/dist/twilight/{p-CLJJGa4R.js → p--2LAp_Ix.js} +1 -1
  215. package/dist/twilight/{p-c32e2a71.entry.js → p-0235e63d.entry.js} +1 -1
  216. package/dist/twilight/p-075e48a4.entry.js +4 -0
  217. package/dist/twilight/{p-23353fc1.entry.js → p-07ab6222.entry.js} +1 -1
  218. package/dist/twilight/{p-7708a3e0.entry.js → p-07cfe13f.entry.js} +1 -1
  219. package/dist/twilight/{p-40f55e09.entry.js → p-099f53cb.entry.js} +1 -1
  220. package/dist/twilight/{p-2082d185.entry.js → p-1048d417.entry.js} +1 -1
  221. package/dist/twilight/{p-940f0285.entry.js → p-12e4f4b3.entry.js} +1 -1
  222. package/dist/twilight/{p-aa0a82ba.entry.js → p-12e99bf3.entry.js} +1 -1
  223. package/dist/twilight/{p-2d39c870.entry.js → p-147b1b05.entry.js} +1 -1
  224. package/dist/twilight/{p-f97149c2.entry.js → p-153ae87f.entry.js} +1 -1
  225. package/dist/twilight/{p-71ff03c7.entry.js → p-1bbdc1be.entry.js} +1 -1
  226. package/dist/twilight/p-1f2d6697.entry.js +4 -0
  227. package/dist/twilight/{p-eba31f7c.entry.js → p-234c1e5a.entry.js} +1 -1
  228. package/dist/twilight/{p-DvUuxBCy.js → p-2YeLvW5I.js} +1 -1
  229. package/dist/twilight/p-2b558991.entry.js +4 -0
  230. package/dist/twilight/{p-bfe100b5.entry.js → p-2c1eaa42.entry.js} +1 -1
  231. package/dist/twilight/{p-865541e7.entry.js → p-3478605e.entry.js} +1 -1
  232. package/dist/twilight/{p-16abcebc.entry.js → p-38669272.entry.js} +1 -1
  233. package/dist/twilight/{p-4c1cda26.entry.js → p-38c48529.entry.js} +1 -1
  234. package/dist/twilight/{p-3737a731.entry.js → p-3dd52ee6.entry.js} +1 -1
  235. package/dist/twilight/{p-c5fdba11.entry.js → p-46d2ef37.entry.js} +1 -1
  236. package/dist/twilight/{p-7720867a.entry.js → p-486eec44.entry.js} +1 -1
  237. package/dist/twilight/{p-c27fbce5.entry.js → p-4a68aa3a.entry.js} +1 -1
  238. package/dist/twilight/{p-6d99f564.entry.js → p-4bf10fda.entry.js} +1 -1
  239. package/dist/twilight/{p-d03f573b.entry.js → p-4f009520.entry.js} +1 -1
  240. package/dist/twilight/{p-3d504212.entry.js → p-53725056.entry.js} +1 -1
  241. package/dist/twilight/{p-74966aa4.entry.js → p-569c6283.entry.js} +1 -1
  242. package/dist/twilight/{p-c5acb840.entry.js → p-56f2c80b.entry.js} +1 -1
  243. package/dist/twilight/{p-67378b91.entry.js → p-570a0386.entry.js} +1 -1
  244. package/dist/twilight/{p-fb12850b.entry.js → p-59e51761.entry.js} +1 -1
  245. package/dist/twilight/p-59edb110.entry.js +4 -0
  246. package/dist/twilight/{p-1dda49a2.entry.js → p-5a502b2d.entry.js} +1 -1
  247. package/dist/twilight/{p-fd9b57a4.entry.js → p-606cf463.entry.js} +1 -1
  248. package/dist/twilight/{p-032b3143.entry.js → p-63db0087.entry.js} +1 -1
  249. package/dist/twilight/{p-4e1e74e7.entry.js → p-68cc082a.entry.js} +1 -1
  250. package/dist/twilight/{p-44e22a0b.entry.js → p-6959e50c.entry.js} +1 -1
  251. package/dist/twilight/{p-32d49832.entry.js → p-6a0592ff.entry.js} +1 -1
  252. package/dist/twilight/{p-dc9d31bd.entry.js → p-710aeaa6.entry.js} +1 -1
  253. package/dist/twilight/{p-59ce0a62.entry.js → p-77161ea1.entry.js} +1 -1
  254. package/dist/twilight/{p-23aacddd.entry.js → p-7c274900.entry.js} +1 -1
  255. package/dist/twilight/{p-b3fca774.entry.js → p-7cb9fdf3.entry.js} +1 -1
  256. package/dist/twilight/{p-85b3a22f.entry.js → p-8417e475.entry.js} +1 -1
  257. package/dist/twilight/{p-ab8d1c50.entry.js → p-8784043c.entry.js} +1 -1
  258. package/dist/twilight/{p-cf71632e.entry.js → p-8efab918.entry.js} +1 -1
  259. package/dist/twilight/{p-d2b3b6c5.entry.js → p-8fdda3f7.entry.js} +1 -1
  260. package/dist/twilight/{p-53c1d0b8.entry.js → p-9037aceb.entry.js} +1 -1
  261. package/dist/twilight/{p-73d8bada.entry.js → p-93cffd7b.entry.js} +1 -1
  262. package/dist/twilight/{p-87bfae72.entry.js → p-93e20666.entry.js} +1 -1
  263. package/dist/twilight/{p-ef58d373.entry.js → p-9b32a751.entry.js} +1 -1
  264. package/dist/twilight/{p-f89ac2c3.entry.js → p-9b6f56a4.entry.js} +1 -1
  265. package/dist/twilight/{p-e4b91ab1.entry.js → p-9e65633b.entry.js} +1 -1
  266. package/dist/twilight/{p-CHf8XdiS.js → p-BcbKK1Xp.js} +1 -1
  267. package/dist/twilight/{p-BEUsRLpS.js → p-CEojVb5V.js} +1 -1
  268. package/dist/twilight/{p-B37vFXxB.js → p-DLjvTnkG.js} +1 -1
  269. package/dist/twilight/{p-BJrHiNT7.js → p-DoHbs_Ca.js} +1 -1
  270. package/dist/twilight/{p-BF2OeDPC.js → p-Doa_Qi4D.js} +2 -2
  271. package/dist/twilight/{p-CwiIgE9I.js → p-DpeYnqu7.js} +1 -1
  272. package/dist/twilight/{p-CgUFhQLc.js → p-Mmayo-tO.js} +1 -1
  273. package/dist/twilight/{p-pXzGsRrE.js → p-YOYH8YN6.js} +1 -1
  274. package/dist/twilight/{p-1ff67f37.entry.js → p-a1189807.entry.js} +1 -1
  275. package/dist/twilight/{p-2a763bb1.entry.js → p-a3f1ce8d.entry.js} +1 -1
  276. package/dist/twilight/{p-e5494d9d.entry.js → p-a83a6645.entry.js} +1 -1
  277. package/dist/twilight/{p-e7bd71a3.entry.js → p-a89828dd.entry.js} +1 -1
  278. package/dist/twilight/p-ac7e349a.entry.js +4 -0
  279. package/dist/twilight/{p-eb970c64.entry.js → p-aec79fff.entry.js} +1 -1
  280. package/dist/twilight/{p-37b7f9a1.entry.js → p-b0912857.entry.js} +1 -1
  281. package/dist/twilight/{p-2177b796.entry.js → p-b0afc618.entry.js} +1 -1
  282. package/dist/twilight/{p-76ebb1f3.entry.js → p-b4b57fd2.entry.js} +1 -1
  283. package/dist/twilight/{p-bedfe2f1.entry.js → p-b902d2f5.entry.js} +1 -1
  284. package/dist/twilight/p-ba3fddd7.entry.js +4 -0
  285. package/dist/twilight/{p-7f6647bd.entry.js → p-bae99ba7.entry.js} +1 -1
  286. package/dist/twilight/{p-2ec44c82.entry.js → p-bb9ef23e.entry.js} +1 -1
  287. package/dist/twilight/{p-27ff5ee4.entry.js → p-bec381d0.entry.js} +1 -1
  288. package/dist/twilight/{p-13fb05be.entry.js → p-c1949223.entry.js} +1 -1
  289. package/dist/twilight/{p-1833e7f1.entry.js → p-c208e3c7.entry.js} +1 -1
  290. package/dist/twilight/{p-724f7df5.entry.js → p-c70b165a.entry.js} +1 -1
  291. package/dist/twilight/{p-c4863bf6.entry.js → p-c7f39c26.entry.js} +1 -1
  292. package/dist/twilight/{p-820ef744.entry.js → p-c9932aac.entry.js} +1 -1
  293. package/dist/twilight/{p-23e780a2.entry.js → p-cb7550d3.entry.js} +1 -1
  294. package/dist/twilight/{p-1c2a1511.entry.js → p-cdeac4d4.entry.js} +1 -1
  295. package/dist/twilight/{p-0306c8f5.entry.js → p-cf258842.entry.js} +1 -1
  296. package/dist/twilight/{p-bf991695.entry.js → p-d171d9b7.entry.js} +1 -1
  297. package/dist/twilight/{p-14818bbc.entry.js → p-d7c9b87f.entry.js} +1 -1
  298. package/dist/twilight/{p-f28a753d.entry.js → p-d8b6e962.entry.js} +1 -1
  299. package/dist/twilight/{p-17d04d37.entry.js → p-da9ca18e.entry.js} +1 -1
  300. package/dist/twilight/{p-c60cecc8.entry.js → p-dbedcb2c.entry.js} +1 -1
  301. package/dist/twilight/{p-3b627b8f.entry.js → p-dc530376.entry.js} +1 -1
  302. package/dist/twilight/{p-5ba6fa7b.entry.js → p-dd83f43e.entry.js} +1 -1
  303. package/dist/twilight/{p-213dfc6e.entry.js → p-ddaa0572.entry.js} +1 -1
  304. package/dist/twilight/p-e3871a18.entry.js +4 -0
  305. package/dist/twilight/{p-f5f84c2a.entry.js → p-e824a11d.entry.js} +1 -1
  306. package/dist/twilight/{p-6e7c61b6.entry.js → p-eec5d968.entry.js} +1 -1
  307. package/dist/twilight/{p-92a18a14.entry.js → p-f0451bd0.entry.js} +1 -1
  308. package/dist/twilight/{p-4f02bb67.entry.js → p-f194ed91.entry.js} +1 -1
  309. package/dist/twilight/{p-7069bc5a.entry.js → p-fcf26add.entry.js} +1 -1
  310. package/dist/twilight/{p-e7e7acbd.entry.js → p-fe88bea5.entry.js} +1 -1
  311. package/dist/twilight/{p-CoKgv23c.js → p-gauhE2aA.js} +1 -1
  312. package/dist/twilight/p-iJ5sq_zX.js +5 -0
  313. package/dist/twilight/{p-C-xAJPgJ.js → p-quQVhrL_.js} +2 -2
  314. package/dist/twilight/twilight.esm.js +1 -1
  315. package/dist/types/Helpers/Helper.d.ts +1 -0
  316. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +1 -0
  317. package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
  318. package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +2 -2
  319. package/package.json +5 -5
  320. package/dist/twilight/p-02eb80b8.entry.js +0 -4
  321. package/dist/twilight/p-0c4cba69.entry.js +0 -4
  322. package/dist/twilight/p-13de7f9d.entry.js +0 -4
  323. package/dist/twilight/p-1e0e3caf.entry.js +0 -4
  324. package/dist/twilight/p-55bdc159.entry.js +0 -4
  325. package/dist/twilight/p-BxKt36mx.js +0 -5
  326. package/dist/twilight/p-ae873bb3.entry.js +0 -4
  327. package/dist/twilight/p-fd54bb1a.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as a,h as l,a as s}from"./p-BxKt36mx.js";const i=class{constructor(l){a(this,l),this.languageNames={ar:"العربية",en:"English",sq:"shqip",hy:"հայերէն",bg:"български",zh:"汉语",hr:"hrvatski",cs:"čeština",da:"dansk",nl:"dutch",et:"eesti keel",fi:"suomen kieli",fr:"Français",de:"Deutsch",el:"Ελληνικά",hi:"हिन्दी",hu:"magyar",ind:"bahasa Indonesia",ga:"Gaeilge",it:"Italiano",ja:"日本語",ko:"한국어",lv:"latviešu",mt:"Maltese",fa:"فارسی",pl:"Polish",pt:"português",ro:"română",ru:"русский",sl:"slovenščina",es:"Español",sv:"svenska",tl:"Tagalog (Filipino)",tr:"Türkçe",uk:"украї́нська",ur:"اُردُو",ms:"Bahasa Malaysia"},this.currenciesList={SAR:{en:"Saudi Riyal",ar:"ريال سعودي",symbol:"ر.س"},USD:{en:"US Dollar",ar:"دولار أمريكي",symbol:"$"},EUR:{en:"Euro",ar:"يورو",symbol:"€"},AED:{en:"UAE Dirham",ar:"درهم اماراتي",symbol:"د.إ"},KWD:{en:"Kuwaiti Dinar",ar:"دينار كويتي",symbol:"د.ك"},BHD:{en:"Bahraini Dinar",ar:"دينار بحريني",symbol:"د.ب"},QAR:{en:"Qatari Riyal",ar:"ريال قطري",symbol:"ر.ق"},OMR:{en:"Omani Rial",ar:"ريال عماني",symbol:"ر.ع"},AUD:{en:"Australian Dollar",ar:"دولار استرالي",symbol:"$"},CAD:{en:"Canadian Dollar",ar:"دولار كندي",symbol:"$"},CNY:{en:"Renminbi",ar:"رنمينبي",symbol:"¥"},EGP:{en:"Egyptian Pound",ar:"جنيه مصري",symbol:"ج.م"},GBP:{en:"Pound Sterling",ar:"جنيه استرليني",symbol:"£"},IDR:{en:"Indonesian Rupiah",ar:"روبية إندونيسية",symbol:"Rp"},INR:{en:"Indian Rupee",ar:"روبية هندية",symbol:"₹"},JPY:{en:"Japanese Yen",ar:"ين ياباني",symbol:"¥"},MYR:{en:"Malaysian Ringgit",ar:"رينغيت ماليزي",symbol:"RM"},PKR:{en:"Pakistani Rupee",ar:"روبية باكستانية",symbol:"Rs."},SEK:{en:"Swedish Krona",ar:"كرونة سويدية",symbol:"kr"},SGD:{en:"Singapore Dollar",ar:"دولار سنغافوري",symbol:"$"},TRY:{en:"Turkish Lira",ar:"ليرة تركية",symbol:"₺"},IQD:{en:"Iraqi Dinar",ar:"دينار عراقي",symbol:"د.ع"},LBP:{en:"Lebanese Pound",ar:"ليرة لبنانية",symbol:"ل.ل"},MRO:{en:"Mauritanian Ouguiya",ar:"أوقية موريتانية",symbol:"UM"},SDG:{en:"Sudanese Pound",ar:"جنيه سوداني",symbol:"SDG"},SYP:{en:"Syrian Pound",ar:"ليرة سورية",symbol:"ل.س"},TND:{en:"Tunisian Dinar",ar:"دينار تونسي",symbol:"د.ت"},JOD:{en:"Jordanian Dinar",ar:"دينار أردني",symbol:"JOD"},DZD:{en:"Algerian Dinar",ar:"دينار جزائري",symbol:"دج"},MAD:{en:"Moroccan Dirham",ar:"درهم مغربي",symbol:"د.م."},LYD:{en:"Libyan Dinar",ar:"دينار ليبي",symbol:"LD"},YER:{en:"Yemeni Riyal",ar:"ريال يمني",symbol:"ر.ي"}},this.arabicCurrencies=["SAR","AED","KWD","BHD","QAR","OMR","EGP","IQD","LBP","SYP","TND","DZD","MAD","YER"],this.languages=[],this.currencies=[],this.hasError=!1,this.showTrigger=!1,this.languageSlot=this.host.querySelector('[slot="language"]')?.innerHTML||'<label class="s-localization-modal-label" for="lang-{code}"><span>{name}</span></label>',this.currencySlot=this.host.querySelector('[slot="currency"]')?.innerHTML||'<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{symbol}</small></label>'}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),Salla.event.on("localization::open",(()=>this.open())),this.language||(this.language=Salla.config.get("user.language_code")),this.currency||(this.currency=Salla.config.get("user.currency_code"))}async open(){return this.modal.open(),await Salla.api.withoutNotifier((()=>this.getLanguages())).then((()=>this.getCurrencies())).then((()=>{this.languages.length<2&&this.currencies.length<2&&this.modal.close()})).catch((a=>{console.log(a),this.hasError=!0,this.errorMessage=a.response?.data?.error?.message||a.response?.data})).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}getCurrency(a){return this.currenciesList[a||this.currency]||{en:"Saudi Riyal",ar:"ريال سعودي",symbol:"ر.س"}}getLanguageName(){return this.languageNames[this.language]||this.language||""}getCurrencySymbol(a){return"SAR"===(a=a||this.currency)?'<i class="sicon-sar"></i>':"ar"!==this.language&&this.arabicCurrencies.includes(a)?a:this.getCurrency(a).symbol}getCurrencyName(a){return"ar"===this.language?this.getCurrency(a).ar:this.getCurrency(a).en}async getLanguages(){return this.languages.length>1?null:await Salla.config.languages().then((a=>this.languages=a))}async getCurrencies(){return this.currencies.length>1?null:await Salla.config.currencies().then((a=>this.currencies=Object.values(a||{})))}onChangeCurrency(a){this.currency=a.target.value}onChangeLanguage(a){this.language=a.target.value}async submit(){let a;this.btn.load().then((()=>{if(this.currency){if(this.currency!==Salla.config.get("user.currency_code","SAR"))return a=window.location.href,Salla.currency.api.change(this.currency)}else Salla.log("There is no currency!")})).then((()=>{this.language!==Salla.config.get("user.language_code","ar")&&(a=Salla.helpers.addParamToUrl("lang",this.language))})).then((()=>{Salla.cookie.set("s-lang",this.language),Salla.cookie.set("s-curr",this.currency)})).then((()=>this.btn.stop())).then((()=>this.close())).then((()=>{a&&(window.location.href=a.replace(`/${Salla.config.get("user.language_code")}/`,`/${this.language}/`))}))}render(){return[this.showTrigger?l("button",{type:"button",onClick:()=>this.open(),class:"s-localization-modal-trigger-btn"},l("span",null,this.getLanguageName()),l("span",{class:"s-localization-modal-trigger-separator"},"|")," ",l("span",{innerHTML:this.getCurrencySymbol()})):"",l("salla-modal",{key:"862b768f3a0f9abe079703030bb686178d418ca7",isLoading:!0,class:"s-hidden",ref:a=>this.modal=a,width:"xs"},l("div",{key:"96ce8b449b2c96718de083df1b39bf19d18e4543",slot:"loading"},l("div",{key:"44ba3efdf44d8758b9824dfbee98081549aad41f",class:"s-localization-modal-skeleton"},l("salla-skeleton",{key:"66c85016f14871d05eb296691962ddf0e5b8a512",width:"25%",height:"15px"}),l("div",{key:"e3e0a9cf51572f13456f82d9b08a14a132a01657",class:"s-localization-modal-skeleton-content"},[...Array(4)].map((()=>l("div",{class:"s-localization-modal-skeleton-item"},l("div",{class:"s-localization-modal-skeleton-item-flex"},l("salla-skeleton",{type:"circle",height:"16px",width:"16px"}),l("salla-skeleton",{height:"10px",width:"100px"})),l("salla-skeleton",{height:"15px",width:"20px"}))))),l("salla-skeleton",{key:"4c60b249bd54e0850471967d176a789f38f95841",width:"25%",height:"15px"}),l("div",{key:"7da8613b052a1dab1b34cf54fad755f703b68e5a",class:"s-localization-modal-skeleton-content"},[...Array(4)].map((()=>l("div",{class:"s-localization-modal-skeleton-item"},l("div",{class:"s-localization-modal-skeleton-item-flex"},l("salla-skeleton",{type:"circle",height:"16px",width:"16px"}),l("salla-skeleton",{height:"10px",width:"100px"})),l("salla-skeleton",{height:"15px",width:"20px"}))))),l("salla-skeleton",{key:"b465504898a6861d5cce2456444cc81e7bc61376",height:"40px",width:"100%"}))),this.hasError?l("salla-placeholder",{alignment:"center"},l("span",{slot:"description"},this.errorMessage)):l("div",{class:"s-localization-modal-inner"},this.languages.length>1?l("div",{class:"s-localization-modal-section"},l("label",{class:"s-localization-modal-title"},Salla.lang.get("common.titles.language")),l("div",{class:"s-localization-modal-section-inner"},this.languages.length<6?this.languages.map((a=>l("div",{class:"s-localization-modal-item"},l("input",{class:"s-localization-modal-input",type:"radio",checked:this.language==a.iso_code,onChange:()=>this.language=a.iso_code,name:"language",id:"lang-"+a.code.toLowerCase(),value:a.code}),l("div",{class:"s-localization-modal-label-slot",id:"language-slot",innerHTML:this.languageSlot.replace(/\{name\}/g,a.name).replace(/\{code\}/g,a.code).replace(/\{country_code\}/g,a.country_code)})))):l("select",{class:"s-localization-modal-select",name:"language",onChange:a=>this.onChangeLanguage(a)},this.languages.map((a=>l("option",{value:a.code,selected:this.language==a.code},a.name)))))):"",this.currencies.length>1?l("div",{class:"s-localization-modal-section"},l("label",{class:"s-localization-modal-title"},Salla.lang.get("common.titles.currency")),l("div",{class:"s-localization-modal-section-inner"},this.currencies.length<6?this.currencies.map((a=>l("div",{class:"s-localization-modal-item"},l("input",{class:"s-localization-modal-input",type:"radio",name:"currency",checked:this.currency==a.code,onChange:()=>this.currency=a.code,id:"currency-"+a.code,value:a.code}),l("div",{class:"s-localization-modal-label-slot",id:"currency-slot",innerHTML:this.currencySlot.replace(/\{name\}/g,this.getCurrencyName(a.code)).replace(/\{code\}/g,a.code).replace(/\{symbol\}/g,this.getCurrencySymbol(a.code)).replace(/\{country_code\}/g,a.country_code)})))):l("select",{class:"s-localization-modal-select",name:"currency",onChange:a=>this.onChangeCurrency(a)},this.currencies.map((a=>l("option",{value:a.code,selected:this.currency==a.code},a.name)))))):"",l("salla-button",{width:"wide",ref:a=>this.btn=a,onClick:()=>this.submit()},Salla.lang.get("common.elements.ok"))))]}componentDidRender(){this.host.querySelectorAll("#currency-slot").forEach((a=>a.replaceWith(a.firstChild))),this.host.querySelectorAll("#language-slot").forEach((a=>a.replaceWith(a.firstChild)))}get host(){return s(this)}};export{i as salla_localization_modal}
4
+ import{r as a,h as l,a as s}from"./p-iJ5sq_zX.js";const i=class{constructor(l){a(this,l),this.languageNames={ar:"العربية",en:"English",sq:"shqip",hy:"հայերէն",bg:"български",zh:"汉语",hr:"hrvatski",cs:"čeština",da:"dansk",nl:"dutch",et:"eesti keel",fi:"suomen kieli",fr:"Français",de:"Deutsch",el:"Ελληνικά",hi:"हिन्दी",hu:"magyar",ind:"bahasa Indonesia",ga:"Gaeilge",it:"Italiano",ja:"日本語",ko:"한국어",lv:"latviešu",mt:"Maltese",fa:"فارسی",pl:"Polish",pt:"português",ro:"română",ru:"русский",sl:"slovenščina",es:"Español",sv:"svenska",tl:"Tagalog (Filipino)",tr:"Türkçe",uk:"украї́нська",ur:"اُردُو",ms:"Bahasa Malaysia"},this.currenciesList={SAR:{en:"Saudi Riyal",ar:"ريال سعودي",symbol:"ر.س"},USD:{en:"US Dollar",ar:"دولار أمريكي",symbol:"$"},EUR:{en:"Euro",ar:"يورو",symbol:"€"},AED:{en:"UAE Dirham",ar:"درهم اماراتي",symbol:"د.إ"},KWD:{en:"Kuwaiti Dinar",ar:"دينار كويتي",symbol:"د.ك"},BHD:{en:"Bahraini Dinar",ar:"دينار بحريني",symbol:"د.ب"},QAR:{en:"Qatari Riyal",ar:"ريال قطري",symbol:"ر.ق"},OMR:{en:"Omani Rial",ar:"ريال عماني",symbol:"ر.ع"},AUD:{en:"Australian Dollar",ar:"دولار استرالي",symbol:"$"},CAD:{en:"Canadian Dollar",ar:"دولار كندي",symbol:"$"},CNY:{en:"Renminbi",ar:"رنمينبي",symbol:"¥"},EGP:{en:"Egyptian Pound",ar:"جنيه مصري",symbol:"ج.م"},GBP:{en:"Pound Sterling",ar:"جنيه استرليني",symbol:"£"},IDR:{en:"Indonesian Rupiah",ar:"روبية إندونيسية",symbol:"Rp"},INR:{en:"Indian Rupee",ar:"روبية هندية",symbol:"₹"},JPY:{en:"Japanese Yen",ar:"ين ياباني",symbol:"¥"},MYR:{en:"Malaysian Ringgit",ar:"رينغيت ماليزي",symbol:"RM"},PKR:{en:"Pakistani Rupee",ar:"روبية باكستانية",symbol:"Rs."},SEK:{en:"Swedish Krona",ar:"كرونة سويدية",symbol:"kr"},SGD:{en:"Singapore Dollar",ar:"دولار سنغافوري",symbol:"$"},TRY:{en:"Turkish Lira",ar:"ليرة تركية",symbol:"₺"},IQD:{en:"Iraqi Dinar",ar:"دينار عراقي",symbol:"د.ع"},LBP:{en:"Lebanese Pound",ar:"ليرة لبنانية",symbol:"ل.ل"},MRO:{en:"Mauritanian Ouguiya",ar:"أوقية موريتانية",symbol:"UM"},SDG:{en:"Sudanese Pound",ar:"جنيه سوداني",symbol:"SDG"},SYP:{en:"Syrian Pound",ar:"ليرة سورية",symbol:"ل.س"},TND:{en:"Tunisian Dinar",ar:"دينار تونسي",symbol:"د.ت"},JOD:{en:"Jordanian Dinar",ar:"دينار أردني",symbol:"JOD"},DZD:{en:"Algerian Dinar",ar:"دينار جزائري",symbol:"دج"},MAD:{en:"Moroccan Dirham",ar:"درهم مغربي",symbol:"د.م."},LYD:{en:"Libyan Dinar",ar:"دينار ليبي",symbol:"LD"},YER:{en:"Yemeni Riyal",ar:"ريال يمني",symbol:"ر.ي"}},this.arabicCurrencies=["SAR","AED","KWD","BHD","QAR","OMR","EGP","IQD","LBP","SYP","TND","DZD","MAD","YER"],this.languages=[],this.currencies=[],this.hasError=!1,this.showTrigger=!1,this.languageSlot=this.host.querySelector('[slot="language"]')?.innerHTML||'<label class="s-localization-modal-label" for="lang-{code}"><span>{name}</span></label>',this.currencySlot=this.host.querySelector('[slot="currency"]')?.innerHTML||'<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{symbol}</small></label>'}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),Salla.event.on("localization::open",(()=>this.open())),this.language||(this.language=Salla.config.get("user.language_code")),this.currency||(this.currency=Salla.config.get("user.currency_code"))}async open(){return this.modal.open(),await Salla.api.withoutNotifier((()=>this.getLanguages())).then((()=>this.getCurrencies())).then((()=>{this.languages.length<2&&this.currencies.length<2&&this.modal.close()})).catch((a=>{console.log(a),this.hasError=!0,this.errorMessage=a.response?.data?.error?.message||a.response?.data})).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}getCurrency(a){return this.currenciesList[a||this.currency]||{en:"Saudi Riyal",ar:"ريال سعودي",symbol:"ر.س"}}getLanguageName(){return this.languageNames[this.language]||this.language||""}getCurrencySymbol(a){return"SAR"===(a=a||this.currency)?'<i class="sicon-sar"></i>':"ar"!==this.language&&this.arabicCurrencies.includes(a)?a:this.getCurrency(a).symbol}getCurrencyName(a){return"ar"===this.language?this.getCurrency(a).ar:this.getCurrency(a).en}async getLanguages(){return this.languages.length>1?null:await Salla.config.languages().then((a=>this.languages=a))}async getCurrencies(){return this.currencies.length>1?null:await Salla.config.currencies().then((a=>this.currencies=Object.values(a||{})))}onChangeCurrency(a){this.currency=a.target.value}onChangeLanguage(a){this.language=a.target.value}async submit(){let a;this.btn.load().then((()=>{if(this.currency){if(this.currency!==Salla.config.get("user.currency_code","SAR"))return a=window.location.href,Salla.currency.api.change(this.currency)}else Salla.log("There is no currency!")})).then((()=>{this.language!==Salla.config.get("user.language_code","ar")&&(a=Salla.helpers.addParamToUrl("lang",this.language))})).then((()=>{Salla.cookie.set("s-lang",this.language),Salla.cookie.set("s-curr",this.currency)})).then((()=>this.btn.stop())).then((()=>this.close())).then((()=>{a&&(window.location.href=a.replace(`/${Salla.config.get("user.language_code")}/`,`/${this.language}/`))}))}render(){return[this.showTrigger?l("button",{type:"button",onClick:()=>this.open(),class:"s-localization-modal-trigger-btn"},l("span",null,this.getLanguageName()),l("span",{class:"s-localization-modal-trigger-separator"},"|")," ",l("span",{innerHTML:this.getCurrencySymbol()})):"",l("salla-modal",{key:"862b768f3a0f9abe079703030bb686178d418ca7",isLoading:!0,class:"s-hidden",ref:a=>this.modal=a,width:"xs"},l("div",{key:"96ce8b449b2c96718de083df1b39bf19d18e4543",slot:"loading"},l("div",{key:"44ba3efdf44d8758b9824dfbee98081549aad41f",class:"s-localization-modal-skeleton"},l("salla-skeleton",{key:"66c85016f14871d05eb296691962ddf0e5b8a512",width:"25%",height:"15px"}),l("div",{key:"e3e0a9cf51572f13456f82d9b08a14a132a01657",class:"s-localization-modal-skeleton-content"},[...Array(4)].map((()=>l("div",{class:"s-localization-modal-skeleton-item"},l("div",{class:"s-localization-modal-skeleton-item-flex"},l("salla-skeleton",{type:"circle",height:"16px",width:"16px"}),l("salla-skeleton",{height:"10px",width:"100px"})),l("salla-skeleton",{height:"15px",width:"20px"}))))),l("salla-skeleton",{key:"4c60b249bd54e0850471967d176a789f38f95841",width:"25%",height:"15px"}),l("div",{key:"7da8613b052a1dab1b34cf54fad755f703b68e5a",class:"s-localization-modal-skeleton-content"},[...Array(4)].map((()=>l("div",{class:"s-localization-modal-skeleton-item"},l("div",{class:"s-localization-modal-skeleton-item-flex"},l("salla-skeleton",{type:"circle",height:"16px",width:"16px"}),l("salla-skeleton",{height:"10px",width:"100px"})),l("salla-skeleton",{height:"15px",width:"20px"}))))),l("salla-skeleton",{key:"b465504898a6861d5cce2456444cc81e7bc61376",height:"40px",width:"100%"}))),this.hasError?l("salla-placeholder",{alignment:"center"},l("span",{slot:"description"},this.errorMessage)):l("div",{class:"s-localization-modal-inner"},this.languages.length>1?l("div",{class:"s-localization-modal-section"},l("label",{class:"s-localization-modal-title"},Salla.lang.get("common.titles.language")),l("div",{class:"s-localization-modal-section-inner"},this.languages.length<6?this.languages.map((a=>l("div",{class:"s-localization-modal-item"},l("input",{class:"s-localization-modal-input",type:"radio",checked:this.language==a.iso_code,onChange:()=>this.language=a.iso_code,name:"language",id:"lang-"+a.code.toLowerCase(),value:a.code}),l("div",{class:"s-localization-modal-label-slot",id:"language-slot",innerHTML:this.languageSlot.replace(/\{name\}/g,a.name).replace(/\{code\}/g,a.code).replace(/\{country_code\}/g,a.country_code)})))):l("select",{class:"s-localization-modal-select",name:"language",onChange:a=>this.onChangeLanguage(a)},this.languages.map((a=>l("option",{value:a.code,selected:this.language==a.code},a.name)))))):"",this.currencies.length>1?l("div",{class:"s-localization-modal-section"},l("label",{class:"s-localization-modal-title"},Salla.lang.get("common.titles.currency")),l("div",{class:"s-localization-modal-section-inner"},this.currencies.length<6?this.currencies.map((a=>l("div",{class:"s-localization-modal-item"},l("input",{class:"s-localization-modal-input",type:"radio",name:"currency",checked:this.currency==a.code,onChange:()=>this.currency=a.code,id:"currency-"+a.code,value:a.code}),l("div",{class:"s-localization-modal-label-slot",id:"currency-slot",innerHTML:this.currencySlot.replace(/\{name\}/g,this.getCurrencyName(a.code)).replace(/\{code\}/g,a.code).replace(/\{symbol\}/g,this.getCurrencySymbol(a.code)).replace(/\{country_code\}/g,a.country_code)})))):l("select",{class:"s-localization-modal-select",name:"currency",onChange:a=>this.onChangeCurrency(a)},this.currencies.map((a=>l("option",{value:a.code,selected:this.currency==a.code},a.name)))))):"",l("salla-button",{width:"wide",ref:a=>this.btn=a,onClick:()=>this.submit()},Salla.lang.get("common.elements.ok"))))]}componentDidRender(){this.host.querySelectorAll("#currency-slot").forEach((a=>a.replaceWith(a.firstChild))),this.host.querySelectorAll("#language-slot").forEach((a=>a.replaceWith(a.firstChild)))}get host(){return s(this)}};export{i as salla_localization_modal}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as t,h as s,H as a}from"./p-BxKt36mx.js";const l=class{constructor(s){t(this,s),this.order=null,this.loading=!0}async componentWillLoad(){await salla.onReady(),await this.loadOrder()}async onOrderIdChange(){this.loading=!0,this.order=null,await this.loadOrder()}get paymentUrl(){return this.order?.customer_editing?.payment_url}async loadOrder(){const t=this.orderId||salla.config.get("page.id");if(t)try{const s=await salla.order.api.getDetails(t);this.order=s?.data??s??null}catch(t){salla.logger?.warn?.("[salla-edit-order-button] failed to fetch order details",t),this.order=null}finally{this.loading=!1}else this.loading=!1}renderEditButton(){return s("salla-count-down",{prefixText:salla.lang.getWithDefault("pages.orders.edit_within","يمكنك التعديل خلال"),buttonHref:this.order?.edit_url,buttonText:salla.lang.getWithDefault("pages.orders.edit_order","تعديل الطلب"),buttonIcon:"sicon-edit",date:this.order?.editable_until,horizontal:!0,autoSegments:!0,withButton:!0,labeled:!1,size:"sm",color:"primary"})}render(){return this.loading||!this.order?null:this.order?.is_editable?s(a,null,this.renderEditButton()):this.paymentUrl?s(a,null,s("salla-button",{href:this.paymentUrl,color:"primary",size:"small"},s("i",{class:"sicon-wallet"}),salla.lang.getWithDefault("pages.orders.pay_difference","دفع فارق المبلغ"))):null}static get watchers(){return{orderId:["onOrderIdChange"]}}};l.style=":host{display:block}";export{l as salla_edit_order_button}
4
+ import{r as t,h as s,H as a}from"./p-iJ5sq_zX.js";const l=class{constructor(s){t(this,s),this.order=null,this.loading=!0}async componentWillLoad(){await salla.onReady(),await this.loadOrder()}async onOrderIdChange(){this.loading=!0,this.order=null,await this.loadOrder()}get paymentUrl(){return this.order?.customer_editing?.payment_url}async loadOrder(){const t=this.orderId||salla.config.get("page.id");if(t)try{const s=await salla.order.api.getDetails(t);this.order=s?.data??s??null}catch(t){salla.logger?.warn?.("[salla-edit-order-button] failed to fetch order details",t),this.order=null}finally{this.loading=!1}else this.loading=!1}renderEditButton(){return s("salla-count-down",{prefixText:salla.lang.getWithDefault("pages.orders.edit_within","يمكنك التعديل خلال"),buttonHref:this.order?.edit_url,buttonText:salla.lang.getWithDefault("pages.orders.edit_order","تعديل الطلب"),buttonIcon:"sicon-edit",date:this.order?.editable_until,horizontal:!0,autoSegments:!0,withButton:!0,labeled:!1,size:"sm",color:"primary"})}render(){return this.loading||!this.order?null:this.order?.is_editable?s(a,null,this.renderEditButton()):this.paymentUrl?s(a,null,s("salla-button",{href:this.paymentUrl,color:"primary",size:"small"},s("i",{class:"sicon-wallet"}),salla.lang.getWithDefault("pages.orders.pay_difference","دفع فارق المبلغ"))):null}static get watchers(){return{orderId:["onOrderIdChange"]}}};l.style=":host{display:block}";export{l as salla_edit_order_button}