@salla.sa/twilight-components 2.14.550 → 2.14.552

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 (331) hide show
  1. package/dist/cjs/{filepond-B-8syvXC.js → filepond-BTsLGLic.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-DxfU_d7d.js → filepond-plugin-file-poster-DSHHkMx8.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-C0XIW0bl.js → filepond-plugin-file-validate-size-BB6ltSRf.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BHyBHLOg.js → filepond-plugin-file-validate-type-CNWlgtpi.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-Dnni9gl-.js → filepond-plugin-image-edit-DuY72vJR.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-C7pHXy9M.js → filepond-plugin-image-exif-orientation-DWzZOyOL.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CFttWV9E.js → filepond-plugin-image-preview-ropJ4nYL.js} +1 -1
  8. package/dist/cjs/{helpers-DHdDjm5V.js → helpers-Dm4BirHO.js} +2 -2
  9. package/dist/cjs/{index-CHvvKGJc.js → index-CoSVCFSp.js} +4 -4
  10. package/dist/cjs/{intlTelInput--yv-lZaU.js → intlTelInput-BSHBNNPO.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 +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-applied-filters.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  23. package/dist/cjs/{salla-bullet-delivery_2.cjs.entry.js → salla-bullet-delivery_3.cjs.entry.js} +60 -3
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-comment-form_9.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-delivery-promise.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item_2.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-cancel.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-options-modal_2.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/twilight.cjs.js +2 -2
  106. package/dist/cjs/{vanilla-picker-D-X0hQ7w.js → vanilla-picker-DdIwY7TN.js} +1 -1
  107. package/dist/collection/collection-manifest.json +6 -4
  108. package/dist/collection/components/salla-bullet-delivery/helpers.js +2 -2
  109. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +7 -1
  110. package/dist/collection/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.css +70 -0
  111. package/dist/collection/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.js +77 -0
  112. package/dist/components/helpers.js +2 -2
  113. package/dist/components/index.js +2 -2
  114. package/dist/components/salla-bullet-delivery-tag.d.ts +11 -0
  115. package/dist/components/salla-bullet-delivery-tag.js +76 -0
  116. package/dist/components/salla-bullet-delivery.js +7 -1
  117. package/dist/esm/{filepond-rGVsy4ep.js → filepond-CqbRA3Vl.js} +1 -1
  118. package/dist/esm/{filepond-plugin-file-poster-bfSOezL4.js → filepond-plugin-file-poster-Byt9onuT.js} +1 -1
  119. package/dist/esm/{filepond-plugin-file-validate-size-DagZiT3e.js → filepond-plugin-file-validate-size-C1P2OJEv.js} +1 -1
  120. package/dist/esm/{filepond-plugin-file-validate-type-Cf4JwDq-.js → filepond-plugin-file-validate-type-BP2FLMsG.js} +1 -1
  121. package/dist/esm/{filepond-plugin-image-edit-DWZ8nbdr.js → filepond-plugin-image-edit-C69hhmiF.js} +1 -1
  122. package/dist/esm/{filepond-plugin-image-exif-orientation-NHp2unXf.js → filepond-plugin-image-exif-orientation-B2QzeXLq.js} +1 -1
  123. package/dist/esm/{filepond-plugin-image-preview-BSi_AIFs.js → filepond-plugin-image-preview-CR1odLVd.js} +1 -1
  124. package/dist/esm/{helpers-BDChq2t4.js → helpers-CV6uPJEJ.js} +2 -2
  125. package/dist/esm/{index-Bf2Z6A1M.js → index-Q9lz4Iuq.js} +4 -4
  126. package/dist/esm/{intlTelInput-DLtsxnoY.js → intlTelInput-DzbfeHCl.js} +1 -1
  127. package/dist/esm/loader.js +3 -3
  128. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  129. package/dist/esm/salla-accordion_6.entry.js +1 -1
  130. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  131. package/dist/esm/salla-advertisement.entry.js +1 -1
  132. package/dist/esm/salla-alert_2.entry.js +1 -1
  133. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  134. package/dist/esm/salla-applied-filters.entry.js +1 -1
  135. package/dist/esm/salla-apps-icons.entry.js +1 -1
  136. package/dist/esm/salla-attachment-view_9.entry.js +10 -10
  137. package/dist/esm/salla-badge.entry.js +1 -1
  138. package/dist/esm/salla-basket-gap.entry.js +1 -1
  139. package/dist/esm/{salla-bullet-delivery_2.entry.js → salla-bullet-delivery_3.entry.js} +60 -4
  140. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  141. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  142. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  143. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  144. package/dist/esm/salla-comment-factors.entry.js +1 -1
  145. package/dist/esm/salla-comment-form_9.entry.js +1 -1
  146. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  147. package/dist/esm/salla-contacts.entry.js +1 -1
  148. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  149. package/dist/esm/salla-count-down.entry.js +1 -1
  150. package/dist/esm/salla-custom-fields.entry.js +1 -1
  151. package/dist/esm/salla-delivery-promise.entry.js +2 -2
  152. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  153. package/dist/esm/salla-filters-widget.entry.js +1 -1
  154. package/dist/esm/salla-filters.entry.js +1 -1
  155. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  156. package/dist/esm/salla-gifting.entry.js +1 -1
  157. package/dist/esm/salla-hook.entry.js +1 -1
  158. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  159. package/dist/esm/salla-installment.entry.js +1 -1
  160. package/dist/esm/salla-list-tile.entry.js +1 -1
  161. package/dist/esm/salla-localization-modal.entry.js +1 -1
  162. package/dist/esm/salla-login-modal.entry.js +1 -1
  163. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  164. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  165. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  166. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  167. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  168. package/dist/esm/salla-loyalty.entry.js +1 -1
  169. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  170. package/dist/esm/salla-map_2.entry.js +1 -1
  171. package/dist/esm/salla-menu.entry.js +1 -1
  172. package/dist/esm/salla-metadata.entry.js +1 -1
  173. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  174. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  175. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  176. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  177. package/dist/esm/salla-notification-item_2.entry.js +1 -1
  178. package/dist/esm/salla-offer-modal.entry.js +1 -1
  179. package/dist/esm/salla-offer.entry.js +1 -1
  180. package/dist/esm/salla-order-branch.entry.js +1 -1
  181. package/dist/esm/salla-order-cancel.entry.js +1 -1
  182. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  183. package/dist/esm/salla-order-details-options.entry.js +1 -1
  184. package/dist/esm/salla-order-details.entry.js +1 -1
  185. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  186. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  187. package/dist/esm/salla-order-edit.entry.js +1 -1
  188. package/dist/esm/salla-order-options-modal_2.entry.js +1 -1
  189. package/dist/esm/salla-order-shipments.entry.js +1 -1
  190. package/dist/esm/salla-order-summary.entry.js +1 -1
  191. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  192. package/dist/esm/salla-orders.entry.js +1 -1
  193. package/dist/esm/salla-payments.entry.js +1 -1
  194. package/dist/esm/salla-placeholder.entry.js +1 -1
  195. package/dist/esm/salla-price-range.entry.js +1 -1
  196. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  197. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  198. package/dist/esm/salla-products-list.entry.js +1 -1
  199. package/dist/esm/salla-products-slider.entry.js +1 -1
  200. package/dist/esm/salla-quick-order.entry.js +1 -1
  201. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  202. package/dist/esm/salla-rating-modal.entry.js +1 -1
  203. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  204. package/dist/esm/salla-review-order-item.entry.js +1 -1
  205. package/dist/esm/salla-scopes.entry.js +1 -1
  206. package/dist/esm/salla-search.entry.js +1 -1
  207. package/dist/esm/salla-skeleton.entry.js +1 -1
  208. package/dist/esm/salla-slider.entry.js +1 -1
  209. package/dist/esm/salla-social-share.entry.js +1 -1
  210. package/dist/esm/salla-social.entry.js +1 -1
  211. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  212. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  213. package/dist/esm/salla-tooltip.entry.js +1 -1
  214. package/dist/esm/salla-trust-badges.entry.js +1 -1
  215. package/dist/esm/salla-user-menu.entry.js +1 -1
  216. package/dist/esm/salla-user-profile.entry.js +1 -1
  217. package/dist/esm/salla-user-settings.entry.js +1 -1
  218. package/dist/esm/salla-verify.entry.js +1 -1
  219. package/dist/esm/salla-wallet.entry.js +1 -1
  220. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  221. package/dist/esm/twilight.js +3 -3
  222. package/dist/esm/{vanilla-picker-AjTapsL5.js → vanilla-picker-DZSS4OVz.js} +1 -1
  223. package/dist/twilight/{p-b19102f6.entry.js → p-008dcf73.entry.js} +1 -1
  224. package/dist/twilight/{p-b2380c6b.entry.js → p-00bb1a13.entry.js} +1 -1
  225. package/dist/twilight/{p-27396f6f.entry.js → p-0100262e.entry.js} +1 -1
  226. package/dist/twilight/{p-6e78cc02.entry.js → p-06109ef0.entry.js} +1 -1
  227. package/dist/twilight/{p-8838ad5c.entry.js → p-06abf9fb.entry.js} +1 -1
  228. package/dist/twilight/{p-69d75b45.entry.js → p-0bb678e7.entry.js} +1 -1
  229. package/dist/twilight/{p-e284728d.entry.js → p-1242708e.entry.js} +1 -1
  230. package/dist/twilight/{p-c818e0eb.entry.js → p-171c1927.entry.js} +1 -1
  231. package/dist/twilight/{p-e8b220e1.entry.js → p-1dc63988.entry.js} +1 -1
  232. package/dist/twilight/{p-277f3a46.entry.js → p-25017fcd.entry.js} +1 -1
  233. package/dist/twilight/{p-57b7cd9f.entry.js → p-25b7344e.entry.js} +1 -1
  234. package/dist/twilight/{p-581eeaf8.entry.js → p-27176c04.entry.js} +1 -1
  235. package/dist/twilight/{p-9e702ebb.entry.js → p-2845de1c.entry.js} +1 -1
  236. package/dist/twilight/{p-2c212d54.entry.js → p-31394018.entry.js} +1 -1
  237. package/dist/twilight/{p-9ae3a15c.entry.js → p-31d03d8c.entry.js} +1 -1
  238. package/dist/twilight/{p-f1322c8e.entry.js → p-34dfff49.entry.js} +1 -1
  239. package/dist/twilight/{p-d2c204f4.entry.js → p-36aa4c09.entry.js} +1 -1
  240. package/dist/twilight/{p-0dc61077.entry.js → p-382e5a40.entry.js} +1 -1
  241. package/dist/twilight/{p-5256180e.entry.js → p-3c0705e2.entry.js} +1 -1
  242. package/dist/twilight/{p-2f2771de.entry.js → p-40b70c18.entry.js} +1 -1
  243. package/dist/twilight/{p-03db1fe6.entry.js → p-462a49e4.entry.js} +1 -1
  244. package/dist/twilight/{p-0e12c9ca.entry.js → p-492c72eb.entry.js} +1 -1
  245. package/dist/twilight/{p-649ced48.entry.js → p-4941b3cd.entry.js} +1 -1
  246. package/dist/twilight/{p-cd51e722.entry.js → p-49cbb9ed.entry.js} +1 -1
  247. package/dist/twilight/{p-1c662f1d.entry.js → p-4abffe52.entry.js} +1 -1
  248. package/dist/twilight/{p-9cbc4733.entry.js → p-4b827efc.entry.js} +1 -1
  249. package/dist/twilight/{p-cfbf287b.entry.js → p-4bac36be.entry.js} +1 -1
  250. package/dist/twilight/{p-8cf65dbf.entry.js → p-52e1754b.entry.js} +1 -1
  251. package/dist/twilight/{p-b017b72e.entry.js → p-53e430c6.entry.js} +1 -1
  252. package/dist/twilight/{p-aa71f393.entry.js → p-5470f52a.entry.js} +1 -1
  253. package/dist/twilight/{p-c31b966f.entry.js → p-54bdc583.entry.js} +1 -1
  254. package/dist/twilight/{p-12d74e96.entry.js → p-56e93806.entry.js} +1 -1
  255. package/dist/twilight/{p-8e0bdbbc.entry.js → p-5b94bea7.entry.js} +1 -1
  256. package/dist/twilight/{p-4f1102f8.entry.js → p-5d671536.entry.js} +1 -1
  257. package/dist/twilight/{p-13fb9b74.entry.js → p-61ca8dd2.entry.js} +1 -1
  258. package/dist/twilight/{p-a8d6804c.entry.js → p-67b60d33.entry.js} +1 -1
  259. package/dist/twilight/{p-a3eb15e4.entry.js → p-6860331a.entry.js} +1 -1
  260. package/dist/twilight/{p-7e9d98c3.entry.js → p-6867eb35.entry.js} +1 -1
  261. package/dist/twilight/{p-785cee9b.entry.js → p-688b40b4.entry.js} +1 -1
  262. package/dist/twilight/{p-0c4c4419.entry.js → p-6f6d6f45.entry.js} +1 -1
  263. package/dist/twilight/{p-ebb73bcc.entry.js → p-7022989a.entry.js} +1 -1
  264. package/dist/twilight/{p-0ccba871.entry.js → p-729f3fa0.entry.js} +1 -1
  265. package/dist/twilight/{p-7e101885.entry.js → p-754af3dd.entry.js} +1 -1
  266. package/dist/twilight/{p-efa79191.entry.js → p-79451510.entry.js} +1 -1
  267. package/dist/twilight/{p-7b6fa77f.entry.js → p-79e2d7eb.entry.js} +1 -1
  268. package/dist/twilight/{p-cf21323d.entry.js → p-7d3899e7.entry.js} +1 -1
  269. package/dist/twilight/{p-3627d945.entry.js → p-7d9e3032.entry.js} +1 -1
  270. package/dist/twilight/{p-9fdb6380.entry.js → p-7dda74dd.entry.js} +1 -1
  271. package/dist/twilight/{p-f2e5f1fd.entry.js → p-7deba3f8.entry.js} +1 -1
  272. package/dist/twilight/{p-bded58cb.entry.js → p-7e8b2b0d.entry.js} +1 -1
  273. package/dist/twilight/{p-17c30aa6.entry.js → p-7f2bc499.entry.js} +1 -1
  274. package/dist/twilight/{p-9ee1e01c.entry.js → p-808fef3d.entry.js} +1 -1
  275. package/dist/twilight/{p-be95b40b.entry.js → p-8920aae0.entry.js} +1 -1
  276. package/dist/twilight/{p-3a4160c2.entry.js → p-89aad90f.entry.js} +1 -1
  277. package/dist/twilight/{p-c56725b9.entry.js → p-8abf3859.entry.js} +1 -1
  278. package/dist/twilight/{p-b603a180.entry.js → p-8bcf6db3.entry.js} +1 -1
  279. package/dist/twilight/{p-434f3557.entry.js → p-9118b3cf.entry.js} +1 -1
  280. package/dist/twilight/{p-3615a99b.entry.js → p-92fbada7.entry.js} +1 -1
  281. package/dist/twilight/{p-44ee3af8.entry.js → p-9f4fef0f.entry.js} +1 -1
  282. package/dist/twilight/{p-B59qdBmY.js → p-B31LPQuk.js} +1 -1
  283. package/dist/twilight/{p-BdsgfewR.js → p-BCwAi8HD.js} +1 -1
  284. package/dist/twilight/{p-CG1Rwy3q.js → p-CA-ne4vX.js} +1 -1
  285. package/dist/twilight/{p-CPqpCDCi.js → p-CPEEGqkw.js} +1 -1
  286. package/dist/twilight/{p-BDChq2t4.js → p-CV6uPJEJ.js} +1 -1
  287. package/dist/twilight/{p-uOF6Cufg.js → p-Ce0SoG8e.js} +1 -1
  288. package/dist/twilight/{p-BlDax_46.js → p-DPu3dYaG.js} +1 -1
  289. package/dist/twilight/{p-Bf2Z6A1M.js → p-Q9lz4Iuq.js} +1 -1
  290. package/dist/twilight/{p-DfIHi_xi.js → p-VPmzkmKU.js} +1 -1
  291. package/dist/twilight/{p-B-Q5WD6p.js → p-WyyaE0fN.js} +1 -1
  292. package/dist/twilight/{p-e54cc4f8.entry.js → p-a0e73c0f.entry.js} +1 -1
  293. package/dist/twilight/{p-bd3fef37.entry.js → p-a24168ae.entry.js} +1 -1
  294. package/dist/twilight/{p-5383a324.entry.js → p-a70cbfe9.entry.js} +1 -1
  295. package/dist/twilight/{p-97136699.entry.js → p-a7417d3a.entry.js} +1 -1
  296. package/dist/twilight/{p-5a4f7313.entry.js → p-aa1af88d.entry.js} +1 -1
  297. package/dist/twilight/{p-2607ac8e.entry.js → p-ae5ce421.entry.js} +1 -1
  298. package/dist/twilight/{p-33842645.entry.js → p-b881f716.entry.js} +1 -1
  299. package/dist/twilight/{p-c24f6325.entry.js → p-b92af898.entry.js} +1 -1
  300. package/dist/twilight/{p-0fb44a3c.entry.js → p-bbdec84a.entry.js} +1 -1
  301. package/dist/twilight/{p-95a3b9b9.entry.js → p-bd389ba7.entry.js} +1 -1
  302. package/dist/twilight/{p-09c1d9c8.entry.js → p-bf860754.entry.js} +1 -1
  303. package/dist/twilight/{p-4df5f9a0.entry.js → p-bfa2b7c5.entry.js} +1 -1
  304. package/dist/twilight/{p-0d199866.entry.js → p-c0599e5d.entry.js} +1 -1
  305. package/dist/twilight/{p-1653256e.entry.js → p-c6ed3a34.entry.js} +1 -1
  306. package/dist/twilight/{p-38b4dfa9.entry.js → p-c7482df4.entry.js} +1 -1
  307. package/dist/twilight/{p-4d3e018b.entry.js → p-c90ff0bf.entry.js} +1 -1
  308. package/dist/twilight/{p-bc595ee3.entry.js → p-ce8205e2.entry.js} +1 -1
  309. package/dist/twilight/{p-e8a1c501.entry.js → p-d6a04817.entry.js} +1 -1
  310. package/dist/twilight/{p-34240222.entry.js → p-d70c704f.entry.js} +25 -25
  311. package/dist/twilight/{p-fc587040.entry.js → p-d7c03cf7.entry.js} +1 -1
  312. package/dist/twilight/{p-d65a6462.entry.js → p-dfc67513.entry.js} +1 -1
  313. package/dist/twilight/{p-dfaf0617.entry.js → p-e0868b92.entry.js} +1 -1
  314. package/dist/twilight/{p-a818352a.entry.js → p-e305f635.entry.js} +1 -1
  315. package/dist/twilight/{p-018456c8.entry.js → p-e69f6c43.entry.js} +1 -1
  316. package/dist/twilight/{p-9f1d1b76.entry.js → p-e6b1dd40.entry.js} +1 -1
  317. package/dist/twilight/{p-c0c561b9.entry.js → p-ea3480ff.entry.js} +1 -1
  318. package/dist/twilight/{p-0da8a64f.entry.js → p-eddf3ee5.entry.js} +1 -1
  319. package/dist/twilight/{p-f586c239.entry.js → p-f0cefe50.entry.js} +1 -1
  320. package/dist/twilight/{p-d2556680.entry.js → p-f4207ccf.entry.js} +1 -1
  321. package/dist/twilight/{p-d63ca8bb.entry.js → p-f5485435.entry.js} +1 -1
  322. package/dist/twilight/{p-b7b4231f.entry.js → p-f632b2f7.entry.js} +1 -1
  323. package/dist/twilight/{p-b452c8a0.entry.js → p-f7c2ff0f.entry.js} +1 -1
  324. package/dist/twilight/{p-cfac0aa1.entry.js → p-fe34bfd0.entry.js} +1 -1
  325. package/dist/twilight/{p-0739e769.entry.js → p-ff6672b6.entry.js} +1 -1
  326. package/dist/twilight/{p-CMQ7Gxqu.js → p-sDtjU0pK.js} +1 -1
  327. package/dist/twilight/twilight.esm.js +1 -1
  328. package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +2 -0
  329. package/dist/types/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.d.ts +26 -0
  330. package/dist/types/components.d.ts +77 -0
  331. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- const n="BulletDeliveryAPI",t=n=>{const t=null==n?Number.NaN:Number(n);return!Number.isNaN(t)&&0!==t};async function r(t,r,s){try{return await t()}catch(t){return console.error(`${n}: ${s}`,t),r}}const s=new Map;function a(n){const t=s.get(n);return!t||Date.now()-t.timestamp>3e5?(s.delete(n),null):t.data}function e(n,t){s.set(n,{data:t,timestamp:Date.now()})}const o=n=>"SA"===String(n).toUpperCase(),i={async getCountries(n=!1,t){const s=t?.trim()?null:"countries_"+(n?1:0);if(s){const n=a(s);if(n)return n}const i=await r((async()=>{const r={for_branch:n?1:0};return n&&(r.for_allocation=1),t?.trim()&&(r.query=t.trim()),((await salla.api.request("shipping/countries",{params:r}))?.data??[]).map((n=>({id:n.id,code:n.code,name:n.name,has_regions:o(n.code)})))}),[],"Error getting countries");return s&&i.length>0&&e(s,i),i},async getRegions(s,o){if(!t(s))return console.warn(`${n}: getRegions called without valid country_id`),[];const i=o?.trim()?null:`regions_${s}`;if(i){const n=a(i);if(n)return n}const c=await r((async()=>{const n={};return o?.trim()&&(n.query=o.trim()),((await salla.api.request(`shipping/countries/${s}/regions`,{params:n}))?.data??[]).map((n=>({id:n.id,name:n.name,code:n.code,country_id:Number(s)})))}),[],"Error fetching regions");return i&&c.length>0&&e(i,c),c},async getCities(s,o,i){if(!t(s))return console.warn(`${n}: getCities called without valid country_id`),[];const c=i?.trim()?null:`cities_${s}_${o||"all"}`;if(c){const n=a(c);if(n)return n}const l=await r((async()=>{const n={for_branch:0,country_id:s};return o&&(n.region_id=o),i?.trim()&&(n.query=i.trim()),((await salla.api.request("shipping/cities",{params:n}))?.data??[]).map((n=>({id:n.id,name:n.name,country_id:s,...null!=n.region_id&&{region_id:n.region_id}})))}),[],"Error fetching cities");return c&&l.length>0&&e(c,l),l},getDistricts:async(s,a)=>t(s)?r((async()=>{const n={for_branch:0,city_id:s};a?.trim()&&(n.query=a.trim());const t=(await salla.api.request("shipping/districts",{params:n}))?.data;return(Array.isArray(t)?t:Array.isArray(t?.districts)?t.districts:[]).map((n=>({id:n.id,name:n.name,name_en:n.name_en,city_id:s})))}),[],"Error fetching districts"):(console.warn(`${n}: getDistricts called without valid city_id`),[]),getSavedAddresses:async()=>r((async()=>{const n=(await salla.api.request("address"))?.data;return Array.isArray(n)?n:[]}),[],"Error fetching user addresses"),async getBranches({query:n,lat:t,lng:s,country_id:o,per_page:i=20}={}){const c=n?.trim()?.length>=2||t||s||!o?null:`branches_${o}`;if(c){const n=a(c);if(n)return n}const l=await r((async()=>{const r={per_page:i};n?.trim().length>=2&&(r.query=n),t&&(r.lat=t),s&&(r.lng=s),o&&(r.country_id=o);const a=await salla.api.request("branches",{params:r});return Array.isArray(a?.data)?a.data:[]}),[],"Error fetching branches");return c&&l.length>0&&e(c,l),l},saveAddressLocation:async n=>r((async()=>{const t=await salla.api.request("address/location",{...n,for_allocation:!0},"post"),r=t?.data??t;return{success:!0,address:"object"==typeof r&&null!=r&&"id"in r?r:void 0}}),{success:!1},"Error saving address/location"),setDeliveryScope:async n=>r((async()=>(await salla.api.withoutNotifier((()=>salla.scope.change({id:n}))),salla.storage.set("scope",{...salla.storage.get("scope")||{},id:n}),!0)),!1,"Error setting delivery scope"),async allocateScope(t){try{const n=await salla.api.withoutNotifier((()=>salla.api.request("scopes/allocation",t,"post")));return{success:!0,data:n?.data??n}}catch(t){console.error(`${n}: Error allocating scope`,t);const s=t;return{success:!1,error:null!=s?.response?.data?(r=s.response.data,r?.error?.message??r?.message??"Failed to allocate scope"):s?.message??"Unknown error"}}var r},getAddressToken:async()=>r((async()=>{const n=await salla.api.request("address/autocomplete-token");return n?.data?.token??null}),null,"Error fetching address autocomplete token")};function c(){s.clear()}const l=n=>n*(Math.PI/180);function u(n,t,r,s){const a=l(r-n),e=l(s-t),o=Math.sin(a/2)**2+Math.cos(l(n))*Math.cos(l(r))*Math.sin(e/2)**2;return 12742*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}const d=n=>{if(!n)return!1;const t=n.pickup_readiness?.selectable;return"boolean"==typeof t?t:!1!==n.is_open};function y(n,t,r){let s=null,a=Number.POSITIVE_INFINITY;for(const e of n){const n=null!=e.location?.lat?Number(e.location.lat):Number.NaN,o=null!=e.location?.lng?Number(e.location.lng):Number.NaN;if(Number.isNaN(n)||Number.isNaN(o)||!1===e.is_open)continue;const i=u(t,r,n,o);i<a&&(a=i,s=e)}return s}const g=(n,t)=>{if(!t)return n;const r=t.toLowerCase();return n.filter((n=>n.name.toLowerCase().includes(r)||n.city?.name?.toLowerCase().includes(r)))},f=(n,t,r)=>{if("branch"===n.type){const t=n.branch_details?.city??n.branch_details?.name;return t?`${r} ${t}`.trim():""}if("address"===n.type&&n.address_details){const r=[n.address_details.district?.name,n.address_details.city?.name,n.address_details.country?.name].filter(Boolean).join("، ")||n.address_details.short_address||"";return r?`${t} ${r}`.trim():""}return""},p=n=>null!=n?Number(n):void 0,h=n=>p(n?.address_details?.country?.id),m=n=>n?.country_code??n?.address_details?.country?.code??"",b=n=>p(n?.address_details?.region?.id),_=n=>p(n?.address_details?.city?.id),w=n=>p(n?.address_details?.district?.id),N=n=>n?.branch_details?.id,v=n=>n?.branch_details?.latitude,$=n=>n?.branch_details?.longitude,E=n=>!!n&&"address"===n.type&&null!=n.address_details?.lat&&null!=n.address_details?.lng,A=n=>{if(!n||"address"!==n.type||n.address_id)return!1;if(E(n))return!0;const t=h(n),r=_(n),s=w(n),a=m(n),e=null!=s&&0!==Number(s),i=Boolean(n.address_details?.district?.name?.trim()),c=!o(a)||e||i;return!!(t&&r&&c)},M=(n,t,r)=>!n||!o(n)||null!=t&&0!==Number(t)&&null!=r&&("number"==typeof r?0!==r:String(r).trim().length>0);function D(n){const{countryId:t,countryCode:r,regionId:s,cityId:a,districtId:e,description:i="",lat:c,lng:l,shortAddress:u}=n,d=i||"";return{country_id:Number(t)||void 0,region_id:null!=s?Number(s):void 0,city_id:null!=a?Number(a):void 0,district_id:null!=e?Number(e):void 0,description:d,...r&&o(r)&&{local:d},...null!=c&&null!=l&&{lat:c,lng:l},...u&&{short_address:u}}}const S={[GeolocationPositionError.PERMISSION_DENIED]:"Location permission denied",[GeolocationPositionError.POSITION_UNAVAILABLE]:"Location unavailable",[GeolocationPositionError.TIMEOUT]:"Location timeout"},k=n=>S[n]??"An error occurred while detecting location";export{o as a,i as b,$ as c,_ as d,h as e,b as f,v as g,A as h,E as i,w as j,g as k,y as l,k as m,D as n,c as o,f as p,N as q,M as r,d as s,m as t}
4
+ const n="BulletDeliveryAPI",t=n=>{const t=null==n?Number.NaN:Number(n);return!Number.isNaN(t)&&0!==t};async function r(t,r,s){try{return await t()}catch(t){return console.error(`${n}: ${s}`,t),r}}const s=new Map;function a(n){const t=s.get(n);return!t||Date.now()-t.timestamp>3e5?(s.delete(n),null):t.data}function e(n,t){s.set(n,{data:t,timestamp:Date.now()})}const o=n=>"SA"===String(n).toUpperCase(),i={async getCountries(n=!1,t){const s=t?.trim()?null:"countries_"+(n?1:0);if(s){const n=a(s);if(n)return n}const i=await r((async()=>{const r={for_branch:n?1:0};return n&&(r.for_allocation=1),t?.trim()&&(r.query=t.trim()),((await salla.api.request("shipping/countries",{params:r}))?.data??[]).map((n=>({id:n.id,code:n.code,name:n.name,has_regions:o(n.code)})))}),[],"Error getting countries");return s&&i.length>0&&e(s,i),i},async getRegions(s,o){if(!t(s))return console.warn(`${n}: getRegions called without valid country_id`),[];const i=o?.trim()?null:`regions_${s}`;if(i){const n=a(i);if(n)return n}const c=await r((async()=>{const n={};return o?.trim()&&(n.query=o.trim()),((await salla.api.request(`shipping/countries/${s}/regions`,{params:n}))?.data??[]).map((n=>({id:n.id,name:n.name,code:n.code,country_id:Number(s)})))}),[],"Error fetching regions");return i&&c.length>0&&e(i,c),c},async getCities(s,o,i){if(!t(s))return console.warn(`${n}: getCities called without valid country_id`),[];const c=i?.trim()?null:`cities_${s}_${o||"all"}`;if(c){const n=a(c);if(n)return n}const l=await r((async()=>{const n={for_branch:0,country_id:s};return o&&(n.region_id=o),i?.trim()&&(n.query=i.trim()),((await salla.api.request("shipping/cities",{params:n}))?.data??[]).map((n=>({id:n.id,name:n.name,country_id:s,...null!=n.region_id&&{region_id:n.region_id}})))}),[],"Error fetching cities");return c&&l.length>0&&e(c,l),l},getDistricts:async(s,a)=>t(s)?r((async()=>{const n={for_branch:0,city_id:s};a?.trim()&&(n.query=a.trim());const t=(await salla.api.request("shipping/districts",{params:n}))?.data;return(Array.isArray(t)?t:Array.isArray(t?.districts)?t.districts:[]).map((n=>({id:n.id,name:n.name,name_en:n.name_en,city_id:s})))}),[],"Error fetching districts"):(console.warn(`${n}: getDistricts called without valid city_id`),[]),getSavedAddresses:async()=>r((async()=>{const n=(await salla.api.request("address"))?.data;return Array.isArray(n)?n:[]}),[],"Error fetching user addresses"),async getBranches({query:n,lat:t,lng:s,country_id:o,per_page:i=20}={}){const c=n?.trim()?.length>=2||t||s||!o?null:`branches_${o}`;if(c){const n=a(c);if(n)return n}const l=await r((async()=>{const r={per_page:i};n?.trim().length>=2&&(r.query=n),t&&(r.lat=t),s&&(r.lng=s),o&&(r.country_id=o);const a=await salla.api.request("branches",{params:r});return Array.isArray(a?.data)?a.data:[]}),[],"Error fetching branches");return c&&l.length>0&&e(c,l),l},saveAddressLocation:async n=>r((async()=>{const t=await salla.api.request("address/location",{...n,for_allocation:!0},"post"),r=t?.data??t;return{success:!0,address:"object"==typeof r&&null!=r&&"id"in r?r:void 0}}),{success:!1},"Error saving address/location"),setDeliveryScope:async n=>r((async()=>(await salla.api.withoutNotifier((()=>salla.scope.change({id:n}))),salla.storage.set("scope",{...salla.storage.get("scope")||{},id:n}),!0)),!1,"Error setting delivery scope"),async allocateScope(t){try{const n=await salla.api.withoutNotifier((()=>salla.api.request("scopes/allocation",t,"post")));return{success:!0,data:n?.data??n}}catch(t){console.error(`${n}: Error allocating scope`,t);const s=t;return{success:!1,error:null!=s?.response?.data?(r=s.response.data,r?.error?.message??r?.message??"Failed to allocate scope"):s?.message??"Unknown error"}}var r},getAddressToken:async()=>r((async()=>{const n=await salla.api.request("address/autocomplete-token");return n?.data?.token??null}),null,"Error fetching address autocomplete token")};function c(){s.clear()}const l=n=>n*(Math.PI/180);function u(n,t,r,s){const a=l(r-n),e=l(s-t),o=Math.sin(a/2)**2+Math.cos(l(n))*Math.cos(l(r))*Math.sin(e/2)**2;return 12742*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))}const d=n=>{if(!n)return!1;const t=n.pickup_readiness?.selectable;return"boolean"==typeof t?t:!1!==n.is_open};function y(n,t,r){let s=null,a=Number.POSITIVE_INFINITY;for(const e of n){const n=null!=e.location?.lat?Number(e.location.lat):Number.NaN,o=null!=e.location?.lng?Number(e.location.lng):Number.NaN;if(Number.isNaN(n)||Number.isNaN(o)||!1===e.is_open)continue;const i=u(t,r,n,o);i<a&&(a=i,s=e)}return s}const g=(n,t)=>{if(!t)return n;const r=t.toLowerCase();return n.filter((n=>n.name.toLowerCase().includes(r)||n.city?.name?.toLowerCase().includes(r)))},f=(n,t,r)=>{if("branch"===n.type){const t=[n.branch_details?.country,n.branch_details?.city,n.branch_details?.district].filter(Boolean).join("، ");return t?`${r} ${t}`.trim():""}if("address"===n.type&&n.address_details){const r=[n.address_details.country?.name,n.address_details.city?.name,n.address_details.district?.name].filter(Boolean).join("، ")||n.address_details.short_address||"";return r?`${t} ${r}`.trim():""}return""},p=n=>null!=n?Number(n):void 0,h=n=>p(n?.address_details?.country?.id),m=n=>n?.country_code??n?.address_details?.country?.code??"",b=n=>p(n?.address_details?.region?.id),_=n=>p(n?.address_details?.city?.id),w=n=>p(n?.address_details?.district?.id),N=n=>n?.branch_details?.id,v=n=>n?.branch_details?.latitude,$=n=>n?.branch_details?.longitude,E=n=>!!n&&"address"===n.type&&null!=n.address_details?.lat&&null!=n.address_details?.lng,A=n=>{if(!n||"address"!==n.type||n.address_id)return!1;if(E(n))return!0;const t=h(n),r=_(n),s=w(n),a=m(n),e=null!=s&&0!==Number(s),i=Boolean(n.address_details?.district?.name?.trim()),c=!o(a)||e||i;return!!(t&&r&&c)},M=(n,t,r)=>!n||!o(n)||null!=t&&0!==Number(t)&&null!=r&&("number"==typeof r?0!==r:String(r).trim().length>0);function D(n){const{countryId:t,countryCode:r,regionId:s,cityId:a,districtId:e,description:i="",lat:c,lng:l,shortAddress:u}=n,d=i||"";return{country_id:Number(t)||void 0,region_id:null!=s?Number(s):void 0,city_id:null!=a?Number(a):void 0,district_id:null!=e?Number(e):void 0,description:d,...r&&o(r)&&{local:d},...null!=c&&null!=l&&{lat:c,lng:l},...u&&{short_address:u}}}const S={[GeolocationPositionError.PERMISSION_DENIED]:"Location permission denied",[GeolocationPositionError.POSITION_UNAVAILABLE]:"Location unavailable",[GeolocationPositionError.TIMEOUT]:"Location timeout"},k=n=>S[n]??"An error occurred while detecting location";export{o as a,i as b,$ as c,_ as d,h as e,b as f,v as g,A as h,E as i,w as j,g as k,y as l,k as m,D as n,c as o,f as p,N as q,M as r,d as s,m as t}