@aiconomy/aico-components 0.0.14 → 0.0.57

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 (568) hide show
  1. package/README.md +67 -57
  2. package/dist/aico-components/aico-components.css +6 -0
  3. package/dist/aico-components/aico-components.esm.js +1 -1
  4. package/dist/aico-components/aico-components.esm.js.map +1 -1
  5. package/dist/aico-components/assets/slick/ajax-loader.gif +0 -0
  6. package/dist/aico-components/assets/slick/slick.eot +0 -0
  7. package/dist/aico-components/assets/slick/slick.svg +14 -0
  8. package/dist/aico-components/assets/slick/slick.ttf +0 -0
  9. package/dist/aico-components/assets/slick/slick.woff +0 -0
  10. package/dist/aico-components/p-0ca1f065.entry.js +2 -0
  11. package/dist/aico-components/p-0ca1f065.entry.js.map +1 -0
  12. package/dist/aico-components/p-1c4a07ef.entry.js +7 -0
  13. package/dist/aico-components/p-1c4a07ef.entry.js.map +1 -0
  14. package/dist/aico-components/p-406fa2e5.entry.js +2 -0
  15. package/dist/aico-components/p-406fa2e5.entry.js.map +1 -0
  16. package/dist/aico-components/p-4c0f3325.entry.js +2 -0
  17. package/dist/aico-components/p-4c0f3325.entry.js.map +1 -0
  18. package/dist/aico-components/p-5109399b.entry.js +2 -0
  19. package/dist/aico-components/p-5109399b.entry.js.map +1 -0
  20. package/dist/aico-components/p-6464810e.entry.js +2 -0
  21. package/dist/aico-components/p-6464810e.entry.js.map +1 -0
  22. package/dist/aico-components/p-68930822.entry.js +2 -0
  23. package/dist/aico-components/p-68930822.entry.js.map +1 -0
  24. package/dist/aico-components/p-86c7fdc7.js +13 -0
  25. package/dist/aico-components/p-86c7fdc7.js.map +1 -0
  26. package/dist/aico-components/p-90c2d3dc.entry.js +2 -0
  27. package/dist/aico-components/p-90c2d3dc.entry.js.map +1 -0
  28. package/dist/aico-components/p-ae20e789.js +3 -0
  29. package/dist/aico-components/p-ae20e789.js.map +1 -0
  30. package/dist/aico-components/p-b1f8308f.entry.js +2 -0
  31. package/dist/aico-components/p-b1f8308f.entry.js.map +1 -0
  32. package/dist/aico-components/p-dfd3b0d3.js +2 -0
  33. package/dist/aico-components/p-dfd3b0d3.js.map +1 -0
  34. package/dist/cjs/aico-album-content_19.cjs.entry.js +6904 -0
  35. package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -0
  36. package/dist/cjs/aico-article-detail.cjs.entry.js +124 -0
  37. package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -0
  38. package/dist/cjs/aico-asking-list-content.cjs.entry.js +21 -0
  39. package/dist/cjs/aico-asking-list-content.cjs.entry.js.map +1 -0
  40. package/dist/cjs/aico-collection-content.cjs.entry.js +21 -0
  41. package/dist/cjs/aico-collection-content.cjs.entry.js.map +1 -0
  42. package/dist/cjs/aico-components.cjs.js +2 -2
  43. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +44 -0
  44. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -0
  45. package/dist/cjs/aico-news-list-item.cjs.entry.js +27 -0
  46. package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -0
  47. package/dist/cjs/aico-news-list.cjs.entry.js +92 -0
  48. package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -0
  49. package/dist/cjs/aico-no-content_2.cjs.entry.js +49 -0
  50. package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -0
  51. package/dist/cjs/aico-special-news-carousel.cjs.entry.js +60 -0
  52. package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -0
  53. package/dist/cjs/{index-222c33f1.js → index-e52034b7.js} +864 -28
  54. package/dist/cjs/index-e52034b7.js.map +1 -0
  55. package/dist/cjs/loader.cjs.js +2 -2
  56. package/dist/cjs/slick-d0dfbd94.js +13662 -0
  57. package/dist/cjs/slick-d0dfbd94.js.map +1 -0
  58. package/dist/cjs/utils-095ed22b.js +101 -0
  59. package/dist/cjs/utils-095ed22b.js.map +1 -0
  60. package/dist/collection/assets/slick/ajax-loader.gif +0 -0
  61. package/dist/collection/assets/slick/slick.eot +0 -0
  62. package/dist/collection/assets/slick/slick.svg +14 -0
  63. package/dist/collection/assets/slick/slick.ttf +0 -0
  64. package/dist/collection/assets/slick/slick.woff +0 -0
  65. package/dist/collection/collection-manifest.json +28 -1
  66. package/dist/collection/components/aico-article-detail/aico-article-detail.css +0 -0
  67. package/dist/collection/components/aico-article-detail/aico-article-detail.js +117 -0
  68. package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -0
  69. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js +6 -0
  70. package/dist/collection/components/aico-article-detail/test/aico-article-detail.e2e.js.map +1 -0
  71. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js +6 -0
  72. package/dist/collection/components/aico-article-detail/test/aico-article-detail.spec.js.map +1 -0
  73. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.css +0 -0
  74. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +121 -0
  75. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -0
  76. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +25 -0
  77. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -0
  78. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js +6 -0
  79. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.e2e.js.map +1 -0
  80. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js +6 -0
  81. package/dist/collection/components/aico-fetch-article-detail/test/aico-fetch-article-detail.spec.js.map +1 -0
  82. package/dist/collection/components/aico-news-list/aico-news-list.css +0 -0
  83. package/dist/collection/components/aico-news-list/aico-news-list.js +195 -0
  84. package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -0
  85. package/dist/collection/components/aico-news-list/aico-news-list.stories.js +24 -0
  86. package/dist/collection/components/aico-news-list/aico-news-list.stories.js.map +1 -0
  87. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js +6 -0
  88. package/dist/collection/components/aico-news-list/test/aico-news-list.e2e.js.map +1 -0
  89. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js +6 -0
  90. package/dist/collection/components/aico-news-list/test/aico-news-list.spec.js.map +1 -0
  91. package/dist/collection/components/aico-news-list-item/aico-news-list-item.css +0 -0
  92. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +75 -0
  93. package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -0
  94. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js +61 -0
  95. package/dist/collection/components/aico-news-list-item/aico-news-list-item.stories.js.map +1 -0
  96. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js +6 -0
  97. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.e2e.js.map +1 -0
  98. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js +6 -0
  99. package/dist/collection/components/aico-news-list-item/test/aico-news-list-item.spec.js.map +1 -0
  100. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.css +3 -0
  101. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +145 -0
  102. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -0
  103. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js +30 -0
  104. package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.stories.js.map +1 -0
  105. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js +6 -0
  106. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.e2e.js.map +1 -0
  107. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js +6 -0
  108. package/dist/collection/components/aico-special-news-carousel/test/aico-special-news-carousel.spec.js.map +1 -0
  109. package/dist/collection/components/content/aico-album-content/aico-album-content.css +0 -0
  110. package/dist/collection/components/content/aico-album-content/aico-album-content.js +104 -0
  111. package/dist/collection/components/content/aico-album-content/aico-album-content.js.map +1 -0
  112. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js +70 -0
  113. package/dist/collection/components/content/aico-album-content/aico-album-content.stories.js.map +1 -0
  114. package/dist/collection/components/content/aico-asking-content/aico-asking-content.css +63 -0
  115. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +49 -0
  116. package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -0
  117. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +37 -0
  118. package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -0
  119. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.css +85 -0
  120. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js +19 -0
  121. package/dist/collection/components/content/aico-asking-list-content/aico-asking-list-content.js.map +1 -0
  122. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.css +0 -0
  123. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +49 -0
  124. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -0
  125. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +26 -0
  126. package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -0
  127. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.css +0 -0
  128. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +79 -0
  129. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -0
  130. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +71 -0
  131. package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -0
  132. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.css +1 -0
  133. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +95 -0
  134. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -0
  135. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +73 -0
  136. package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -0
  137. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js +19 -0
  138. package/dist/collection/components/content/aico-collection-content/aico-collection-content.js.map +1 -0
  139. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.css +0 -0
  140. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +62 -0
  141. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -0
  142. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +26 -0
  143. package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -0
  144. package/dist/collection/components/content/aico-divider-content/aico-divider-content.css +0 -0
  145. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +49 -0
  146. package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -0
  147. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +23 -0
  148. package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -0
  149. package/dist/collection/components/content/aico-document-content/aico-document-content.css +8 -0
  150. package/dist/collection/components/content/aico-document-content/aico-document-content.js +73 -0
  151. package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -0
  152. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +30 -0
  153. package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -0
  154. package/dist/collection/components/content/aico-faq-content/aico-faq-content.css +0 -0
  155. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +54 -0
  156. package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -0
  157. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +60 -0
  158. package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -0
  159. package/dist/collection/components/content/aico-heading-content/aico-heading-content.css +36 -0
  160. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +81 -0
  161. package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -0
  162. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +31 -0
  163. package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -0
  164. package/dist/collection/components/content/aico-html-content/aico-html-content.css +3 -0
  165. package/dist/collection/components/content/aico-html-content/aico-html-content.js +52 -0
  166. package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -0
  167. package/dist/collection/components/content/aico-link-content/aico-link-content.css +37 -0
  168. package/dist/collection/components/content/aico-link-content/aico-link-content.js +68 -0
  169. package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -0
  170. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +59 -0
  171. package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -0
  172. package/dist/collection/components/content/aico-news-content/aico-news-content.css +11 -0
  173. package/dist/collection/components/content/aico-news-content/aico-news-content.js +79 -0
  174. package/dist/collection/components/content/aico-news-content/aico-news-content.js.map +1 -0
  175. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js +43 -0
  176. package/dist/collection/components/content/aico-news-content/aico-news-content.stories.js.map +1 -0
  177. package/dist/collection/components/content/aico-no-content/aico-no-content.css +3 -0
  178. package/dist/collection/components/content/aico-no-content/aico-no-content.js +19 -0
  179. package/dist/collection/components/content/aico-no-content/aico-no-content.js.map +1 -0
  180. package/dist/collection/components/content/aico-page-content/aico-page-content.css +3 -0
  181. package/dist/collection/components/content/aico-page-content/aico-page-content.js +79 -0
  182. package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -0
  183. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +37 -0
  184. package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -0
  185. package/dist/collection/components/content/aico-table-content/aico-table-content.css +21 -0
  186. package/dist/collection/components/content/aico-table-content/aico-table-content.js +73 -0
  187. package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -0
  188. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +130 -0
  189. package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -0
  190. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.css +93 -0
  191. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js +51 -0
  192. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.js.map +1 -0
  193. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js +23 -0
  194. package/dist/collection/components/content/aico-testimonial-content/aico-testimonial-content.stories.js.map +1 -0
  195. package/dist/collection/components/content/aico-text-content/aico-text-content.css +0 -0
  196. package/dist/collection/components/content/aico-text-content/aico-text-content.js +127 -0
  197. package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -0
  198. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +173 -0
  199. package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -0
  200. package/dist/collection/components/content/aico-title-content/aico-title-content.css +3 -0
  201. package/dist/collection/components/content/aico-title-content/aico-title-content.js +61 -0
  202. package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -0
  203. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +28 -0
  204. package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -0
  205. package/dist/collection/components/content/aico-upload-content/aico-upload-content.css +3 -0
  206. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +66 -0
  207. package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -0
  208. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +39 -0
  209. package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -0
  210. package/dist/collection/components/content/aico-video-content/aico-video-content.css +10 -0
  211. package/dist/collection/components/content/aico-video-content/aico-video-content.js +62 -0
  212. package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -0
  213. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +43 -0
  214. package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -0
  215. package/dist/collection/model/AicoApiRequestInfo.js +13 -0
  216. package/dist/collection/model/AicoApiRequestInfo.js.map +1 -0
  217. package/dist/collection/model/Article.js +2 -0
  218. package/dist/collection/model/Article.js.map +1 -0
  219. package/dist/collection/model/Entity.js +7 -0
  220. package/dist/collection/model/Entity.js.map +1 -0
  221. package/dist/collection/model/NewsCategory.js +2 -0
  222. package/dist/collection/model/NewsCategory.js.map +1 -0
  223. package/dist/collection/model/NewsResponse.js +2 -0
  224. package/dist/collection/model/NewsResponse.js.map +1 -0
  225. package/dist/collection/model/article/ContentType.js +33 -0
  226. package/dist/collection/model/article/ContentType.js.map +1 -0
  227. package/dist/collection/model/article/Translation.js +8 -0
  228. package/dist/collection/model/article/Translation.js.map +1 -0
  229. package/dist/collection/model/article/content/AlbumContent.js +2 -0
  230. package/dist/collection/model/article/content/AlbumContent.js.map +1 -0
  231. package/dist/collection/model/article/content/AskingContent.js +21 -0
  232. package/dist/collection/model/article/content/AskingContent.js.map +1 -0
  233. package/dist/collection/model/article/content/AskingListContent.js +7 -0
  234. package/dist/collection/model/article/content/AskingListContent.js.map +1 -0
  235. package/dist/collection/model/article/content/BlockQuoteContent.js +2 -0
  236. package/dist/collection/model/article/content/BlockQuoteContent.js.map +1 -0
  237. package/dist/collection/model/article/content/BulletContent.js +2 -0
  238. package/dist/collection/model/article/content/BulletContent.js.map +1 -0
  239. package/dist/collection/model/article/content/CardContent.js +2 -0
  240. package/dist/collection/model/article/content/CardContent.js.map +1 -0
  241. package/dist/collection/model/article/content/CarouselContent.js +2 -0
  242. package/dist/collection/model/article/content/CarouselContent.js.map +1 -0
  243. package/dist/collection/model/article/content/CollectionContent.js +52 -0
  244. package/dist/collection/model/article/content/CollectionContent.js.map +1 -0
  245. package/dist/collection/model/article/content/DividerContent.js +2 -0
  246. package/dist/collection/model/article/content/DividerContent.js.map +1 -0
  247. package/dist/collection/model/article/content/DocumentContent.js +2 -0
  248. package/dist/collection/model/article/content/DocumentContent.js.map +1 -0
  249. package/dist/collection/model/article/content/FaqContent.js +12 -0
  250. package/dist/collection/model/article/content/FaqContent.js.map +1 -0
  251. package/dist/collection/model/article/content/HeadingContent.js +2 -0
  252. package/dist/collection/model/article/content/HeadingContent.js.map +1 -0
  253. package/dist/collection/model/article/content/HtmlContent.js +2 -0
  254. package/dist/collection/model/article/content/HtmlContent.js.map +1 -0
  255. package/dist/collection/model/article/content/LinkContent.js +2 -0
  256. package/dist/collection/model/article/content/LinkContent.js.map +1 -0
  257. package/dist/collection/model/article/content/NewsContent.js +19 -0
  258. package/dist/collection/model/article/content/NewsContent.js.map +1 -0
  259. package/dist/collection/model/article/content/PageContent.js +37 -0
  260. package/dist/collection/model/article/content/PageContent.js.map +1 -0
  261. package/dist/collection/model/article/content/TableContet.js +2 -0
  262. package/dist/collection/model/article/content/TableContet.js.map +1 -0
  263. package/dist/collection/model/article/content/TestimonialContent.js +2 -0
  264. package/dist/collection/model/article/content/TestimonialContent.js.map +1 -0
  265. package/dist/collection/model/article/content/TextContent.js +2 -0
  266. package/dist/collection/model/article/content/TextContent.js.map +1 -0
  267. package/dist/collection/model/article/content/TitleContent.js +2 -0
  268. package/dist/collection/model/article/content/TitleContent.js.map +1 -0
  269. package/dist/collection/model/article/content/UploadContent.js +13 -0
  270. package/dist/collection/model/article/content/UploadContent.js.map +1 -0
  271. package/dist/collection/model/article/content/VideoContent.js +2 -0
  272. package/dist/collection/model/article/content/VideoContent.js.map +1 -0
  273. package/dist/collection/model/article/content/news/NewsAlbum.js +20 -0
  274. package/dist/collection/model/article/content/news/NewsAlbum.js.map +1 -0
  275. package/dist/collection/model/article/content/news/NewsArticle.js +43 -0
  276. package/dist/collection/model/article/content/news/NewsArticle.js.map +1 -0
  277. package/dist/collection/model/article/content/news/NewsCategory.js +17 -0
  278. package/dist/collection/model/article/content/news/NewsCategory.js.map +1 -0
  279. package/dist/collection/model/article/content/news/NewsTag.js +10 -0
  280. package/dist/collection/model/article/content/news/NewsTag.js.map +1 -0
  281. package/dist/collection/utils/ConditionalRender.js +5 -0
  282. package/dist/collection/utils/ConditionalRender.js.map +1 -0
  283. package/dist/collection/utils/ConditionalWrap.js +5 -0
  284. package/dist/collection/utils/ConditionalWrap.js.map +1 -0
  285. package/dist/collection/utils/utils.js +83 -2
  286. package/dist/collection/utils/utils.js.map +1 -1
  287. package/dist/collection/utils/utils.spec.js +4 -14
  288. package/dist/collection/utils/utils.spec.js.map +1 -1
  289. package/dist/components/ConditionalRender.js +7 -0
  290. package/dist/components/ConditionalRender.js.map +1 -0
  291. package/dist/components/aico-album-content.d.ts +11 -0
  292. package/dist/components/aico-album-content.js +8 -0
  293. package/dist/components/aico-album-content.js.map +1 -0
  294. package/dist/components/aico-album-content2.js +90 -0
  295. package/dist/components/aico-album-content2.js.map +1 -0
  296. package/dist/components/aico-article-detail.d.ts +11 -0
  297. package/dist/components/aico-article-detail.js +8 -0
  298. package/dist/components/aico-article-detail.js.map +1 -0
  299. package/dist/components/aico-article-detail2.js +262 -0
  300. package/dist/components/aico-article-detail2.js.map +1 -0
  301. package/dist/components/aico-asking-content.d.ts +11 -0
  302. package/dist/components/aico-asking-content.js +8 -0
  303. package/dist/components/aico-asking-content.js.map +1 -0
  304. package/dist/components/aico-asking-content2.js +36 -0
  305. package/dist/components/aico-asking-content2.js.map +1 -0
  306. package/dist/components/aico-asking-list-content.d.ts +11 -0
  307. package/dist/components/aico-asking-list-content.js +34 -0
  308. package/dist/components/aico-asking-list-content.js.map +1 -0
  309. package/dist/components/aico-block-quote-content.d.ts +11 -0
  310. package/dist/components/aico-block-quote-content.js +8 -0
  311. package/dist/components/aico-block-quote-content.js.map +1 -0
  312. package/dist/components/aico-block-quote-content2.js +36 -0
  313. package/dist/components/aico-block-quote-content2.js.map +1 -0
  314. package/dist/components/aico-bullet-content.d.ts +11 -0
  315. package/dist/components/aico-bullet-content.js +8 -0
  316. package/dist/components/aico-bullet-content.js.map +1 -0
  317. package/dist/components/aico-bullet-content2.js +78 -0
  318. package/dist/components/aico-bullet-content2.js.map +1 -0
  319. package/dist/components/aico-carousel-content.d.ts +11 -0
  320. package/dist/components/aico-carousel-content.js +8 -0
  321. package/dist/components/aico-carousel-content.js.map +1 -0
  322. package/dist/components/aico-carousel-content2.js +76 -0
  323. package/dist/components/aico-carousel-content2.js.map +1 -0
  324. package/dist/components/aico-collection-content.d.ts +11 -0
  325. package/dist/components/aico-collection-content.js +34 -0
  326. package/dist/components/aico-collection-content.js.map +1 -0
  327. package/dist/components/aico-content-card-content.d.ts +11 -0
  328. package/dist/components/aico-content-card-content.js +8 -0
  329. package/dist/components/aico-content-card-content.js.map +1 -0
  330. package/dist/components/aico-content-card-content2.js +61 -0
  331. package/dist/components/aico-content-card-content2.js.map +1 -0
  332. package/dist/components/aico-divider-content.d.ts +11 -0
  333. package/dist/components/aico-divider-content.js +8 -0
  334. package/dist/components/aico-divider-content.js.map +1 -0
  335. package/dist/components/aico-divider-content2.js +36 -0
  336. package/dist/components/aico-divider-content2.js.map +1 -0
  337. package/dist/components/aico-document-content.d.ts +11 -0
  338. package/dist/components/aico-document-content.js +8 -0
  339. package/dist/components/aico-document-content.js.map +1 -0
  340. package/dist/components/aico-document-content2.js +60 -0
  341. package/dist/components/aico-document-content2.js.map +1 -0
  342. package/dist/components/aico-faq-content.d.ts +11 -0
  343. package/dist/components/aico-faq-content.js +8 -0
  344. package/dist/components/aico-faq-content.js.map +1 -0
  345. package/dist/components/aico-faq-content2.js +41 -0
  346. package/dist/components/aico-faq-content2.js.map +1 -0
  347. package/dist/components/aico-fetch-article-detail.d.ts +11 -0
  348. package/dist/components/aico-fetch-article-detail.js +195 -0
  349. package/dist/components/aico-fetch-article-detail.js.map +1 -0
  350. package/dist/components/aico-heading-content.d.ts +11 -0
  351. package/dist/components/aico-heading-content.js +8 -0
  352. package/dist/components/aico-heading-content.js.map +1 -0
  353. package/dist/components/aico-heading-content2.js +80 -0
  354. package/dist/components/aico-heading-content2.js.map +1 -0
  355. package/dist/components/aico-html-content.d.ts +11 -0
  356. package/dist/components/aico-html-content.js +8 -0
  357. package/dist/components/aico-html-content.js.map +1 -0
  358. package/dist/components/aico-html-content2.js +45 -0
  359. package/dist/components/aico-html-content2.js.map +1 -0
  360. package/dist/components/aico-link-content.d.ts +11 -0
  361. package/dist/components/aico-link-content.js +8 -0
  362. package/dist/components/aico-link-content.js.map +1 -0
  363. package/dist/components/aico-link-content2.js +55 -0
  364. package/dist/components/aico-link-content2.js.map +1 -0
  365. package/dist/components/aico-news-content.d.ts +11 -0
  366. package/dist/components/aico-news-content.js +8 -0
  367. package/dist/components/aico-news-content.js.map +1 -0
  368. package/dist/components/aico-news-content2.js +43 -0
  369. package/dist/components/aico-news-content2.js.map +1 -0
  370. package/dist/components/aico-news-list-item.d.ts +11 -0
  371. package/dist/components/aico-news-list-item.js +8 -0
  372. package/dist/components/aico-news-list-item.js.map +1 -0
  373. package/dist/components/aico-news-list-item2.js +39 -0
  374. package/dist/components/aico-news-list-item2.js.map +1 -0
  375. package/dist/components/{my-component.d.ts → aico-news-list.d.ts} +4 -4
  376. package/dist/components/aico-news-list.js +118 -0
  377. package/dist/components/aico-news-list.js.map +1 -0
  378. package/dist/components/aico-no-content.d.ts +11 -0
  379. package/dist/components/aico-no-content.js +8 -0
  380. package/dist/components/aico-no-content.js.map +1 -0
  381. package/dist/components/aico-no-content2.js +31 -0
  382. package/dist/components/aico-no-content2.js.map +1 -0
  383. package/dist/components/aico-page-content.d.ts +11 -0
  384. package/dist/components/aico-page-content.js +8 -0
  385. package/dist/components/aico-page-content.js.map +1 -0
  386. package/dist/components/aico-page-content2.js +43 -0
  387. package/dist/components/aico-page-content2.js.map +1 -0
  388. package/dist/components/aico-special-news-carousel.d.ts +11 -0
  389. package/dist/components/aico-special-news-carousel.js +78 -0
  390. package/dist/components/aico-special-news-carousel.js.map +1 -0
  391. package/dist/components/aico-table-content.d.ts +11 -0
  392. package/dist/components/aico-table-content.js +8 -0
  393. package/dist/components/aico-table-content.js.map +1 -0
  394. package/dist/components/aico-table-content2.js +72 -0
  395. package/dist/components/aico-table-content2.js.map +1 -0
  396. package/dist/components/aico-testimonial-content.d.ts +11 -0
  397. package/dist/components/aico-testimonial-content.js +8 -0
  398. package/dist/components/aico-testimonial-content.js.map +1 -0
  399. package/dist/components/aico-testimonial-content2.js +38 -0
  400. package/dist/components/aico-testimonial-content2.js.map +1 -0
  401. package/dist/components/aico-text-content.d.ts +11 -0
  402. package/dist/components/aico-text-content.js +8 -0
  403. package/dist/components/aico-text-content.js.map +1 -0
  404. package/dist/components/aico-text-content2.js +125 -0
  405. package/dist/components/aico-text-content2.js.map +1 -0
  406. package/dist/components/aico-title-content.d.ts +11 -0
  407. package/dist/components/aico-title-content.js +8 -0
  408. package/dist/components/aico-title-content.js.map +1 -0
  409. package/dist/components/aico-title-content2.js +54 -0
  410. package/dist/components/aico-title-content2.js.map +1 -0
  411. package/dist/components/aico-upload-content.d.ts +11 -0
  412. package/dist/components/aico-upload-content.js +8 -0
  413. package/dist/components/aico-upload-content.js.map +1 -0
  414. package/dist/components/aico-upload-content2.js +65 -0
  415. package/dist/components/aico-upload-content2.js.map +1 -0
  416. package/dist/components/aico-video-content.d.ts +11 -0
  417. package/dist/components/aico-video-content.js +8 -0
  418. package/dist/components/aico-video-content.js.map +1 -0
  419. package/dist/components/aico-video-content2.js +61 -0
  420. package/dist/components/aico-video-content2.js.map +1 -0
  421. package/dist/components/assets/slick/ajax-loader.gif +0 -0
  422. package/dist/components/assets/slick/slick.eot +0 -0
  423. package/dist/components/assets/slick/slick.svg +14 -0
  424. package/dist/components/assets/slick/slick.ttf +0 -0
  425. package/dist/components/assets/slick/slick.woff +0 -0
  426. package/dist/components/bootstrap.esm.js +6265 -0
  427. package/dist/components/bootstrap.esm.js.map +1 -0
  428. package/dist/components/slick.js +13660 -0
  429. package/dist/components/slick.js.map +1 -0
  430. package/dist/components/utils.js +92 -0
  431. package/dist/components/utils.js.map +1 -0
  432. package/dist/esm/aico-album-content_19.entry.js +6882 -0
  433. package/dist/esm/aico-album-content_19.entry.js.map +1 -0
  434. package/dist/esm/aico-article-detail.entry.js +120 -0
  435. package/dist/esm/aico-article-detail.entry.js.map +1 -0
  436. package/dist/esm/aico-asking-list-content.entry.js +17 -0
  437. package/dist/esm/aico-asking-list-content.entry.js.map +1 -0
  438. package/dist/esm/aico-collection-content.entry.js +17 -0
  439. package/dist/esm/aico-collection-content.entry.js.map +1 -0
  440. package/dist/esm/aico-components.js +3 -3
  441. package/dist/esm/aico-fetch-article-detail.entry.js +40 -0
  442. package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -0
  443. package/dist/esm/aico-news-list-item.entry.js +23 -0
  444. package/dist/esm/aico-news-list-item.entry.js.map +1 -0
  445. package/dist/esm/aico-news-list.entry.js +88 -0
  446. package/dist/esm/aico-news-list.entry.js.map +1 -0
  447. package/dist/esm/aico-no-content_2.entry.js +44 -0
  448. package/dist/esm/aico-no-content_2.entry.js.map +1 -0
  449. package/dist/esm/aico-special-news-carousel.entry.js +56 -0
  450. package/dist/esm/aico-special-news-carousel.entry.js.map +1 -0
  451. package/dist/esm/{index-72708389.js → index-4621a8ba.js} +862 -29
  452. package/dist/esm/index-4621a8ba.js.map +1 -0
  453. package/dist/esm/loader.js +3 -3
  454. package/dist/esm/slick-d11cf173.js +13660 -0
  455. package/dist/esm/slick-d11cf173.js.map +1 -0
  456. package/dist/esm/utils-54ffec33.js +92 -0
  457. package/dist/esm/utils-54ffec33.js.map +1 -0
  458. package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +10 -0
  459. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +26 -0
  460. package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.d.ts +7 -0
  461. package/dist/types/components/aico-news-list/aico-news-list.d.ts +21 -0
  462. package/dist/types/components/aico-news-list/aico-news-list.stories.d.ts +7 -0
  463. package/dist/types/components/aico-news-list-item/aico-news-list-item.d.ts +7 -0
  464. package/dist/types/components/aico-news-list-item/aico-news-list-item.stories.d.ts +6 -0
  465. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +19 -0
  466. package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.stories.d.ts +7 -0
  467. package/dist/types/components/content/aico-album-content/aico-album-content.d.ts +7 -0
  468. package/dist/types/components/content/aico-album-content/aico-album-content.stories.d.ts +5 -0
  469. package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +5 -0
  470. package/dist/types/components/content/aico-asking-list-content/aico-asking-list-content.d.ts +3 -0
  471. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +5 -0
  472. package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.stories.d.ts +6 -0
  473. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +6 -0
  474. package/dist/types/components/content/aico-bullet-content/aico-bullet-content.stories.d.ts +6 -0
  475. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +9 -0
  476. package/dist/types/components/content/aico-carousel-content/aico-carousel-content.stories.d.ts +6 -0
  477. package/dist/types/components/content/aico-collection-content/aico-collection-content.d.ts +3 -0
  478. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +6 -0
  479. package/dist/types/components/content/aico-content-card-content/aico-content-card-content.stories.d.ts +6 -0
  480. package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +5 -0
  481. package/dist/types/components/content/aico-divider-content/aico-divider-content.stories.d.ts +6 -0
  482. package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +5 -0
  483. package/dist/types/components/content/aico-document-content/aico-document-content.stories.d.ts +6 -0
  484. package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +6 -0
  485. package/dist/types/components/content/aico-faq-content/aico-faq-content.stories.d.ts +6 -0
  486. package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +6 -0
  487. package/dist/types/components/content/aico-heading-content/aico-heading-content.stories.d.ts +6 -0
  488. package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +5 -0
  489. package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +5 -0
  490. package/dist/types/components/content/aico-link-content/aico-link-content.stories.d.ts +7 -0
  491. package/dist/types/components/content/aico-news-content/aico-news-content.d.ts +8 -0
  492. package/dist/types/components/content/aico-news-content/aico-news-content.stories.d.ts +5 -0
  493. package/dist/types/components/content/aico-no-content/aico-no-content.d.ts +3 -0
  494. package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +7 -0
  495. package/dist/types/components/content/aico-page-content/aico-page-content.stories.d.ts +5 -0
  496. package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +6 -0
  497. package/dist/types/components/content/aico-table-content/aico-table-content.stories.d.ts +6 -0
  498. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.d.ts +5 -0
  499. package/dist/types/components/content/aico-testimonial-content/aico-testimonial-content.stories.d.ts +6 -0
  500. package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +12 -0
  501. package/dist/types/components/content/aico-text-content/aico-text-content.stories.d.ts +10 -0
  502. package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +5 -0
  503. package/dist/types/components/content/aico-title-content/aico-title-content.stories.d.ts +5 -0
  504. package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +6 -0
  505. package/dist/types/components/content/aico-upload-content/aico-upload-content.stories.d.ts +5 -0
  506. package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +6 -0
  507. package/dist/types/components/content/aico-video-content/aico-video-content.stories.d.ts +7 -0
  508. package/dist/types/components.d.ts +556 -25
  509. package/dist/types/model/AicoApiRequestInfo.d.ts +6 -0
  510. package/dist/types/model/Article.d.ts +103 -0
  511. package/dist/types/model/Entity.d.ts +15 -0
  512. package/dist/types/model/NewsCategory.d.ts +14 -0
  513. package/dist/types/model/NewsResponse.d.ts +25 -0
  514. package/dist/types/model/article/ContentType.d.ts +31 -0
  515. package/dist/types/model/article/Translation.d.ts +24 -0
  516. package/dist/types/model/article/content/AlbumContent.d.ts +26 -0
  517. package/dist/types/model/article/content/AskingContent.d.ts +152 -0
  518. package/dist/types/model/article/content/AskingListContent.d.ts +17 -0
  519. package/dist/types/model/article/content/BlockQuoteContent.d.ts +11 -0
  520. package/dist/types/model/article/content/BulletContent.d.ts +14 -0
  521. package/dist/types/model/article/content/CardContent.d.ts +10 -0
  522. package/dist/types/model/article/content/CarouselContent.d.ts +12 -0
  523. package/dist/types/model/article/content/CollectionContent.d.ts +364 -0
  524. package/dist/types/model/article/content/DividerContent.d.ts +8 -0
  525. package/dist/types/model/article/content/DocumentContent.d.ts +19 -0
  526. package/dist/types/model/article/content/FaqContent.d.ts +106 -0
  527. package/dist/types/model/article/content/HeadingContent.d.ts +16 -0
  528. package/dist/types/model/article/content/HtmlContent.d.ts +5 -0
  529. package/dist/types/model/article/content/LinkContent.d.ts +23 -0
  530. package/dist/types/model/article/content/NewsContent.d.ts +836 -0
  531. package/dist/types/model/article/content/PageContent.d.ts +313 -0
  532. package/dist/types/model/article/content/TableContet.d.ts +30 -0
  533. package/dist/types/model/article/content/TestimonialContent.d.ts +9 -0
  534. package/dist/types/model/article/content/TextContent.d.ts +39 -0
  535. package/dist/types/model/article/content/TitleContent.d.ts +9 -0
  536. package/dist/types/model/article/content/UploadContent.d.ts +77 -0
  537. package/dist/types/model/article/content/VideoContent.d.ts +14 -0
  538. package/dist/types/model/article/content/news/NewsAlbum.d.ts +150 -0
  539. package/dist/types/model/article/content/news/NewsArticle.d.ts +577 -0
  540. package/dist/types/model/article/content/news/NewsCategory.d.ts +88 -0
  541. package/dist/types/model/article/content/news/NewsTag.d.ts +63 -0
  542. package/dist/types/utils/ConditionalRender.d.ts +6 -0
  543. package/dist/types/utils/ConditionalWrap.d.ts +7 -0
  544. package/dist/types/utils/utils.d.ts +14 -1
  545. package/package.json +13 -4
  546. package/dist/aico-components/p-23b28a55.js +0 -3
  547. package/dist/aico-components/p-23b28a55.js.map +0 -1
  548. package/dist/aico-components/p-efd6913d.entry.js +0 -2
  549. package/dist/aico-components/p-efd6913d.entry.js.map +0 -1
  550. package/dist/cjs/index-222c33f1.js.map +0 -1
  551. package/dist/cjs/my-component.cjs.entry.js +0 -31
  552. package/dist/cjs/my-component.cjs.entry.js.map +0 -1
  553. package/dist/collection/components/my-component/my-component.e2e.js +0 -26
  554. package/dist/collection/components/my-component/my-component.e2e.js.map +0 -1
  555. package/dist/collection/components/my-component/my-component.js +0 -83
  556. package/dist/collection/components/my-component/my-component.js.map +0 -1
  557. package/dist/collection/components/my-component/my-component.spec.js +0 -35
  558. package/dist/collection/components/my-component/my-component.spec.js.map +0 -1
  559. package/dist/collection/components/my-component/my-component.stories.js +0 -13
  560. package/dist/collection/components/my-component/my-component.stories.js.map +0 -1
  561. package/dist/components/my-component.js +0 -49
  562. package/dist/components/my-component.js.map +0 -1
  563. package/dist/esm/index-72708389.js.map +0 -1
  564. package/dist/esm/my-component.entry.js +0 -27
  565. package/dist/esm/my-component.entry.js.map +0 -1
  566. package/dist/types/components/my-component/my-component.d.ts +0 -16
  567. /package/dist/collection/components/{my-component/my-component.css → content/aico-collection-content/aico-collection-content.css} +0 -0
  568. /package/dist/types/components/{my-component/my-component.stories.d.ts → content/aico-asking-content/aico-asking-content.stories.d.ts} +0 -0
