@salla.sa/twilight-components 2.14.479 → 2.14.480

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 (313) hide show
  1. package/dist/cjs/{filepond-BPXa818W.js → filepond-kIwfFiY4.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C8rBmqP1.js → filepond-plugin-file-poster-CbAmZLgn.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DHvexzHl.js → filepond-plugin-file-validate-size-iH_0ezqS.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-USfPHGU9.js → filepond-plugin-file-validate-type-B2YOvyGf.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-B6d-pTe7.js → filepond-plugin-image-edit-C5N-16uI.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BKXTMrN7.js → filepond-plugin-image-exif-orientation-aEzbNMDw.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-HeJn7Fzg.js → filepond-plugin-image-preview-RLbA7gqX.js} +1 -1
  8. package/dist/cjs/{functions-DnfHlsMt.js → functions-BVKjPPbN.js} +1 -1
  9. package/dist/cjs/{index-Bd4QLljc.js → index-DjrWrGKt.js} +1 -1
  10. package/dist/cjs/{index-BOSf94mJ.js → index-RKu7wZSM.js} +2 -2
  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-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 +10 -10
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +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 +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-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 +4 -2
  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 +1 -1
  85. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  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 +1 -1
  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 +1 -1
  100. package/dist/cjs/{tracked-promise-B5_X6aTd.js → tracked-promise-B8pdpxb2.js} +1 -1
  101. package/dist/cjs/twilight.cjs.js +2 -2
  102. package/dist/cjs/{vanilla-picker-CibPXx03.js → vanilla-picker-B6Vd66w8.js} +1 -1
  103. package/dist/collection/components/salla-order-branch/salla-order-branch.js +28 -2
  104. package/dist/components/index.js +2 -2
  105. package/dist/components/salla-order-branch.js +5 -2
  106. package/dist/esm/{filepond-De6VkHet.js → filepond-BUxO340w.js} +1 -1
  107. package/dist/esm/{filepond-plugin-file-poster-CiCgn3Hw.js → filepond-plugin-file-poster-DPDWNTQe.js} +1 -1
  108. package/dist/esm/{filepond-plugin-file-validate-size-Cpb-5fe6.js → filepond-plugin-file-validate-size-DrF6W6HS.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-validate-type-aHD8bS59.js → filepond-plugin-file-validate-type-ByNgdCcv.js} +1 -1
  110. package/dist/esm/{filepond-plugin-image-edit-67aiG6wt.js → filepond-plugin-image-edit-D6lcie1e.js} +1 -1
  111. package/dist/esm/{filepond-plugin-image-exif-orientation-Dz-18vfu.js → filepond-plugin-image-exif-orientation-CEGVilMd.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-preview-CXLxQkFQ.js → filepond-plugin-image-preview-BInmqvtQ.js} +1 -1
  113. package/dist/esm/{functions-PgaN9IW0.js → functions-CwbqVd0b.js} +1 -1
  114. package/dist/esm/{index-DOBNIJGF.js → index-BqFb60iF.js} +2 -2
  115. package/dist/esm/{index-COUOkGDQ.js → index-BrHfsf3-.js} +1 -1
  116. package/dist/esm/loader.js +3 -3
  117. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  118. package/dist/esm/salla-accordion_6.entry.js +1 -1
  119. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  120. package/dist/esm/salla-advertisement.entry.js +1 -1
  121. package/dist/esm/salla-alert_2.entry.js +1 -1
  122. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  123. package/dist/esm/salla-apps-icons.entry.js +1 -1
  124. package/dist/esm/salla-badge.entry.js +1 -1
  125. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  126. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  127. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  128. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  129. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  130. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  131. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  132. package/dist/esm/salla-contacts.entry.js +1 -1
  133. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  134. package/dist/esm/salla-count-down.entry.js +1 -1
  135. package/dist/esm/salla-custom-fields.entry.js +1 -1
  136. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  137. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  138. package/dist/esm/salla-filters-widget.entry.js +1 -1
  139. package/dist/esm/salla-filters.entry.js +1 -1
  140. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  141. package/dist/esm/salla-gifting.entry.js +1 -1
  142. package/dist/esm/salla-hook.entry.js +1 -1
  143. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  144. package/dist/esm/salla-installment.entry.js +1 -1
  145. package/dist/esm/salla-list-tile.entry.js +1 -1
  146. package/dist/esm/salla-localization-modal.entry.js +1 -1
  147. package/dist/esm/salla-login-modal.entry.js +1 -1
  148. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  149. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  150. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  151. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  152. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  153. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  154. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  155. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  156. package/dist/esm/salla-loyalty.entry.js +1 -1
  157. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  158. package/dist/esm/salla-map_2.entry.js +1 -1
  159. package/dist/esm/salla-menu.entry.js +1 -1
  160. package/dist/esm/salla-metadata.entry.js +1 -1
  161. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  162. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  163. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  164. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  165. package/dist/esm/salla-notification-item.entry.js +1 -1
  166. package/dist/esm/salla-notifications.entry.js +1 -1
  167. package/dist/esm/salla-offer-modal.entry.js +1 -1
  168. package/dist/esm/salla-offer.entry.js +1 -1
  169. package/dist/esm/salla-order-branch.entry.js +4 -2
  170. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  171. package/dist/esm/salla-order-details-options.entry.js +1 -1
  172. package/dist/esm/salla-order-details.entry.js +1 -1
  173. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  174. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  175. package/dist/esm/salla-order-edit.entry.js +1 -1
  176. package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
  177. package/dist/esm/salla-order-summary.entry.js +1 -1
  178. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  179. package/dist/esm/salla-orders.entry.js +1 -1
  180. package/dist/esm/salla-payments.entry.js +1 -1
  181. package/dist/esm/salla-placeholder.entry.js +1 -1
  182. package/dist/esm/salla-price-range.entry.js +1 -1
  183. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  184. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  185. package/dist/esm/salla-products-list.entry.js +1 -1
  186. package/dist/esm/salla-quick-order.entry.js +1 -1
  187. package/dist/esm/salla-rating-modal.entry.js +1 -1
  188. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  189. package/dist/esm/salla-scopes.entry.js +1 -1
  190. package/dist/esm/salla-search.entry.js +1 -1
  191. package/dist/esm/salla-skeleton.entry.js +1 -1
  192. package/dist/esm/salla-slider.entry.js +1 -1
  193. package/dist/esm/salla-social-share.entry.js +1 -1
  194. package/dist/esm/salla-social.entry.js +1 -1
  195. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  196. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  197. package/dist/esm/salla-tooltip.entry.js +1 -1
  198. package/dist/esm/salla-trust-badges.entry.js +1 -1
  199. package/dist/esm/salla-user-menu.entry.js +1 -1
  200. package/dist/esm/salla-user-profile.entry.js +1 -1
  201. package/dist/esm/salla-user-settings.entry.js +1 -1
  202. package/dist/esm/salla-verify.entry.js +1 -1
  203. package/dist/esm/salla-wallet.entry.js +1 -1
  204. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  205. package/dist/esm/{tracked-promise-vq6waoZ5.js → tracked-promise-DXr0erHx.js} +1 -1
  206. package/dist/esm/twilight.js +3 -3
  207. package/dist/esm/{vanilla-picker-CjLObECd.js → vanilla-picker-5UIlzk8V.js} +1 -1
  208. package/dist/twilight/{p-9b8a3570.entry.js → p-013dfb33.entry.js} +1 -1
  209. package/dist/twilight/{p-dc0dc251.entry.js → p-026f2d7b.entry.js} +1 -1
  210. package/dist/twilight/{p-401a440e.entry.js → p-07ab0bf0.entry.js} +1 -1
  211. package/dist/twilight/{p-aaf673c2.entry.js → p-09373418.entry.js} +1 -1
  212. package/dist/twilight/{p-bb320032.entry.js → p-0b9b72c0.entry.js} +1 -1
  213. package/dist/twilight/{p-1f539133.entry.js → p-0c77267c.entry.js} +1 -1
  214. package/dist/twilight/{p-71d488e6.entry.js → p-0f975c51.entry.js} +1 -1
  215. package/dist/twilight/{p-0894be06.entry.js → p-0fd430cd.entry.js} +1 -1
  216. package/dist/twilight/{p-965be874.entry.js → p-12eef889.entry.js} +1 -1
  217. package/dist/twilight/{p-f98d7adb.entry.js → p-1a719573.entry.js} +1 -1
  218. package/dist/twilight/{p-023064b5.entry.js → p-1c834218.entry.js} +1 -1
  219. package/dist/twilight/{p-88cbc0d9.entry.js → p-1f7b2325.entry.js} +1 -1
  220. package/dist/twilight/{p-2a98d199.entry.js → p-23fb752f.entry.js} +1 -1
  221. package/dist/twilight/{p-95b0afec.entry.js → p-248d1538.entry.js} +1 -1
  222. package/dist/twilight/{p-b43972bd.entry.js → p-29b491ae.entry.js} +1 -1
  223. package/dist/twilight/{p-50699d8a.entry.js → p-2a8797f7.entry.js} +1 -1
  224. package/dist/twilight/{p-fe518894.entry.js → p-2d5469e5.entry.js} +1 -1
  225. package/dist/twilight/{p-720ea46a.entry.js → p-2dbbfde8.entry.js} +1 -1
  226. package/dist/twilight/{p-7e30f305.entry.js → p-2e5bb4f4.entry.js} +1 -1
  227. package/dist/twilight/{p-ad4d06ce.entry.js → p-315593b0.entry.js} +1 -1
  228. package/dist/twilight/{p-682189e1.entry.js → p-328689cc.entry.js} +1 -1
  229. package/dist/twilight/{p-8f614d1c.entry.js → p-334df31d.entry.js} +1 -1
  230. package/dist/twilight/{p-80016acb.entry.js → p-3592fb4b.entry.js} +1 -1
  231. package/dist/twilight/{p-17610b7c.entry.js → p-3889f710.entry.js} +1 -1
  232. package/dist/twilight/{p-344a3000.entry.js → p-3d68c74d.entry.js} +1 -1
  233. package/dist/twilight/{p-5b0b7ec6.entry.js → p-3e263ad6.entry.js} +1 -1
  234. package/dist/twilight/{p-2bf6e4e5.entry.js → p-3fc7dfa2.entry.js} +1 -1
  235. package/dist/twilight/{p-4f68152c.entry.js → p-431fac85.entry.js} +1 -1
  236. package/dist/twilight/{p-40c46ea4.entry.js → p-43474ee2.entry.js} +1 -1
  237. package/dist/twilight/{p-2e1a171d.entry.js → p-46b9277f.entry.js} +1 -1
  238. package/dist/twilight/{p-8a184321.entry.js → p-5083bfcd.entry.js} +1 -1
  239. package/dist/twilight/{p-d9098501.entry.js → p-535aff1f.entry.js} +1 -1
  240. package/dist/twilight/{p-92705a9f.entry.js → p-53ce66a7.entry.js} +1 -1
  241. package/dist/twilight/{p-05b89acb.entry.js → p-57d40198.entry.js} +1 -1
  242. package/dist/twilight/{p-756bd7be.entry.js → p-5a57d395.entry.js} +1 -1
  243. package/dist/twilight/{p-9afdbf8c.entry.js → p-61e9018a.entry.js} +1 -1
  244. package/dist/twilight/{p-ca6d81c2.entry.js → p-63f568ad.entry.js} +1 -1
  245. package/dist/twilight/{p-ec368653.entry.js → p-67e934a3.entry.js} +1 -1
  246. package/dist/twilight/{p-4a794ffc.entry.js → p-6c4ab4ae.entry.js} +1 -1
  247. package/dist/twilight/{p-efabb238.entry.js → p-76196f47.entry.js} +1 -1
  248. package/dist/twilight/{p-85df1cda.entry.js → p-767822b5.entry.js} +1 -1
  249. package/dist/twilight/{p-c8b40772.entry.js → p-778a42dc.entry.js} +1 -1
  250. package/dist/twilight/{p-bf85a892.entry.js → p-7b8f78d8.entry.js} +1 -1
  251. package/dist/twilight/{p-f7dd548d.entry.js → p-7c95a27d.entry.js} +1 -1
  252. package/dist/twilight/{p-dfcafe54.entry.js → p-7cec181e.entry.js} +1 -1
  253. package/dist/twilight/{p-17da5f55.entry.js → p-81fc08bc.entry.js} +1 -1
  254. package/dist/twilight/{p-43e1459c.entry.js → p-8b366181.entry.js} +1 -1
  255. package/dist/twilight/{p-dc99fe2e.entry.js → p-91dc3de7.entry.js} +1 -1
  256. package/dist/twilight/{p-ed3cf4cd.entry.js → p-92b0481d.entry.js} +1 -1
  257. package/dist/twilight/p-95643680.entry.js +4 -0
  258. package/dist/twilight/{p-f15da397.entry.js → p-96d7b307.entry.js} +1 -1
  259. package/dist/twilight/{p-2dca07f4.entry.js → p-97f56b3e.entry.js} +1 -1
  260. package/dist/twilight/{p-263839f0.entry.js → p-9dc040ac.entry.js} +1 -1
  261. package/dist/twilight/{p-9d3efb90.entry.js → p-9f5105fc.entry.js} +1 -1
  262. package/dist/twilight/{p-DzkfQABi.js → p-BRP9wXBV.js} +1 -1
  263. package/dist/twilight/{p-DSQUWswr.js → p-BbiGVDjx.js} +1 -1
  264. package/dist/twilight/{p-3H1z72Ig.js → p-BnXdxK21.js} +1 -1
  265. package/dist/twilight/{p-DOBNIJGF.js → p-BqFb60iF.js} +1 -1
  266. package/dist/twilight/{p-IOauGdRQ.js → p-Bw6Lg6Nq.js} +1 -1
  267. package/dist/twilight/{p-B82O29Bj.js → p-CsHEfbM_.js} +1 -1
  268. package/dist/twilight/{p-Xta96Le1.js → p-DYL8LNIs.js} +1 -1
  269. package/dist/twilight/{p-CSsM5LBR.js → p-DlEXuybu.js} +1 -1
  270. package/dist/twilight/{p-BQ1TYsqI.js → p-DsHyM0bg.js} +1 -1
  271. package/dist/twilight/{p-yhdhOGMm.js → p-DsKnWz05.js} +1 -1
  272. package/dist/twilight/{p-D7_z7Jny.js → p-Kk0reIVI.js} +1 -1
  273. package/dist/twilight/{p-78300b4e.entry.js → p-a0855c31.entry.js} +1 -1
  274. package/dist/twilight/{p-ce4b3059.entry.js → p-a0ba26aa.entry.js} +1 -1
  275. package/dist/twilight/{p-dcf16537.entry.js → p-ac45f19d.entry.js} +1 -1
  276. package/dist/twilight/{p-8926d982.entry.js → p-b3f07535.entry.js} +1 -1
  277. package/dist/twilight/{p-915263c3.entry.js → p-b4301ee3.entry.js} +1 -1
  278. package/dist/twilight/{p-035e66ca.entry.js → p-b8812978.entry.js} +1 -1
  279. package/dist/twilight/{p-b5b39981.entry.js → p-c45ce221.entry.js} +1 -1
  280. package/dist/twilight/{p-2654de79.entry.js → p-c5662aa2.entry.js} +1 -1
  281. package/dist/twilight/{p-bca2db09.entry.js → p-cd3e9b52.entry.js} +1 -1
  282. package/dist/twilight/{p-8785f606.entry.js → p-cd40e650.entry.js} +1 -1
  283. package/dist/twilight/{p-a11469e3.entry.js → p-d0bb3653.entry.js} +1 -1
  284. package/dist/twilight/{p-f13dca85.entry.js → p-d652aaf4.entry.js} +1 -1
  285. package/dist/twilight/{p-4480e7a3.entry.js → p-d66338e0.entry.js} +1 -1
  286. package/dist/twilight/{p-56a7f0a7.entry.js → p-d9b7a9d1.entry.js} +1 -1
  287. package/dist/twilight/{p-8ba7ac8c.entry.js → p-daed6c53.entry.js} +1 -1
  288. package/dist/twilight/{p-efab7b0f.entry.js → p-dbd2a0de.entry.js} +1 -1
  289. package/dist/twilight/{p-e9ef05ea.entry.js → p-dec1388b.entry.js} +1 -1
  290. package/dist/twilight/{p-4ea27e52.entry.js → p-dfd88e06.entry.js} +1 -1
  291. package/dist/twilight/{p-8c0c2db6.entry.js → p-e23d218e.entry.js} +1 -1
  292. package/dist/twilight/{p-470f3283.entry.js → p-e7c12354.entry.js} +1 -1
  293. package/dist/twilight/{p-e1bff9ab.entry.js → p-e839d889.entry.js} +1 -1
  294. package/dist/twilight/{p-a7610c13.entry.js → p-ea9159eb.entry.js} +1 -1
  295. package/dist/twilight/{p-6e4ae2e3.entry.js → p-ec1fc331.entry.js} +1 -1
  296. package/dist/twilight/{p-b1c48c8b.entry.js → p-ee0e575e.entry.js} +1 -1
  297. package/dist/twilight/{p-a882e505.entry.js → p-f13103c6.entry.js} +1 -1
  298. package/dist/twilight/{p-b100263d.entry.js → p-f4531bfe.entry.js} +1 -1
  299. package/dist/twilight/{p-c5b25f69.entry.js → p-f5d7430f.entry.js} +1 -1
  300. package/dist/twilight/{p-75c79418.entry.js → p-f9142099.entry.js} +1 -1
  301. package/dist/twilight/{p-dfed6087.entry.js → p-fbd4f619.entry.js} +1 -1
  302. package/dist/twilight/p-fc337ff0.entry.js +4 -0
  303. package/dist/twilight/{p-4345c817.entry.js → p-fd4989e9.entry.js} +1 -1
  304. package/dist/twilight/{p-0ba4d1a9.entry.js → p-fd9754f2.entry.js} +1 -1
  305. package/dist/twilight/{p-3ab4d446.entry.js → p-fe86430c.entry.js} +1 -1
  306. package/dist/twilight/{p-3e9545d2.entry.js → p-ff1c723f.entry.js} +1 -1
  307. package/dist/twilight/{p-fW3MR5av.js → p-tJElNMug.js} +1 -1
  308. package/dist/twilight/twilight.esm.js +1 -1
  309. package/dist/types/components/salla-order-branch/salla-order-branch.d.ts +2 -0
  310. package/dist/types/components.d.ts +10 -0
  311. package/package.json +5 -5
  312. package/dist/twilight/p-1c6f74be.entry.js +0 -4
  313. package/dist/twilight/p-98e78a0a.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as t,c as e,h as s,H as i}from"./p-DOBNIJGF.js";import{a}from"./p-BedNk7k1.js";const l=class{constructor(s){t(this,s),this.changed=e(this,"changed"),this.min=0,this.max=1e4,this.moreThanLabel="أكثر من",this.lessThanLabel="أقل من",this.toLabel="الى",this.fromLabel="من",this.typing=!1,this.isMin=!1,this.isRTL=salla.config.get("theme.is_rtl",!0),this.filterValues=[]}connectedCallback(){if(this.filtersData&&this.filtersData?.price&&(this.minPrice=this.filtersData.price.min,this.maxPrice=this.filtersData.price.max),salla.lang.onLoaded((()=>{this.moreThanLabel=salla.lang.getWithDefault("common.elements.more_than",this.moreThanLabel),this.lessThanLabel=salla.lang.getWithDefault("common.elements.less_than",this.lessThanLabel),this.toLabel=salla.lang.getWithDefault("common.elements.to",this.toLabel),this.fromLabel=salla.lang.getWithDefault("common.elements.from",this.fromLabel)})),1==this.option.values.length)return;if(this.option.values.length<=5)return void(this.filterValues=this.option.values);const t=Math.ceil(this.option.values.length/5);for(let e=0;e<this.option.values.length;e+=t)this.filterValues.push(this.option.values.slice(e,e+t).reduce(((t,e)=>(t.to=e.to,t.count+=e.count,t))))}async reset(){this.minInput.value=null,this.maxInput.value=null,this.minPrice=null,this.maxPrice=null}getPriceLabel(t){return isNaN(t.from)||t.from<1?`${this.lessThanLabel} ${salla.money(t.to)}`:isNaN(t.to)||t.to<1?`${this.moreThanLabel} ${salla.money(t.from)}`:`${salla.money(t.from)} ${this.toLabel} ${salla.money(t.to)}`}minInputValidation(t){t&&(t>this.max||this.maxPrice&&t>this.maxPrice)||(t<this.min?this.minPrice=this.min:t&&(this.minPrice=t))}maxInputValidation(t){t&&(t<this.min||this.minPrice&&t<this.minPrice)||t>this.max&&(this.maxPrice=this.max)}async changedEventHandler(t){salla.helpers.inputDigitsOnly(this.minInput),salla.helpers.inputDigitsOnly(this.maxInput);const e=this.minPrice?1*+this.minPrice:null,s=this.maxPrice?1*+this.maxPrice:null;this.maxPrice||(this.maxPrice=""),this.isMin?this.minInputValidation(e):(this.minPrice||(this.minPrice=0),this.maxInputValidation(s)),this.isReady&&this.changed.emit({event:t,option:this.option,value:{max:this.maxPrice,min:this.minPrice}})}handleMinMaxPrice(t,e){this.minPrice=e.from,this.maxPrice="*"!==e.to?e.to:"",this.changedEventHandler(t)}isChecked(t){return!(!this.minPrice&&!this.maxPrice)&&(((t.from<1||"*"==t.from)&&0==this.minPrice||t.from==this.minPrice)&&("*"==t.to||!t.to||t.to==this.maxPrice))}handleMinPrice(t){this.isMin=!0;const e=t.target.value;this.minPrice=""===e?0:e}handleMaxPrice(t){this.isMin=!1;const e=t.target.value;this.maxPrice=void 0===e?"":e}render(){return s(i,{key:"ecc44cf63ea7788f00aa33a19c06579c887c59dd"},this.filterValues.map(((t,e)=>s("label",{class:"s-filters-label",htmlFor:`${this.option.key}-${e}`,key:e},s("input",{id:`${this.option.key}-${e}`,name:"price",type:"radio",checked:this.isChecked(t),class:"s-filters-radio",onChange:e=>this.handleMinMaxPrice(e,t)}),s("span",{innerHTML:this.getPriceLabel(t)})))),s("div",{key:"c4b6d75b11a2625f429caf6bba9e0dd625f6f646",class:"flex justify-center items-center"},s("div",{key:"4e85f9c05415daf235ab965ebe185c7171f08e06",class:"relative max-w-xl w-full"},s("div",{key:"44b7747bfa4ec0e46da70dcf25f5325562bb0be9",class:"s-price-range-inputs"},s("div",{key:"08a9afa0ea579f31eba87561283162b1d47f123f",class:"s-price-range-relative"},s("div",{key:"54540065c16484f01e356fb2094f3163357ffd95",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"851b957d076c25808edba4e763ae31286047782f",type:"number",maxlength:"5",ref:t=>this.minInput=t,onBlur:t=>this.handleMinPrice(t),value:this.minPrice,placeholder:this.fromLabel,class:"s-price-range-number-input"})),s("div",{key:"f8a910aca554ae21657a19115d7f9607efb0566d",class:"s-price-range-gray-text"}," -"),s("div",{key:"7d1561634459c15862bc0455b4bd9248d44a8446",class:"s-price-range-relative"},s("div",{key:"7ca1fb8056b8af71f6f57524ed9d5fdfdc641ef2",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"e6411b0e1b0e36b45a6879c1b257f394ec94007f",type:"number",maxlength:"5",ref:t=>this.maxInput=t,onBlur:t=>this.handleMaxPrice(t),value:this.maxPrice,placeholder:this.toLabel,class:"s-price-range-number-input","aria-describedby":"price-currency"})),s("salla-button",{key:"63bc422c8d82c820bd984d5af68f8081add164c3",color:"gray",shape:"icon",size:"small",fill:"outline",onClick:t=>this.changedEventHandler(t)},s("span",{key:"b81d3813cb2ff9523f232cf0a615c58576b14177",innerHTML:this.isRTL?a:'\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>arrow-right</title>\n<path d="M29.217 15.465c-0.019-0.044-0.056-0.077-0.080-0.119-0.067-0.116-0.139-0.227-0.236-0.317-0.011-0.009-0.013-0.024-0.024-0.033l-10.667-9.333c-0.553-0.484-1.396-0.429-1.881 0.125-0.484 0.555-0.428 1.396 0.127 1.881l7.996 6.997h-20.452c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h20.452l-7.996 6.997c-0.555 0.485-0.611 1.327-0.127 1.881 0.264 0.3 0.633 0.455 1.004 0.455 0.312 0 0.625-0.109 0.877-0.331l10.667-9.333c0.011-0.009 0.015-0.024 0.024-0.033 0.097-0.091 0.169-0.201 0.236-0.317 0.024-0.041 0.060-0.075 0.080-0.119 0.073-0.163 0.116-0.343 0.116-0.533s-0.043-0.371-0.116-0.535z"></path>\n</svg>\n'}))))))}componentDidLoad(){this.isReady=!0}};l.style=":host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}";export{l as salla_price_range}
