@salla.sa/twilight-components 2.14.252 → 2.14.253

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 (506) hide show
  1. package/dist/cjs/{app-globals-ChKTQEJ9.js → app-globals-BoVwS_2u.js} +3 -3
  2. package/dist/cjs/{app-globals-ChKTQEJ9.js.map → app-globals-BoVwS_2u.js.map} +1 -1
  3. package/dist/cjs/{index-DtXwvL5X.js → index-DxXe1Ylr.js} +16 -16
  4. package/dist/cjs/index-DxXe1Ylr.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.cjs.js.map +1 -0
  7. package/dist/cjs/salla-accordion_4.cjs.entry.js +202 -0
  8. package/dist/cjs/salla-accordion_4.cjs.entry.js.map +1 -0
  9. package/dist/cjs/salla-add-product-button_51.cjs.entry.js +48 -48
  10. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  11. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-booking-field_2.cjs.entry.js +3 -3
  14. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
  18. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  19. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
  21. package/dist/cjs/salla-loyalty-program.cjs.entry.js +2 -2
  22. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
  24. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +80 -0
  27. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js.map +1 -0
  28. package/dist/cjs/salla-order-details-multiple-bundle-product.entry.cjs.js.map +1 -0
  29. package/dist/cjs/salla-order-details.cjs.entry.js +53 -0
  30. package/dist/cjs/salla-order-details.cjs.entry.js.map +1 -0
  31. package/dist/cjs/salla-order-details.entry.cjs.js.map +1 -0
  32. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  33. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  35. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  36. package/dist/cjs/salla-product-options.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-review-card.cjs.entry.js +2 -2
  38. package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
  39. package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  45. package/dist/cjs/twilight.cjs.js +3 -3
  46. package/dist/collection/collection-manifest.json +3 -0
  47. package/dist/collection/components/salla-accordion/salla-accordion-head.js +2 -2
  48. package/dist/collection/components/salla-accordion/salla-accordion-head.js.map +1 -1
  49. package/dist/collection/components/salla-accordion/salla-accordion.js +43 -1
  50. package/dist/collection/components/salla-accordion/salla-accordion.js.map +1 -1
  51. package/dist/collection/components/salla-alert/salla-alert.js +1 -1
  52. package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
  53. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
  54. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
  55. package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
  56. package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
  57. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
  58. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  59. package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
  60. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  61. package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
  62. package/dist/collection/components/salla-filters/salla-filters.js +1 -1
  63. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
  64. package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
  65. package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
  66. package/dist/collection/components/salla-loading/salla-loading.js +1 -1
  67. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  68. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
  69. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
  70. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
  71. package/dist/collection/components/salla-map/salla-map.js +3 -3
  72. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  73. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  74. package/dist/collection/components/salla-order-details/interfaces.js +2 -0
  75. package/dist/collection/components/salla-order-details/interfaces.js.map +1 -0
  76. package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.css +0 -0
  77. package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.js +152 -0
  78. package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.js.map +1 -0
  79. package/dist/collection/components/salla-order-details/salla-order-details-options.css +0 -0
  80. package/dist/collection/components/salla-order-details/salla-order-details-options.js +177 -0
  81. package/dist/collection/components/salla-order-details/salla-order-details-options.js.map +1 -0
  82. package/dist/collection/components/salla-order-details/salla-order-details.css +0 -0
  83. package/dist/collection/components/salla-order-details/salla-order-details.js +93 -0
  84. package/dist/collection/components/salla-order-details/salla-order-details.js.map +1 -0
  85. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  86. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  87. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  88. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  89. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  90. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  91. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  92. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  93. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  94. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  95. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  96. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  97. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  98. package/dist/collection/components/salla-search/salla-search.js +3 -3
  99. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  100. package/dist/collection/components/salla-slider/salla-slider.js +2 -2
  101. package/dist/collection/components/salla-social/salla-social.js +1 -1
  102. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  103. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  104. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  105. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  106. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  107. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  108. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  109. package/dist/components/index.js +2 -2
  110. package/dist/components/index.js.map +1 -1
  111. package/dist/components/salla-accordion-body.js +1 -27
  112. package/dist/components/salla-accordion-body.js.map +1 -1
  113. package/dist/components/salla-accordion-body2.js +35 -0
  114. package/dist/components/salla-accordion-body2.js.map +1 -0
  115. package/dist/components/salla-accordion-head.js +1 -59
  116. package/dist/components/salla-accordion-head.js.map +1 -1
  117. package/dist/components/salla-accordion-head2.js +67 -0
  118. package/dist/components/salla-accordion-head2.js.map +1 -0
  119. package/dist/components/salla-accordion.js +1 -59
  120. package/dist/components/salla-accordion.js.map +1 -1
  121. package/dist/components/salla-accordion2.js +71 -0
  122. package/dist/components/salla-accordion2.js.map +1 -0
  123. package/dist/components/salla-alert.js +1 -1
  124. package/dist/components/salla-booking-field2.js +1 -1
  125. package/dist/components/salla-bottom-alert.js +2 -2
  126. package/dist/components/salla-cart-summary.js +1 -1
  127. package/dist/components/salla-color-picker2.js +1 -1
  128. package/dist/components/salla-comment-form2.js +1 -1
  129. package/dist/components/salla-comment-item2.js +3 -3
  130. package/dist/components/salla-conditional-fields2.js +1 -1
  131. package/dist/components/salla-count-down2.js +1 -1
  132. package/dist/components/salla-datetime-picker2.js +1 -1
  133. package/dist/components/salla-file-upload2.js +2 -2
  134. package/dist/components/salla-filters-widget2.js +2 -2
  135. package/dist/components/salla-filters.js +1 -1
  136. package/dist/components/salla-gifting.js +2 -2
  137. package/dist/components/salla-list-tile2.js +1 -1
  138. package/dist/components/salla-loading2.js +1 -1
  139. package/dist/components/salla-localization-modal.js +1 -1
  140. package/dist/components/salla-loyalty-prize-item.js +1 -1
  141. package/dist/components/salla-loyalty-program.js +1 -1
  142. package/dist/components/salla-maintenance-alert.js +1 -1
  143. package/dist/components/salla-map2.js +3 -3
  144. package/dist/components/salla-notification-item2.js +1 -1
  145. package/dist/components/salla-offer-modal.js +1 -1
  146. package/dist/components/salla-order-details-multiple-bundle-product.d.ts +11 -0
  147. package/dist/components/salla-order-details-multiple-bundle-product.js +12 -0
  148. package/dist/components/salla-order-details-multiple-bundle-product.js.map +1 -0
  149. package/dist/components/salla-order-details-multiple-bundle-product2.js +144 -0
  150. package/dist/components/salla-order-details-multiple-bundle-product2.js.map +1 -0
  151. package/dist/components/salla-order-details-options.d.ts +11 -0
  152. package/dist/components/salla-order-details-options.js +12 -0
  153. package/dist/components/salla-order-details-options.js.map +1 -0
  154. package/dist/components/salla-order-details-options2.js +145 -0
  155. package/dist/components/salla-order-details-options2.js.map +1 -0
  156. package/dist/components/salla-order-details.d.ts +11 -0
  157. package/dist/components/salla-order-details.js +127 -0
  158. package/dist/components/salla-order-details.js.map +1 -0
  159. package/dist/components/salla-order-summary.js +1 -1
  160. package/dist/components/salla-payments.js +2 -2
  161. package/dist/components/salla-placeholder2.js +1 -1
  162. package/dist/components/salla-price-range2.js +2 -2
  163. package/dist/components/salla-product-availability2.js +1 -1
  164. package/dist/components/salla-product-card2.js +5 -5
  165. package/dist/components/salla-product-size-guide.js +2 -2
  166. package/dist/components/salla-quantity-input.js +1 -1
  167. package/dist/components/salla-quick-buy2.js +1 -1
  168. package/dist/components/salla-review-card2.js +1 -1
  169. package/dist/components/salla-reviews-page.js +1 -1
  170. package/dist/components/salla-reviews.js +1 -1
  171. package/dist/components/salla-scopes.js +1 -1
  172. package/dist/components/salla-search.js +3 -3
  173. package/dist/components/salla-skeleton2.js +1 -1
  174. package/dist/components/salla-slider2.js +2 -2
  175. package/dist/components/salla-social-share.js +1 -1
  176. package/dist/components/salla-social.js +1 -1
  177. package/dist/components/salla-tab-content2.js +1 -1
  178. package/dist/components/salla-tab-header2.js +1 -1
  179. package/dist/components/salla-tabs2.js +1 -1
  180. package/dist/components/salla-tel-input2.js +1 -1
  181. package/dist/components/salla-tooltip2.js +1 -1
  182. package/dist/components/salla-user-settings.js +1 -1
  183. package/dist/esm/{app-globals-3b0DwjjK.js → app-globals-5yxEmkuB.js} +3 -3
  184. package/dist/esm/{app-globals-3b0DwjjK.js.map → app-globals-5yxEmkuB.js.map} +1 -1
  185. package/dist/esm/{index-D4D34Ujk.js → index-Hw2jlaNN.js} +16 -16
  186. package/dist/esm/index-Hw2jlaNN.js.map +1 -0
  187. package/dist/esm/loader.js +4 -4
  188. package/dist/esm/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.js.map +1 -0
  189. package/dist/esm/salla-accordion_4.entry.js +197 -0
  190. package/dist/esm/salla-accordion_4.entry.js.map +1 -0
  191. package/dist/esm/salla-add-product-button_51.entry.js +48 -48
  192. package/dist/esm/salla-advertisement.entry.js +1 -1
  193. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  194. package/dist/esm/salla-apps-icons.entry.js +1 -1
  195. package/dist/esm/salla-booking-field_2.entry.js +3 -3
  196. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  197. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  198. package/dist/esm/salla-contacts.entry.js +1 -1
  199. package/dist/esm/salla-filters-widget.entry.js +3 -3
  200. package/dist/esm/salla-filters.entry.js +2 -2
  201. package/dist/esm/salla-installment.entry.js +1 -1
  202. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  203. package/dist/esm/salla-loyalty-program.entry.js +2 -2
  204. package/dist/esm/salla-metadata.entry.js +1 -1
  205. package/dist/esm/salla-notification-item.entry.js +2 -2
  206. package/dist/esm/salla-notifications.entry.js +1 -1
  207. package/dist/esm/salla-offer.entry.js +1 -1
  208. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +78 -0
  209. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js.map +1 -0
  210. package/dist/esm/salla-order-details.entry.js +51 -0
  211. package/dist/esm/salla-order-details.entry.js.map +1 -0
  212. package/dist/esm/salla-order-summary.entry.js +2 -2
  213. package/dist/esm/salla-orders.entry.js +1 -1
  214. package/dist/esm/salla-payments.entry.js +3 -3
  215. package/dist/esm/salla-price-range.entry.js +3 -3
  216. package/dist/esm/salla-product-options.entry.js +1 -1
  217. package/dist/esm/salla-review-card.entry.js +2 -2
  218. package/dist/esm/salla-reviews-page.entry.js +2 -2
  219. package/dist/esm/salla-reviews.entry.js +2 -2
  220. package/dist/esm/salla-social.entry.js +2 -2
  221. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  222. package/dist/esm/salla-tooltip.entry.js +2 -2
  223. package/dist/esm/salla-verify.entry.js +1 -1
  224. package/dist/esm/salla-wallet.entry.js +1 -1
  225. package/dist/esm/twilight.js +4 -4
  226. package/dist/esm-es5/{app-globals-3b0DwjjK.js → app-globals-5yxEmkuB.js} +2 -2
  227. package/dist/esm-es5/{app-globals-3b0DwjjK.js.map → app-globals-5yxEmkuB.js.map} +1 -1
  228. package/dist/esm-es5/{index-D4D34Ujk.js → index-Hw2jlaNN.js} +3 -3
  229. package/dist/esm-es5/index-Hw2jlaNN.js.map +1 -0
  230. package/dist/esm-es5/loader.js +1 -1
  231. package/dist/esm-es5/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.js.map +1 -0
  232. package/dist/esm-es5/salla-accordion_4.entry.js +5 -0
  233. package/dist/esm-es5/salla-accordion_4.entry.js.map +1 -0
  234. package/dist/esm-es5/salla-add-product-button_51.entry.js +3 -3
  235. package/dist/esm-es5/salla-advertisement.entry.js +1 -1
  236. package/dist/esm-es5/salla-app-install-alert.entry.js +1 -1
  237. package/dist/esm-es5/salla-apps-icons.entry.js +1 -1
  238. package/dist/esm-es5/salla-booking-field_2.entry.js +1 -1
  239. package/dist/esm-es5/salla-cart-item-offers.entry.js +1 -1
  240. package/dist/esm-es5/salla-conditional-offer.entry.js +1 -1
  241. package/dist/esm-es5/salla-contacts.entry.js +1 -1
  242. package/dist/esm-es5/salla-filters-widget.entry.js +2 -2
  243. package/dist/esm-es5/salla-filters.entry.js +1 -1
  244. package/dist/esm-es5/salla-installment.entry.js +1 -1
  245. package/dist/esm-es5/salla-loyalty-prize-item.entry.js +1 -1
  246. package/dist/esm-es5/salla-loyalty-program.entry.js +1 -1
  247. package/dist/esm-es5/salla-metadata.entry.js +2 -2
  248. package/dist/esm-es5/salla-notification-item.entry.js +1 -1
  249. package/dist/esm-es5/salla-notifications.entry.js +2 -2
  250. package/dist/esm-es5/salla-offer.entry.js +1 -1
  251. package/dist/esm-es5/salla-order-details-multiple-bundle-product.entry.js +5 -0
  252. package/dist/esm-es5/salla-order-details-multiple-bundle-product.entry.js.map +1 -0
  253. package/dist/esm-es5/salla-order-details.entry.js +5 -0
  254. package/dist/esm-es5/salla-order-details.entry.js.map +1 -0
  255. package/dist/esm-es5/salla-order-summary.entry.js +2 -2
  256. package/dist/esm-es5/salla-orders.entry.js +1 -1
  257. package/dist/esm-es5/salla-payments.entry.js +1 -1
  258. package/dist/esm-es5/salla-price-range.entry.js +2 -2
  259. package/dist/esm-es5/salla-product-options.entry.js +1 -1
  260. package/dist/esm-es5/salla-review-card.entry.js +1 -1
  261. package/dist/esm-es5/salla-reviews-page.entry.js +1 -1
  262. package/dist/esm-es5/salla-reviews.entry.js +1 -1
  263. package/dist/esm-es5/salla-social.entry.js +1 -1
  264. package/dist/esm-es5/salla-tiered-offer.entry.js +1 -1
  265. package/dist/esm-es5/salla-tooltip.entry.js +1 -1
  266. package/dist/esm-es5/salla-verify.entry.js +1 -1
  267. package/dist/esm-es5/salla-wallet.entry.js +1 -1
  268. package/dist/esm-es5/twilight.js +1 -1
  269. package/dist/twilight/{p-d513da6f.entry.js → p-0065a55b.entry.js} +2 -2
  270. package/dist/twilight/{p-c9678188.system.entry.js → p-05cf8f0f.system.entry.js} +2 -2
  271. package/dist/twilight/{p-8213a9ef.system.entry.js → p-066a5e95.system.entry.js} +2 -2
  272. package/dist/twilight/{p-81aeef6a.entry.js → p-0a58ecb2.entry.js} +2 -2
  273. package/dist/twilight/{p-5b882c52.system.entry.js → p-0ab8c50f.system.entry.js} +2 -2
  274. package/dist/twilight/{p-d84eb47c.entry.js → p-13efdbe3.entry.js} +2 -2
  275. package/dist/twilight/{p-4af5ffea.entry.js → p-13f1a287.entry.js} +2 -2
  276. package/dist/twilight/{p-6e24a5f0.system.entry.js → p-15c42251.system.entry.js} +2 -2
  277. package/dist/twilight/{p-8c0822f7.system.entry.js → p-17567b38.system.entry.js} +2 -2
  278. package/dist/twilight/p-184bc156.system.entry.js +5 -0
  279. package/dist/twilight/p-184bc156.system.entry.js.map +1 -0
  280. package/dist/twilight/{p-648fb6ca.entry.js → p-204e0ad2.entry.js} +2 -2
  281. package/dist/twilight/{p-63cba8e3.entry.js → p-210ccdae.entry.js} +2 -2
  282. package/dist/twilight/{p-d0004953.entry.js → p-240b86ef.entry.js} +2 -2
  283. package/dist/twilight/{p-dd83a408.entry.js → p-27206d63.entry.js} +2 -2
  284. package/dist/twilight/{p-c84819d5.entry.js → p-35dd7512.entry.js} +4 -4
  285. package/dist/twilight/{p-2af0da5a.system.entry.js → p-38675c42.system.entry.js} +2 -2
  286. package/dist/twilight/{p-7234c5f2.system.entry.js → p-3cdd4d44.system.entry.js} +2 -2
  287. package/dist/twilight/{p-8359eb2a.entry.js → p-3e9ceed0.entry.js} +2 -2
  288. package/dist/twilight/{p-a18f81a8.system.entry.js → p-447f03b5.system.entry.js} +2 -2
  289. package/dist/twilight/{p-2ecf868e.entry.js → p-4b7e613a.entry.js} +2 -2
  290. package/dist/twilight/{p-d5750810.entry.js → p-4d5387e9.entry.js} +2 -2
  291. package/dist/twilight/{p-ad0fedcd.system.entry.js → p-53fb14d0.system.entry.js} +2 -2
  292. package/dist/twilight/p-5db51240.system.entry.js +5 -0
  293. package/dist/twilight/{p-aad20f10.system.entry.js → p-61f590ca.system.entry.js} +2 -2
  294. package/dist/twilight/p-6a179bc3.system.entry.js +5 -0
  295. package/dist/twilight/p-6a179bc3.system.entry.js.map +1 -0
  296. package/dist/twilight/{p-407d19d8.system.entry.js → p-6a51cb91.system.entry.js} +2 -2
  297. package/dist/twilight/{p-95adf84e.entry.js → p-6abfa7ed.entry.js} +2 -2
  298. package/dist/twilight/{p-45b61475.entry.js → p-6f66faea.entry.js} +2 -2
  299. package/dist/twilight/{p-f57bcc51.entry.js → p-7187b729.entry.js} +2 -2
  300. package/dist/twilight/{p-c87d6aa6.system.entry.js → p-765562b8.system.entry.js} +4 -4
  301. package/dist/twilight/p-76d92026.entry.js +5 -0
  302. package/dist/twilight/p-76d92026.entry.js.map +1 -0
  303. package/dist/twilight/{p-6a0b5799.entry.js → p-78deca48.entry.js} +2 -2
  304. package/dist/twilight/{p-3483eb09.system.entry.js → p-7dce6627.system.entry.js} +2 -2
  305. package/dist/twilight/p-7f28b72e.entry.js +5 -0
  306. package/dist/twilight/p-7f28b72e.entry.js.map +1 -0
  307. package/dist/twilight/{p-396198a2.entry.js → p-83f6408a.entry.js} +2 -2
  308. package/dist/twilight/{p-d097a67d.system.entry.js → p-888de4b8.system.entry.js} +2 -2
  309. package/dist/twilight/{p-Ccj70VFr.system.js.map → p-8SAlNoQ7.system.js.map} +1 -1
  310. package/dist/twilight/{p-CZGaqTus.system.js.map → p-8cuU9AcW.system.js.map} +1 -1
  311. package/dist/twilight/{p-1b24ea99.system.entry.js → p-8e807035.system.entry.js} +2 -2
  312. package/dist/twilight/{p-6b716e82.system.entry.js → p-8fcff962.system.entry.js} +2 -2
  313. package/dist/twilight/p-9a8a57f0.entry.js +5 -0
  314. package/dist/twilight/{p-1a9eebb6.system.entry.js → p-9cb1a11d.system.entry.js} +2 -2
  315. package/dist/twilight/{p-CDmxJQ_1.system.js.map → p-B10yx9se.system.js.map} +1 -1
  316. package/dist/twilight/{p-BHI6mAw4.system.js.map → p-BKsOE9n5.system.js.map} +1 -1
  317. package/dist/twilight/{p-BRsVFuI-.system.js.map → p-BzHfWaAI.system.js.map} +1 -1
  318. package/dist/twilight/{p-ByNC3ygM.system.js.map → p-C0IcnmR-.system.js.map} +1 -1
  319. package/dist/twilight/{p-B_aBck2N.system.js.map → p-C0Tc4qY_.system.js.map} +1 -1
  320. package/dist/twilight/{p-e-FAhVeu.system.js.map → p-C72wuhae.system.js.map} +1 -1
  321. package/dist/twilight/{p-BrxIkK1y.system.js.map → p-CDuCVzYE.system.js.map} +1 -1
  322. package/dist/twilight/{p-CgDN9ZEV.system.js.map → p-CK7f65RE.system.js.map} +1 -1
  323. package/dist/twilight/{p-B0xoNOFR.system.js → p-CQDiSGcm.system.js} +3 -3
  324. package/dist/twilight/p-CQDiSGcm.system.js.map +1 -0
  325. package/dist/twilight/{p-CVW8a0jw.system.js.map → p-Crz5Om7F.system.js.map} +1 -1
  326. package/dist/twilight/p-D6vllM1-.system.js.map +1 -0
  327. package/dist/twilight/{p-O_6m6zp3.system.js.map → p-DHIqW0kb.system.js.map} +1 -1
  328. package/dist/twilight/{p-DxRZfb-O.system.js → p-DHVFvgH-.system.js} +2 -2
  329. package/dist/twilight/{p-DxRZfb-O.system.js.map → p-DHVFvgH-.system.js.map} +1 -1
  330. package/dist/twilight/{p-DvrwOwqK.system.js.map → p-DNXP15r0.system.js.map} +1 -1
  331. package/dist/twilight/{p-Bqv1miCk.system.js.map → p-DNsqaxY7.system.js.map} +1 -1
  332. package/dist/twilight/{p-BxORDCZ3.system.js.map → p-DTx9WCBY.system.js.map} +1 -1
  333. package/dist/twilight/{p-TrPvZWq-.system.js.map → p-DVKxP5is.system.js.map} +1 -1
  334. package/dist/twilight/p-DVpqfl3D.system.js.map +1 -0
  335. package/dist/twilight/{p-BXoB3JpD.system.js.map → p-DZTRKwds.system.js.map} +1 -1
  336. package/dist/twilight/{p-CaCB348j.system.js.map → p-DZajWqW2.system.js.map} +1 -1
  337. package/dist/twilight/{p-BbDuw4AO.system.js.map → p-Da2A-hsX.system.js.map} +1 -1
  338. package/dist/twilight/{p-CNqFfslE.system.js.map → p-DgVuWfs6.system.js.map} +1 -1
  339. package/dist/twilight/p-Dhlfiere.system.js +5 -0
  340. package/dist/twilight/{p-DMKkUrkS.system.js.map → p-Dhlfiere.system.js.map} +1 -1
  341. package/dist/twilight/{p-DVnmchft.system.js.map → p-DkCrulih.system.js.map} +1 -1
  342. package/dist/twilight/{p-CB3G0Z8y.system.js.map → p-Du8MMxWf.system.js.map} +1 -1
  343. package/dist/twilight/{p-u0que_SA.system.js.map → p-DvSX1guT.system.js.map} +1 -1
  344. package/dist/twilight/{p-D4D34Ujk.js → p-Hw2jlaNN.js} +3 -3
  345. package/dist/twilight/p-Hw2jlaNN.js.map +1 -0
  346. package/dist/twilight/{p-C-vbYsMC.system.js.map → p-N45BdAU8.system.js.map} +1 -1
  347. package/dist/twilight/{p-DNiQ_YXx.js → p-NSLkL4Dn.js} +2 -2
  348. package/dist/twilight/{p-DNiQ_YXx.js.map → p-NSLkL4Dn.js.map} +1 -1
  349. package/dist/twilight/{p-OzJ9XEsV.system.js.map → p-QNwQUqLM.system.js.map} +1 -1
  350. package/dist/twilight/{p-DlRNuq8n.system.js.map → p-XDYW48AK.system.js.map} +1 -1
  351. package/dist/twilight/{p-1055f2fb.entry.js → p-a8cf78c0.entry.js} +2 -2
  352. package/dist/twilight/p-a9c9a4ac.entry.js +5 -0
  353. package/dist/twilight/p-a9c9a4ac.entry.js.map +1 -0
  354. package/dist/twilight/{p-669db4df.entry.js → p-b13ef44c.entry.js} +2 -2
  355. package/dist/twilight/{p-d15630dd.entry.js → p-b492c336.entry.js} +2 -2
  356. package/dist/twilight/{p-f745fcad.entry.js → p-b51bb42b.entry.js} +2 -2
  357. package/dist/twilight/{p-3eaddcf1.entry.js → p-bb1a0f6b.entry.js} +2 -2
  358. package/dist/twilight/{p-5542a867.entry.js → p-bca6b6b2.entry.js} +2 -2
  359. package/dist/twilight/{p-fbe10567.entry.js → p-bdca9c9c.entry.js} +2 -2
  360. package/dist/twilight/p-be2938da.entry.js +5 -0
  361. package/dist/twilight/{p-58085711.entry.js → p-c5b5a947.entry.js} +2 -2
  362. package/dist/twilight/{p-BJUBMQeL.system.js.map → p-cK_8A-PC.system.js.map} +1 -1
  363. package/dist/twilight/{p-CiGTTlgd.system.js.map → p-cR7gWxFU.system.js.map} +1 -1
  364. package/dist/twilight/p-d314110a.system.entry.js +5 -0
  365. package/dist/twilight/p-d314110a.system.entry.js.map +1 -0
  366. package/dist/twilight/{p-13324cdd.system.entry.js → p-d33197dc.system.entry.js} +3 -3
  367. package/dist/twilight/{p-e9bc1fa4.system.entry.js → p-d3c9cfbb.system.entry.js} +2 -2
  368. package/dist/twilight/{p-e823d4e8.system.entry.js → p-d4017888.system.entry.js} +2 -2
  369. package/dist/twilight/{p-442340d3.system.entry.js → p-d43b5d6a.system.entry.js} +2 -2
  370. package/dist/twilight/{p-2ae75a1c.entry.js → p-d7604122.entry.js} +2 -2
  371. package/dist/twilight/{p-ebd4ac51.system.entry.js → p-d8039b97.system.entry.js} +2 -2
  372. package/dist/twilight/{p-423d91f5.system.entry.js → p-db9674c2.system.entry.js} +2 -2
  373. package/dist/twilight/{p-a1d102d3.system.entry.js → p-eb292930.system.entry.js} +2 -2
  374. package/dist/twilight/{p-60bf8746.system.entry.js → p-ec034bd2.system.entry.js} +2 -2
  375. package/dist/twilight/{p-ab7cc63a.system.entry.js → p-f07ad750.system.entry.js} +2 -2
  376. package/dist/twilight/{p-06b95a05.system.entry.js → p-f0b1ceef.system.entry.js} +2 -2
  377. package/dist/twilight/p-f5aefbca.system.entry.js +5 -0
  378. package/dist/twilight/{p-17c50686.entry.js → p-fb399776.entry.js} +2 -2
  379. package/dist/twilight/{p-e784d087.entry.js → p-fe81524d.entry.js} +2 -2
  380. package/dist/twilight/p-fed7a7a5.system.entry.js +5 -0
  381. package/dist/twilight/{p-C9DFiJHW.system.js.map → p-jx7CG3rj.system.js.map} +1 -1
  382. package/dist/twilight/{p-ofxyuLsh.system.js.map → p-lRCsnz7i.system.js.map} +1 -1
  383. package/dist/twilight/p-oqUqe5ch.system.js.map +1 -0
  384. package/dist/twilight/{p-Cs3Irr4v.system.js.map → p-xRJ6wvh1.system.js.map} +1 -1
  385. package/dist/twilight/salla-accordion.salla-accordion-body.salla-accordion-head.salla-order-details-options.entry.esm.js.map +1 -0
  386. package/dist/twilight/salla-order-details-multiple-bundle-product.entry.esm.js.map +1 -0
  387. package/dist/twilight/salla-order-details.entry.esm.js.map +1 -0
  388. package/dist/twilight/twilight.esm.js +1 -1
  389. package/dist/twilight/twilight.js +1 -1
  390. package/dist/types/components/salla-accordion/salla-accordion.d.ts +2 -0
  391. package/dist/types/components/salla-order-details/interfaces.d.ts +55 -0
  392. package/dist/types/components/salla-order-details/salla-order-details-multiple-bundle-product.d.ts +22 -0
  393. package/dist/types/components/salla-order-details/salla-order-details-options.d.ts +23 -0
  394. package/dist/types/components/salla-order-details/salla-order-details.d.ts +14 -0
  395. package/dist/types/components.d.ts +173 -0
  396. package/package.json +5 -5
  397. package/dist/cjs/index-DtXwvL5X.js.map +0 -1
  398. package/dist/cjs/salla-accordion-body.cjs.entry.js +0 -23
  399. package/dist/cjs/salla-accordion-body.cjs.entry.js.map +0 -1
  400. package/dist/cjs/salla-accordion-body.entry.cjs.js.map +0 -1
  401. package/dist/cjs/salla-accordion-head.cjs.entry.js +0 -52
  402. package/dist/cjs/salla-accordion-head.cjs.entry.js.map +0 -1
  403. package/dist/cjs/salla-accordion-head.entry.cjs.js.map +0 -1
  404. package/dist/cjs/salla-accordion.cjs.entry.js +0 -51
  405. package/dist/cjs/salla-accordion.cjs.entry.js.map +0 -1
  406. package/dist/cjs/salla-accordion.entry.cjs.js.map +0 -1
  407. package/dist/esm/index-D4D34Ujk.js.map +0 -1
  408. package/dist/esm/salla-accordion-body.entry.js +0 -21
  409. package/dist/esm/salla-accordion-body.entry.js.map +0 -1
  410. package/dist/esm/salla-accordion-head.entry.js +0 -50
  411. package/dist/esm/salla-accordion-head.entry.js.map +0 -1
  412. package/dist/esm/salla-accordion.entry.js +0 -49
  413. package/dist/esm/salla-accordion.entry.js.map +0 -1
  414. package/dist/esm-es5/index-D4D34Ujk.js.map +0 -1
  415. package/dist/esm-es5/salla-accordion-body.entry.js +0 -5
  416. package/dist/esm-es5/salla-accordion-body.entry.js.map +0 -1
  417. package/dist/esm-es5/salla-accordion-head.entry.js +0 -5
  418. package/dist/esm-es5/salla-accordion-head.entry.js.map +0 -1
  419. package/dist/esm-es5/salla-accordion.entry.js +0 -5
  420. package/dist/esm-es5/salla-accordion.entry.js.map +0 -1
  421. package/dist/twilight/p-154fc672.entry.js +0 -5
  422. package/dist/twilight/p-154fc672.entry.js.map +0 -1
  423. package/dist/twilight/p-17ee3d18.entry.js +0 -5
  424. package/dist/twilight/p-40e20722.system.entry.js +0 -5
  425. package/dist/twilight/p-40e20722.system.entry.js.map +0 -1
  426. package/dist/twilight/p-4d6baea7.system.entry.js +0 -5
  427. package/dist/twilight/p-4d6baea7.system.entry.js.map +0 -1
  428. package/dist/twilight/p-553bc6b4.system.entry.js +0 -5
  429. package/dist/twilight/p-63a5bdc6.entry.js +0 -5
  430. package/dist/twilight/p-63a5bdc6.entry.js.map +0 -1
  431. package/dist/twilight/p-7eff7dc5.system.entry.js +0 -5
  432. package/dist/twilight/p-B0xoNOFR.system.js.map +0 -1
  433. package/dist/twilight/p-BN8tVPbo.system.js.map +0 -1
  434. package/dist/twilight/p-Cc6e2YrQ.system.js.map +0 -1
  435. package/dist/twilight/p-D4D34Ujk.js.map +0 -1
  436. package/dist/twilight/p-DMKkUrkS.system.js +0 -5
  437. package/dist/twilight/p-Daef3WlT.system.js.map +0 -1
  438. package/dist/twilight/p-c0363ba7.entry.js +0 -5
  439. package/dist/twilight/p-c0363ba7.entry.js.map +0 -1
  440. package/dist/twilight/p-e2ab2b64.system.entry.js +0 -5
  441. package/dist/twilight/p-e2ab2b64.system.entry.js.map +0 -1
  442. package/dist/twilight/p-ef38f4ac.system.entry.js +0 -5
  443. package/dist/twilight/p-fcc64f6d.entry.js +0 -5
  444. package/dist/twilight/salla-accordion-body.entry.esm.js.map +0 -1
  445. package/dist/twilight/salla-accordion-head.entry.esm.js.map +0 -1
  446. package/dist/twilight/salla-accordion.entry.esm.js.map +0 -1
  447. /package/dist/twilight/{p-d513da6f.entry.js.map → p-0065a55b.entry.js.map} +0 -0
  448. /package/dist/twilight/{p-c9678188.system.entry.js.map → p-05cf8f0f.system.entry.js.map} +0 -0
  449. /package/dist/twilight/{p-8213a9ef.system.entry.js.map → p-066a5e95.system.entry.js.map} +0 -0
  450. /package/dist/twilight/{p-81aeef6a.entry.js.map → p-0a58ecb2.entry.js.map} +0 -0
  451. /package/dist/twilight/{p-5b882c52.system.entry.js.map → p-0ab8c50f.system.entry.js.map} +0 -0
  452. /package/dist/twilight/{p-d84eb47c.entry.js.map → p-13efdbe3.entry.js.map} +0 -0
  453. /package/dist/twilight/{p-4af5ffea.entry.js.map → p-13f1a287.entry.js.map} +0 -0
  454. /package/dist/twilight/{p-6e24a5f0.system.entry.js.map → p-15c42251.system.entry.js.map} +0 -0
  455. /package/dist/twilight/{p-8c0822f7.system.entry.js.map → p-17567b38.system.entry.js.map} +0 -0
  456. /package/dist/twilight/{p-648fb6ca.entry.js.map → p-204e0ad2.entry.js.map} +0 -0
  457. /package/dist/twilight/{p-63cba8e3.entry.js.map → p-210ccdae.entry.js.map} +0 -0
  458. /package/dist/twilight/{p-d0004953.entry.js.map → p-240b86ef.entry.js.map} +0 -0
  459. /package/dist/twilight/{p-dd83a408.entry.js.map → p-27206d63.entry.js.map} +0 -0
  460. /package/dist/twilight/{p-c84819d5.entry.js.map → p-35dd7512.entry.js.map} +0 -0
  461. /package/dist/twilight/{p-2af0da5a.system.entry.js.map → p-38675c42.system.entry.js.map} +0 -0
  462. /package/dist/twilight/{p-7234c5f2.system.entry.js.map → p-3cdd4d44.system.entry.js.map} +0 -0
  463. /package/dist/twilight/{p-8359eb2a.entry.js.map → p-3e9ceed0.entry.js.map} +0 -0
  464. /package/dist/twilight/{p-a18f81a8.system.entry.js.map → p-447f03b5.system.entry.js.map} +0 -0
  465. /package/dist/twilight/{p-2ecf868e.entry.js.map → p-4b7e613a.entry.js.map} +0 -0
  466. /package/dist/twilight/{p-d5750810.entry.js.map → p-4d5387e9.entry.js.map} +0 -0
  467. /package/dist/twilight/{p-ad0fedcd.system.entry.js.map → p-53fb14d0.system.entry.js.map} +0 -0
  468. /package/dist/twilight/{p-553bc6b4.system.entry.js.map → p-5db51240.system.entry.js.map} +0 -0
  469. /package/dist/twilight/{p-aad20f10.system.entry.js.map → p-61f590ca.system.entry.js.map} +0 -0
  470. /package/dist/twilight/{p-407d19d8.system.entry.js.map → p-6a51cb91.system.entry.js.map} +0 -0
  471. /package/dist/twilight/{p-95adf84e.entry.js.map → p-6abfa7ed.entry.js.map} +0 -0
  472. /package/dist/twilight/{p-45b61475.entry.js.map → p-6f66faea.entry.js.map} +0 -0
  473. /package/dist/twilight/{p-f57bcc51.entry.js.map → p-7187b729.entry.js.map} +0 -0
  474. /package/dist/twilight/{p-c87d6aa6.system.entry.js.map → p-765562b8.system.entry.js.map} +0 -0
  475. /package/dist/twilight/{p-6a0b5799.entry.js.map → p-78deca48.entry.js.map} +0 -0
  476. /package/dist/twilight/{p-3483eb09.system.entry.js.map → p-7dce6627.system.entry.js.map} +0 -0
  477. /package/dist/twilight/{p-396198a2.entry.js.map → p-83f6408a.entry.js.map} +0 -0
  478. /package/dist/twilight/{p-d097a67d.system.entry.js.map → p-888de4b8.system.entry.js.map} +0 -0
  479. /package/dist/twilight/{p-1b24ea99.system.entry.js.map → p-8e807035.system.entry.js.map} +0 -0
  480. /package/dist/twilight/{p-6b716e82.system.entry.js.map → p-8fcff962.system.entry.js.map} +0 -0
  481. /package/dist/twilight/{p-17ee3d18.entry.js.map → p-9a8a57f0.entry.js.map} +0 -0
  482. /package/dist/twilight/{p-1a9eebb6.system.entry.js.map → p-9cb1a11d.system.entry.js.map} +0 -0
  483. /package/dist/twilight/{p-1055f2fb.entry.js.map → p-a8cf78c0.entry.js.map} +0 -0
  484. /package/dist/twilight/{p-669db4df.entry.js.map → p-b13ef44c.entry.js.map} +0 -0
  485. /package/dist/twilight/{p-d15630dd.entry.js.map → p-b492c336.entry.js.map} +0 -0
  486. /package/dist/twilight/{p-f745fcad.entry.js.map → p-b51bb42b.entry.js.map} +0 -0
  487. /package/dist/twilight/{p-3eaddcf1.entry.js.map → p-bb1a0f6b.entry.js.map} +0 -0
  488. /package/dist/twilight/{p-5542a867.entry.js.map → p-bca6b6b2.entry.js.map} +0 -0
  489. /package/dist/twilight/{p-fbe10567.entry.js.map → p-bdca9c9c.entry.js.map} +0 -0
  490. /package/dist/twilight/{p-fcc64f6d.entry.js.map → p-be2938da.entry.js.map} +0 -0
  491. /package/dist/twilight/{p-58085711.entry.js.map → p-c5b5a947.entry.js.map} +0 -0
  492. /package/dist/twilight/{p-13324cdd.system.entry.js.map → p-d33197dc.system.entry.js.map} +0 -0
  493. /package/dist/twilight/{p-e9bc1fa4.system.entry.js.map → p-d3c9cfbb.system.entry.js.map} +0 -0
  494. /package/dist/twilight/{p-e823d4e8.system.entry.js.map → p-d4017888.system.entry.js.map} +0 -0
  495. /package/dist/twilight/{p-442340d3.system.entry.js.map → p-d43b5d6a.system.entry.js.map} +0 -0
  496. /package/dist/twilight/{p-2ae75a1c.entry.js.map → p-d7604122.entry.js.map} +0 -0
  497. /package/dist/twilight/{p-ebd4ac51.system.entry.js.map → p-d8039b97.system.entry.js.map} +0 -0
  498. /package/dist/twilight/{p-423d91f5.system.entry.js.map → p-db9674c2.system.entry.js.map} +0 -0
  499. /package/dist/twilight/{p-a1d102d3.system.entry.js.map → p-eb292930.system.entry.js.map} +0 -0
  500. /package/dist/twilight/{p-60bf8746.system.entry.js.map → p-ec034bd2.system.entry.js.map} +0 -0
  501. /package/dist/twilight/{p-ab7cc63a.system.entry.js.map → p-f07ad750.system.entry.js.map} +0 -0
  502. /package/dist/twilight/{p-06b95a05.system.entry.js.map → p-f0b1ceef.system.entry.js.map} +0 -0
  503. /package/dist/twilight/{p-ef38f4ac.system.entry.js.map → p-f5aefbca.system.entry.js.map} +0 -0
  504. /package/dist/twilight/{p-17c50686.entry.js.map → p-fb399776.entry.js.map} +0 -0
  505. /package/dist/twilight/{p-e784d087.entry.js.map → p-fe81524d.entry.js.map} +0 -0
  506. /package/dist/twilight/{p-7eff7dc5.system.entry.js.map → p-fed7a7a5.system.entry.js.map} +0 -0