@@ -0,0 +1,38 @@
1
+ import { proxyCustomElement, HTMLElement, h, Fragment } from '@stencil/core/internal/client';
2
+ import { C as ConditionalRender } from './ConditionalRender.js';
3
+ import { s as strIsNullOrEmptyOrWhitespace } from './utils.js';
4
+
5
+ const aicoTestimonialContentCss = ".star-rating.sc-aico-testimonial-content{font-size:0;white-space:nowrap;height:35px;overflow:hidden;position:relative;background:url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');background-size:contain}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content{opacity:0;position:absolute;left:0;top:0;height:100%;z-index:1;background:url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');background-size:contain}.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content{opacity:0;display:inline-block;height:100%;margin:0;padding:0;z-index:2;position:relative}.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content:hover+i.sc-aico-testimonial-content,.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content:checked+i.sc-aico-testimonial-content{opacity:1}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:40%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:60%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:80%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}.star-rating.star-5.sc-aico-testimonial-content{width:173px}.star-rating.star-5.sc-aico-testimonial-content input.sc-aico-testimonial-content,.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content{width:20%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:40%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:60%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:80%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}.star-rating.star-3.sc-aico-testimonial-content{width:150px}.star-rating.star-3.sc-aico-testimonial-content input.sc-aico-testimonial-content,.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content{width:33.33%}.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:66.66%}.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}";
6
+
7
+ const AicoTestimonialContent = /*@__PURE__*/ proxyCustomElement(class AicoTestimonialContent extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.content = undefined;
12
+ }
13
+ render() {
14
+ return (h("div", { class: "card" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.testimonial.image) }, h("img", { class: "card-img-top", alt: "image", src: this.content.testimonial.image })), h("div", { class: "card-body" }, h("h2", { class: "card-title" }, this.content.testimonial.title), h("p", { class: "card-text" }, this.content.testimonial.text), h(ConditionalRender, { condition: this.content.testimonial.rating !== null }, h("div", { class: "star-rating star-5" }, Array.from({ length: this.content.testimonial.rating }, (_, i) => i + 1).map(index => {
15
+ return (h(Fragment, null, h("input", { type: "radio", id: `star${index}`, name: "rating", value: index }), h("i", { style: { opacity: this.content.testimonial.rating >= index ? '1' : '0' } })));
16
+ }))))));
17
+ }
18
+ static get style() { return aicoTestimonialContentCss; }
19
+ }, [2, "aico-testimonial-content", {
20
+ "content": [16]
21
+ }]);
22
+ function defineCustomElement() {
23
+ if (typeof customElements === "undefined") {
24
+ return;
25
+ }
26
+ const components = ["aico-testimonial-content"];
27
+ components.forEach(tagName => { switch (tagName) {
28
+ case "aico-testimonial-content":
29
+ if (!customElements.get(tagName)) {
30
+ customElements.define(tagName, AicoTestimonialContent);
31
+ }
32
+ break;
33
+ } });
34
+ }
35
+
36
+ export { AicoTestimonialContent as A, defineCustomElement as d };
37
+
38
+ //# sourceMappingURL=aico-testimonial-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-testimonial-content2.js","mappings":";;;;AAAA,MAAM,yBAAyB,GAAG,kpHAAkpH;;MCUvqH,sBAAsB;;;;;;IAGjC,MAAM;QACJ,QACE,WAAK,KAAK,EAAC,MAAM,IACf,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,IACzF,WAAK,KAAK,EAAC,cAAc,EAAC,GAAG,EAAC,OAAO,EAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,GAAQ,CAC/D,EACpB,WAAK,KAAK,EAAC,WAAW,IACpB,UAAI,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAM,EAC5D,SAAG,KAAK,EAAC,WAAW,IAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAK,EACxD,EAAC,iBAAiB,IAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,KAAK,IAAI,IACpE,WAAK,KAAK,EAAC,oBAAoB,IAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAO,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK;YAClF,QACE,EAAC,QAAQ,QACP,aAAO,IAAI,EAAC,OAAO,EAAC,EAAE,EAAE,OAAO,KAAK,EAAE,EAAE,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,GAAI,EACtE,SAAG,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAO,IAAI,KAAK,GAAG,GAAG,GAAG,GAAG,EAAE,GAAM,CACzE,EACX;SACH,CAAC,CACE,CACY,CAChB,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-testimonial-content/aico-testimonial-content.css?tag=aico-testimonial-content&encapsulation=scoped","src/components/content/aico-testimonial-content/aico-testimonial-content.tsx"],"sourcesContent":[".star-rating {\n font-size: 0;\n white-space: nowrap;\n height: 35px;\n overflow: hidden;\n position: relative;\n background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');\n background-size: contain;\n}\n\n.star-rating i {\n opacity: 0;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n z-index: 1;\n background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');\n background-size: contain;\n}\n\n.star-rating input {\n opacity: 0;\n display: inline-block;\n height: 100%;\n margin: 0;\n padding: 0;\n z-index: 2;\n position: relative;\n}\n\n.star-rating input:hover + i,\n.star-rating input:checked + i {\n opacity: 1;\n}\n\n.star-rating i ~ i {\n width: 40%;\n}\n\n.star-rating i ~ i ~ i {\n width: 60%;\n}\n\n.star-rating i ~ i ~ i ~ i {\n width: 80%;\n}\n\n.star-rating i ~ i ~ i ~ i ~ i {\n width: 100%;\n}\n\n.star-rating.star-5 {\n width: 173px;\n}\n\n.star-rating.star-5 input,\n.star-rating.star-5 i {\n width: 20%;\n}\n\n.star-rating.star-5 i ~ i {\n width: 40%;\n}\n\n.star-rating.star-5 i ~ i ~ i {\n width: 60%;\n}\n\n.star-rating.star-5 i ~ i ~ i ~ i {\n width: 80%;\n}\n\n.star-rating.star-5 i ~ i ~ i ~ i ~ i {\n width: 100%;\n}\n\n.star-rating.star-3 {\n width: 150px;\n}\n\n.star-rating.star-3 input,\n.star-rating.star-3 i {\n width: 33.33%;\n}\n\n.star-rating.star-3 i ~ i {\n width: 66.66%;\n}\n\n.star-rating.star-3 i ~ i ~ i {\n width: 100%;\n}\n","import { Component, Fragment, Prop, h } from '@stencil/core';\nimport type { TestimonialContent } from '../../../model/article/content/TestimonialContent';\nimport ConditionalRender from '../../../utils/ConditionalRender';\nimport { strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\n\n@Component({\n tag: 'aico-testimonial-content',\n styleUrl: 'aico-testimonial-content.css',\n scoped: true,\n})\nexport class AicoTestimonialContent {\n @Prop() content!: TestimonialContent;\n\n render() {\n return (\n <div class=\"card\">\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(this.content.testimonial.image)}>\n <img class=\"card-img-top\" alt=\"image\" src={this.content.testimonial.image}></img>\n </ConditionalRender>\n <div class=\"card-body\">\n <h2 class=\"card-title\">{this.content.testimonial.title}</h2>\n <p class=\"card-text\">{this.content.testimonial.text}</p>\n <ConditionalRender condition={this.content.testimonial.rating !== null}>\n <div class=\"star-rating star-5\">\n {Array.from({ length: this.content.testimonial.rating! }, (_, i) => i + 1).map(index => {\n return (\n <Fragment>\n <input type=\"radio\" id={`star${index}`} name=\"rating\" value={index} />\n <i style={{ opacity: this.content.testimonial.rating! >= index ? '1' : '0' }}></i>\n </Fragment>\n );\n })}\n </div>\n </ConditionalRender>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoTextContent extends Components.AicoTextContent, HTMLElement {}
4
+ export const AicoTextContent: {
5
+ prototype: AicoTextContent;
6
+ new (): AicoTextContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoTextContent$1, d as defineCustomElement$1 } from './aico-text-content2.js';
2
+
3
+ const AicoTextContent = AicoTextContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoTextContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-text-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-text-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,125 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { C as ConditionalRender } from './ConditionalRender.js';
3
+ import { s as strIsNullOrEmptyOrWhitespace, a as getClass } from './utils.js';
4
+ import './bootstrap.esm.js';
5
+ import { d as defineCustomElement$2 } from './aico-no-content2.js';
6
+ import { d as defineCustomElement$1 } from './aico-title-content2.js';
7
+
8
+ const ConditionalWrap = ({ condition, wrap }, children) => {
9
+ return condition ? wrap(children) : children;
10
+ };
11
+
12
+ const aicoTextContentCss = "";
13
+
14
+ const AicoTextContent = /*@__PURE__*/ proxyCustomElement(class AicoTextContent extends HTMLElement {
15
+ constructor() {
16
+ super();
17
+ this.__registerHost();
18
+ this.content = undefined;
19
+ }
20
+ render() {
21
+ var _a, _b, _c;
22
+ if (this.content.translations.length === 0) {
23
+ return h("aico-no-content", null);
24
+ }
25
+ const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
26
+ const contentStyles = {};
27
+ if (this.content.hasBackgroundColor) {
28
+ contentStyles['background-color'] = (_a = this.content.backgroundColor) !== null && _a !== void 0 ? _a : 'white';
29
+ contentStyles['color'] = (_b = this.content.textColor) !== null && _b !== void 0 ? _b : 'black';
30
+ contentStyles['width'] = '100%';
31
+ contentStyles['padding'] = '15px';
32
+ contentStyles['margin-top'] = '10px';
33
+ }
34
+ if (this.content.addBorder) {
35
+ contentStyles['border'] = `3px solid ${this.content.borderColor}`;
36
+ contentStyles['margin-top'] = '-3px';
37
+ }
38
+ if (this.content.alignmentEnabled) {
39
+ contentStyles['display'] = 'flex';
40
+ contentStyles['align-items'] = (_c = this.content.verticalAlign) !== null && _c !== void 0 ? _c : 'flex-start';
41
+ }
42
+ return (h(ConditionalRender, { condition: translation !== null }, h(ConditionalWrap, { condition: !strIsNullOrEmptyOrWhitespace(translation.promptText), wrap: children => (h("div", { class: "accordion", id: "aico-text-content" }, h("div", { class: "accordion-item" }, h("h2", { class: "accordion-header", id: "heading" }, h("button", { class: "accordion-button collapsed", type: "button", "data-bs-toggle": "collapse", "data-bs-target": "#collapse", "aria-expanded": "false", "aria-controls": "collapse" }, translation.promptText)), h("div", { id: "collapse", class: "accordion-collapse collapse", "aria-labelledby": "heading", "data-bs-parent": "#aico-text-content" }, h("div", { class: "accordion-body" }, children))))) }, h("div", { class: "card", style: contentStyles }, h("div", { class: "card-body w-100 border-0" }, h("aico-title-content", { class: "card-title", content: this.makeTitleContent(translation) }), h(ConditionalRender, { condition: this.shouldDisplayTextAndPicture(translation) }, h("div", { class: "row g-4" }, h("div", { class: getClass({
43
+ 'col-md-8': true,
44
+ 'order-1': this.content.picturePosition === 'right',
45
+ 'order-2': this.content.picturePosition === 'left',
46
+ }) }, this.getTextComponent(translation)), h("div", { class: getClass({
47
+ 'col-md-4 justify-content-center': true,
48
+ 'order-2': this.content.picturePosition === 'right',
49
+ 'order-1': this.content.picturePosition === 'left',
50
+ }) }, this.getImageComponent(translation)))), h(ConditionalRender, { condition: this.shouldDisplayOnlyPicture(translation) }, this.getImageComponent(translation)), h(ConditionalRender, { condition: this.shouldDisplayOnlyText(translation) }, this.getTextComponent(translation)))))));
51
+ }
52
+ getImageComponent(translation) {
53
+ var _a;
54
+ return (h("div", { class: "card text-bg-dark text-white" }, h("img", { class: "card-img img-fluid object-fit-contain", src: (_a = translation.optimizedPicture) !== null && _a !== void 0 ? _a : translation.picture }), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation.pictureLabel) }, h("div", { class: "card-img-overlay" }, h("p", { class: getClass({
55
+ 'card-text': true,
56
+ 'text-end': this.content.pictureLabelPosition === 'right',
57
+ 'text-center': this.content.pictureLabelPosition === 'center',
58
+ }) }, translation.pictureLabel)))));
59
+ }
60
+ getTextComponent(translation) {
61
+ const textStyles = { 'line-height': '1.3', 'white-space': 'pre-line' };
62
+ if (this.content.fontSize) {
63
+ textStyles['font-size'] = `${this.content.fontSize}px`;
64
+ }
65
+ if (this.content.fontFamily) {
66
+ textStyles['font-family'] = this.content.fontFamily;
67
+ }
68
+ if (this.content.shouldJustifyText) {
69
+ textStyles['text-align'] = 'justify';
70
+ textStyles['text-justify'] = 'inner-word';
71
+ }
72
+ return (h("p", { class: "card-text", style: textStyles }, translation.text));
73
+ }
74
+ makeTitleContent(translation) {
75
+ var _a;
76
+ return {
77
+ id: this.content.id,
78
+ createdAt: this.content.createdAt,
79
+ updatedAt: this.content.updatedAt,
80
+ hasUnderscore: false,
81
+ size: (_a = this.content.titleSize) !== null && _a !== void 0 ? _a : 'h1',
82
+ titleColor: this.content.textColor,
83
+ translations: [Object.assign({}, translation)],
84
+ };
85
+ }
86
+ shouldDisplayTextAndPicture(translation) {
87
+ return !strIsNullOrEmptyOrWhitespace(translation.text) && (!strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) || !strIsNullOrEmptyOrWhitespace(translation.picture));
88
+ }
89
+ shouldDisplayOnlyPicture(translation) {
90
+ return strIsNullOrEmptyOrWhitespace(translation.text) && (!strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) || !strIsNullOrEmptyOrWhitespace(translation.picture));
91
+ }
92
+ shouldDisplayOnlyText(translation) {
93
+ return !strIsNullOrEmptyOrWhitespace(translation.text) && strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) && strIsNullOrEmptyOrWhitespace(translation.picture);
94
+ }
95
+ static get style() { return aicoTextContentCss; }
96
+ }, [2, "aico-text-content", {
97
+ "content": [16]
98
+ }]);
99
+ function defineCustomElement() {
100
+ if (typeof customElements === "undefined") {
101
+ return;
102
+ }
103
+ const components = ["aico-text-content", "aico-no-content", "aico-title-content"];
104
+ components.forEach(tagName => { switch (tagName) {
105
+ case "aico-text-content":
106
+ if (!customElements.get(tagName)) {
107
+ customElements.define(tagName, AicoTextContent);
108
+ }
109
+ break;
110
+ case "aico-no-content":
111
+ if (!customElements.get(tagName)) {
112
+ defineCustomElement$2();
113
+ }
114
+ break;
115
+ case "aico-title-content":
116
+ if (!customElements.get(tagName)) {
117
+ defineCustomElement$1();
118
+ }
119
+ break;
120
+ } });
121
+ }
122
+
123
+ export { AicoTextContent as A, defineCustomElement as d };
124
+
125
+ //# sourceMappingURL=aico-text-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-text-content2.js","mappings":"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","names":[],"sources":["src/utils/ConditionalWrap.tsx","src/components/content/aico-text-content/aico-text-content.css?tag=aico-text-content&encapsulation=scoped","src/components/content/aico-text-content/aico-text-content.tsx"],"sourcesContent":["import { FunctionalComponent, VNode } from '@stencil/core';\n\nexport type ConditionalWrapProps = {\n condition: boolean;\n wrap: (children: VNode | VNode[]) => VNode;\n};\n\nconst ConditionalWrap: FunctionalComponent<ConditionalWrapProps> = ({ condition, wrap }, children) => {\n return condition ? wrap(children) : children;\n};\n\nexport default ConditionalWrap;\n","","import { Component, Prop, VNode, h } from '@stencil/core';\nimport ConditionalRender from '../../../utils/ConditionalRender';\nimport ConditionalWrap from '../../../utils/ConditionalWrap';\nimport type { TextContent, TextContentTranslation } from '../../../model/article/content/TextContent';\nimport type { TitleContent } from '../../../model/article/content/TitleContent';\nimport { getClass, strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\nimport 'bootstrap';\n\n@Component({\n tag: 'aico-text-content',\n styleUrl: 'aico-text-content.css',\n scoped: true,\n})\nexport class AicoTextContent {\n @Prop() content!: TextContent;\n\n render() {\n if (this.content.translations.length === 0) {\n return <aico-no-content />;\n }\n\n const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;\n const contentStyles: { [key: string]: string | undefined } = {};\n\n if (this.content.hasBackgroundColor) {\n contentStyles['background-color'] = this.content.backgroundColor ?? 'white';\n contentStyles['color'] = this.content.textColor ?? 'black';\n contentStyles['width'] = '100%';\n contentStyles['padding'] = '15px';\n contentStyles['margin-top'] = '10px';\n }\n\n if (this.content.addBorder) {\n contentStyles['border'] = `3px solid ${this.content.borderColor}`;\n contentStyles['margin-top'] = '-3px';\n }\n\n if (this.content.alignmentEnabled) {\n contentStyles['display'] = 'flex';\n contentStyles['align-items'] = this.content.verticalAlign ?? 'flex-start';\n }\n\n return (\n <ConditionalRender condition={translation !== null}>\n <ConditionalWrap\n condition={!strIsNullOrEmptyOrWhitespace(translation!.promptText)}\n wrap={children => (\n <div class=\"accordion\" id=\"aico-text-content\">\n <div class=\"accordion-item\">\n <h2 class=\"accordion-header\" id=\"heading\">\n <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse\" aria-expanded=\"false\" aria-controls=\"collapse\">\n {translation!.promptText}\n </button>\n </h2>\n <div id=\"collapse\" class=\"accordion-collapse collapse\" aria-labelledby=\"heading\" data-bs-parent=\"#aico-text-content\">\n <div class=\"accordion-body\">{children}</div>\n </div>\n </div>\n </div>\n )}\n >\n <div class=\"card\" style={contentStyles}>\n <div class=\"card-body w-100 border-0\">\n <aico-title-content class=\"card-title\" content={this.makeTitleContent(translation!)} />\n <ConditionalRender condition={this.shouldDisplayTextAndPicture(translation!)}>\n <div class=\"row g-4\">\n <div\n class={getClass({\n 'col-md-8': true,\n 'order-1': this.content.picturePosition === 'right',\n 'order-2': this.content.picturePosition === 'left',\n })}\n >\n {this.getTextComponent(translation!)}\n </div>\n <div\n class={getClass({\n 'col-md-4 justify-content-center': true,\n 'order-2': this.content.picturePosition === 'right',\n 'order-1': this.content.picturePosition === 'left',\n })}\n >\n {this.getImageComponent(translation!)}\n </div>\n </div>\n </ConditionalRender>\n <ConditionalRender condition={this.shouldDisplayOnlyPicture(translation!)}>{this.getImageComponent(translation!)}</ConditionalRender>\n <ConditionalRender condition={this.shouldDisplayOnlyText(translation!)}>{this.getTextComponent(translation!)}</ConditionalRender>\n </div>\n </div>\n </ConditionalWrap>\n </ConditionalRender>\n );\n }\n\n private getImageComponent(translation: TextContentTranslation): VNode {\n const imageStyles: { [key: string]: string | undefined } = {};\n\n if (this.content.focusXPercentage && this.content.focusYCoordinate) {\n imageStyles['object-position'] = `${this.content.focusXPercentage}% ${this.content.focusYPercentage}%`;\n }\n\n return (\n <div class=\"card text-bg-dark text-white\">\n <img class=\"card-img img-fluid object-fit-contain\" src={translation.optimizedPicture ?? translation.picture} />\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(translation.pictureLabel)}>\n <div class=\"card-img-overlay\">\n <p\n class={getClass({\n 'card-text': true,\n 'text-end': this.content.pictureLabelPosition === 'right',\n 'text-center': this.content.pictureLabelPosition === 'center',\n })}\n >\n {translation.pictureLabel}\n </p>\n </div>\n </ConditionalRender>\n </div>\n );\n }\n\n private getTextComponent(translation: TextContentTranslation): VNode {\n const textStyles: { [key: string]: string | undefined } = { 'line-height': '1.3', 'white-space': 'pre-line' };\n if (this.content.fontSize) {\n textStyles['font-size'] = `${this.content.fontSize}px`;\n }\n\n if (this.content.fontFamily) {\n textStyles['font-family'] = this.content.fontFamily;\n }\n\n if (this.content.shouldJustifyText) {\n textStyles['text-align'] = 'justify';\n textStyles['text-justify'] = 'inner-word';\n }\n\n return (\n <p class=\"card-text\" style={textStyles}>\n {translation.text}\n </p>\n );\n }\n\n private makeTitleContent(translation: TextContentTranslation): TitleContent {\n return {\n id: this.content.id,\n createdAt: this.content.createdAt,\n updatedAt: this.content.updatedAt,\n hasUnderscore: false,\n size: this.content.titleSize ?? 'h1',\n titleColor: this.content.textColor,\n translations: [{ ...translation }],\n };\n }\n\n private shouldDisplayTextAndPicture(translation: TextContentTranslation): boolean {\n return !strIsNullOrEmptyOrWhitespace(translation.text) && (!strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) || !strIsNullOrEmptyOrWhitespace(translation.picture));\n }\n\n private shouldDisplayOnlyPicture(translation: TextContentTranslation): boolean {\n return strIsNullOrEmptyOrWhitespace(translation.text) && (!strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) || !strIsNullOrEmptyOrWhitespace(translation.picture));\n }\n\n private shouldDisplayOnlyText(translation: TextContentTranslation): boolean {\n return !strIsNullOrEmptyOrWhitespace(translation.text) && strIsNullOrEmptyOrWhitespace(translation.optimizedPicture) && strIsNullOrEmptyOrWhitespace(translation.picture);\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoTitleContent extends Components.AicoTitleContent, HTMLElement {}
4
+ export const AicoTitleContent: {
5
+ prototype: AicoTitleContent;
6
+ new (): AicoTitleContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoTitleContent$1, d as defineCustomElement$1 } from './aico-title-content2.js';
2
+
3
+ const AicoTitleContent = AicoTitleContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoTitleContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-title-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-title-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,54 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$1 } from './aico-no-content2.js';
3
+
4
+ const aicoTitleContentCss = ".sc-aico-title-content-h{display:block}";
5
+
6
+ const AicoTitleContent = /*@__PURE__*/ proxyCustomElement(class AicoTitleContent extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.content = undefined;
11
+ }
12
+ render() {
13
+ var _a;
14
+ if (!this.content.size || this.content.translations.length === 0) {
15
+ return h("aico-no-content", null);
16
+ }
17
+ const CustomTag = this.content.size;
18
+ const defaultColor = 'black';
19
+ const styles = {
20
+ color: this.content.titleColor ? this.content.titleColor : defaultColor,
21
+ };
22
+ if (this.content.hasUnderscore) {
23
+ styles['text-decoration-line'] = 'underline';
24
+ styles['text-decoration-color'] = (_a = this.content.underscoreColor) !== null && _a !== void 0 ? _a : defaultColor;
25
+ styles['text-decoration-thickness'] = '3px';
26
+ }
27
+ return (h(CustomTag, null, h("span", { style: styles }, this.content.translations[0].title)));
28
+ }
29
+ static get style() { return aicoTitleContentCss; }
30
+ }, [2, "aico-title-content", {
31
+ "content": [16]
32
+ }]);
33
+ function defineCustomElement() {
34
+ if (typeof customElements === "undefined") {
35
+ return;
36
+ }
37
+ const components = ["aico-title-content", "aico-no-content"];
38
+ components.forEach(tagName => { switch (tagName) {
39
+ case "aico-title-content":
40
+ if (!customElements.get(tagName)) {
41
+ customElements.define(tagName, AicoTitleContent);
42
+ }
43
+ break;
44
+ case "aico-no-content":
45
+ if (!customElements.get(tagName)) {
46
+ defineCustomElement$1();
47
+ }
48
+ break;
49
+ } });
50
+ }
51
+
52
+ export { AicoTitleContent as A, defineCustomElement as d };
53
+
54
+ //# sourceMappingURL=aico-title-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-title-content2.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,yCAAyC;;MCQxD,gBAAgB;;;;;;IAG3B,MAAM;;QACJ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;YAChE,OAAO,0BAAmB,CAAC;SAC5B;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAEpC,MAAM,YAAY,GAAG,OAAO,CAAC;QAC7B,MAAM,MAAM,GAA8B;YACxC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,YAAY;SACxE,CAAC;QAEF,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YAC9B,MAAM,CAAC,sBAAsB,CAAC,GAAG,WAAW,CAAC;YAC7C,MAAM,CAAC,uBAAuB,CAAC,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,eAAe,mCAAI,YAAY,CAAC;YAC/E,MAAM,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC;SAC7C;QAED,QACE,EAAC,SAAS,QACR,YAAM,KAAK,EAAE,MAAM,IAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAQ,CACtD,EACZ;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-title-content/aico-title-content.css?tag=aico-title-content&encapsulation=scoped","src/components/content/aico-title-content/aico-title-content.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { TitleContent } from '../../../model/article/content/TitleContent';\n\n@Component({\n tag: 'aico-title-content',\n styleUrl: 'aico-title-content.css',\n scoped: true,\n})\nexport class AicoTitleContent {\n @Prop() content!: TitleContent;\n\n render() {\n if (!this.content.size || this.content.translations.length === 0) {\n return <aico-no-content />;\n }\n\n const CustomTag = this.content.size;\n\n const defaultColor = 'black';\n const styles: { [key: string]: string } = {\n color: this.content.titleColor ? this.content.titleColor : defaultColor,\n };\n\n if (this.content.hasUnderscore) {\n styles['text-decoration-line'] = 'underline';\n styles['text-decoration-color'] = this.content.underscoreColor ?? defaultColor;\n styles['text-decoration-thickness'] = '3px';\n }\n\n return (\n <CustomTag>\n <span style={styles}>{this.content.translations[0].title}</span>\n </CustomTag>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoUploadContent extends Components.AicoUploadContent, HTMLElement {}
4
+ export const AicoUploadContent: {
5
+ prototype: AicoUploadContent;
6
+ new (): AicoUploadContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoUploadContent$1, d as defineCustomElement$1 } from './aico-upload-content2.js';
2
+
3
+ const AicoUploadContent = AicoUploadContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoUploadContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-upload-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-upload-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,65 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { b as getYoutubeURL, s as strIsNullOrEmptyOrWhitespace } from './utils.js';
3
+ import { C as ConditionalRender } from './ConditionalRender.js';
4
+ import { d as defineCustomElement$2 } from './aico-no-content2.js';
5
+ import { d as defineCustomElement$1 } from './aico-title-content2.js';
6
+
7
+ const aicoUploadContentCss = ".sc-aico-upload-content-h{display:block}";
8
+
9
+ const AicoUploadContent = /*@__PURE__*/ proxyCustomElement(class AicoUploadContent extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.content = undefined;
14
+ }
15
+ render() {
16
+ const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
17
+ const youtubeUrl = this.content && this.content.videoUrl ? getYoutubeURL(this.content.videoUrl) : null;
18
+ return (h(Host, null, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation) })), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(youtubeUrl) }, h("div", { class: "ratio ratio-16x9" }, h("iframe", { allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, src: youtubeUrl }))), h(ConditionalRender, { condition: !this.content.shouldHideFile }, h("p", { class: "fs-3 mt-3" }, "Files:"), h("div", { class: "list-group list-group-flush" }, this.content.uploads.map(upload => {
19
+ if (strIsNullOrEmptyOrWhitespace(upload.path)) {
20
+ return null;
21
+ }
22
+ return (h("a", { href: upload.path, target: "_blank", class: "list-group-item list-group-item-action" }, upload.name));
23
+ })))));
24
+ }
25
+ makeTitleContent(translation) {
26
+ return {
27
+ id: this.content.id,
28
+ createdAt: this.content.createdAt,
29
+ updatedAt: this.content.updatedAt,
30
+ hasUnderscore: false,
31
+ size: 'h2',
32
+ translations: [Object.assign({}, translation)],
33
+ };
34
+ }
35
+ static get style() { return aicoUploadContentCss; }
36
+ }, [2, "aico-upload-content", {
37
+ "content": [16]
38
+ }]);
39
+ function defineCustomElement() {
40
+ if (typeof customElements === "undefined") {
41
+ return;
42
+ }
43
+ const components = ["aico-upload-content", "aico-no-content", "aico-title-content"];
44
+ components.forEach(tagName => { switch (tagName) {
45
+ case "aico-upload-content":
46
+ if (!customElements.get(tagName)) {
47
+ customElements.define(tagName, AicoUploadContent);
48
+ }
49
+ break;
50
+ case "aico-no-content":
51
+ if (!customElements.get(tagName)) {
52
+ defineCustomElement$2();
53
+ }
54
+ break;
55
+ case "aico-title-content":
56
+ if (!customElements.get(tagName)) {
57
+ defineCustomElement$1();
58
+ }
59
+ break;
60
+ } });
61
+ }
62
+
63
+ export { AicoUploadContent as A, defineCustomElement as d };
64
+
65
+ //# sourceMappingURL=aico-upload-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-upload-content2.js","mappings":";;;;;;AAAA,MAAM,oBAAoB,GAAG,0CAA0C;;MCY1D,iBAAiB;;;;;;IAG5B,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;QAC/F,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;QAEvG,QACE,EAAC,IAAI,QACH,EAAC,iBAAiB,IAAC,SAAS,EAAE,WAAW,KAAK,IAAI,IAChD,0BAAoB,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,WAAY,CAAC,GAAI,CAClD,EACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,4BAA4B,CAAC,UAAU,CAAC,IACrE,WAAK,KAAK,EAAC,kBAAkB,IAC3B,cAAQ,KAAK,EAAC,0FAA0F,EAAC,eAAe,QAAC,GAAG,EAAE,UAAW,GAAI,CACzI,CACY,EACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,IACxD,SAAG,KAAK,EAAC,WAAW,aAAW,EAC/B,WAAK,KAAK,EAAC,6BAA6B,IACrC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM;YAC9B,IAAI,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;gBAC7C,OAAO,IAAI,CAAC;aACb;YAED,QACE,SAAG,IAAI,EAAE,MAAM,CAAC,IAAK,EAAE,MAAM,EAAC,QAAQ,EAAC,KAAK,EAAC,wCAAwC,IAClF,MAAM,CAAC,IAAI,CACV,EACJ;SACH,CAAC,CACE,CACY,CACf,EACP;KACH;IAEO,gBAAgB,CAAC,WAAwB;QAC/C,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;YACnB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,IAAI;YACV,YAAY,EAAE,mBAAM,WAAW,EAAG;SACnC,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-upload-content/aico-upload-content.css?tag=aico-upload-content&encapsulation=scoped","src/components/content/aico-upload-content/aico-upload-content.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\nimport type { UploadContent } from '../../../model/article/content/UploadContent';\nimport type { Translation } from '../../../model/article/Translation';\nimport type { TitleContent } from '../../../model/article/content/TitleContent';\nimport { getYoutubeURL, strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\nimport ConditionalRender from '../../../utils/ConditionalRender';\n\n@Component({\n tag: 'aico-upload-content',\n styleUrl: 'aico-upload-content.css',\n scoped: true,\n})\nexport class AicoUploadContent {\n @Prop() content!: UploadContent;\n\n render() {\n const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;\n const youtubeUrl = this.content && this.content.videoUrl ? getYoutubeURL(this.content.videoUrl) : null;\n\n return (\n <Host>\n <ConditionalRender condition={translation !== null}>\n <aico-title-content content={this.makeTitleContent(translation!)} />\n </ConditionalRender>\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(youtubeUrl)}>\n <div class=\"ratio ratio-16x9\">\n <iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowFullScreen src={youtubeUrl!} />\n </div>\n </ConditionalRender>\n <ConditionalRender condition={!this.content.shouldHideFile}>\n <p class=\"fs-3 mt-3\">Files:</p>\n <div class=\"list-group list-group-flush\">\n {this.content.uploads.map(upload => {\n if (strIsNullOrEmptyOrWhitespace(upload.path)) {\n return null;\n }\n\n return (\n <a href={upload.path!} target=\"_blank\" class=\"list-group-item list-group-item-action\">\n {upload.name}\n </a>\n );\n })}\n </div>\n </ConditionalRender>\n </Host>\n );\n }\n\n private makeTitleContent(translation: Translation): TitleContent {\n return {\n id: this.content.id,\n createdAt: this.content.createdAt,\n updatedAt: this.content.updatedAt,\n hasUnderscore: false,\n size: 'h2',\n translations: [{ ...translation }],\n };\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface AicoVideoContent extends Components.AicoVideoContent, HTMLElement {}
4
+ export const AicoVideoContent: {
5
+ prototype: AicoVideoContent;
6
+ new (): AicoVideoContent;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,8 @@
1
+ import { A as AicoVideoContent$1, d as defineCustomElement$1 } from './aico-video-content2.js';
2
+
3
+ const AicoVideoContent = AicoVideoContent$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { AicoVideoContent, defineCustomElement };
7
+
8
+ //# sourceMappingURL=aico-video-content.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-video-content.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,61 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { C as ConditionalRender } from './ConditionalRender.js';
3
+ import { b as getYoutubeURL, s as strIsNullOrEmptyOrWhitespace } from './utils.js';
4
+ import { d as defineCustomElement$2 } from './aico-no-content2.js';
5
+ import { d as defineCustomElement$1 } from './aico-title-content2.js';
6
+
7
+ const aicoVideoContentCss = ".media-card-video.sc-aico-video-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;-o-object-fit:contain;object-fit:contain}";
8
+
9
+ const AicoVideoContent = /*@__PURE__*/ proxyCustomElement(class AicoVideoContent extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.content = undefined;
14
+ }
15
+ render() {
16
+ const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
17
+ const youtubeUrl = translation && translation.videoUrl ? getYoutubeURL(translation.videoUrl) : null;
18
+ return (h(Host, null, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation) })), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(youtubeUrl) }, h("div", { class: "ratio ratio-16x9" }, h("iframe", { allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, src: youtubeUrl }))), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.localVideoUrl) }, h("div", { class: "ratio ratio-16x9" }, h("video", { class: "media-card-video", controls: true, playsInline: true, style: { height: this.content.isVideoMinimized ? '400px' : '100%' } }, h("source", { src: this.content.localVideoUrl, type: "video/mp4" }))))));
19
+ }
20
+ makeTitleContent(translation) {
21
+ var _a;
22
+ return {
23
+ id: this.content.id,
24
+ createdAt: this.content.createdAt,
25
+ updatedAt: this.content.updatedAt,
26
+ hasUnderscore: false,
27
+ size: (_a = this.content.titleSize) !== null && _a !== void 0 ? _a : 'h2',
28
+ translations: [Object.assign({}, translation)],
29
+ };
30
+ }
31
+ static get style() { return aicoVideoContentCss; }
32
+ }, [2, "aico-video-content", {
33
+ "content": [16]
34
+ }]);
35
+ function defineCustomElement() {
36
+ if (typeof customElements === "undefined") {
37
+ return;
38
+ }
39
+ const components = ["aico-video-content", "aico-no-content", "aico-title-content"];
40
+ components.forEach(tagName => { switch (tagName) {
41
+ case "aico-video-content":
42
+ if (!customElements.get(tagName)) {
43
+ customElements.define(tagName, AicoVideoContent);
44
+ }
45
+ break;
46
+ case "aico-no-content":
47
+ if (!customElements.get(tagName)) {
48
+ defineCustomElement$2();
49
+ }
50
+ break;
51
+ case "aico-title-content":
52
+ if (!customElements.get(tagName)) {
53
+ defineCustomElement$1();
54
+ }
55
+ break;
56
+ } });
57
+ }
58
+
59
+ export { AicoVideoContent as A, defineCustomElement as d };
60
+
61
+ //# sourceMappingURL=aico-video-content2.js.map
@@ -0,0 +1 @@
1
+ {"file":"aico-video-content2.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,6KAA6K;;MCY5L,gBAAgB;;;;;;IAG3B,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;QAC/F,MAAM,UAAU,GAAG,WAAW,IAAI,WAAW,CAAC,QAAQ,GAAG,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;QAEpG,QACE,EAAC,IAAI,QACH,EAAC,iBAAiB,IAAC,SAAS,EAAE,WAAW,KAAK,IAAI,IAChD,0BAAoB,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,WAAY,CAAC,GAAI,CAClD,EACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,4BAA4B,CAAC,UAAU,CAAC,IACrE,WAAK,KAAK,EAAC,kBAAkB,IAC3B,cAAQ,KAAK,EAAC,0FAA0F,EAAC,eAAe,QAAC,GAAG,EAAE,UAAW,GAAI,CACzI,CACY,EACpB,EAAC,iBAAiB,IAAC,SAAS,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IACrF,WAAK,KAAK,EAAC,kBAAkB,IAC3B,aAAO,KAAK,EAAC,kBAAkB,EAAC,QAAQ,QAAC,WAAW,QAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,gBAAgB,GAAG,OAAO,GAAG,MAAM,EAAE,IACtH,cAAQ,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,EAAC,WAAW,GAAG,CACtD,CACJ,CACY,CACf,EACP;KACH;IAEO,gBAAgB,CAAC,WAAwB;;QAC/C,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;YACnB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,aAAa,EAAE,KAAK;YACpB,IAAI,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,SAAS,mCAAI,IAAI;YACpC,YAAY,EAAE,mBAAM,WAAW,EAAG;SACnC,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/content/aico-video-content/aico-video-content.css?tag=aico-video-content&encapsulation=scoped","src/components/content/aico-video-content/aico-video-content.tsx"],"sourcesContent":[".media-card-video {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\nimport type { VideoContent } from '../../../model/article/content/VideoContent';\nimport type { Translation } from '../../../model/article/Translation';\nimport type { TitleContent } from '../../../model/article/content/TitleContent';\nimport ConditionalRender from '../../../utils/ConditionalRender';\nimport { getYoutubeURL, strIsNullOrEmptyOrWhitespace } from '../../../utils/utils';\n\n@Component({\n tag: 'aico-video-content',\n styleUrl: 'aico-video-content.css',\n scoped: true,\n})\nexport class AicoVideoContent {\n @Prop() content!: VideoContent;\n\n render() {\n const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;\n const youtubeUrl = translation && translation.videoUrl ? getYoutubeURL(translation.videoUrl) : null;\n\n return (\n <Host>\n <ConditionalRender condition={translation !== null}>\n <aico-title-content content={this.makeTitleContent(translation!)} />\n </ConditionalRender>\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(youtubeUrl)}>\n <div class=\"ratio ratio-16x9\">\n <iframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowFullScreen src={youtubeUrl!} />\n </div>\n </ConditionalRender>\n <ConditionalRender condition={!strIsNullOrEmptyOrWhitespace(this.content.localVideoUrl)}>\n <div class=\"ratio ratio-16x9\">\n <video class=\"media-card-video\" controls playsInline style={{ height: this.content.isVideoMinimized ? '400px' : '100%' }}>\n <source src={this.content.localVideoUrl} type=\"video/mp4\" />\n </video>\n </div>\n </ConditionalRender>\n </Host>\n );\n }\n\n private makeTitleContent(translation: Translation): TitleContent {\n return {\n id: this.content.id,\n createdAt: this.content.createdAt,\n updatedAt: this.content.updatedAt,\n hasUnderscore: false,\n size: this.content.titleSize ?? 'h2',\n translations: [{ ...translation }],\n };\n }\n}\n"],"version":3}
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by Fontastic.me</metadata>
5
+ <defs>
6
+ <font id="slick" horiz-adv-x="512">
7
+ <font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
8
+ <missing-glyph horiz-adv-x="512" />
9
+
10
+ <glyph unicode="&#8594;" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
11
+ <glyph unicode="&#8592;" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
12
+ <glyph unicode="&#8226;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
13
+ <glyph unicode="&#97;" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
14
+ </font></defs></svg>