@salla.sa/twilight-components 2.14.475 → 2.14.477

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 (347) hide show
  1. package/dist/cjs/{filepond-CCDcLMJG.js → filepond-BPOBCHtP.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-Dv1iTut9.js → filepond-plugin-file-poster-DbvRC1aN.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CvGFV0Fy.js → filepond-plugin-file-validate-size-Ct-KrfsV.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BA7LgQgR.js → filepond-plugin-file-validate-type-1JHE8ekO.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-COOD9fMI.js → filepond-plugin-image-edit-DNW2nkrj.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CoTDjMfx.js → filepond-plugin-image-exif-orientation-B5PMdim6.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-w1azXYdm.js → filepond-plugin-image-preview-ReD_Bouv.js} +1 -1
  8. package/dist/cjs/{functions-EwUKSxdM.js → functions-COijBsIS.js} +1 -1
  9. package/dist/cjs/{index-Ct9HgIyS.js → index-Deydcv8E.js} +2 -2
  10. package/dist/cjs/{index-b6aVLc9i.js → index-r7vZK338.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  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 +18 -2
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +19 -2
  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-points-history.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_2.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 +1 -1
  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-options-modal_3.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  84. package/dist/cjs/salla-scopes.cjs.entry.js +24 -6
  85. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  86. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  89. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  91. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  97. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
  100. package/dist/cjs/{tracked-promise-C4Tvqvi9.js → tracked-promise-C0WQFeoI.js} +1 -1
  101. package/dist/cjs/twilight.cjs.js +1 -1
  102. package/dist/cjs/{vanilla-picker-2UXFqn4t.js → vanilla-picker-iI-y1JgN.js} +1 -1
  103. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +17 -1
  104. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +18 -1
  105. package/dist/collection/components/salla-scopes/salla-scopes.js +23 -5
  106. package/dist/collection/components/salla-search/salla-search.js +5 -5
  107. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  108. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  109. package/dist/collection/components/salla-social/salla-social.js +1 -1
  110. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  111. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  112. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  113. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  114. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  115. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  116. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +1 -1
  117. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  118. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
  119. package/dist/components/index.js +2 -2
  120. package/dist/components/salla-cart-summary.js +17 -1
  121. package/dist/components/salla-localization-modal.js +18 -1
  122. package/dist/components/salla-scopes.js +23 -5
  123. package/dist/components/salla-search.js +5 -5
  124. package/dist/components/salla-searchable-dropdown2.js +4 -4
  125. package/dist/components/salla-skeleton2.js +1 -1
  126. package/dist/components/salla-social-share2.js +1 -1
  127. package/dist/components/salla-social.js +1 -1
  128. package/dist/components/salla-tab-content2.js +1 -1
  129. package/dist/components/salla-tab-header2.js +1 -1
  130. package/dist/components/salla-tabs2.js +1 -1
  131. package/dist/components/salla-tel-input2.js +1 -1
  132. package/dist/components/salla-tooltip2.js +1 -1
  133. package/dist/components/salla-trust-badges.js +1 -1
  134. package/dist/components/salla-user-settings.js +1 -1
  135. package/dist/components/salla-wishlist-actions.js +1 -1
  136. package/dist/esm/{filepond-Dkgdn6NP.js → filepond-CaznQRkF.js} +1 -1
  137. package/dist/esm/{filepond-plugin-file-poster-H_Uehrm-.js → filepond-plugin-file-poster-rZxLWBof.js} +1 -1
  138. package/dist/esm/{filepond-plugin-file-validate-size-DGahL5WO.js → filepond-plugin-file-validate-size-DjyoyY-c.js} +1 -1
  139. package/dist/esm/{filepond-plugin-file-validate-type-BXAhWg72.js → filepond-plugin-file-validate-type-CiUZHqHn.js} +1 -1
  140. package/dist/esm/{filepond-plugin-image-edit-CTk7VerB.js → filepond-plugin-image-edit-DqXGEWIO.js} +1 -1
  141. package/dist/esm/{filepond-plugin-image-exif-orientation-DDs-wuhx.js → filepond-plugin-image-exif-orientation-BWrZyNPX.js} +1 -1
  142. package/dist/esm/{filepond-plugin-image-preview-DGDPjluB.js → filepond-plugin-image-preview-DQTgGlAO.js} +1 -1
  143. package/dist/esm/{functions-CWE4HPyq.js → functions-CtSUyz0e.js} +1 -1
  144. package/dist/esm/{index-Ct8EQ1Xr.js → index-BZ_7FA29.js} +1 -1
  145. package/dist/esm/{index-D-UuXsoI.js → index-Bu-9gKKq.js} +2 -2
  146. package/dist/esm/loader.js +2 -2
  147. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  148. package/dist/esm/salla-accordion_6.entry.js +1 -1
  149. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  150. package/dist/esm/salla-advertisement.entry.js +1 -1
  151. package/dist/esm/salla-alert_2.entry.js +1 -1
  152. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  153. package/dist/esm/salla-apps-icons.entry.js +1 -1
  154. package/dist/esm/salla-badge.entry.js +1 -1
  155. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  156. package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
  157. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  158. package/dist/esm/salla-cart-item-offers_2.entry.js +18 -2
  159. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  160. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  161. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  162. package/dist/esm/salla-contacts.entry.js +1 -1
  163. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  164. package/dist/esm/salla-count-down.entry.js +1 -1
  165. package/dist/esm/salla-custom-fields.entry.js +1 -1
  166. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  167. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  168. package/dist/esm/salla-filters-widget.entry.js +1 -1
  169. package/dist/esm/salla-filters.entry.js +1 -1
  170. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  171. package/dist/esm/salla-gifting.entry.js +1 -1
  172. package/dist/esm/salla-hook.entry.js +1 -1
  173. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  174. package/dist/esm/salla-installment.entry.js +1 -1
  175. package/dist/esm/salla-list-tile.entry.js +1 -1
  176. package/dist/esm/salla-localization-modal.entry.js +19 -2
  177. package/dist/esm/salla-login-modal.entry.js +1 -1
  178. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  179. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  180. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  181. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  182. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  183. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  184. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  185. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  186. package/dist/esm/salla-loyalty.entry.js +1 -1
  187. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  188. package/dist/esm/salla-map_2.entry.js +1 -1
  189. package/dist/esm/salla-menu.entry.js +1 -1
  190. package/dist/esm/salla-metadata.entry.js +1 -1
  191. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  192. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  193. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  194. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  195. package/dist/esm/salla-notification-item.entry.js +1 -1
  196. package/dist/esm/salla-notifications.entry.js +1 -1
  197. package/dist/esm/salla-offer-modal.entry.js +1 -1
  198. package/dist/esm/salla-offer.entry.js +1 -1
  199. package/dist/esm/salla-order-branch.entry.js +1 -1
  200. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  201. package/dist/esm/salla-order-details-options.entry.js +1 -1
  202. package/dist/esm/salla-order-details.entry.js +1 -1
  203. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  204. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  205. package/dist/esm/salla-order-edit.entry.js +1 -1
  206. package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
  207. package/dist/esm/salla-order-summary.entry.js +1 -1
  208. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  209. package/dist/esm/salla-orders.entry.js +1 -1
  210. package/dist/esm/salla-payments.entry.js +1 -1
  211. package/dist/esm/salla-placeholder.entry.js +1 -1
  212. package/dist/esm/salla-price-range.entry.js +1 -1
  213. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  214. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  215. package/dist/esm/salla-products-list.entry.js +1 -1
  216. package/dist/esm/salla-quick-order.entry.js +1 -1
  217. package/dist/esm/salla-rating-modal.entry.js +1 -1
  218. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  219. package/dist/esm/salla-scopes.entry.js +24 -6
  220. package/dist/esm/salla-search.entry.js +6 -6
  221. package/dist/esm/salla-skeleton.entry.js +2 -2
  222. package/dist/esm/salla-slider.entry.js +1 -1
  223. package/dist/esm/salla-social-share.entry.js +2 -2
  224. package/dist/esm/salla-social.entry.js +2 -2
  225. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  226. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  227. package/dist/esm/salla-tooltip.entry.js +2 -2
  228. package/dist/esm/salla-trust-badges.entry.js +2 -2
  229. package/dist/esm/salla-user-menu.entry.js +1 -1
  230. package/dist/esm/salla-user-profile.entry.js +1 -1
  231. package/dist/esm/salla-user-settings.entry.js +2 -2
  232. package/dist/esm/salla-verify.entry.js +1 -1
  233. package/dist/esm/salla-wallet.entry.js +1 -1
  234. package/dist/esm/salla-wishlist-actions.entry.js +2 -2
  235. package/dist/esm/{tracked-promise-r7OIxu9g.js → tracked-promise-BbP_DeSq.js} +1 -1
  236. package/dist/esm/twilight.js +2 -2
  237. package/dist/esm/{vanilla-picker-eIDpMDr5.js → vanilla-picker-CWXcUJzF.js} +1 -1
  238. package/dist/twilight/{p-1623ffb3.entry.js → p-00d9055a.entry.js} +1 -1
  239. package/dist/twilight/{p-572bc95c.entry.js → p-03201e64.entry.js} +1 -1
  240. package/dist/twilight/{p-d3f2e0fe.entry.js → p-106ac177.entry.js} +1 -1
  241. package/dist/twilight/{p-4d8f6357.entry.js → p-11174ae9.entry.js} +1 -1
  242. package/dist/twilight/{p-0e6aa1ae.entry.js → p-15c5c464.entry.js} +1 -1
  243. package/dist/twilight/{p-6be36db2.entry.js → p-17fcab81.entry.js} +1 -1
  244. package/dist/twilight/{p-f7a929a4.entry.js → p-1fe875b9.entry.js} +1 -1
  245. package/dist/twilight/{p-1cacc3b5.entry.js → p-2270edf3.entry.js} +1 -1
  246. package/dist/twilight/p-24085dc8.entry.js +4 -0
  247. package/dist/twilight/{p-c6bf6315.entry.js → p-24c72ca6.entry.js} +1 -1
  248. package/dist/twilight/{p-14926610.entry.js → p-253ee083.entry.js} +1 -1
  249. package/dist/twilight/{p-c437bb1f.entry.js → p-2adab08f.entry.js} +1 -1
  250. package/dist/twilight/{p-ad491d49.entry.js → p-2b3b66e3.entry.js} +1 -1
  251. package/dist/twilight/{p-46cf2273.entry.js → p-31bf3eff.entry.js} +1 -1
  252. package/dist/twilight/{p-9b2a7c8b.entry.js → p-3426f464.entry.js} +1 -1
  253. package/dist/twilight/{p-3bf8c0b9.entry.js → p-35db222e.entry.js} +1 -1
  254. package/dist/twilight/{p-4a011968.entry.js → p-3615f787.entry.js} +1 -1
  255. package/dist/twilight/{p-88fa51f9.entry.js → p-36457705.entry.js} +1 -1
  256. package/dist/twilight/{p-e94a4136.entry.js → p-388902c2.entry.js} +1 -1
  257. package/dist/twilight/{p-bcd8b556.entry.js → p-3caad9dc.entry.js} +1 -1
  258. package/dist/twilight/{p-55179340.entry.js → p-3ee04641.entry.js} +1 -1
  259. package/dist/twilight/{p-2dc58d76.entry.js → p-3fa73380.entry.js} +1 -1
  260. package/dist/twilight/{p-68dec776.entry.js → p-41524fe9.entry.js} +1 -1
  261. package/dist/twilight/{p-b1f04f5f.entry.js → p-43d75ec1.entry.js} +1 -1
  262. package/dist/twilight/{p-0a2e2520.entry.js → p-4699831c.entry.js} +1 -1
  263. package/dist/twilight/{p-fd22a89d.entry.js → p-49454762.entry.js} +1 -1
  264. package/dist/twilight/{p-156750a1.entry.js → p-5059bfa4.entry.js} +1 -1
  265. package/dist/twilight/{p-694f01bc.entry.js → p-510586d5.entry.js} +1 -1
  266. package/dist/twilight/p-5119f36c.entry.js +4 -0
  267. package/dist/twilight/p-51e32813.entry.js +4 -0
  268. package/dist/twilight/{p-baf7bed1.entry.js → p-53355b4c.entry.js} +1 -1
  269. package/dist/twilight/{p-39ea942a.entry.js → p-53e7f24a.entry.js} +1 -1
  270. package/dist/twilight/{p-71b5eae7.entry.js → p-55678651.entry.js} +1 -1
  271. package/dist/twilight/{p-8a80c206.entry.js → p-568e8caa.entry.js} +1 -1
  272. package/dist/twilight/{p-7610c9ee.entry.js → p-58793c83.entry.js} +1 -1
  273. package/dist/twilight/{p-993ff2a4.entry.js → p-5fd0ae58.entry.js} +1 -1
  274. package/dist/twilight/{p-a61a86e1.entry.js → p-64ab3e06.entry.js} +1 -1
  275. package/dist/twilight/{p-d298dad8.entry.js → p-6b247b74.entry.js} +1 -1
  276. package/dist/twilight/{p-cb2245f8.entry.js → p-6b3dbc40.entry.js} +1 -1
  277. package/dist/twilight/{p-45feb58a.entry.js → p-6f0da76a.entry.js} +1 -1
  278. package/dist/twilight/{p-ffe1ffca.entry.js → p-75173a3c.entry.js} +1 -1
  279. package/dist/twilight/{p-bd202079.entry.js → p-7870331a.entry.js} +1 -1
  280. package/dist/twilight/{p-6e420513.entry.js → p-7a446f68.entry.js} +1 -1
  281. package/dist/twilight/{p-d876ad8f.entry.js → p-7de81167.entry.js} +1 -1
  282. package/dist/twilight/{p-95aeb406.entry.js → p-7ecb7eb5.entry.js} +1 -1
  283. package/dist/twilight/{p-d0db9122.entry.js → p-7fcf0c70.entry.js} +1 -1
  284. package/dist/twilight/{p-f7a8baa1.entry.js → p-83173fd6.entry.js} +1 -1
  285. package/dist/twilight/{p-61841a17.entry.js → p-896a2d9b.entry.js} +1 -1
  286. package/dist/twilight/{p-586e7206.entry.js → p-9231c4f6.entry.js} +1 -1
  287. package/dist/twilight/{p-fe66a432.entry.js → p-9618b81b.entry.js} +1 -1
  288. package/dist/twilight/{p-d473f745.entry.js → p-98f6b084.entry.js} +1 -1
  289. package/dist/twilight/{p-a1484116.entry.js → p-9aabbd97.entry.js} +1 -1
  290. package/dist/twilight/{p-876d87c3.entry.js → p-9da47592.entry.js} +1 -1
  291. package/dist/twilight/{p-oqlVgxRO.js → p-B0kvvFwK.js} +1 -1
  292. package/dist/twilight/{p-BWmPIvBR.js → p-B4YFau93.js} +1 -1
  293. package/dist/twilight/p-BIDWRRAS.js +4 -0
  294. package/dist/twilight/{p-DLb1HLym.js → p-Bg2ha7OA.js} +1 -1
  295. package/dist/twilight/{p-D-UuXsoI.js → p-Bu-9gKKq.js} +1 -1
  296. package/dist/twilight/{p-BWwfPF82.js → p-C5l_M5_U.js} +1 -1
  297. package/dist/twilight/{p-D0K_8IHl.js → p-CAwHqRMt.js} +1 -1
  298. package/dist/twilight/{p-uqeFRSpe.js → p-CEHIYVsy.js} +1 -1
  299. package/dist/twilight/{p-CWXc9uPh.js → p-CyRvF0eJ.js} +1 -1
  300. package/dist/twilight/{p-DSm41XCS.js → p-D0dlNrJY.js} +1 -1
  301. package/dist/twilight/{p-CqyL_YYQ.js → p-_KwzHh05.js} +1 -1
  302. package/dist/twilight/{p-BFVxMN0g.js → p-_NroeSza.js} +1 -1
  303. package/dist/twilight/{p-4281df04.entry.js → p-a1872162.entry.js} +1 -1
  304. package/dist/twilight/{p-98cc5c65.entry.js → p-a260ccf9.entry.js} +1 -1
  305. package/dist/twilight/{p-ec3c0f42.entry.js → p-a3eb0b51.entry.js} +2 -2
  306. package/dist/twilight/{p-b8c2cd7f.entry.js → p-aed798f2.entry.js} +1 -1
  307. package/dist/twilight/{p-e32206b6.entry.js → p-b202aa5a.entry.js} +1 -1
  308. package/dist/twilight/{p-c1f47188.entry.js → p-b24d5f7c.entry.js} +1 -1
  309. package/dist/twilight/p-b4fb01a0.entry.js +4 -0
  310. package/dist/twilight/{p-76f87b81.entry.js → p-b504baf6.entry.js} +1 -1
  311. package/dist/twilight/{p-dfae005d.entry.js → p-b5f3394b.entry.js} +1 -1
  312. package/dist/twilight/{p-796ab099.entry.js → p-b8f3c96e.entry.js} +1 -1
  313. package/dist/twilight/{p-e2d4ce2b.entry.js → p-b9221725.entry.js} +1 -1
  314. package/dist/twilight/{p-db1b868f.entry.js → p-b97290f8.entry.js} +1 -1
  315. package/dist/twilight/{p-dabf811b.entry.js → p-be619c40.entry.js} +1 -1
  316. package/dist/twilight/{p-b39326c4.entry.js → p-c46b4fac.entry.js} +1 -1
  317. package/dist/twilight/{p-7e2911c0.entry.js → p-c4881f69.entry.js} +1 -1
  318. package/dist/twilight/{p-8e191abf.entry.js → p-c69cc412.entry.js} +1 -1
  319. package/dist/twilight/{p-f2ec2e13.entry.js → p-ca969612.entry.js} +1 -1
  320. package/dist/twilight/{p-87bf9020.entry.js → p-ce53e792.entry.js} +1 -1
  321. package/dist/twilight/{p-498c5eb6.entry.js → p-cf530f1e.entry.js} +1 -1
  322. package/dist/twilight/{p-a9c38076.entry.js → p-d052267d.entry.js} +1 -1
  323. package/dist/twilight/{p-c38628d5.entry.js → p-d240e1d4.entry.js} +1 -1
  324. package/dist/twilight/{p-28031c0a.entry.js → p-d8584231.entry.js} +1 -1
  325. package/dist/twilight/{p-049a6d23.entry.js → p-da06f72a.entry.js} +1 -1
  326. package/dist/twilight/{p-60aac9a8.entry.js → p-da6c888a.entry.js} +1 -1
  327. package/dist/twilight/{p-4aa2ac31.entry.js → p-df138558.entry.js} +1 -1
  328. package/dist/twilight/{p-ecf0a71c.entry.js → p-df830fc1.entry.js} +1 -1
  329. package/dist/twilight/{p-1c5fe5a0.entry.js → p-e1a45426.entry.js} +1 -1
  330. package/dist/twilight/{p-a68f29d9.entry.js → p-e53a25f0.entry.js} +1 -1
  331. package/dist/twilight/{p-acedd224.entry.js → p-e95fbacf.entry.js} +1 -1
  332. package/dist/twilight/{p-75b68774.entry.js → p-f1cad97c.entry.js} +1 -1
  333. package/dist/twilight/{p-7b9a7ad1.entry.js → p-f280405a.entry.js} +1 -1
  334. package/dist/twilight/{p-9f1629cf.entry.js → p-f42ed2a0.entry.js} +1 -1
  335. package/dist/twilight/{p-9d094e8b.entry.js → p-f498a8f0.entry.js} +1 -1
  336. package/dist/twilight/{p-8409b888.entry.js → p-fac7655b.entry.js} +1 -1
  337. package/dist/twilight/{p-4720206a.entry.js → p-fff06937.entry.js} +1 -1
  338. package/dist/twilight/twilight.esm.js +1 -1
  339. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +8 -0
  340. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +6 -0
  341. package/dist/types/components/salla-scopes/salla-scopes.d.ts +7 -0
  342. package/package.json +5 -5
  343. package/dist/twilight/p-2uzvdhCR.js +0 -4
  344. package/dist/twilight/p-869657bf.entry.js +0 -4
  345. package/dist/twilight/p-8dd0efeb.entry.js +0 -4
  346. package/dist/twilight/p-c49052d7.entry.js +0 -4
  347. package/dist/twilight/p-c6bd4bde.entry.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as a,h as l,a as s}from"./p-D-UuXsoI.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:"ر.ي"},ILS:{en:"New Shekel",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")),Salla.api.withoutNotifier((()=>this.getCurrencies())).catch((()=>null))}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){const l=a||this.currency;if(this.currenciesList[l])return this.currenciesList[l];const s=this.currencies.find((a=>a.code===l));if(s){const a=this.escapeHtml(String(s.name||l));return{en:a,ar:a,symbol:this.escapeHtml(String((s.symbol||"").trim()||l))}}return{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}escapeHtml(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}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:"9cc6354dc42690d75512a18139daa77167c047c0",isLoading:!0,class:"s-hidden",ref:a=>this.modal=a,width:"xs"},l("div",{key:"2bf24b9cbbaae5daf0c7a6da4baec771bffe4186",slot:"loading"},l("div",{key:"90094d2166bc12b0a8d072ffa580606f60608f24",class:"s-localization-modal-skeleton"},l("salla-skeleton",{key:"a32348c17c0583d27892ec6b31996d747cbdd39d",width:"25%",height:"15px"}),l("div",{key:"eff3210bd11fb378c240df1764870a0633e9f1a2",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:"baa493a36855ef28c487c2301484cd2f96382904",width:"25%",height:"15px"}),l("div",{key:"95f6ddfcd029fb2fd2be0d31b83aaaaa2b7c6c00",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:"769599216ff51babd8d6a6665a55f58dd47bf479",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 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r,h as e}from"./p-D-UuXsoI.js";function s(r){var e,t,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=s(r[e]))&&(a&&(a+=" "),a+=t);else for(e in r)r[e]&&(a&&(a+=" "),a+=e);return a}const t=r=>"boolean"==typeof r?"".concat(r):0===r?"0":r,a=function(){for(var r,e,t=0,a="";t<arguments.length;)(r=arguments[t++])&&(e=s(r))&&(a&&(a+=" "),a+=e);return a},l=(n="s-badge-base",i={variants:{size:{xs:"s-badge-xs",sm:"s-badge-sm",md:"s-badge-md"},bg:{transparent:"s-badge-transparent",light:"s-badge-light","primary-100":"s-badge-primary-100"},color:{black:"s-badge-black","primary-900":"s-badge-color-primary-900"}}},r=>{var e;if(null==(null==i?void 0:i.variants))return a(n,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:s,defaultVariants:l}=i,o=Object.keys(s).map((e=>{const a=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===a)return null;const i=t(a)||t(n);return s[e][i]})),d=r&&Object.entries(r).reduce(((r,e)=>{let[s,t]=e;return void 0===t||(r[s]=t),r}),{}),b=null==i||null===(e=i.compoundVariants)||void 0===e?void 0:e.reduce(((r,e)=>{let{class:s,className:t,...a}=e;return Object.entries(a).every((r=>{let[e,s]=r;return Array.isArray(s)?s.includes({...l,...d}[e]):{...l,...d}[e]===s}))?[...r,s,t]:r}),[]);return a(n,o,b,null==r?void 0:r.class,null==r?void 0:r.className)});var n,i;const o=class{constructor(e){r(this,e),this.size="sm",this.color="black",this.bg="light"}render(){return e("div",{key:"54d35eb76a59251edb581786e5e89a83b6f8fbf0",class:l({size:this.size,bg:this.bg,color:this.color})},e("slot",{key:"4641cb434a2c0a6d7c004e3384848a200cb79dff"}))}};o.style="";export{o as salla_badge}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as t,H as e}from"./p-D-UuXsoI.js";import{S as l}from"./p-BscTeWDc.js";var a;!function(s){s.DEFAULT="default",s.AVAILABILITY="availability"}(a||(a={}));const i=class{constructor(t){s(this,t),this.loadedScopes={[a.DEFAULT]:null,[a.AVAILABILITY]:null},this.translationLoaded=!1,this.mode=a.DEFAULT,this.scopes=[],this.originalScopesList=[],this.isOpenedBefore=salla.storage.get("branch-choosed-before"),this.hasError=!1,this.loading=!1,this.selection="optional",this.searchDisplayLimit=6,this.getFormTitle=()=>{if(this.originalScopesList?.length<2)return"";const s=salla.config.get("store.features")?.includes("multi-countries");return this.mode===a.DEFAULT?salla.lang.get(s?"blocks.scope.shopping_from_another_market":"blocks.scope.shopping_from_another_branch"):salla.lang.get("blocks.scope.search_for_availability_in_other_branches")},salla.event.on("scopes::open",(({mode:s=null,product_id:t=null})=>{this.open(s,t)})),salla.lang.onLoaded((()=>{this.translationLoaded=!0}))}async close(){return await(this.modal?.close())}async open(s=a.DEFAULT,t=null){return this.hasError=!1,this.mode=[a.AVAILABILITY,a.DEFAULT].includes(s)?s:a.DEFAULT,this.loading=!this.loadedScopes[this.mode],this.setScopeValues([]),salla.log("SallaScope:: opened"),this.modal.open(),this.loading?await salla.api.withoutNotifier((()=>s==a.AVAILABILITY?salla.scope.getProductAvailability(t):salla.scope.get())).then((t=>{if(s==a.AVAILABILITY)return this.setScopeValues(this.loadedScopes[a.AVAILABILITY]=t.data);this.setScopeValues(this.loadedScopes[this.mode]=t.data.scopes)})).catch((s=>{console.log(s),this.hasError=!0})).finally((()=>{this.modal.stopLoading(),this.loading=!1})):(this.setScopeValues(this.loadedScopes[this.mode]),this.modal.stopLoading())}async handleSubmit(){let s={id:this.current_scope.id};return this.changeBtn.load(),await salla.scope.change(s).then((()=>{salla.storage.set("branch-choosed-before",!0),salla.storage.set("scope",{type:this.current_scope.type,id:this.current_scope.id}),salla.cart.reset(),window.location.replace(salla.helpers.addParamToUrl("scope",this.current_scope.id))})).catch((s=>console.log(s))).finally((()=>{this.changeBtn.stop()}))}setScopeValues(s){this.scopes=s,this.originalScopesList=s,1==s?.length?(this.current_scope=s[0],this.selected_scope=s[0],this.scopes=[s[0]]):(this.current_scope=s?.find((s=>s.selected)),this.selected_scope=s?.find((s=>s.selected)))}handleSearchFieldTyping(s){let t=s.target.value.toLocaleLowerCase();this.scopes=t?this.originalScopesList.filter((s=>s.name.toLowerCase().includes(t))):this.originalScopesList}handleScopeSelection(s){this.current_scope=this.scopes?.find((t=>t.id==s.target.value))}placeholderContent(){return t("salla-placeholder",{alignment:"center",class:"s-scopes-placeholder"},t("span",{slot:"title"},salla.lang.get("blocks.scope.branch_looking_for_not_found")),t("span",{slot:"description"},salla.lang.get("blocks.scope.our_services_not_available_in_this_branch")))}defaultContent(){return[t("div",{class:"s-scopes-container s-scrollbar"},this.scopes?.map((s=>t("div",{class:"s-scopes-input-wrap","data-selection":this.selection},t("input",{id:`${this.selection} + '_scope_' + ${s.id}`,name:"lang",type:"radio",value:s.id,onChange:s=>this.handleScopeSelection(s),class:"s-scopes-input",checked:!!this.current_scope&&this.current_scope.id==s.id}),t("label",{htmlFor:`${this.selection} + '_scope_' + ${s.id}`,class:"s-scopes-label s-scopes-clickable"},t("span",null,s.name)))))),this.footerContent()]}availabilityContent(){return t("div",{class:"s-scopes-container"},this.scopes?.map((s=>t("div",{class:"s-scopes-input-wrap","data-selection":this.selection},t("h2",{class:{"s-scopes-label":!0,"s-scopes-clickable":this.mode===a.DEFAULT}},t("span",null,s.name)),t("h2",{style:{color:s?.availability?.color},class:`s-scopes-${s?.availability?.key}`},s?.availability?.label)))))}footerContent(){return t("div",{class:"s-scopes-footer"},t("slot",{name:"footer"},t("salla-button",{ref:s=>this.changeBtn=s,disabled:!this.current_scope,onClick:()=>this.handleSubmit(),class:"s-scopes-submit","loader-position":"center",width:"wide"},salla.lang.get("common.elements.confirm"))))}componentWillLoad(){return salla.onReady()}render(){return t(e,{key:"a7571c852749d4449b42e2c12d5597f6aded1f7f"},t("salla-modal",{key:"48846fbac890e05c0deabe74138ad929a14796fb",ref:s=>this.modal=s,isClosable:!(!this.isOpenedBefore&&"optional"!=this.selection),class:"s-scopes-modal",isLoading:this.loading,"has-skeleton":!0},this.loading?t("div",{slot:"loading"},t("div",{class:"s-scopes-skeleton"},t("salla-list-tile",{class:"s-scopes-header"},t("div",{slot:"icon",class:"s-scopes-header-icon"},t("salla-skeleton",{type:"circle"})),t("div",{slot:"title",class:"s-scopes-header-title mb-5"},t("salla-skeleton",{height:"15px",width:"50%"})),t("div",{slot:"subtitle",class:"s-scopes-header-subtitle"},t("salla-skeleton",{height:"10px"}),t("salla-skeleton",{height:"10px",width:"75%"}))),t("div",{class:"s-scopes-skeleton-search"},t("salla-skeleton",{height:"10px",width:"50%"}),t("salla-skeleton",{height:"30px",width:"100%"})),t("div",{class:"s-scopes-skeleton-scopes"},t("salla-skeleton",{height:"10px",width:"30%"}),t("salla-skeleton",{height:"10px",width:"25%"}),t("salla-skeleton",{height:"10px",width:"30%"}),t("salla-skeleton",{height:"10px",width:"25%"}),t("salla-skeleton",{height:"10px",width:"30%"}),t("salla-skeleton",{height:"10px",width:"25%"}),t("salla-skeleton",{height:"10px",width:"30%"}),t("salla-skeleton",{height:"10px",width:"25%"})),t("div",{class:"s-scopes-skeleton-btn"},t("salla-skeleton",{height:"40px",width:"100%"})))):[t("salla-list-tile",{class:this.originalScopesList?.length?"s-scopes-header block":"s-hidden"},t("div",{slot:"icon",class:"s-scopes-header-icon",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>store-alt</title>\n<path d="M6.667 24h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333zM31.86 10.071l-4-8c-0.227-0.452-0.688-0.737-1.193-0.737h-21.333c-0.505 0-0.967 0.285-1.193 0.737l-4 8c-0.092 0.184-0.14 0.389-0.14 0.596v18.667c0 0.737 0.597 1.333 1.333 1.333h29.333c0.736 0 1.333-0.596 1.333-1.333v-18.667c0-0.207-0.048-0.412-0.14-0.596zM6.157 4h19.685l3.333 6.667h-26.352zM24 28h-5.333v-9.333h5.333zM29.333 28h-2.667v-10.667c0-0.737-0.597-1.333-1.333-1.333h-8c-0.736 0-1.333 0.596-1.333 1.333v10.667h-13.333v-14.667h26.667zM6.667 18.667h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333z"></path>\n</svg>\n'}),t("div",{slot:"title",class:"s-scopes-header-title"},salla.lang.get("blocks.scope.you_are_browse_store_from")),t("div",{slot:"subtitle",class:"s-scopes-header-subtitle"},this.selected_scope?this.selected_scope.name:"")),t("div",{class:"s-scopes-wrap"},!!this.originalScopesList?.length&&t("h4",{class:"s-scopes-title"},this.getFormTitle()),this.originalScopesList?.length>this.searchDisplayLimit?t("div",{class:"s-scopes-search-wrapper"},t("div",{class:"s-scopes-search-icon",innerHTML:l}),t("input",{type:"text",class:"s-scopes-search-input",onInput:s=>this.handleSearchFieldTyping(s),enterkeyhint:"search",placeholder:salla.lang.get("blocks.scope.searching_for_a_branch")})):"",this.hasError||!this.originalScopesList?.length&&this.mode!==a.AVAILABILITY?this.placeholderContent():this.mode===a.DEFAULT?this.defaultContent():this.availabilityContent())]))}async componentDidLoad(){await Salla.hooks.registerComponent("salla-scopes",this),salla.config.isMobileApp()||this.isOpenedBefore||"mandatory"!=this.selection||this.open()}};i.style=".s-scopes-availability-content{display:flex;justify-content:center;align-items:center}.s-scopes-placeholder{flex:0 0 85%}";export{i as salla_scopes}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as e,H as t}from"./p-D-UuXsoI.js";const a=class{constructor(e){s(this,e),this.type="normal",this.width="100%",this.height="100%"}render(){return e(t,{key:"9f9448d939ba69f60eca8dc6ea2ff98a047d6770",class:"s-skeleton-wrapper",style:{width:this.width,height:this.height}},e("div",{key:"3b43bb472316b5541a90081a5f3cb6ef91558212",class:{"s-skeleton-item":!0,"s-skeleton-item-circular":"circle"==this.type}}," "))}};a.style=":host{display:block}";export{a as salla_skeleton}