@@ -0,0 +1,177 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { Host, h } from "@stencil/core";
5
+ import copyIcon from "../../assets/svg/swap-fill.svg";
6
+ /**
7
+ * @salla/ui-components
8
+ * The `salla-order-details-options` component renders product options for order details.
9
+ * It displays various types of options including colors, images, files, maps, and text values.
10
+ */
11
+ export class SallaOrderDetailsOptions {
12
+ constructor() {
13
+ /** Whether to show the options in a bordered container */
14
+ this.bordered = true;
15
+ /** Placeholder image URL when option image is not available */
16
+ this.placeholderImage = 'images/placeholder.png';
17
+ /** Parsed options data */
18
+ this.optionsData = [];
19
+ }
20
+ componentWillLoad() {
21
+ this.parseOptionsData();
22
+ }
23
+ componentWillUpdate() {
24
+ this.parseOptionsData();
25
+ }
26
+ parseOptionsData() {
27
+ if (!this.options) {
28
+ this.optionsData = [];
29
+ return;
30
+ }
31
+ if (typeof this.options === 'string') {
32
+ try {
33
+ this.optionsData = JSON.parse(this.options);
34
+ }
35
+ catch (e) {
36
+ // Invalid options JSON, fallback to empty array
37
+ this.optionsData = [];
38
+ }
39
+ }
40
+ else {
41
+ this.optionsData = Array.isArray(this.options) ? this.options : [];
42
+ }
43
+ }
44
+ renderOptionValue(option) {
45
+ // Handle image options
46
+ if (option.is_image) {
47
+ return (h("div", { class: "s-order-details-option-image-container" }, h("a", { href: option.value, target: "_blank" }, h("img", { class: "s-order-details-option-image", src: option.value || this.placeholderImage, alt: option.name }))));
48
+ }
49
+ // Handle color options
50
+ if (option.color) {
51
+ return (h("span", { title: option.value, class: "s-order-details-option-color-swatch", style: { backgroundColor: option.color } }));
52
+ }
53
+ // Handle file options
54
+ if (option.is_file) {
55
+ return (h("a", { href: option.value, target: "_blank", class: "s-order-details-option-file-link" }, "Attachments"));
56
+ }
57
+ // Handle color picker options
58
+ if (option.is_color_picker) {
59
+ return (h("div", { class: "s-order-details-option-color-picker" }, h("div", { class: "s-order-details-option-color-picker-content" }, h("span", { class: "s-order-details-option-color-picker-text" }, option.value), h("span", { class: "s-order-details-option-color-picker-swatch", style: { backgroundColor: option.value, width: '1rem' } })), h("salla-button", { onClick: e => this.copyToClipboard(e, option.value), shape: "link", class: "s-order-details-option-color-picker-button" }, h("span", { class: "s-order-details-option-color-copy-icon", innerHTML: copyIcon }))));
60
+ }
61
+ // Handle map options
62
+ if (option.is_map && option.latitude && option.longitude) {
63
+ return (h("salla-map", { id: `location_map_${option.id}`, class: `map_${option.id}`, zoom: 15, readonly: true, lat: option.latitude, lng: option.longitude }, h("div", { slot: "button" }, h("button", { type: "button", class: "s-order-details-option-map-button", onClick: () => this.openMap(option.id) }, "Show Location"))));
64
+ }
65
+ // Default text value
66
+ return (h("span", { class: "s-order-details-option-default-text" }, option.display_value || option.value));
67
+ }
68
+ copyToClipboard(event, content) {
69
+ event.preventDefault();
70
+ if (navigator.clipboard) {
71
+ navigator.clipboard.writeText(content);
72
+ }
73
+ }
74
+ openMap(optionId) {
75
+ const mapElement = document.querySelector(`salla-map.map_${optionId}`);
76
+ if (mapElement && mapElement.open) {
77
+ mapElement.open();
78
+ }
79
+ }
80
+ render() {
81
+ if (!this.optionsData.length) {
82
+ return null;
83
+ }
84
+ const containerClasses = this.bordered
85
+ ? 's-order-details-options-container'
86
+ : 's-order-details-options-container-borderless';
87
+ return (h(Host, { class: "s-order-details-options-wrapper" }, h("h2", { class: "s-order-details-options-title" }, salla.lang.get('pages.cart.item_options')), h("div", { class: containerClasses }, h("dl", { class: "s-order-details-options-list" }, this.optionsData.map(option => (h("div", { key: option.id, class: "s-order-details-options-item" }, h("dt", { class: "s-order-details-options-item-name" }, option.name, ":"), h("dd", { class: option.is_image
88
+ ? 's-order-details-options-item-value-image'
89
+ : 's-order-details-options-item-value-text' }, this.renderOptionValue(option)))))))));
90
+ }
91
+ static get is() { return "salla-order-details-options"; }
92
+ static get originalStyleUrls() {
93
+ return {
94
+ "$": ["salla-order-details-options.scss"]
95
+ };
96
+ }
97
+ static get styleUrls() {
98
+ return {
99
+ "$": ["salla-order-details-options.css"]
100
+ };
101
+ }
102
+ static get properties() {
103
+ return {
104
+ "options": {
105
+ "type": "string",
106
+ "attribute": "options",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "ProductOption[] | string",
110
+ "resolved": "ProductOption[] | string",
111
+ "references": {
112
+ "ProductOption": {
113
+ "location": "import",
114
+ "path": "./interfaces",
115
+ "id": "src/components/salla-order-details/interfaces.ts::ProductOption"
116
+ }
117
+ }
118
+ },
119
+ "required": false,
120
+ "optional": true,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": "Product options to display"
124
+ },
125
+ "getter": false,
126
+ "setter": false,
127
+ "reflect": false
128
+ },
129
+ "bordered": {
130
+ "type": "boolean",
131
+ "attribute": "bordered",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "boolean",
135
+ "resolved": "boolean",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": true,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "Whether to show the options in a bordered container"
143
+ },
144
+ "getter": false,
145
+ "setter": false,
146
+ "reflect": false,
147
+ "defaultValue": "true"
148
+ },
149
+ "placeholderImage": {
150
+ "type": "string",
151
+ "attribute": "placeholder-image",
152
+ "mutable": false,
153
+ "complexType": {
154
+ "original": "string",
155
+ "resolved": "string",
156
+ "references": {}
157
+ },
158
+ "required": false,
159
+ "optional": false,
160
+ "docs": {
161
+ "tags": [],
162
+ "text": "Placeholder image URL when option image is not available"
163
+ },
164
+ "getter": false,
165
+ "setter": false,
166
+ "reflect": false,
167
+ "defaultValue": "'images/placeholder.png'"
168
+ }
169
+ };
170
+ }
171
+ static get states() {
172
+ return {
173
+ "optionsData": {}
174
+ };
175
+ }
176
+ }
177
+ //# sourceMappingURL=salla-order-details-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"salla-order-details-options.js","sourceRoot":"","sources":["../../../src/components/salla-order-details/salla-order-details-options.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AAEtD;;;;GAIG;AAKH,MAAM,OAAO,wBAAwB;IAJrC;QAQE,0DAA0D;QAClD,aAAQ,GAAa,IAAI,CAAC;QAElC,+DAA+D;QACvD,qBAAgB,GAAW,wBAAwB,CAAC;QAE5D,0BAA0B;QACjB,gBAAW,GAAoB,EAAE,CAAC;KAqK5C;IAnKC,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,mBAAmB;QACjB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAEO,gBAAgB;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC;gBACH,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,gDAAgD;gBAChD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YACxB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACrE,CAAC;IACH,CAAC;IAEO,iBAAiB,CAAC,MAAqB;QAC7C,uBAAuB;QACvB,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO,CACL,WAAK,KAAK,EAAC,wCAAwC;gBACjD,SAAG,IAAI,EAAE,MAAM,CAAC,KAAe,EAAE,MAAM,EAAC,QAAQ;oBAC9C,WACE,KAAK,EAAC,8BAA8B,EACpC,GAAG,EAAG,MAAM,CAAC,KAAgB,IAAI,IAAI,CAAC,gBAAgB,EACtD,GAAG,EAAE,MAAM,CAAC,IAAI,GAChB,CACA,CACA,CACP,CAAC;QACJ,CAAC;QAED,uBAAuB;QACvB,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,OAAO,CACL,YACE,KAAK,EAAE,MAAM,CAAC,KAAe,EAC7B,KAAK,EAAC,qCAAqC,EAC3C,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,GAClC,CACT,CAAC;QACJ,CAAC;QAED,sBAAsB;QACtB,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,CACL,SAAG,IAAI,EAAE,MAAM,CAAC,KAAe,EAAE,MAAM,EAAC,QAAQ,EAAC,KAAK,EAAC,kCAAkC,kBAErF,CACL,CAAC;QACJ,CAAC;QAED,8BAA8B;QAC9B,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;YAC3B,OAAO,CACL,WAAK,KAAK,EAAC,qCAAqC;gBAC9C,WAAK,KAAK,EAAC,6CAA6C;oBACtD,YAAM,KAAK,EAAC,0CAA0C,IAAE,MAAM,CAAC,KAAK,CAAQ;oBAC5E,YACE,KAAK,EAAC,4CAA4C,EAClD,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,KAAe,EAAE,KAAK,EAAE,MAAM,EAAE,GAC3D,CACJ;gBACN,oBACE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,CAAC,KAAe,CAAC,EAC7D,KAAK,EAAC,MAAM,EACZ,KAAK,EAAC,4CAA4C;oBAElD,YAAM,KAAK,EAAC,wCAAwC,EAAC,SAAS,EAAE,QAAQ,GAAS,CACpE,CACX,CACP,CAAC;QACJ,CAAC;QAED,qBAAqB;QACrB,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACzD,OAAO,CACL,iBACE,EAAE,EAAE,gBAAgB,MAAM,CAAC,EAAE,EAAE,EAC/B,KAAK,EAAE,OAAO,MAAM,CAAC,EAAE,EAAE,EACzB,IAAI,EAAE,EAAE,EACR,QAAQ,QACR,GAAG,EAAE,MAAM,CAAC,QAAkB,EAC9B,GAAG,EAAE,MAAM,CAAC,SAAmB;gBAE/B,WAAK,IAAI,EAAC,QAAQ;oBAChB,cACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,mCAAmC,EACzC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,oBAG/B,CACL,CACI,CACb,CAAC;QACJ,CAAC;QAED,qBAAqB;QACrB,OAAO,CACL,YAAM,KAAK,EAAC,qCAAqC,IAC9C,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,KAAK,CAChC,CACR,CAAC;IACJ,CAAC;IAEO,eAAe,CAAC,KAAY,EAAE,OAAe;QACnD,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;YACxB,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAEO,OAAO,CAAC,QAAyB;QACvC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,QAAQ,EAAE,CAAQ,CAAC;QAC9E,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;YAClC,UAAU,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;IACH,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ;YACpC,CAAC,CAAC,mCAAmC;YACrC,CAAC,CAAC,8CAA8C,CAAC;QAEnD,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAC,iCAAiC;YAC3C,UAAI,KAAK,EAAC,+BAA+B,IAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAM;YAC1F,WAAK,KAAK,EAAE,gBAAgB;gBAC1B,UAAI,KAAK,EAAC,8BAA8B,IACrC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAC9B,WAAK,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,KAAK,EAAC,8BAA8B;oBACvD,UAAI,KAAK,EAAC,mCAAmC;wBAAE,MAAM,CAAC,IAAI;4BAAO;oBACjE,UACE,KAAK,EACH,MAAM,CAAC,QAAQ;4BACb,CAAC,CAAC,0CAA0C;4BAC5C,CAAC,CAAC,yCAAyC,IAG9C,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAC5B,CACD,CACP,CAAC,CACC,CACD,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport { ProductOption } from './interfaces';\nimport copyIcon from '../../assets/svg/swap-fill.svg';\n\n/**\n * @salla/ui-components\n * The `salla-order-details-options` component renders product options for order details.\n * It displays various types of options including colors, images, files, maps, and text values.\n */\n@Component({\n tag: 'salla-order-details-options',\n styleUrl: 'salla-order-details-options.scss',\n})\nexport class SallaOrderDetailsOptions {\n /** Product options to display */\n @Prop() options?: ProductOption[] | string;\n\n /** Whether to show the options in a bordered container */\n @Prop() bordered?: boolean = true;\n\n /** Placeholder image URL when option image is not available */\n @Prop() placeholderImage: string = 'images/placeholder.png';\n\n /** Parsed options data */\n @State() optionsData: ProductOption[] = [];\n\n componentWillLoad() {\n this.parseOptionsData();\n }\n\n componentWillUpdate() {\n this.parseOptionsData();\n }\n\n private parseOptionsData() {\n if (!this.options) {\n this.optionsData = [];\n return;\n }\n\n if (typeof this.options === 'string') {\n try {\n this.optionsData = JSON.parse(this.options);\n } catch (e) {\n // Invalid options JSON, fallback to empty array\n this.optionsData = [];\n }\n } else {\n this.optionsData = Array.isArray(this.options) ? this.options : [];\n }\n }\n\n private renderOptionValue(option: ProductOption) {\n // Handle image options\n if (option.is_image) {\n return (\n <div class=\"s-order-details-option-image-container\">\n <a href={option.value as string} target=\"_blank\">\n <img\n class=\"s-order-details-option-image\"\n src={(option.value as string) || this.placeholderImage}\n alt={option.name}\n />\n </a>\n </div>\n );\n }\n\n // Handle color options\n if (option.color) {\n return (\n <span\n title={option.value as string}\n class=\"s-order-details-option-color-swatch\"\n style={{ backgroundColor: option.color }}\n ></span>\n );\n }\n\n // Handle file options\n if (option.is_file) {\n return (\n <a href={option.value as string} target=\"_blank\" class=\"s-order-details-option-file-link\">\n Attachments\n </a>\n );\n }\n\n // Handle color picker options\n if (option.is_color_picker) {\n return (\n <div class=\"s-order-details-option-color-picker\">\n <div class=\"s-order-details-option-color-picker-content\">\n <span class=\"s-order-details-option-color-picker-text\">{option.value}</span>\n <span\n class=\"s-order-details-option-color-picker-swatch\"\n style={{ backgroundColor: option.value as string, width: '1rem' }}\n ></span>\n </div>\n <salla-button\n onClick={e => this.copyToClipboard(e, option.value as string)}\n shape=\"link\"\n class=\"s-order-details-option-color-picker-button\"\n >\n <span class=\"s-order-details-option-color-copy-icon\" innerHTML={copyIcon}></span>\n </salla-button>\n </div>\n );\n }\n\n // Handle map options\n if (option.is_map && option.latitude && option.longitude) {\n return (\n <salla-map\n id={`location_map_${option.id}`}\n class={`map_${option.id}`}\n zoom={15}\n readonly\n lat={option.latitude as number}\n lng={option.longitude as number}\n >\n <div slot=\"button\">\n <button\n type=\"button\"\n class=\"s-order-details-option-map-button\"\n onClick={() => this.openMap(option.id)}\n >\n Show Location\n </button>\n </div>\n </salla-map>\n );\n }\n\n // Default text value\n return (\n <span class=\"s-order-details-option-default-text\">\n {option.display_value || option.value}\n </span>\n );\n }\n\n private copyToClipboard(event: Event, content: string) {\n event.preventDefault();\n if (navigator.clipboard) {\n navigator.clipboard.writeText(content);\n }\n }\n\n private openMap(optionId: string | number) {\n const mapElement = document.querySelector(`salla-map.map_${optionId}`) as any;\n if (mapElement && mapElement.open) {\n mapElement.open();\n }\n }\n\n render() {\n if (!this.optionsData.length) {\n return null;\n }\n\n const containerClasses = this.bordered\n ? 's-order-details-options-container'\n : 's-order-details-options-container-borderless';\n\n return (\n <Host class=\"s-order-details-options-wrapper\">\n <h2 class=\"s-order-details-options-title\">{salla.lang.get('pages.cart.item_options')}</h2>\n <div class={containerClasses}>\n <dl class=\"s-order-details-options-list\">\n {this.optionsData.map(option => (\n <div key={option.id} class=\"s-order-details-options-item\">\n <dt class=\"s-order-details-options-item-name\">{option.name}:</dt>\n <dd\n class={\n option.is_image\n ? 's-order-details-options-item-value-image'\n : 's-order-details-options-item-value-text'\n }\n >\n {this.renderOptionValue(option)}\n </dd>\n </div>\n ))}\n </dl>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,93 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { Host, h, Fragment } from "@stencil/core";
5
+ /**
6
+ * @salla/ui-components
7
+ * The `salla-order-details` component renders a collapsible summary for an order product with optional options list.
8
+ * It uses the salla-accordion component to provide collapsible functionality.
9
+ */
10
+ export class SallaOrderDetails {
11
+ parseOrderDetailsData(newValue) {
12
+ this.parsedOrderDetailsData = newValue;
13
+ if (typeof this.orderDetails === 'string') {
14
+ this.parsedOrderDetailsData = JSON.parse(newValue);
15
+ }
16
+ else {
17
+ this.parsedOrderDetailsData = newValue;
18
+ }
19
+ }
20
+ componentWillLoad() {
21
+ this.parseOrderDetailsData(this.orderDetails);
22
+ console.log('Parent componentWillLoad - parsedOrderDetailsData:', this.parsedOrderDetailsData);
23
+ }
24
+ renderOrderDetailsContent() {
25
+ // Check if we have parsed data
26
+ if (!this.parsedOrderDetailsData) {
27
+ console.warn('No parsedOrderDetailsData available');
28
+ return null;
29
+ }
30
+ return [
31
+ /* Product Options */
32
+ this.parsedOrderDetailsData.options && this.parsedOrderDetailsData.options.length > 0 && (h("salla-order-details-options", { options: this.parsedOrderDetailsData.options })),
33
+ /* Bundle Subproducts */
34
+ this.parsedOrderDetailsData.sub_products &&
35
+ this.parsedOrderDetailsData.sub_products.length > 0 && (h(Fragment, null, h("h2", { class: "s-order-details-bundle-title" }, salla.lang.get('pages.orders.sub_products')), h("div", { class: "s-order-details-bundle-content" }, this.parsedOrderDetailsData.sub_products.map(product => (h("salla-order-details-multiple-bundle-product", { key: product === null || product === void 0 ? void 0 : product.id, productDetails: product })))))),
36
+ ];
37
+ }
38
+ render() {
39
+ return h(Host, { key: 'd76fce6a442aca11f3544a9f101ea4245a9317db', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
40
+ }
41
+ static get is() { return "salla-order-details"; }
42
+ static get originalStyleUrls() {
43
+ return {
44
+ "$": ["salla-order-details.scss"]
45
+ };
46
+ }
47
+ static get styleUrls() {
48
+ return {
49
+ "$": ["salla-order-details.css"]
50
+ };
51
+ }
52
+ static get properties() {
53
+ return {
54
+ "orderDetails": {
55
+ "type": "string",
56
+ "attribute": "order-details",
57
+ "mutable": false,
58
+ "complexType": {
59
+ "original": "string | OrderProduct",
60
+ "resolved": "OrderProduct | string",
61
+ "references": {
62
+ "OrderProduct": {
63
+ "location": "import",
64
+ "path": "./interfaces",
65
+ "id": "src/components/salla-order-details/interfaces.ts::OrderProduct"
66
+ }
67
+ }
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": ""
74
+ },
75
+ "getter": false,
76
+ "setter": false,
77
+ "reflect": false
78
+ }
79
+ };
80
+ }
81
+ static get states() {
82
+ return {
83
+ "parsedOrderDetailsData": {}
84
+ };
85
+ }
86
+ static get watchers() {
87
+ return [{
88
+ "propName": "orderDetails",
89
+ "methodName": "parseOrderDetailsData"
90
+ }];
91
+ }
92
+ }
93
+ //# sourceMappingURL=salla-order-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"salla-order-details.js","sourceRoot":"","sources":["../../../src/components/salla-order-details/salla-order-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGjF;;;;GAIG;AAKH,MAAM,OAAO,iBAAiB;IAMpB,qBAAqB,CAAC,QAA+B;QAC3D,IAAI,CAAC,sBAAsB,GAAG,QAAwB,CAAC;QACvD,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;YAC1C,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,QAAkB,CAAC,CAAC;QAC/D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,sBAAsB,GAAG,QAAwB,CAAC;QACzD,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,oDAAoD,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACjG,CAAC;IAEO,yBAAyB;QAC/B,+BAA+B;QAC/B,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;YACjC,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,qBAAqB;YACrB,IAAI,CAAC,sBAAsB,CAAC,OAAO,IAAI,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CACvF,mCAA6B,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,OAAO,GAAI,CAC9E;YAED,wBAAwB;YACxB,IAAI,CAAC,sBAAsB,CAAC,YAAY;gBACtC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,CACrD,EAAC,QAAQ;gBACP,UAAI,KAAK,EAAC,8BAA8B,IACrC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,2BAA2B,CAAC,CACzC;gBACL,WAAK,KAAK,EAAC,gCAAgC,IACxC,IAAI,CAAC,sBAAsB,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACvD,mDACE,GAAG,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,EAChB,cAAc,EAAE,OAAO,GACvB,CACH,CAAC,CACE,CACG,CACZ;SACJ,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,IAAI,qDAAC,KAAK,EAAC,yBAAyB,IAAE,IAAI,CAAC,yBAAyB,EAAE,CAAQ,CAAC;IACzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Watch, Fragment } from '@stencil/core';\nimport { OrderProduct } from './interfaces';\n\n/**\n * @salla/ui-components\n * The `salla-order-details` component renders a collapsible summary for an order product with optional options list.\n * It uses the salla-accordion component to provide collapsible functionality.\n */\n@Component({\n tag: 'salla-order-details',\n styleUrl: 'salla-order-details.scss',\n})\nexport class SallaOrderDetails {\n @Prop() orderDetails: string | OrderProduct;\n\n @State() parsedOrderDetailsData: OrderProduct;\n\n @Watch('orderDetails')\n private parseOrderDetailsData(newValue: string | OrderProduct) {\n this.parsedOrderDetailsData = newValue as OrderProduct;\n if (typeof this.orderDetails === 'string') {\n this.parsedOrderDetailsData = JSON.parse(newValue as string);\n } else {\n this.parsedOrderDetailsData = newValue as OrderProduct;\n }\n }\n\n componentWillLoad() {\n this.parseOrderDetailsData(this.orderDetails);\n console.log('Parent componentWillLoad - parsedOrderDetailsData:', this.parsedOrderDetailsData);\n }\n\n private renderOrderDetailsContent() {\n // Check if we have parsed data\n if (!this.parsedOrderDetailsData) {\n console.warn('No parsedOrderDetailsData available');\n return null;\n }\n\n return [\n /* Product Options */\n this.parsedOrderDetailsData.options && this.parsedOrderDetailsData.options.length > 0 && (\n <salla-order-details-options options={this.parsedOrderDetailsData.options} />\n ),\n\n /* Bundle Subproducts */\n this.parsedOrderDetailsData.sub_products &&\n this.parsedOrderDetailsData.sub_products.length > 0 && (\n <Fragment>\n <h2 class=\"s-order-details-bundle-title\">\n {salla.lang.get('pages.orders.sub_products')}\n </h2>\n <div class=\"s-order-details-bundle-content\">\n {this.parsedOrderDetailsData.sub_products.map(product => (\n <salla-order-details-multiple-bundle-product\n key={product?.id}\n productDetails={product}\n />\n ))}\n </div>\n </Fragment>\n ),\n ];\n }\n\n render() {\n return <Host class=\"s-order-details-wrapper\">{this.renderOrderDetailsContent()}</Host>;\n }\n}\n"]}
@@ -62,7 +62,7 @@ export class SallaOrderSummary {
62
62
  this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
63
63
  }
64
64
  render() {
65
- return (h("ul", { key: '6358d81e74e1fd966b7046deab946f33391b2fc6', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
65
+ return (h("ul", { key: '14eed8e219bcde5b32d5fddb95bb8727e980c56c', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
66
66
  this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? iconCheck : iconCopy }), h("span", null, this.copy_text))))))) :
67
67
  this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
68
68
  }
