@salla.sa/twilight-components 2.14.433 → 2.14.435

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/cjs/{filepond-m9UIfD4r.js → filepond-DuWiTiOJ.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CCNucuJo.js → filepond-plugin-file-poster-Brwk-SiH.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-c8aiCeyd.js → filepond-plugin-file-validate-size-B_GcpzZ9.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DKXNy-pI.js → filepond-plugin-file-validate-type-uGHJ-vuD.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BeXjDMoa.js → filepond-plugin-image-edit-6dBX6WZW.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BeoKq6Qa.js → filepond-plugin-image-exif-orientation-BXykXXIF.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DNGNnW2v.js → filepond-plugin-image-preview-B7D0-pf6.js} +1 -1
  8. package/dist/cjs/{functions-B5wriSSk.js → functions-DzE2MNJ6.js} +1 -1
  9. package/dist/cjs/{index-ouHUBEmn.js → index-BFWYhkR9.js} +6 -2
  10. package/dist/cjs/{index-DRte8uD2.js → index-BrNX9-Hh.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +40 -4
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +75 -0
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  78. package/dist/cjs/salla-products-list.cjs.entry.js +28 -21
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  83. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  88. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-CBS0Jv4T.js → tracked-promise-BhvuWmRX.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +2 -2
  100. package/dist/cjs/{vanilla-picker-B4KqFjgH.js → vanilla-picker-CPWEN69b.js} +1 -1
  101. package/dist/collection/collection-manifest.json +1 -0
  102. package/dist/collection/components/salla-installment/salla-installment.css +18 -0
  103. package/dist/collection/components/salla-installment/salla-installment.js +39 -2
  104. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +0 -0
  105. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +126 -0
  106. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  107. package/dist/collection/components/salla-products-list/salla-products-list.js +27 -20
  108. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  109. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  110. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  111. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  112. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  113. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  114. package/dist/collection/components/salla-search/salla-search.js +5 -5
  115. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  116. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  117. package/dist/collection/components/salla-social/salla-social.js +1 -1
  118. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  119. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  120. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  121. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  122. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  123. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  124. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  125. package/dist/components/index.js +2 -2
  126. package/dist/components/salla-installment.js +40 -3
  127. package/dist/components/salla-product-card-embed.d.ts +11 -0
  128. package/dist/components/salla-product-card-embed.js +97 -0
  129. package/dist/components/salla-product-size-guide.js +2 -2
  130. package/dist/components/salla-products-list2.js +27 -20
  131. package/dist/components/salla-quantity-input2.js +1 -1
  132. package/dist/components/salla-quick-buy2.js +1 -1
  133. package/dist/components/salla-review-card2.js +1 -1
  134. package/dist/components/salla-reviews-page.js +1 -1
  135. package/dist/components/salla-reviews.js +1 -1
  136. package/dist/components/salla-scopes.js +1 -1
  137. package/dist/components/salla-search.js +5 -5
  138. package/dist/components/salla-searchable-dropdown2.js +4 -4
  139. package/dist/components/salla-skeleton2.js +1 -1
  140. package/dist/components/salla-social-share.js +1 -1
  141. package/dist/components/salla-social.js +1 -1
  142. package/dist/components/salla-tab-content2.js +1 -1
  143. package/dist/components/salla-tab-header2.js +1 -1
  144. package/dist/components/salla-tabs2.js +1 -1
  145. package/dist/components/salla-tel-input2.js +1 -1
  146. package/dist/components/salla-tooltip2.js +1 -1
  147. package/dist/components/salla-user-settings.js +1 -1
  148. package/dist/esm/{filepond-CKWIup4S.js → filepond-DFVrhE4o.js} +1 -1
  149. package/dist/esm/{filepond-plugin-file-poster-Bh-xu68e.js → filepond-plugin-file-poster-D9r1Tfdq.js} +1 -1
  150. package/dist/esm/{filepond-plugin-file-validate-size-D49X-Kke.js → filepond-plugin-file-validate-size-B-d8cjG6.js} +1 -1
  151. package/dist/esm/{filepond-plugin-file-validate-type-CdrHe--C.js → filepond-plugin-file-validate-type-n8HaoHkb.js} +1 -1
  152. package/dist/esm/{filepond-plugin-image-edit-CJW0RVuR.js → filepond-plugin-image-edit-Cb0b-MEZ.js} +1 -1
  153. package/dist/esm/{filepond-plugin-image-exif-orientation-DLAbuFUC.js → filepond-plugin-image-exif-orientation-E6kA4Ohn.js} +1 -1
  154. package/dist/esm/{filepond-plugin-image-preview-CgwlEcnw.js → filepond-plugin-image-preview-TkaxSa_F.js} +1 -1
  155. package/dist/esm/{functions-DEq2D5r8.js → functions-DzwMFUQV.js} +1 -1
  156. package/dist/esm/{index-BAMBfQio.js → index-B-ZrPbJR.js} +1 -1
  157. package/dist/esm/{index-lMbG1CIQ.js → index-C3g9jJZW.js} +6 -2
  158. package/dist/esm/loader.js +3 -3
  159. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  160. package/dist/esm/salla-accordion_6.entry.js +1 -1
  161. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  162. package/dist/esm/salla-advertisement.entry.js +1 -1
  163. package/dist/esm/salla-alert_2.entry.js +1 -1
  164. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  165. package/dist/esm/salla-apps-icons.entry.js +1 -1
  166. package/dist/esm/salla-badge.entry.js +1 -1
  167. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  168. package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
  169. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  170. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  171. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  172. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  173. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  174. package/dist/esm/salla-contacts.entry.js +1 -1
  175. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  176. package/dist/esm/salla-count-down.entry.js +1 -1
  177. package/dist/esm/salla-custom-fields.entry.js +1 -1
  178. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  179. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  180. package/dist/esm/salla-filters-widget.entry.js +1 -1
  181. package/dist/esm/salla-filters.entry.js +1 -1
  182. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  183. package/dist/esm/salla-gifting.entry.js +1 -1
  184. package/dist/esm/salla-hook.entry.js +1 -1
  185. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  186. package/dist/esm/salla-installment.entry.js +40 -4
  187. package/dist/esm/salla-list-tile.entry.js +1 -1
  188. package/dist/esm/salla-localization-modal.entry.js +1 -1
  189. package/dist/esm/salla-login-modal.entry.js +1 -1
  190. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  191. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  192. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  193. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  194. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  195. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  196. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  197. package/dist/esm/salla-loyalty.entry.js +1 -1
  198. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  199. package/dist/esm/salla-map.entry.js +1 -1
  200. package/dist/esm/salla-menu.entry.js +1 -1
  201. package/dist/esm/salla-metadata.entry.js +1 -1
  202. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  203. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  204. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  205. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  206. package/dist/esm/salla-notification-item.entry.js +1 -1
  207. package/dist/esm/salla-notifications.entry.js +1 -1
  208. package/dist/esm/salla-offer-modal.entry.js +1 -1
  209. package/dist/esm/salla-offer.entry.js +1 -1
  210. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  211. package/dist/esm/salla-order-details-options.entry.js +1 -1
  212. package/dist/esm/salla-order-details.entry.js +1 -1
  213. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  214. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  215. package/dist/esm/salla-order-edit.entry.js +1 -1
  216. package/dist/esm/salla-order-summary.entry.js +1 -1
  217. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  218. package/dist/esm/salla-orders.entry.js +1 -1
  219. package/dist/esm/salla-payments.entry.js +1 -1
  220. package/dist/esm/salla-placeholder.entry.js +1 -1
  221. package/dist/esm/salla-price-range.entry.js +1 -1
  222. package/dist/esm/salla-product-card-embed.entry.js +73 -0
  223. package/dist/esm/salla-product-card_2.entry.js +1 -1
  224. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  225. package/dist/esm/salla-products-list.entry.js +28 -21
  226. package/dist/esm/salla-progress-bar.entry.js +1 -1
  227. package/dist/esm/salla-quick-order.entry.js +1 -1
  228. package/dist/esm/salla-rating-modal.entry.js +1 -1
  229. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  230. package/dist/esm/salla-scopes.entry.js +2 -2
  231. package/dist/esm/salla-search.entry.js +6 -6
  232. package/dist/esm/salla-skeleton.entry.js +2 -2
  233. package/dist/esm/salla-slider.entry.js +1 -1
  234. package/dist/esm/salla-social-share.entry.js +2 -2
  235. package/dist/esm/salla-social.entry.js +2 -2
  236. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  237. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  238. package/dist/esm/salla-tooltip.entry.js +2 -2
  239. package/dist/esm/salla-trust-badges.entry.js +1 -1
  240. package/dist/esm/salla-user-menu.entry.js +1 -1
  241. package/dist/esm/salla-user-profile.entry.js +1 -1
  242. package/dist/esm/salla-user-settings.entry.js +2 -2
  243. package/dist/esm/salla-verify.entry.js +1 -1
  244. package/dist/esm/salla-wallet.entry.js +1 -1
  245. package/dist/esm/{tracked-promise-Cuxl89VM.js → tracked-promise-mz9fGy13.js} +1 -1
  246. package/dist/esm/twilight.js +3 -3
  247. package/dist/esm/{vanilla-picker--tIjHzZT.js → vanilla-picker-DDwa46yX.js} +1 -1
  248. package/dist/twilight/{p-ad4003fd.entry.js → p-061d4c55.entry.js} +1 -1
  249. package/dist/twilight/{p-f424854a.entry.js → p-08a99ef3.entry.js} +1 -1
  250. package/dist/twilight/{p-484c2f42.entry.js → p-0a8ed39c.entry.js} +1 -1
  251. package/dist/twilight/{p-7e74750a.entry.js → p-10799a52.entry.js} +1 -1
  252. package/dist/twilight/{p-579e1d3f.entry.js → p-10efdf23.entry.js} +1 -1
  253. package/dist/twilight/{p-793b143f.entry.js → p-139679c2.entry.js} +1 -1
  254. package/dist/twilight/{p-28701b83.entry.js → p-170636ed.entry.js} +1 -1
  255. package/dist/twilight/{p-55801b41.entry.js → p-18eed355.entry.js} +1 -1
  256. package/dist/twilight/{p-63b2e9e4.entry.js → p-1f2b3d13.entry.js} +1 -1
  257. package/dist/twilight/{p-0a1966cf.entry.js → p-2908d91d.entry.js} +1 -1
  258. package/dist/twilight/{p-b5658790.entry.js → p-29110454.entry.js} +1 -1
  259. package/dist/twilight/{p-ba06196b.entry.js → p-2d57223d.entry.js} +1 -1
  260. package/dist/twilight/{p-d1b2c259.entry.js → p-346afa28.entry.js} +1 -1
  261. package/dist/twilight/{p-18dbc68c.entry.js → p-36e5a9a2.entry.js} +1 -1
  262. package/dist/twilight/{p-c8a460c0.entry.js → p-38c300df.entry.js} +1 -1
  263. package/dist/twilight/{p-999d8514.entry.js → p-39b422da.entry.js} +1 -1
  264. package/dist/twilight/{p-7906db6c.entry.js → p-3ac6bf7c.entry.js} +1 -1
  265. package/dist/twilight/{p-6db2ed2d.entry.js → p-4293a6a7.entry.js} +1 -1
  266. package/dist/twilight/{p-d5ae1bd3.entry.js → p-42e3b99b.entry.js} +1 -1
  267. package/dist/twilight/{p-25d4c3e7.entry.js → p-4586ff15.entry.js} +1 -1
  268. package/dist/twilight/{p-5b0ccf4b.entry.js → p-46a22eec.entry.js} +1 -1
  269. package/dist/twilight/{p-781b8258.entry.js → p-479ef439.entry.js} +1 -1
  270. package/dist/twilight/{p-f3597f21.entry.js → p-4c655f32.entry.js} +1 -1
  271. package/dist/twilight/{p-87fc46f3.entry.js → p-4ce7420a.entry.js} +1 -1
  272. package/dist/twilight/{p-e9799703.entry.js → p-4e0bcbc4.entry.js} +1 -1
  273. package/dist/twilight/{p-9561c440.entry.js → p-4f55b4cf.entry.js} +1 -1
  274. package/dist/twilight/{p-b4b03890.entry.js → p-5709425e.entry.js} +1 -1
  275. package/dist/twilight/{p-30ca11a7.entry.js → p-5710d809.entry.js} +1 -1
  276. package/dist/twilight/{p-ade89f79.entry.js → p-573dff60.entry.js} +1 -1
  277. package/dist/twilight/{p-deaa32fd.entry.js → p-5813d16e.entry.js} +1 -1
  278. package/dist/twilight/{p-139d18e4.entry.js → p-581532e2.entry.js} +1 -1
  279. package/dist/twilight/{p-0f712ca6.entry.js → p-5bb3911e.entry.js} +1 -1
  280. package/dist/twilight/{p-b9793df6.entry.js → p-6dadc4cd.entry.js} +1 -1
  281. package/dist/twilight/{p-58a182ef.entry.js → p-6e130ccd.entry.js} +1 -1
  282. package/dist/twilight/{p-1ced495f.entry.js → p-730c61f3.entry.js} +1 -1
  283. package/dist/twilight/{p-8b19a6cd.entry.js → p-795d48a0.entry.js} +1 -1
  284. package/dist/twilight/{p-83407903.entry.js → p-79b81b73.entry.js} +1 -1
  285. package/dist/twilight/{p-00142abc.entry.js → p-81b8c52a.entry.js} +1 -1
  286. package/dist/twilight/{p-22dd6342.entry.js → p-824f4a2e.entry.js} +1 -1
  287. package/dist/twilight/{p-5dc05ab0.entry.js → p-8351d792.entry.js} +1 -1
  288. package/dist/twilight/{p-05a6fc4e.entry.js → p-8ed7f0a4.entry.js} +1 -1
  289. package/dist/twilight/{p-0f19a6eb.entry.js → p-92eeb8ce.entry.js} +1 -1
  290. package/dist/twilight/{p-ae107cb6.entry.js → p-9302a5f4.entry.js} +1 -1
  291. package/dist/twilight/{p-646309b3.entry.js → p-93f98a1a.entry.js} +1 -1
  292. package/dist/twilight/{p-9baa8e69.entry.js → p-9506dd2e.entry.js} +1 -1
  293. package/dist/twilight/{p-ce844f61.entry.js → p-967138b5.entry.js} +1 -1
  294. package/dist/twilight/{p-434232b8.entry.js → p-9be4c43f.entry.js} +1 -1
  295. package/dist/twilight/{p-c9dc08e9.entry.js → p-9e96ec69.entry.js} +1 -1
  296. package/dist/twilight/{p-AO-xClM5.js → p-BK7Y-4Ut.js} +1 -1
  297. package/dist/twilight/{p-YBYQ1IRq.js → p-ByhVeLG_.js} +1 -1
  298. package/dist/twilight/{p-lMbG1CIQ.js → p-C3g9jJZW.js} +1 -1
  299. package/dist/twilight/{p-akcJQPrL.js → p-D9oUZeJe.js} +1 -1
  300. package/dist/twilight/{p-BbPW5sNk.js → p-DBL-q92C.js} +1 -1
  301. package/dist/twilight/{p-C7BsTxLN.js → p-DC_A6MyR.js} +1 -1
  302. package/dist/twilight/{p-DkFvXnTU.js → p-DGZdQMHp.js} +1 -1
  303. package/dist/twilight/{p-DTVc8PSy.js → p-DWRFx4Y0.js} +1 -1
  304. package/dist/twilight/{p-CZ4us-OW.js → p-DvPh-zIV.js} +1 -1
  305. package/dist/twilight/{p-77d6879d.entry.js → p-a0a96832.entry.js} +1 -1
  306. package/dist/twilight/{p-cbbbf280.entry.js → p-a1720cd5.entry.js} +1 -1
  307. package/dist/twilight/{p-602eb37d.entry.js → p-a3506023.entry.js} +1 -1
  308. package/dist/twilight/{p-9029fe2f.entry.js → p-a43fd33c.entry.js} +1 -1
  309. package/dist/twilight/{p-e0fa2bc5.entry.js → p-a5c40cbd.entry.js} +1 -1
  310. package/dist/twilight/{p-jvvBvp8R.js → p-aOz-JkWm.js} +1 -1
  311. package/dist/twilight/{p-477d3cde.entry.js → p-abd68a78.entry.js} +1 -1
  312. package/dist/twilight/{p-98409d9d.entry.js → p-aeb7c33a.entry.js} +1 -1
  313. package/dist/twilight/p-b3253253.entry.js +4 -0
  314. package/dist/twilight/{p-2caab1dd.entry.js → p-b6cbff7d.entry.js} +1 -1
  315. package/dist/twilight/{p-f5f8ab50.entry.js → p-b7cf3969.entry.js} +1 -1
  316. package/dist/twilight/{p-5309c2b6.entry.js → p-b8fea878.entry.js} +1 -1
  317. package/dist/twilight/p-baf3df7d.entry.js +4 -0
  318. package/dist/twilight/{p-9b4b6171.entry.js → p-bb3c2dba.entry.js} +1 -1
  319. package/dist/twilight/{p-46c69187.entry.js → p-bb94f865.entry.js} +1 -1
  320. package/dist/twilight/{p-64364d27.entry.js → p-cc40335b.entry.js} +1 -1
  321. package/dist/twilight/{p-6c4b0954.entry.js → p-cec952b1.entry.js} +1 -1
  322. package/dist/twilight/{p-6a6cc844.entry.js → p-cfc52cde.entry.js} +1 -1
  323. package/dist/twilight/{p-42868687.entry.js → p-d2240c2a.entry.js} +1 -1
  324. package/dist/twilight/{p-e5535ac3.entry.js → p-d2b9a251.entry.js} +1 -1
  325. package/dist/twilight/{p-fc2d0c94.entry.js → p-d4437a13.entry.js} +1 -1
  326. package/dist/twilight/{p-0bf5b2a3.entry.js → p-d4a1fa67.entry.js} +1 -1
  327. package/dist/twilight/{p-da6e4d60.entry.js → p-d7e7f3d6.entry.js} +1 -1
  328. package/dist/twilight/{p-3c2c9e2b.entry.js → p-d86daca1.entry.js} +1 -1
  329. package/dist/twilight/{p-d2edf700.entry.js → p-d90b4fb4.entry.js} +1 -1
  330. package/dist/twilight/{p-2e11b913.entry.js → p-d94caac7.entry.js} +1 -1
  331. package/dist/twilight/{p-75cd1309.entry.js → p-d9a2d4c7.entry.js} +1 -1
  332. package/dist/twilight/{p-d72d82c2.entry.js → p-e2759da3.entry.js} +1 -1
  333. package/dist/twilight/{p-ea4cf5c5.entry.js → p-e5964d35.entry.js} +1 -1
  334. package/dist/twilight/{p-cc9e266a.entry.js → p-e5dffa93.entry.js} +1 -1
  335. package/dist/twilight/{p-7a067b88.entry.js → p-ea9b9e70.entry.js} +1 -1
  336. package/dist/twilight/p-ed239a3e.entry.js +4 -0
  337. package/dist/twilight/{p-ab717a96.entry.js → p-f289e0f9.entry.js} +1 -1
  338. package/dist/twilight/p-f321e33b.entry.js +4 -0
  339. package/dist/twilight/{p-99cde2bd.entry.js → p-f4d06230.entry.js} +1 -1
  340. package/dist/twilight/{p-25c7c765.entry.js → p-f86b8d22.entry.js} +1 -1
  341. package/dist/twilight/{p-7060ae7d.entry.js → p-fb4756f1.entry.js} +1 -1
  342. package/dist/twilight/{p-e3b11077.entry.js → p-fb64894c.entry.js} +1 -1
  343. package/dist/twilight/{p-6fe6361d.entry.js → p-fbd79909.entry.js} +1 -1
  344. package/dist/twilight/{p-BxVFPdKb.js → p-iVJ0G_Ir.js} +1 -1
  345. package/dist/twilight/{p-C0kfWMMc.js → p-sKz2QgaG.js} +1 -1
  346. package/dist/twilight/twilight.esm.js +1 -1
  347. package/dist/types/components/salla-installment/salla-installment.d.ts +7 -0
  348. package/dist/types/components/salla-product-card-embed/salla-product-card-embed.d.ts +16 -0
  349. package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
  350. package/dist/types/components.d.ts +29 -0
  351. package/package.json +5 -5
  352. package/dist/twilight/p-29b528fe.entry.js +0 -4
  353. package/dist/twilight/p-386d36ff.entry.js +0 -4
  354. package/dist/twilight/p-76147eb1.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,h as t}from"./p-lMbG1CIQ.js";import{i as a}from"./p-DqDX5na4.js";import{S as i}from"./p-BZp0rKEO.js";const e=class{constructor(t){s(this,t),this.codeCopied=null,this.noItemFound=!0,this.order_items=[],this.isDigitalCard=s=>"codes"===s.product.type,this.isDigitalProduct=s=>"digital"===s.product.type}async componentWillLoad(){return salla.lang.onLoaded((()=>{this.codes_text=salla.lang.get("pages.thank_you.codes"),this.copy_text=salla.lang.get("common.elements.copy"),this.files_text=salla.lang.get("pages.thank_you.files"),this.download_text=salla.lang.get("pages.thank_you.download")})),await this.getOrderItems()}copyToClipboardHandler(s){if(navigator&&"clipboard"in navigator)try{navigator.clipboard.writeText(s).then((()=>{this.codeCopied=s,this.copyCodeButtonTimeout=setTimeout((()=>{this.codeCopied=null}),3e3)}))}catch(s){salla.loggers.error("copy functionality is not supported by the browser")}}async getOrderItems(){const s=this.orderId||salla.config.get("page.id"),t="Failed to fetch order items";if(!s)throw salla.logger.error(t),new Error(t);try{const{data:{items:t=[]}}=await salla.api.request(`orders/${s}`);t.some((s=>this.isDigitalCard(s)||this.isDigitalProduct(s)))&&(this.order_items=t,this.noItemFound=!1)}catch(s){salla.logger.error(t)}}disconnectedCallback(){this.copyCodeButtonTimeout&&clearTimeout(this.copyCodeButtonTimeout)}render(){return t("ul",{key:"e63a884fdd0f46232853adf53714fa350b00c6c2",class:"s-order-summary-wrapper"},this.noItemFound?t("salla-placeholder",{alignment:"center"},t("span",{slot:"title"})):this.order_items.map((s=>this.isDigitalCard(s)?t("li",{key:s.product.id,class:"s-order-summary-item"},t("h2",{class:"s-order-summary-item-title"},this.codes_text," (",s.name,")"),s.codes.map((s=>t("div",{key:s.code,class:"s-order-summary-code-item-wrapper"},t("p",null,t("span",{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>debit-card-back</title>\n<path d="M30 28h-28c-1.105 0-2-0.895-2-2v0-18c0-1.105 0.895-2 2-2v0h28c1.105 0 2 0.895 2 2v0 18c0 1.105-0.895 2-2 2v0zM30 26v0zM2 8v18h28v-18zM31 14h-30c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h30c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM11 22h-6c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h6c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM24 24c-2.209 0-4-1.791-4-4s1.791-4 4-4c2.209 0 4 1.791 4 4v0c0 2.209-1.791 4-4 4v0zM24 18c-1.105 0-2 0.895-2 2s0.895 2 2 2c1.105 0 2-0.895 2-2v0c0-1.105-0.895-2-2-2v0zM20 24c-2.209 0-4-1.791-4-4s1.791-4 4-4v0c0.002 0 0.005 0 0.007 0 1.032 0 1.972 0.398 2.673 1.048l-0.003-0.002c0.191 0.183 0.311 0.439 0.311 0.724 0 0.552-0.448 1-1 1-0.257 0-0.492-0.097-0.669-0.257l0.001 0.001c-0.345-0.319-0.807-0.514-1.315-0.514-0.002 0-0.003 0-0.005 0h0c-1.105 0-2 0.895-2 2s0.895 2 2 2v0c0.002 0 0.004 0 0.007 0 0.508 0 0.971-0.195 1.317-0.515l-0.001 0.001c0.179-0.171 0.422-0.276 0.689-0.276 0.552 0 1 0.448 1 1 0 0.295-0.128 0.56-0.331 0.743l-0.001 0.001c-0.699 0.648-1.638 1.046-2.671 1.046-0.003 0-0.007 0-0.010 0h0.001z"></path>\n</svg>\n'}),t("span",null,s.code)),t("salla-button",{class:"s-order-summary-item-copy-button "+(this.codeCopied===s.code?"copied":""),onClick:()=>this.copyToClipboardHandler(s.code),shape:"link"},t("span",{innerHTML:this.codeCopied===s.code?i:a}),t("span",null,this.copy_text)))))):this.isDigitalProduct(s)?t("li",{key:s.product.id,class:"s-order-summary-item"},t("h2",{class:"s-order-summary-item-title"},this.files_text," (",s.name,")"),t("ul",null,s.files.map((s=>t("li",{class:"s-order-summary-digital-item-wrapper"},t("div",null,t("span",{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>file-archive</title>\n<path d="M17.333 16h-5.333c-0.737 0-1.333 0.597-1.333 1.333v2.667c0 2.205 1.795 4 4 4s4-1.795 4-4v-2.667c0-0.736-0.596-1.333-1.333-1.333zM16 20c0 0.735-0.597 1.333-1.333 1.333s-1.333-0.599-1.333-1.333v-1.333h2.667zM17.333 12h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM28.943 8.391l-8-8c-0.249-0.251-0.588-0.391-0.943-0.391h-13.333c-2.205 0-4 1.795-4 4v24c0 2.205 1.795 4 4 4h18.667c2.205 0 4-1.795 4-4v-18.667c0-0.353-0.14-0.693-0.391-0.943zM26.667 28c0 0.735-0.597 1.333-1.333 1.333h-18.667c-0.736 0-1.333-0.599-1.333-1.333v-24c0-0.735 0.597-1.333 1.333-1.333h12.781l7.219 7.219zM17.333 8h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM17.333 4h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333z"></path>\n</svg>\n'}),t("span",null,s.name)),t("a",{href:s.url,target:"_blank",class:"s-order-summary-item-download"},t("span",{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>download</title>\n<path d="M15.056 20.941c0.123 0.124 0.271 0.221 0.435 0.289 0.163 0.067 0.336 0.103 0.509 0.103s0.347-0.036 0.509-0.103c0.164-0.068 0.311-0.165 0.435-0.289l5.332-5.332c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-3.057 3.057v-12.781c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v12.781l-3.057-3.057c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885zM25.333 26.667h-18.667c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h18.667c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n'}),t("span",null,this.download_text))))))):null)))}};e.style=":host{display:block}";export{e as salla_order_summary}
4
+ import{r as s,h as t}from"./p-C3g9jJZW.js";import{i as a}from"./p-DqDX5na4.js";import{S as i}from"./p-BZp0rKEO.js";const e=class{constructor(t){s(this,t),this.codeCopied=null,this.noItemFound=!0,this.order_items=[],this.isDigitalCard=s=>"codes"===s.product.type,this.isDigitalProduct=s=>"digital"===s.product.type}async componentWillLoad(){return salla.lang.onLoaded((()=>{this.codes_text=salla.lang.get("pages.thank_you.codes"),this.copy_text=salla.lang.get("common.elements.copy"),this.files_text=salla.lang.get("pages.thank_you.files"),this.download_text=salla.lang.get("pages.thank_you.download")})),await this.getOrderItems()}copyToClipboardHandler(s){if(navigator&&"clipboard"in navigator)try{navigator.clipboard.writeText(s).then((()=>{this.codeCopied=s,this.copyCodeButtonTimeout=setTimeout((()=>{this.codeCopied=null}),3e3)}))}catch(s){salla.loggers.error("copy functionality is not supported by the browser")}}async getOrderItems(){const s=this.orderId||salla.config.get("page.id"),t="Failed to fetch order items";if(!s)throw salla.logger.error(t),new Error(t);try{const{data:{items:t=[]}}=await salla.api.request(`orders/${s}`);t.some((s=>this.isDigitalCard(s)||this.isDigitalProduct(s)))&&(this.order_items=t,this.noItemFound=!1)}catch(s){salla.logger.error(t)}}disconnectedCallback(){this.copyCodeButtonTimeout&&clearTimeout(this.copyCodeButtonTimeout)}render(){return t("ul",{key:"e63a884fdd0f46232853adf53714fa350b00c6c2",class:"s-order-summary-wrapper"},this.noItemFound?t("salla-placeholder",{alignment:"center"},t("span",{slot:"title"})):this.order_items.map((s=>this.isDigitalCard(s)?t("li",{key:s.product.id,class:"s-order-summary-item"},t("h2",{class:"s-order-summary-item-title"},this.codes_text," (",s.name,")"),s.codes.map((s=>t("div",{key:s.code,class:"s-order-summary-code-item-wrapper"},t("p",null,t("span",{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>debit-card-back</title>\n<path d="M30 28h-28c-1.105 0-2-0.895-2-2v0-18c0-1.105 0.895-2 2-2v0h28c1.105 0 2 0.895 2 2v0 18c0 1.105-0.895 2-2 2v0zM30 26v0zM2 8v18h28v-18zM31 14h-30c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h30c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM11 22h-6c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h6c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM24 24c-2.209 0-4-1.791-4-4s1.791-4 4-4c2.209 0 4 1.791 4 4v0c0 2.209-1.791 4-4 4v0zM24 18c-1.105 0-2 0.895-2 2s0.895 2 2 2c1.105 0 2-0.895 2-2v0c0-1.105-0.895-2-2-2v0zM20 24c-2.209 0-4-1.791-4-4s1.791-4 4-4v0c0.002 0 0.005 0 0.007 0 1.032 0 1.972 0.398 2.673 1.048l-0.003-0.002c0.191 0.183 0.311 0.439 0.311 0.724 0 0.552-0.448 1-1 1-0.257 0-0.492-0.097-0.669-0.257l0.001 0.001c-0.345-0.319-0.807-0.514-1.315-0.514-0.002 0-0.003 0-0.005 0h0c-1.105 0-2 0.895-2 2s0.895 2 2 2v0c0.002 0 0.004 0 0.007 0 0.508 0 0.971-0.195 1.317-0.515l-0.001 0.001c0.179-0.171 0.422-0.276 0.689-0.276 0.552 0 1 0.448 1 1 0 0.295-0.128 0.56-0.331 0.743l-0.001 0.001c-0.699 0.648-1.638 1.046-2.671 1.046-0.003 0-0.007 0-0.010 0h0.001z"></path>\n</svg>\n'}),t("span",null,s.code)),t("salla-button",{class:"s-order-summary-item-copy-button "+(this.codeCopied===s.code?"copied":""),onClick:()=>this.copyToClipboardHandler(s.code),shape:"link"},t("span",{innerHTML:this.codeCopied===s.code?i:a}),t("span",null,this.copy_text)))))):this.isDigitalProduct(s)?t("li",{key:s.product.id,class:"s-order-summary-item"},t("h2",{class:"s-order-summary-item-title"},this.files_text," (",s.name,")"),t("ul",null,s.files.map((s=>t("li",{class:"s-order-summary-digital-item-wrapper"},t("div",null,t("span",{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>file-archive</title>\n<path d="M17.333 16h-5.333c-0.737 0-1.333 0.597-1.333 1.333v2.667c0 2.205 1.795 4 4 4s4-1.795 4-4v-2.667c0-0.736-0.596-1.333-1.333-1.333zM16 20c0 0.735-0.597 1.333-1.333 1.333s-1.333-0.599-1.333-1.333v-1.333h2.667zM17.333 12h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM28.943 8.391l-8-8c-0.249-0.251-0.588-0.391-0.943-0.391h-13.333c-2.205 0-4 1.795-4 4v24c0 2.205 1.795 4 4 4h18.667c2.205 0 4-1.795 4-4v-18.667c0-0.353-0.14-0.693-0.391-0.943zM26.667 28c0 0.735-0.597 1.333-1.333 1.333h-18.667c-0.736 0-1.333-0.599-1.333-1.333v-24c0-0.735 0.597-1.333 1.333-1.333h12.781l7.219 7.219zM17.333 8h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM17.333 4h-5.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h5.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333z"></path>\n</svg>\n'}),t("span",null,s.name)),t("a",{href:s.url,target:"_blank",class:"s-order-summary-item-download"},t("span",{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>download</title>\n<path d="M15.056 20.941c0.123 0.124 0.271 0.221 0.435 0.289 0.163 0.067 0.336 0.103 0.509 0.103s0.347-0.036 0.509-0.103c0.164-0.068 0.311-0.165 0.435-0.289l5.332-5.332c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-3.057 3.057v-12.781c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v12.781l-3.057-3.057c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885zM25.333 26.667h-18.667c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h18.667c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n'}),t("span",null,this.download_text))))))):null)))}};e.style=":host{display:block}";export{e as salla_order_summary}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,h as t,H as o}from"./p-lMbG1CIQ.js";const e=class{constructor(t){s(this,t),this.bordered=!0,this.placeholderImage="images/placeholder.png",this.optionsData=[]}componentWillLoad(){this.parseOptionsData()}componentWillUpdate(){this.parseOptionsData()}parseOptionsData(){if(this.options)if("string"==typeof this.options)try{this.optionsData=JSON.parse(this.options)}catch(s){this.optionsData=[]}else this.optionsData=Array.isArray(this.options)?this.options:[];else this.optionsData=[]}renderOptionValue(s){return s.is_image?t("div",{class:"s-order-details-option-image-container"},t("a",{href:s.value,target:"_blank"},t("img",{class:"s-order-details-option-image",src:s.value||this.placeholderImage,alt:s.name}))):s.color?t("span",{title:s.value,class:"s-order-details-option-color-swatch",style:{backgroundColor:s.color}}):s.is_file?t("a",{href:s.value,target:"_blank",class:"s-order-details-option-file-link"},salla.lang.get("common.elements.attachments")):s.is_color_picker?t("div",{class:"s-order-details-option-color-picker"},t("div",{class:"s-order-details-option-color-picker-content"},t("span",{class:"s-order-details-option-color-picker-text"},s.value),t("span",{class:"s-order-details-option-color-picker-swatch",style:{backgroundColor:s.value,width:"1rem"}})),t("salla-button",{onClick:t=>this.copyToClipboard(t,s.value),shape:"link",class:"s-order-details-option-color-picker-button"},t("span",{class:"s-order-details-option-color-copy-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>swap-fill</title>\n<path d="M28 10.667h-2.667c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h2.667c0.735 0 1.333 0.597 1.333 1.333v13.333c0 0.736-0.599 1.333-1.333 1.333h-13.333c-0.735 0-1.333-0.597-1.333-1.333v-2.667c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v2.667c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM21.333 17.333v-13.333c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4zM2.667 17.333v-13.333c0-0.736 0.599-1.333 1.333-1.333h13.333c0.735 0 1.333 0.597 1.333 1.333v13.333c0 0.736-0.599 1.333-1.333 1.333h-13.333c-0.735 0-1.333-0.597-1.333-1.333z"></path>\n</svg>\n'}))):s.is_map&&s.latitude&&s.longitude?t("salla-map",{id:`location_map_${s.id}`,class:`map_${s.id}`,zoom:15,readonly:!0,lat:s.latitude,lng:s.longitude},t("div",{slot:"button"},t("button",{type:"button",class:"s-order-details-option-map-button",onClick:()=>this.openMap(s.id)},salla.lang.get("common.elements.show_location")))):t("span",{class:"s-order-details-option-default-text"},s.display_value||s.value)}copyToClipboard(s,t){s.preventDefault(),navigator.clipboard&&navigator.clipboard.writeText(t)}openMap(s){const t=document.querySelector(`salla-map.map_${s}`);t&&t.open&&t.open()}render(){if(!this.optionsData.length)return null;const s=this.bordered?"s-order-details-options-container":"s-order-details-options-container-borderless";return t(o,{class:"s-order-details-options-wrapper"},t("h2",{class:"s-order-details-options-title"},salla.lang.get("pages.cart.item_options")),t("div",{class:s},t("dl",{class:"s-order-details-options-list"},this.optionsData.map((s=>t("div",{key:s.id,class:"s-order-details-options-item"},t("dt",{class:"s-order-details-options-item-name"},s.name,":"),t("dd",{class:s.is_image?"s-order-details-options-item-value-image":"s-order-details-options-item-value-text"},this.renderOptionValue(s))))))))}};e.style="";export{e as salla_order_details_options}
4
+ import{r as s,h as t,H as o}from"./p-C3g9jJZW.js";const e=class{constructor(t){s(this,t),this.bordered=!0,this.placeholderImage="images/placeholder.png",this.optionsData=[]}componentWillLoad(){this.parseOptionsData()}componentWillUpdate(){this.parseOptionsData()}parseOptionsData(){if(this.options)if("string"==typeof this.options)try{this.optionsData=JSON.parse(this.options)}catch(s){this.optionsData=[]}else this.optionsData=Array.isArray(this.options)?this.options:[];else this.optionsData=[]}renderOptionValue(s){return s.is_image?t("div",{class:"s-order-details-option-image-container"},t("a",{href:s.value,target:"_blank"},t("img",{class:"s-order-details-option-image",src:s.value||this.placeholderImage,alt:s.name}))):s.color?t("span",{title:s.value,class:"s-order-details-option-color-swatch",style:{backgroundColor:s.color}}):s.is_file?t("a",{href:s.value,target:"_blank",class:"s-order-details-option-file-link"},salla.lang.get("common.elements.attachments")):s.is_color_picker?t("div",{class:"s-order-details-option-color-picker"},t("div",{class:"s-order-details-option-color-picker-content"},t("span",{class:"s-order-details-option-color-picker-text"},s.value),t("span",{class:"s-order-details-option-color-picker-swatch",style:{backgroundColor:s.value,width:"1rem"}})),t("salla-button",{onClick:t=>this.copyToClipboard(t,s.value),shape:"link",class:"s-order-details-option-color-picker-button"},t("span",{class:"s-order-details-option-color-copy-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>swap-fill</title>\n<path d="M28 10.667h-2.667c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h2.667c0.735 0 1.333 0.597 1.333 1.333v13.333c0 0.736-0.599 1.333-1.333 1.333h-13.333c-0.735 0-1.333-0.597-1.333-1.333v-2.667c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v2.667c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM21.333 17.333v-13.333c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4zM2.667 17.333v-13.333c0-0.736 0.599-1.333 1.333-1.333h13.333c0.735 0 1.333 0.597 1.333 1.333v13.333c0 0.736-0.599 1.333-1.333 1.333h-13.333c-0.735 0-1.333-0.597-1.333-1.333z"></path>\n</svg>\n'}))):s.is_map&&s.latitude&&s.longitude?t("salla-map",{id:`location_map_${s.id}`,class:`map_${s.id}`,zoom:15,readonly:!0,lat:s.latitude,lng:s.longitude},t("div",{slot:"button"},t("button",{type:"button",class:"s-order-details-option-map-button",onClick:()=>this.openMap(s.id)},salla.lang.get("common.elements.show_location")))):t("span",{class:"s-order-details-option-default-text"},s.display_value||s.value)}copyToClipboard(s,t){s.preventDefault(),navigator.clipboard&&navigator.clipboard.writeText(t)}openMap(s){const t=document.querySelector(`salla-map.map_${s}`);t&&t.open&&t.open()}render(){if(!this.optionsData.length)return null;const s=this.bordered?"s-order-details-options-container":"s-order-details-options-container-borderless";return t(o,{class:"s-order-details-options-wrapper"},t("h2",{class:"s-order-details-options-title"},salla.lang.get("pages.cart.item_options")),t("div",{class:s},t("dl",{class:"s-order-details-options-list"},this.optionsData.map((s=>t("div",{key:s.id,class:"s-order-details-options-item"},t("dt",{class:"s-order-details-options-item-name"},s.name,":"),t("dd",{class:s.is_image?"s-order-details-options-item-value-image":"s-order-details-options-item-value-text"},this.renderOptionValue(s))))))))}};e.style="";export{e as salla_order_details_options}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import{r as s,h as e,H as t}from"./p-C3g9jJZW.js";const a=class{constructor(e){s(this,e),this.type="normal",this.width="100%",this.height="100%"}render(){return e(t,{key:"bbd3b59181da4c7c97a2fbf862eedebbedbe0634",class:"s-skeleton-wrapper",style:{width:this.width,height:this.height}},e("div",{key:"137814e704aabda9931441f744bac595dd506d0e",class:{"s-skeleton-item":!0,"s-skeleton-item-circular":"circle"==this.type}}," "))}};a.style=":host{display:block}";export{a as salla_skeleton}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,h as t,H as e}from"./p-lMbG1CIQ.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:"3b477eba55e3d9b8067b5b2e889a66a038cdfeaa"},t("salla-modal",{key:"82aefd868b472b3f2265140845ab40eb8a2afa72",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}
4
+ import{r as s,h as t,H as e}from"./p-C3g9jJZW.js";import{S as l}from"./p-BscTeWDc.js";var i;!function(s){s.DEFAULT="default",s.AVAILABILITY="availability"}(i||(i={}));const a=class{constructor(t){s(this,t),this.loadedScopes={[i.DEFAULT]:null,[i.AVAILABILITY]:null},this.translationLoaded=!1,this.mode=i.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===i.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=i.DEFAULT,t=null){return this.hasError=!1,this.mode=[i.AVAILABILITY,i.DEFAULT].includes(s)?s:i.DEFAULT,this.loading=!this.loadedScopes[this.mode],this.setScopeValues([]),salla.log("SallaScope:: opened"),this.modal.open(),this.loading?await salla.api.withoutNotifier((()=>s==i.AVAILABILITY?salla.scope.getProductAvailability(t):salla.scope.get())).then((t=>{if(s==i.AVAILABILITY)return this.setScopeValues(this.loadedScopes[i.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===i.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:"18d5a944f5034e2079c30b6595b3c7969b92f939"},t("salla-modal",{key:"a254d29b1a9cb363ba72417e234af5d81e9f2b8c",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!==i.AVAILABILITY?this.placeholderContent():this.mode===i.DEFAULT?this.defaultContent():this.availabilityContent())]))}async componentDidLoad(){await Salla.hooks.registerComponent("salla-scopes",this),salla.config.isMobileApp()||this.isOpenedBefore||"mandatory"!=this.selection||this.open()}};a.style=".s-scopes-availability-content{display:flex;justify-content:center;align-items:center}.s-scopes-placeholder{flex:0 0 85%}";export{a as salla_scopes}