4
+ import{r as t,c as e,h as s,H as i}from"./p-BqFb60iF.js";import{a}from"./p-BedNk7k1.js";const l=class{constructor(s){t(this,s),this.changed=e(this,"changed"),this.min=0,this.max=1e4,this.moreThanLabel="أكثر من",this.lessThanLabel="أقل من",this.toLabel="الى",this.fromLabel="من",this.typing=!1,this.isMin=!1,this.isRTL=salla.config.get("theme.is_rtl",!0),this.filterValues=[]}connectedCallback(){if(this.filtersData&&this.filtersData?.price&&(this.minPrice=this.filtersData.price.min,this.maxPrice=this.filtersData.price.max),salla.lang.onLoaded((()=>{this.moreThanLabel=salla.lang.getWithDefault("common.elements.more_than",this.moreThanLabel),this.lessThanLabel=salla.lang.getWithDefault("common.elements.less_than",this.lessThanLabel),this.toLabel=salla.lang.getWithDefault("common.elements.to",this.toLabel),this.fromLabel=salla.lang.getWithDefault("common.elements.from",this.fromLabel)})),1==this.option.values.length)return;if(this.option.values.length<=5)return void(this.filterValues=this.option.values);const t=Math.ceil(this.option.values.length/5);for(let e=0;e<this.option.values.length;e+=t)this.filterValues.push(this.option.values.slice(e,e+t).reduce(((t,e)=>(t.to=e.to,t.count+=e.count,t))))}async reset(){this.minInput.value=null,this.maxInput.value=null,this.minPrice=null,this.maxPrice=null}getPriceLabel(t){return isNaN(t.from)||t.from<1?`${this.lessThanLabel} ${salla.money(t.to)}`:isNaN(t.to)||t.to<1?`${this.moreThanLabel} ${salla.money(t.from)}`:`${salla.money(t.from)} ${this.toLabel} ${salla.money(t.to)}`}minInputValidation(t){t&&(t>this.max||this.maxPrice&&t>this.maxPrice)||(t<this.min?this.minPrice=this.min:t&&(this.minPrice=t))}maxInputValidation(t){t&&(t<this.min||this.minPrice&&t<this.minPrice)||t>this.max&&(this.maxPrice=this.max)}async changedEventHandler(t){salla.helpers.inputDigitsOnly(this.minInput),salla.helpers.inputDigitsOnly(this.maxInput);const e=this.minPrice?1*+this.minPrice:null,s=this.maxPrice?1*+this.maxPrice:null;this.maxPrice||(this.maxPrice=""),this.isMin?this.minInputValidation(e):(this.minPrice||(this.minPrice=0),this.maxInputValidation(s)),this.isReady&&this.changed.emit({event:t,option:this.option,value:{max:this.maxPrice,min:this.minPrice}})}handleMinMaxPrice(t,e){this.minPrice=e.from,this.maxPrice="*"!==e.to?e.to:"",this.changedEventHandler(t)}isChecked(t){return!(!this.minPrice&&!this.maxPrice)&&(((t.from<1||"*"==t.from)&&0==this.minPrice||t.from==this.minPrice)&&("*"==t.to||!t.to||t.to==this.maxPrice))}handleMinPrice(t){this.isMin=!0;const e=t.target.value;this.minPrice=""===e?0:e}handleMaxPrice(t){this.isMin=!1;const e=t.target.value;this.maxPrice=void 0===e?"":e}render(){return s(i,{key:"ecc44cf63ea7788f00aa33a19c06579c887c59dd"},this.filterValues.map(((t,e)=>s("label",{class:"s-filters-label",htmlFor:`${this.option.key}-${e}`,key:e},s("input",{id:`${this.option.key}-${e}`,name:"price",type:"radio",checked:this.isChecked(t),class:"s-filters-radio",onChange:e=>this.handleMinMaxPrice(e,t)}),s("span",{innerHTML:this.getPriceLabel(t)})))),s("div",{key:"c4b6d75b11a2625f429caf6bba9e0dd625f6f646",class:"flex justify-center items-center"},s("div",{key:"4e85f9c05415daf235ab965ebe185c7171f08e06",class:"relative max-w-xl w-full"},s("div",{key:"44b7747bfa4ec0e46da70dcf25f5325562bb0be9",class:"s-price-range-inputs"},s("div",{key:"08a9afa0ea579f31eba87561283162b1d47f123f",class:"s-price-range-relative"},s("div",{key:"54540065c16484f01e356fb2094f3163357ffd95",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"851b957d076c25808edba4e763ae31286047782f",type:"number",maxlength:"5",ref:t=>this.minInput=t,onBlur:t=>this.handleMinPrice(t),value:this.minPrice,placeholder:this.fromLabel,class:"s-price-range-number-input"})),s("div",{key:"f8a910aca554ae21657a19115d7f9607efb0566d",class:"s-price-range-gray-text"}," -"),s("div",{key:"7d1561634459c15862bc0455b4bd9248d44a8446",class:"s-price-range-relative"},s("div",{key:"7ca1fb8056b8af71f6f57524ed9d5fdfdc641ef2",class:"s-price-range-currency"}," ",salla.config.currency().symbol),s("input",{key:"e6411b0e1b0e36b45a6879c1b257f394ec94007f",type:"number",maxlength:"5",ref:t=>this.maxInput=t,onBlur:t=>this.handleMaxPrice(t),value:this.maxPrice,placeholder:this.toLabel,class:"s-price-range-number-input","aria-describedby":"price-currency"})),s("salla-button",{key:"63bc422c8d82c820bd984d5af68f8081add164c3",color:"gray",shape:"icon",size:"small",fill:"outline",onClick:t=>this.changedEventHandler(t)},s("span",{key:"b81d3813cb2ff9523f232cf0a615c58576b14177",innerHTML:this.isRTL?a:'\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>arrow-right</title>\n<path d="M29.217 15.465c-0.019-0.044-0.056-0.077-0.080-0.119-0.067-0.116-0.139-0.227-0.236-0.317-0.011-0.009-0.013-0.024-0.024-0.033l-10.667-9.333c-0.553-0.484-1.396-0.429-1.881 0.125-0.484 0.555-0.428 1.396 0.127 1.881l7.996 6.997h-20.452c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h20.452l-7.996 6.997c-0.555 0.485-0.611 1.327-0.127 1.881 0.264 0.3 0.633 0.455 1.004 0.455 0.312 0 0.625-0.109 0.877-0.331l10.667-9.333c0.011-0.009 0.015-0.024 0.024-0.033 0.097-0.091 0.169-0.201 0.236-0.317 0.024-0.041 0.060-0.075 0.080-0.119 0.073-0.163 0.116-0.343 0.116-0.533s-0.043-0.371-0.116-0.535z"></path>\n</svg>\n'}))))))}componentDidLoad(){this.isReady=!0}};l.style=":host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}";export{l as salla_price_range}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as e,h as a,a as s}from"./p-DOBNIJGF.js";const l=class{constructor(a){e(this,a),this.hasError=!1,salla.event.on("size-guide::open",(e=>this.open(e))),salla.lang.onLoaded((()=>{this.placeholder_title=salla.lang.get("pages.products.size_guide_placeholder"),this.placeholder_description=salla.lang.get("pages.products.size_guide_placeholder_info"),this.modal_title=salla.lang.get("pages.products.size_guides")}))}async open(e){return this.modal.setTitle(this.modal_title),this.modal.open(),await salla.api.withoutNotifier((()=>salla.product.getSizeGuides(e))).then((e=>{this.guides=e.data})).catch((e=>{console.log(e),this.hasError=!0,this.placeholder_description=e.response?.data?.error?.message||e.response?.data})).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}showPlaceholder(){return a("salla-placeholder",{alignment:"center",iconSize:"xl"},a("div",{slot:"title"},this.placeholder_title),a("div",{slot:"description"},this.placeholder_description))}render(){return a("salla-modal",{key:"750cca54e5286fc1b77942cc4a9784970b8569ec",class:"s-product-size-guide-wrapper",id:"salla-product-size-guide-modal",isLoading:!0,"has-skeleton":!0,width:"md",ref:e=>this.modal=e},a("span",{key:"0aecc3b447a0ef8f92183c1c785c2a8bbf139c17",slot:"icon",class:"s-product-size-guide-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>pencil-ruler</title>\n<path d="M3.057 11.609c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l6.667-6.667c0.521-0.521 0.521-1.364 0-1.885l-1.285-1.285c-1.143-1.143-2.661-1.772-4.276-1.772-1.616 0-3.135 0.629-4.276 1.772-1.143 1.141-1.772 2.66-1.772 4.276 0 1.615 0.629 3.135 1.772 4.276zM3.657 3.657c1.277-1.277 3.504-1.277 4.781 0l0.343 0.343-4.781 4.781-0.343-0.343c-0.639-0.639-0.991-1.488-0.991-2.391s0.352-1.752 0.991-2.391zM29.317 20.972c-0.2-0.707-0.932-1.119-1.645-0.921-0.709 0.2-1.121 0.937-0.921 1.645l1.987 7.041-7.041-1.987c-0.707-0.195-1.444 0.213-1.645 0.921-0.2 0.708 0.212 1.445 0.921 1.645l9.333 2.633c0.119 0.032 0.24 0.049 0.361 0.049 0.349 0 0.689-0.137 0.943-0.391 0.341-0.341 0.472-0.84 0.34-1.305zM31.609 8.772l-8.381-8.381c-0.5-0.5-1.385-0.5-1.885 0l-8.171 8.171s-0.001 0-0.001 0.001 0 0.001-0.001 0.001l-4.607 4.607s0 0-0.001 0 0 0 0 0.001l-8.171 8.171c-0.251 0.249-0.391 0.588-0.391 0.943 0 0.353 0.14 0.693 0.391 0.943l8.381 8.381c0.249 0.251 0.589 0.391 0.943 0.391s0.693-0.14 0.943-0.391l20.952-20.952c0.521-0.521 0.521-1.365 0-1.885zM9.715 28.781l-6.495-6.496 1.676-1.676 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-3.008-3.008 2.724-2.724 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.52 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.365 0-1.885l-3.008-3.008 1.677-1.677 6.496 6.496z"></path>\n</svg>\n'}),a("div",{key:"1720d30460d99d578365cae9d6a0e92790f834a2",slot:"loading"},a("div",{key:"0bf85ba5de7db72b7e4f4d94e592dc951c1d3801",class:"s-product-size-guide-skeleton"},a("salla-skeleton",{key:"3635e6c238400762f5c70266bb8359cf3c1c0527",height:"15px",width:"25%"}),a("div",{key:"0adfa776efbf9e7d988d08a3dce69900d6d3d737",class:"s-product-size-guide-skeleton-header"},a("salla-skeleton",{key:"53799c8bd0f495ec723d0cf4be0ab0e978351c23",height:"40px"}),a("salla-skeleton",{key:"a825da569d6453a5e3b6cac9cf5848f941af22ae",height:"40px"}),a("salla-skeleton",{key:"d2091d09ca662aef1f2d6b3cddb4bf86ccc77c0f",height:"40px"}),a("salla-skeleton",{key:"5974a5b7227d03979ea5a65f2f1481f59ca6e0fe",height:"40px"})),a("div",{key:"6e12dc1b703488433f5e8047efe16d70ebaec8c3",class:"s-product-size-guide-skeleton-content"},a("salla-skeleton",{key:"9d54f957ba7e4c78fff9ed693179d5f7faa55a25",height:"15px",width:"25%"}),a("salla-skeleton",{key:"946eedae2371d7df9d1b9cf8cf1b0f7800554eed",height:"10px",width:"75%"}),a("salla-skeleton",{key:"35d38d23f73bb4bbd4dc5372b70cd34f09cec2ea",height:"10px",width:"50%"}),a("salla-skeleton",{key:"8f13518e172127af747f50773f7a7f0d64d2c0ba",height:"10px",width:"75%"}),a("salla-skeleton",{key:"759708410b562babb733f401cdf8ee310761b110",height:"10px",width:"100%"}),a("salla-skeleton",{key:"ad8d12dcefe5fbbd8dfa4060a028a3387186ffa1",height:"10px",width:"25%"}),a("salla-skeleton",{key:"63c5864943ec23a3a42761c90ca019acd7118f8c",height:"10px",width:"60%"}),a("salla-skeleton",{key:"490d6078c8d382740eb92c825a08e2aad203c4af",height:"10px",width:"45%"}),a("salla-skeleton",{key:"10b0d73e6a34990a2d23554faec6bce24dcc234e",height:"10px",width:"30%"})))),a("slot",{key:"3d0a3e42eba7cc521e8df1fbb2e7323962bff5a8",name:"header"}),!this.hasError&&this.guides?[a("salla-tabs",null,this.guides.map((e=>a("salla-tab-header",{slot:"header",name:e.name},a("span",null,e.name)))),this.guides.map((e=>a("salla-tab-content",{slot:"content",name:e.name},a("div",{innerHTML:e.description})))))]:this.showPlaceholder(),a("slot",{key:"d1fc7cdbbd52a1c3c2b08f45a647e7ea1586cc9d",name:"footer"}))}get host(){return s(this)}};l.style="";export{l as salla_product_size_guide}
4
+ import{r as e,h as a,a as s}from"./p-BqFb60iF.js";const l=class{constructor(a){e(this,a),this.hasError=!1,salla.event.on("size-guide::open",(e=>this.open(e))),salla.lang.onLoaded((()=>{this.placeholder_title=salla.lang.get("pages.products.size_guide_placeholder"),this.placeholder_description=salla.lang.get("pages.products.size_guide_placeholder_info"),this.modal_title=salla.lang.get("pages.products.size_guides")}))}async open(e){return this.modal.setTitle(this.modal_title),this.modal.open(),await salla.api.withoutNotifier((()=>salla.product.getSizeGuides(e))).then((e=>{this.guides=e.data})).catch((e=>{console.log(e),this.hasError=!0,this.placeholder_description=e.response?.data?.error?.message||e.response?.data})).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}showPlaceholder(){return a("salla-placeholder",{alignment:"center",iconSize:"xl"},a("div",{slot:"title"},this.placeholder_title),a("div",{slot:"description"},this.placeholder_description))}render(){return a("salla-modal",{key:"750cca54e5286fc1b77942cc4a9784970b8569ec",class:"s-product-size-guide-wrapper",id:"salla-product-size-guide-modal",isLoading:!0,"has-skeleton":!0,width:"md",ref:e=>this.modal=e},a("span",{key:"0aecc3b447a0ef8f92183c1c785c2a8bbf139c17",slot:"icon",class:"s-product-size-guide-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>pencil-ruler</title>\n<path d="M3.057 11.609c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l6.667-6.667c0.521-0.521 0.521-1.364 0-1.885l-1.285-1.285c-1.143-1.143-2.661-1.772-4.276-1.772-1.616 0-3.135 0.629-4.276 1.772-1.143 1.141-1.772 2.66-1.772 4.276 0 1.615 0.629 3.135 1.772 4.276zM3.657 3.657c1.277-1.277 3.504-1.277 4.781 0l0.343 0.343-4.781 4.781-0.343-0.343c-0.639-0.639-0.991-1.488-0.991-2.391s0.352-1.752 0.991-2.391zM29.317 20.972c-0.2-0.707-0.932-1.119-1.645-0.921-0.709 0.2-1.121 0.937-0.921 1.645l1.987 7.041-7.041-1.987c-0.707-0.195-1.444 0.213-1.645 0.921-0.2 0.708 0.212 1.445 0.921 1.645l9.333 2.633c0.119 0.032 0.24 0.049 0.361 0.049 0.349 0 0.689-0.137 0.943-0.391 0.341-0.341 0.472-0.84 0.34-1.305zM31.609 8.772l-8.381-8.381c-0.5-0.5-1.385-0.5-1.885 0l-8.171 8.171s-0.001 0-0.001 0.001 0 0.001-0.001 0.001l-4.607 4.607s0 0-0.001 0 0 0 0 0.001l-8.171 8.171c-0.251 0.249-0.391 0.588-0.391 0.943 0 0.353 0.14 0.693 0.391 0.943l8.381 8.381c0.249 0.251 0.589 0.391 0.943 0.391s0.693-0.14 0.943-0.391l20.952-20.952c0.521-0.521 0.521-1.365 0-1.885zM9.715 28.781l-6.495-6.496 1.676-1.676 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-3.008-3.008 2.724-2.724 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.52 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.365 0-1.885l-3.008-3.008 1.677-1.677 6.496 6.496z"></path>\n</svg>\n'}),a("div",{key:"1720d30460d99d578365cae9d6a0e92790f834a2",slot:"loading"},a("div",{key:"0bf85ba5de7db72b7e4f4d94e592dc951c1d3801",class:"s-product-size-guide-skeleton"},a("salla-skeleton",{key:"3635e6c238400762f5c70266bb8359cf3c1c0527",height:"15px",width:"25%"}),a("div",{key:"0adfa776efbf9e7d988d08a3dce69900d6d3d737",class:"s-product-size-guide-skeleton-header"},a("salla-skeleton",{key:"53799c8bd0f495ec723d0cf4be0ab0e978351c23",height:"40px"}),a("salla-skeleton",{key:"a825da569d6453a5e3b6cac9cf5848f941af22ae",height:"40px"}),a("salla-skeleton",{key:"d2091d09ca662aef1f2d6b3cddb4bf86ccc77c0f",height:"40px"}),a("salla-skeleton",{key:"5974a5b7227d03979ea5a65f2f1481f59ca6e0fe",height:"40px"})),a("div",{key:"6e12dc1b703488433f5e8047efe16d70ebaec8c3",class:"s-product-size-guide-skeleton-content"},a("salla-skeleton",{key:"9d54f957ba7e4c78fff9ed693179d5f7faa55a25",height:"15px",width:"25%"}),a("salla-skeleton",{key:"946eedae2371d7df9d1b9cf8cf1b0f7800554eed",height:"10px",width:"75%"}),a("salla-skeleton",{key:"35d38d23f73bb4bbd4dc5372b70cd34f09cec2ea",height:"10px",width:"50%"}),a("salla-skeleton",{key:"8f13518e172127af747f50773f7a7f0d64d2c0ba",height:"10px",width:"75%"}),a("salla-skeleton",{key:"759708410b562babb733f401cdf8ee310761b110",height:"10px",width:"100%"}),a("salla-skeleton",{key:"ad8d12dcefe5fbbd8dfa4060a028a3387186ffa1",height:"10px",width:"25%"}),a("salla-skeleton",{key:"63c5864943ec23a3a42761c90ca019acd7118f8c",height:"10px",width:"60%"}),a("salla-skeleton",{key:"490d6078c8d382740eb92c825a08e2aad203c4af",height:"10px",width:"45%"}),a("salla-skeleton",{key:"10b0d73e6a34990a2d23554faec6bce24dcc234e",height:"10px",width:"30%"})))),a("slot",{key:"3d0a3e42eba7cc521e8df1fbb2e7323962bff5a8",name:"header"}),!this.hasError&&this.guides?[a("salla-tabs",null,this.guides.map((e=>a("salla-tab-header",{slot:"header",name:e.name},a("span",null,e.name)))),this.guides.map((e=>a("salla-tab-content",{slot:"content",name:e.name},a("div",{innerHTML:e.description})))))]:this.showPlaceholder(),a("slot",{key:"d1fc7cdbbd52a1c3c2b08f45a647e7ea1586cc9d",name:"footer"}))}get host(){return s(this)}};l.style="";export{l as salla_product_size_guide}