@@ -37,12 +37,12 @@ export class SallaPayments {
37
37
  render() {
38
38
  const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
39
39
  const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
40
- return (h(Host, { key: '6c8a1fd050822882224ee1e419f6f6dbdbfaf12d', class: "s-payments-list-wrap" }, h("ul", { key: '773195024ce6f616ad9b87091c8ddfd0e153f9ec', class: "s-payments-list" }, madeInKSA && h("li", { key: '203bebb61c41ca108c0ec969661d5922db2ac378', class: "s-payments-list-item" }, h("img", { key: 'a687fac0d968f0485a0a59d1205a0f0db1f100f4', class: "lazy", width: "100%", height: "100%", decoding: "async", loading: "lazy", "data-src": salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
40
+ return (h(Host, { key: 'a1a26ba03aa60491071f0e63bac40de3ad91bce6', class: "s-payments-list-wrap" }, h("ul", { key: 'd31ca162e83aade956f45d8f517029942a748646', class: "s-payments-list" }, madeInKSA && h("li", { key: '552e3e57345d01ab33bfd20094cbcf8f702c6efa', class: "s-payments-list-item" }, h("img", { key: '04eb9c9a1950edc9ea3c2e218fbe6c5c21d65f6a', class: "lazy", width: "100%", height: "100%", decoding: "async", loading: "lazy", "data-src": salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
41
41
  h("div", { id: "cod-slot", innerHTML: this.codSlot
42
42
  .replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
43
43
  h("div", { id: "payment-slot", innerHTML: this.paymentSlot
44
44
  .replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
45
- .replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: 'f571920327b81c48f502c1d6e497955978634c08', id: "sbc-slot", innerHTML: this.sbcSlot
45
+ .replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '5f69b3c936edf8039006d6ecd73e3c44b74b9167', id: "sbc-slot", innerHTML: this.sbcSlot
46
46
  .replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
47
47
  .replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
48
48
  }
@@ -35,7 +35,7 @@ export class SallaPlaceholder {
35
35
  };
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: 'acb6642e7f779ba048e881e65878611b1dda2702', class: this.alignmentClass() }, h("div", { key: '70d55c63af102a43ac9c10d6e445914b32f2cf06', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: 'db4cc0f4ba68b6ed4348fb1832428934414dab3e', class: "s-placeholder-title" }, h("slot", { key: '78b8b541ed88c8ebcd977ed9c5df723a342e55a6', name: 'title' }, h("span", { key: '5135e05ed931e03bdd1f405801367c0ff03cd7f0' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '8091b48019b63f31dec562fc4a02954692ff564b', class: "s-placeholder-description" }, h("slot", { key: 'af35c54093925cf42f37f26dc4b1378042ff345e', name: 'description' }, h("span", { key: 'd3a9b2715f09872b73d293c2ce5d3129120d44b9' }, salla.lang.get('common.errors.empty_results'))))));
38
+ return (h(Host, { key: 'fe8c3b4958319a69bedc23c4edd7e5e9db820301', class: this.alignmentClass() }, h("div", { key: '727c7f934c9dbc5fb5cdfba7f563855162fa3a23', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '6c61798f5af682c078f4536fd88af14c241bc009', class: "s-placeholder-title" }, h("slot", { key: '6bd403b5402ff34b69615ad94fce85516b0fe79d', name: 'title' }, h("span", { key: 'beef08e2f61e1328f15afa9b895302c235022f91' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '50fea21d9fcc09a3478beb31e9e876ed7726b704', class: "s-placeholder-description" }, h("slot", { key: 'de0f6916c65c2a2c97ea3ee3fa16d6fdbeebe90a', name: 'description' }, h("span", { key: '3f6621dc6d2f19b1c5e8f55f9f2cc4b0b622bbcc' }, salla.lang.get('common.errors.empty_results'))))));
39
39
  }
40
40
  static get is() { return "salla-placeholder"; }
41
41
  static get originalStyleUrls() {
@@ -147,9 +147,9 @@ export class SallaPriceRange {
147
147
  this.maxPrice = value === undefined ? '' : value;
148
148
  }
149
149
  render() {
150
- return (h(Host, { key: 'e257e65621d724438fd4fdd74cdec45596a81cd0' }, this.filterValues.map((filterValue, index) => {
150
+ return (h(Host, { key: 'dc09f4be81c3652da570b522894917f6b70faf61' }, this.filterValues.map((filterValue, index) => {
151
151
  return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
152
- }), h("div", { key: '097faf8d72b3c441bc22041a5643f91f61bbdd40', class: "flex justify-center items-center" }, h("div", { key: '6adaa2b16c015de4ab5e254d4a9be05bb65b7848', class: "relative max-w-xl w-full" }, h("div", { key: '3667d98c1e0886fc31600d23dd5a41a18d5ff8d0', class: "s-price-range-inputs" }, h("div", { key: '98fdc0fdc9632318daa4664d4798154a17fe700a', class: "s-price-range-relative" }, h("div", { key: 'addd7b56c1e2496dba50db7ec320f8f5ea129d42', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'd36e129fd777ccfe30cf8d974dd96cf82e64c805', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: 'b1fcc176d31d724c646291262e42c6a74e75f299', class: "s-price-range-gray-text" }, " -"), h("div", { key: '93db8728b9f118be78549c6839a4d85d4664a3dc', class: "s-price-range-relative" }, h("div", { key: '7b63ca0ffd946d34549768bf87876868842478a4', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'ba005f3834bc2179e1346cae746b7c734abaf0dd', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: '74283ca210bf2f85a4e5d7dde69372e55453a5a5', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '04600f026e465f96f98d54841e8c7bd7d1c849bd', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
152
+ }), h("div", { key: '97f20e2bcff15d906dc5566a7f147339e4423138', class: "flex justify-center items-center" }, h("div", { key: '4c631a9f5c77890bcffd365db6dab471ba989246', class: "relative max-w-xl w-full" }, h("div", { key: '3e4c53b29c4e6fa90eba1a23f646d8391b1ce462', class: "s-price-range-inputs" }, h("div", { key: '6bb515095db500d78c5cc22f2bd25635d157793d', class: "s-price-range-relative" }, h("div", { key: '59617a36c7095a0766155521afb20d517fc5321a', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'bc1ae88ba28bcc11a7373cad13cdd2104646023b', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '49e12143570efe2f019e9a3240f9d1c184482f9c', class: "s-price-range-gray-text" }, " -"), h("div", { key: '1e61ef602dbb0f1622bbd7279f15b5ef71d0f2db', class: "s-price-range-relative" }, h("div", { key: '5aac7489a79f52156f382e0e4e181b6d0a8e5fb3', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '104a3ce0be1d461715fdc6a29d0df33a8a378ad3', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: '2e722552816b6ceabf030d596fac580e1fa8d41a', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '6f41a0dfa95c9910ab5d17e98ba815444fab8cca', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
153
153
  }
154
154
  componentDidLoad() {
155
155
  this.isReady = true;
@@ -132,7 +132,7 @@ export class SallaProductAvailability {
132
132
  field.nextElementSibling['innerText'] = '* ' + errorMsg;
133
133
  }
134
134
  render() {
135
- return (h(Host, { key: '8b90efc3117090e3e291f57c6976cdda1bf9360e', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
135
+ return (h(Host, { key: '0dc32b09e3916993a31ce6e27d9cefd81dd56289', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
136
136
  ? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRingIcon, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
137
137
  :
138
138
  h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
@@ -95,14 +95,14 @@ export class SallaProductCard {
95
95
  's-product-card-out-of-stock': (_b = this.productData) === null || _b === void 0 ? void 0 : _b.is_out_of_stock,
96
96
  };
97
97
  const hrefProp = ((_c = this.productData) === null || _c === void 0 ? void 0 : _c.url) ? { href: this.productData.url, title: `Learn more about ${(_d = this.productData) === null || _d === void 0 ? void 0 : _d.name}` } : {};
98
- return (h(Host, { key: 'b104d39f313e253281144add69c1fbd16de31016', id: `product-${(_e = this.productData) === null || _e === void 0 ? void 0 : _e.id}`, class: classes }, h("div", { key: '140fd0e19e59d95e0bd432e96bdb5bda22a0e5fc', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", Object.assign({ key: '9eb0b1e7992e5e9e6103409c6089e0ef0d3e583e' }, hrefProp), h("img", { key: 'ce84db34de3a0e127458ea72ac67fafdd2c40cf2', class: `s-product-card-image-${salla.url.is_placeholder((_g = (_f = this.productData) === null || _f === void 0 ? void 0 : _f.image) === null || _g === void 0 ? void 0 : _g.url)
98
+ return (h(Host, { key: '80743147fd154496018ff530e3c84b2f66cf2985', id: `product-${(_e = this.productData) === null || _e === void 0 ? void 0 : _e.id}`, class: classes }, h("div", { key: 'ecf4f7838db5d38bc355d8730c3eb10dd04aedc4', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", Object.assign({ key: 'db0198934b449152c88d23f8adc71ec212761e2a' }, hrefProp), h("img", { key: 'f80856aacb8861e68ef0dfbe43aeb22d422920f9', class: `s-product-card-image-${salla.url.is_placeholder((_g = (_f = this.productData) === null || _f === void 0 ? void 0 : _f.image) === null || _g === void 0 ? void 0 : _g.url)
99
99
  ? 'contain'
100
100
  : this.fitImageHeight
101
101
  ? this.fitImageHeight
102
- : 'cover'} lazy`, src: this.placeholder, alt: ((_j = (_h = this.productData) === null || _h === void 0 ? void 0 : _h.image) === null || _j === void 0 ? void 0 : _j.alt) || ((_k = this.productData) === null || _k === void 0 ? void 0 : _k.name), "data-src": ((_m = (_l = this.productData) === null || _l === void 0 ? void 0 : _l.image) === null || _m === void 0 ? void 0 : _m.url) || ((_o = this.productData) === null || _o === void 0 ? void 0 : _o.thumbnail) }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", Object.assign({ key: 'd2aa2c8aeb964acb3d8fd557dd741304f24a0c62' }, hrefProp, { class: "s-product-card-overlay" })), !this.horizontal && !this.fullImage ?
103
- h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'c18bdd0b7e44188107973da15ecbe312984a2d42', class: "s-product-card-content" }, this.isSpecial && ((_p = this.productData) === null || _p === void 0 ? void 0 : _p.quantity) ?
102
+ : 'cover'} lazy`, src: this.placeholder, alt: ((_j = (_h = this.productData) === null || _h === void 0 ? void 0 : _h.image) === null || _j === void 0 ? void 0 : _j.alt) || ((_k = this.productData) === null || _k === void 0 ? void 0 : _k.name), "data-src": ((_m = (_l = this.productData) === null || _l === void 0 ? void 0 : _l.image) === null || _m === void 0 ? void 0 : _m.url) || ((_o = this.productData) === null || _o === void 0 ? void 0 : _o.thumbnail) }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", Object.assign({ key: '7ce28a0b764367d51c8b351793509490cfd1e658' }, hrefProp, { class: "s-product-card-overlay" })), !this.horizontal && !this.fullImage ?
103
+ h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'b4f68d13d035d7de2fab28e6f2c0d026d46d8901', class: "s-product-card-content" }, this.isSpecial && ((_p = this.productData) === null || _p === void 0 ? void 0 : _p.quantity) ?
104
104
  h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number((_q = this.productData) === null || _q === void 0 ? void 0 : _q.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
105
- : '', h("div", { key: 'a397fa2a22942f438abd2b168ad9b21e7272651b', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: 'caa67ecec2f2a2e609868b8be76f6c9160b26ef6', class: "s-product-card-content-title" }, h("a", Object.assign({ key: '4e93a58148a54149d50050226b66e0247049ba5d' }, hrefProp), (_r = this.productData) === null || _r === void 0 ? void 0 : _r.name)), ((_s = this.productData) === null || _s === void 0 ? void 0 : _s.subtitle) && !this.minimal ?
105
+ : '', h("div", { key: '2259cecd4157e62a382d95cb6facde5b73eca1af', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '5b5ec545eb44fefdde1d4e2632b4e55baa86260c', class: "s-product-card-content-title" }, h("a", Object.assign({ key: '9afa68bf465f9c18e304ee462037df0999426696' }, hrefProp), (_r = this.productData) === null || _r === void 0 ? void 0 : _r.name)), ((_s = this.productData) === null || _s === void 0 ? void 0 : _s.subtitle) && !this.minimal ?
106
106
  h("p", { class: "s-product-card-content-subtitle" }, (_t = this.productData) === null || _t === void 0 ? void 0 : _t.subtitle)
107
107
  : ''), ((_u = this.productData) === null || _u === void 0 ? void 0 : _u.donation) && !this.minimal && !this.fullImage ?
108
108
  [h("salla-progress-bar", { donation: (_v = this.productData) === null || _v === void 0 ? void 0 : _v.donation }), h("div", { class: "s-product-card-donation-input" }, ((_x = (_w = this.productData) === null || _w === void 0 ? void 0 : _w.donation) === null || _x === void 0 ? void 0 : _x.can_donate) ?
@@ -111,7 +111,7 @@ export class SallaProductCard {
111
111
  this.addBtn.donatingAmount = e.target.value;
112
112
  }, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
113
113
  : '')]
114
- : '', h("div", { key: '0fc0798a62cbef69503e4ad610708a56e40d7330', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), ((_z = (_y = this.productData) === null || _y === void 0 ? void 0 : _y.rating) === null || _z === void 0 ? void 0 : _z.stars) && !this.minimal ?
114
+ : '', h("div", { key: '7dc9364b456583bbb0a063038eadb971d68d33a1', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), ((_z = (_y = this.productData) === null || _y === void 0 ? void 0 : _y.rating) === null || _z === void 0 ? void 0 : _z.stars) && !this.minimal ?
115
115
  h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
116
116
  : ''), this.isSpecial && this.productData.discount_ends
117
117
  ? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
@@ -46,11 +46,11 @@ export class SallaProductSizeGuide {
46
46
  return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
47
47
  }
48
48
  render() {
49
- return (h("salla-modal", { key: '19fb9060d2a798457a8b04a1be4ac930b8f019d0', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '5d8b451a1ea75428bd14c4f1a78512ecf3706b64', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '4c20d4486c69acafd372346c6af14fec4921b4c2', slot: "loading" }, h("div", { key: '00525e4d2aed130a47e2cc84d6a3ddb42b183563', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '544e03854174f02d593dc4277a987699464a58c8', height: '15px', width: '25%' }), h("div", { key: '9308ca067aed6c5cd89380eed422842aedd6176a', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '394b991b5d67e6509df0fc9b40a76db277aec1ce', height: '40px' }), h("salla-skeleton", { key: '5ce9112b3b0f401e13405dafd559ccf51653610d', height: '40px' }), h("salla-skeleton", { key: 'a0df6462256ded34dfbb0b245aaa7cc15b0c25a9', height: '40px' }), h("salla-skeleton", { key: '8e4df4b93c4695b4135c38af28e2e63e9483f687', height: '40px' })), h("div", { key: 'f35d925ef8c3cd81afcfdf5f9718688978ffd52e', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '345a91da85b0907cba5e98fe71a5ea5b4fae6410', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'e99ec4ef51a3d08955cc3f51ea043101b5265848', height: '10px', width: '75%' }), h("salla-skeleton", { key: '190777f777e8c6cfa9e9b195e7208e809e0e0951', height: '10px', width: '50%' }), h("salla-skeleton", { key: '6201fd43a5be203d62e19414de7d8c9866de1b5f', height: '10px', width: '75%' }), h("salla-skeleton", { key: '4ff1f084b86c57ead7bb037925ba1b24531197fe', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'dae157d70092948423d6611169e1618c7cd4f4d8', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'd9636141df732d39171fb8053f83d4b321497928', height: '10px', width: '60%' }), h("salla-skeleton", { key: '664228d0b715b2b9fb6ce45969bbe5cdc2bf05af', height: '10px', width: '45%' }), h("salla-skeleton", { key: '62e13c6b0489b5549b6110f79c82cd3b710ba688', height: '10px', width: '30%' })))), h("slot", { key: '43360f6f37819c26ba5c79a8795d64d283b6a985', name: "header" }), !this.hasError && !!this.guides ?
49
+ return (h("salla-modal", { key: 'e92e648a22d686acde12a13c08335ed3a601e5d0', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '6131b840918392e03dc9011b7c23e81cb4b9ff36', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '7d7a998886ae6db08057825eae7b2835f73a8ae4', slot: "loading" }, h("div", { key: '518a9e510085c13c9361f656eb26dcec8ae8455d', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '65a92119d1b5f9462dd826a838ee6042075d406a', height: '15px', width: '25%' }), h("div", { key: '3cb1034e05756d34d0e9e41a2d4e8f4bd6d925bd', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'c66e517e8186c83c5bc847a4df87fab31c7f7dbb', height: '40px' }), h("salla-skeleton", { key: '263ae7fde377e75a56d8aa37e814882ac0e9e772', height: '40px' }), h("salla-skeleton", { key: '9f226f26ab6eb1b36cde6cbaedb669d4c034f0a9', height: '40px' }), h("salla-skeleton", { key: 'b5ade5bbaa60f330944c2e868bb9032ef3697bed', height: '40px' })), h("div", { key: 'c0f1d73376efcce4b32fc268c297755c2fc4124e', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: 'd3bc5ffef7ca7b2b46b3a320706fa9f82caf9eed', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'f4a9872abfd909796239032757ee0f24f17fb079', height: '10px', width: '75%' }), h("salla-skeleton", { key: '92f22b9609c9a828c88035edf4b5e765fb5040de', height: '10px', width: '50%' }), h("salla-skeleton", { key: '58c7dc5c2f70ed6454b0f41c21bdf245fe412be3', height: '10px', width: '75%' }), h("salla-skeleton", { key: 'b6a6d2585848f125533614c7bbd741bf30121cc3', height: '10px', width: '100%' }), h("salla-skeleton", { key: '271c7052e3b23d4876c65fa5427ace8b47fd26d9', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'b0618e943218f639eb0be368098f8903fecd939f', height: '10px', width: '60%' }), h("salla-skeleton", { key: 'b4e86e51443897ba56a594be2e92c2dbb53f9a9b', height: '10px', width: '45%' }), h("salla-skeleton", { key: '79e8eb1ed011e9fa22b569eda7be7e50135bef7e', height: '10px', width: '30%' })))), h("slot", { key: '62425e2436d2fee89c66e4b3ea66752bbc407616', name: "header" }), !this.hasError && !!this.guides ?
50
50
  [
51
51
  h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
52
52
  ]
53
- : this.showPlaceholder(), h("slot", { key: 'afead6b5698c439c78e63ad564cf3971f93336df', name: "footer" })));
53
+ : this.showPlaceholder(), h("slot", { key: '6c939d70100e2353436e962d9bd5a9c5f59788e5', name: "footer" })));
54
54
  }
55
55
  static get is() { return "salla-product-size-guide"; }
56
56
  static get originalStyleUrls() {
@@ -80,7 +80,7 @@ export class SallaQuantityInput {
80
80
  return this.host;
81
81
  }
82
82
  render() {
83
- return (h(Host, { key: '3f5aa589afd8d1044064bad5d6dc215cf08e1845', class: "s-quantity-input" }, h("div", { key: 'b7cea22f5fce6dc021b8de6aaf02d45e83696489', class: "s-quantity-input-container" }, h("button", { key: '9f0f917b065032c4d136594980849028163680de', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button" }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'b6d03c3bed40293e47e6ee00d3b6947172ac19c9', name: "increment-button" })), h("input", Object.assign({ key: '5b0be9e137a5e854a940b7911a64752f7caf78c8', class: "s-quantity-input-input" }, this.getInputAttributes(), { ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), min: "1", value: this.quantity })), h("button", { key: 'e614c1919461fe9edb6aec078139607eb512d59e', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button" }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '19c97a9d8455e947e642c560ccaf0c3ce2a5ae30', name: "decrement-button" })))));
83
+ return (h(Host, { key: '3d641a0813512c3ff22e32275dfd709df934e1f1', class: "s-quantity-input" }, h("div", { key: '2682491a551bcff31f07904566f3a2331d3c0240', class: "s-quantity-input-container" }, h("button", { key: '3b5b2551624628dfb98a41a4a1984749290b9c3c', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button" }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'a1263ebcd7fa9fdb5b347e6eef3fe339bae6581a', name: "increment-button" })), h("input", Object.assign({ key: '7e91e2e4d26ee97bca0435351d68f4f456245429', class: "s-quantity-input-input" }, this.getInputAttributes(), { ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), min: "1", value: this.quantity })), h("button", { key: '247d8b99d613ef6117f40685f5f0b899cde19102', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button" }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: 'f59b44ec67c071f36a4885728d5095a2a8e01d85', name: "decrement-button" })))));
84
84
  }
85
85
  static get is() { return "salla-quantity-input"; }
86
86
  static get originalStyleUrls() {
@@ -187,7 +187,7 @@ export class SallaQuickBuy {
187
187
  });
188
188
  }
189
189
  render() {
190
- return h(Host, { key: 'ee1983709e9a97d881cadfce388e7a999a867b64' }, this.quickBuyButton());
190
+ return h(Host, { key: 'f6c7ae2cc1b0b67b1bc85a95602cda238dab6192' }, this.quickBuyButton());
191
191
  }
192
192
  quickBuyButton() {
193
193
  return h("apple-pay-button", { locale: salla.config.get('user.language_code'), onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
@@ -167,7 +167,7 @@ export class SallaReviewCard {
167
167
  }
168
168
  render() {
169
169
  var _a;
170
- return h("div", { key: '8797bb6b8123ab8a8d4536eb990dcde15e1ddd06', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'b2b3bdc4e8a63aae9103eca5274003b49d4bf19e', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '0e64b3fe2ae5e59a1899515c04063f74b9828001', class: "s-review-card-review-content", innerHTML: (_a = this.review) === null || _a === void 0 ? void 0 : _a.content }), renderDivider(), this.renderProductInfo()));
170
+ return h("div", { key: '22c0b4997b5eaa3eee23c642aa8fc778cff7fd22', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'db1391a8d4ddad808f54551b39d9bfeb55466225', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '4c6e9af60e480f5c9f840e7ba95f7c59ba12e172', class: "s-review-card-review-content", innerHTML: (_a = this.review) === null || _a === void 0 ? void 0 : _a.content }), renderDivider(), this.renderProductInfo()));
171
171
  }
172
172
  static get is() { return "salla-review-card"; }
173
173
  static get originalStyleUrls() {
@@ -85,7 +85,7 @@ export class SallaReviews {
85
85
  });
86
86
  }
87
87
  render() {
88
- return (h("div", { key: '0ea9cab5b1f9d4d2b6b74cec987f24c858191217', class: "s-reviews-container" }, h("div", { key: '6f17c3033b419b2eaf01f6dc858a4b7ce23bd2c4', class: "s-reviews-header-wrapper" }, h("h1", { key: '1e043cca8a56542a297449e3ff5d3e52c93e0997', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: 'b5aee5d359c8604a5570991f2a7801b651d8321d', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: '98428b4fde7a2c81567d387c93a9b87ef3245923', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
88
+ return (h("div", { key: 'deed3cdbac9556908c110d96935d6478996caf99', class: "s-reviews-container" }, h("div", { key: '3646aa3266c29d1f371cf3acedaedc726f7e6bac', class: "s-reviews-header-wrapper" }, h("h1", { key: '0a47642eea4e162173374f0a1340fd3068165d30', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '71b0e1f246172b5ea042f7a4dcdc351190a3de3c', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: '50b9ac94feca79ed29d85bfcf4808b0849e4f933', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
89
89
  }
90
90
  static get is() { return "salla-reviews"; }
91
91
  static get originalStyleUrls() {
@@ -145,7 +145,7 @@ export class SallaReviewsPage {
145
145
  }
146
146
  render() {
147
147
  var _a, _b;
148
- return (h("host", { key: '2108b6bebdc8a651705e45d169fb10127c3c215e' }, h("div", { key: '84972824884151462a1040bdc53c334b733cd7fb', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '80905de0950443f7e2b1c28d63bcb7f3fa47dc0c', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'd51385e66a1dee802786b50d063501b6397ce345', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '2fc74d0b61d0377f0d14a5fd15a4d852e6850932', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '8d1363a2b2f6722f1c56445b5ba33a98f241b106', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'eb27d82e25fa609b25d5ca825381285c0a40cc5b', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
148
+ return (h("host", { key: 'f3b06307322a56ad320374a50e13161be4e7cc8a' }, h("div", { key: '3dcabdae4ee87de5c62873f327657991a56bc0e1', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '61bca34f24c52440fd8f736f9a6ab2b37be65c34', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'c29228eaa51e9c202c6031e5f69b95905aa5485a', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '81f964be39231e21cd7c994e7e241e755af54c86', class: "s-reviews-page-filter-wrapper" }, h("label", { key: 'd408952ef5ffba3bedd5e01b5c6edec1aeb34f28', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '5138fdf478aed6fea544dd1adf4d32f715f89532', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
149
149
  this.wrapper = el;
150
150
  } }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
151
151
  : h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), ((_b = (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.links) === null || _b === void 0 ? void 0 : _b.next) && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => { var _a; return (_a = this.infiniteScroll) === null || _a === void 0 ? void 0 : _a.loadNextPage(); }, onKeyUp: () => { var _a; return (_a = this.infiniteScroll) === null || _a === void 0 ? void 0 : _a.loadNextPage(); } }, this.langLoadMore))) : null));
@@ -155,7 +155,7 @@ export class SallaScopees {
155
155
  }
156
156
  render() {
157
157
  var _a, _b, _c, _d;
158
- return (h(Host, { key: '461b2b795372ae1b8f5f4974ec12d9eec65955e6' }, h("salla-modal", { key: '68c6bb5432a7a8301c49f9b8a729f2914fe446f9', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
158
+ return (h(Host, { key: '23748ef5243efc8a5ff9070043ddc507fe817fad' }, h("salla-modal", { key: '3ccb5b554df266e49d4f774e26dd7306dce9b249', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
159
159
  h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
160
160
  :
161
161
  [h("salla-list-tile", { class: ((_a = this.originalScopesList) === null || _a === void 0 ? void 0 : _a.length) ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!((_b = this.originalScopesList) === null || _b === void 0 ? void 0 : _b.length) && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), ((_c = this.originalScopesList) === null || _c === void 0 ? void 0 : _c.length) > this.searchDisplayLimit ?
@@ -125,13 +125,13 @@ export class SallaSearch {
125
125
  }
126
126
  render() {
127
127
  var _a;
128
- const searchContent = h("div", { key: 'a8e02a35996b07c146fbc1e574428e6478badbd1', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, h("div", { key: 'f9bc945e7727d878c6252afc2dfcc5a8450bd558', class: "s-search-input-wrapper" }, h("span", { key: '61973e1e4e06054d7662b89c12d017c9499bbf94', class: "s-search-icon-wrap" }, h("span", { key: '0d2964348a364c69cbbe9763d66ada387713b505', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '5c819913d98115f9a2d9168f4dd34e78cca530b0', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => this.searchInput = input, style: { height: this.height + 'px', borderRadius: this.oval ? this.height / 2 + 'px' : '' } }), this.showAction ?
129
- h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search })) : null), h("div", { key: '7c0a2360f1e327b496d5b9cbbc425f171a1f3a0d', class: "s-search-results" }, (_a = this.results) === null || _a === void 0 ? void 0 :
128
+ const searchContent = h("div", { key: 'ed22d66e43268e8024639db4b3bdfdc78663c162', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => this.container = container }, h("div", { key: '3e6ed06c2a056d6fa6e5f18d03225a2a6eb3bd91', class: "s-search-input-wrapper" }, h("span", { key: '50fe2fd917b7f53d97c4178de03a9b460de53e50', class: "s-search-icon-wrap" }, h("span", { key: 'df7ed0c94180ee796f1634608f0e6984ccbac15c', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '73f564326eec5d12631b7855d853dd229fa00797', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => this.searchInput = input, style: { height: this.height + 'px', borderRadius: this.oval ? this.height / 2 + 'px' : '' } }), this.showAction ?
129
+ h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search })) : null), h("div", { key: 'c8cdfa1f5d102392144389f81639d6c92f8caea5', class: "s-search-results" }, (_a = this.results) === null || _a === void 0 ? void 0 :
130
130
  _a.data.map((product) => h("a", { href: product.url + '?from=search-bar', class: { "s-search-product": true, 's-search-product-not-available': !product.is_available }, innerHTML: this.productSlot
131
131
  .replace(/\{name\}/g, product.name)
132
132
  .replace(/\{price\}/g, product.price ? salla.money(product.price) : '')
133
133
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price ? salla.money(product.regular_price) : '')
134
- .replace(/\{image\}/g, product.image.url) })), h("p", { key: 'a725e4b848084eb5b336047ec7e7bf4149e1b305', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
134
+ .replace(/\{image\}/g, product.image.url) })), h("p", { key: '7daf87c934b2fce3555755b1d326e3486e6a2bc2', ref: el => this.noResults = el, class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options'))));
135
135
  return (this.inline ?
136
136
  h("div", { class: "s-search-modal" }, searchContent)
137
137
  :
@@ -22,7 +22,7 @@ export class SallaSkeleton {
22
22
  's-skeleton-item': true,
23
23
  's-skeleton-item-circular': this.type == 'circle',
24
24
  };
25
- return (h(Host, { key: '15babc66d2b39986bfb5f36d00b3b172de353dee', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '6e488ec0e8b38290f7a740526163dbd3f392431a', class: classes }, "\u00A0")));
25
+ return (h(Host, { key: 'f57ae59c20db39c4c9c47f777d229768071e2553', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '0214a933f54acfd816f3cf1c510374c918469c5e', class: classes }, "\u00A0")));
26
26
  }
27
27
  static get is() { return "salla-skeleton"; }
28
28
  static get originalStyleUrls() {