@aiconomy/aico-components 0.0.57 → 0.0.78
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.
- package/dist/aico-components/aico-components.css +1 -1
- package/dist/aico-components/aico-components.esm.js +1 -1
- package/dist/aico-components/aico-components.esm.js.map +1 -1
- package/dist/aico-components/p-0b6e7469.entry.js +2 -0
- package/dist/aico-components/p-0b6e7469.entry.js.map +1 -0
- package/dist/aico-components/p-19752961.entry.js +2 -0
- package/dist/aico-components/p-19752961.entry.js.map +1 -0
- package/dist/aico-components/p-2677f2ab.js +2 -0
- package/dist/aico-components/p-2677f2ab.js.map +1 -0
- package/dist/aico-components/{p-1c4a07ef.entry.js → p-368503ee.entry.js} +3 -3
- package/dist/aico-components/p-368503ee.entry.js.map +1 -0
- package/dist/aico-components/p-7e0074f7.entry.js +2 -0
- package/dist/aico-components/p-7e0074f7.entry.js.map +1 -0
- package/dist/aico-components/p-9ea26390.entry.js +2 -0
- package/dist/aico-components/p-9ea26390.entry.js.map +1 -0
- package/dist/aico-components/p-bccf08d0.entry.js +2 -0
- package/dist/aico-components/p-bccf08d0.entry.js.map +1 -0
- package/dist/aico-components/p-c9eea1b1.entry.js +2 -0
- package/dist/aico-components/p-c9eea1b1.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_19.cjs.entry.js +76 -53
- package/dist/cjs/aico-album-content_19.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-article-detail.cjs.entry.js +18 -17
- package/dist/cjs/aico-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-components.cjs.js +1 -1
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +3 -2
- package/dist/cjs/aico-fetch-article-detail.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list-item.cjs.entry.js +1 -1
- package/dist/cjs/aico-news-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-news-list.cjs.entry.js +4 -3
- package/dist/cjs/aico-news-list.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-no-content_2.cjs.entry.js +5 -3
- package/dist/cjs/aico-no-content_2.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js +4 -3
- package/dist/cjs/aico-special-news-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-095ed22b.js → utils-c1b7a052.js} +11 -5
- package/dist/cjs/utils-c1b7a052.js.map +1 -0
- package/dist/collection/components/aico-article-detail/aico-article-detail.js +36 -17
- package/dist/collection/components/aico-article-detail/aico-article-detail.js.map +1 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js +20 -1
- package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.js.map +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +19 -2
- package/dist/collection/components/aico-news-list/aico-news-list.js.map +1 -1
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js +1 -1
- package/dist/collection/components/aico-news-list-item/aico-news-list-item.js.map +1 -1
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js +19 -2
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js +22 -3
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.js.map +1 -1
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js +16 -0
- package/dist/collection/components/content/aico-asking-content/aico-asking-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js +21 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.js.map +1 -1
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js +18 -0
- package/dist/collection/components/content/aico-block-quote-content/aico-block-quote-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js +25 -5
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.js.map +1 -1
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js +29 -0
- package/dist/collection/components/content/aico-bullet-content/aico-bullet-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js +25 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.js.map +1 -1
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js +35 -3
- package/dist/collection/components/content/aico-carousel-content/aico-carousel-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js +22 -3
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.js.map +1 -1
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js +10 -0
- package/dist/collection/components/content/aico-content-card-content/aico-content-card-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js +21 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.js.map +1 -1
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js +9 -0
- package/dist/collection/components/content/aico-divider-content/aico-divider-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.js +22 -3
- package/dist/collection/components/content/aico-document-content/aico-document-content.js.map +1 -1
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js +11 -0
- package/dist/collection/components/content/aico-document-content/aico-document-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js +21 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.js.map +1 -1
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js +25 -0
- package/dist/collection/components/content/aico-faq-content/aico-faq-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js +22 -2
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.js.map +1 -1
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js +10 -0
- package/dist/collection/components/content/aico-heading-content/aico-heading-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-html-content/aico-html-content.js +22 -4
- package/dist/collection/components/content/aico-html-content/aico-html-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.js +22 -3
- package/dist/collection/components/content/aico-link-content/aico-link-content.js.map +1 -1
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js +24 -0
- package/dist/collection/components/content/aico-link-content/aico-link-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.js +23 -4
- package/dist/collection/components/content/aico-page-content/aico-page-content.js.map +1 -1
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js +11 -0
- package/dist/collection/components/content/aico-page-content/aico-page-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.js +26 -6
- package/dist/collection/components/content/aico-table-content/aico-table-content.js.map +1 -1
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js +58 -0
- package/dist/collection/components/content/aico-table-content/aico-table-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.js +25 -9
- package/dist/collection/components/content/aico-text-content/aico-text-content.js.map +1 -1
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js +55 -0
- package/dist/collection/components/content/aico-text-content/aico-text-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.js +23 -3
- package/dist/collection/components/content/aico-title-content/aico-title-content.js.map +1 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js +12 -1
- package/dist/collection/components/content/aico-title-content/aico-title-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js +22 -2
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.js.map +1 -1
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js +8 -0
- package/dist/collection/components/content/aico-upload-content/aico-upload-content.stories.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.js +22 -2
- package/dist/collection/components/content/aico-video-content/aico-video-content.js.map +1 -1
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js +17 -0
- package/dist/collection/components/content/aico-video-content/aico-video-content.stories.js.map +1 -1
- package/dist/collection/model/article/content/CarouselContent.js.map +1 -1
- package/dist/collection/utils/utils.js +10 -4
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/aico-article-detail2.js +20 -18
- package/dist/components/aico-article-detail2.js.map +1 -1
- package/dist/components/aico-asking-content2.js +6 -4
- package/dist/components/aico-asking-content2.js.map +1 -1
- package/dist/components/aico-block-quote-content2.js +5 -2
- package/dist/components/aico-block-quote-content2.js.map +1 -1
- package/dist/components/aico-bullet-content2.js +9 -6
- package/dist/components/aico-bullet-content2.js.map +1 -1
- package/dist/components/aico-carousel-content2.js +9 -4
- package/dist/components/aico-carousel-content2.js.map +1 -1
- package/dist/components/aico-content-card-content2.js +6 -4
- package/dist/components/aico-content-card-content2.js.map +1 -1
- package/dist/components/aico-divider-content2.js +5 -2
- package/dist/components/aico-divider-content2.js.map +1 -1
- package/dist/components/aico-document-content2.js +6 -4
- package/dist/components/aico-document-content2.js.map +1 -1
- package/dist/components/aico-faq-content2.js +5 -2
- package/dist/components/aico-faq-content2.js.map +1 -1
- package/dist/components/aico-fetch-article-detail.js +3 -1
- package/dist/components/aico-fetch-article-detail.js.map +1 -1
- package/dist/components/aico-heading-content2.js +6 -3
- package/dist/components/aico-heading-content2.js.map +1 -1
- package/dist/components/aico-html-content2.js +7 -12
- package/dist/components/aico-html-content2.js.map +1 -1
- package/dist/components/aico-link-content2.js +6 -4
- package/dist/components/aico-link-content2.js.map +1 -1
- package/dist/components/aico-news-list-item2.js +1 -1
- package/dist/components/aico-news-list-item2.js.map +1 -1
- package/dist/components/aico-news-list.js +4 -2
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-page-content2.js +7 -5
- package/dist/components/aico-page-content2.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +4 -2
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/aico-table-content2.js +10 -7
- package/dist/components/aico-table-content2.js.map +1 -1
- package/dist/components/aico-text-content2.js +9 -10
- package/dist/components/aico-text-content2.js.map +1 -1
- package/dist/components/aico-title-content2.js +7 -4
- package/dist/components/aico-title-content2.js.map +1 -1
- package/dist/components/aico-upload-content2.js +6 -3
- package/dist/components/aico-upload-content2.js.map +1 -1
- package/dist/components/aico-video-content2.js +6 -3
- package/dist/components/aico-video-content2.js.map +1 -1
- package/dist/components/utils.js +10 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_19.entry.js +76 -53
- package/dist/esm/aico-album-content_19.entry.js.map +1 -1
- package/dist/esm/aico-article-detail.entry.js +18 -17
- package/dist/esm/aico-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-components.js +1 -1
- package/dist/esm/aico-fetch-article-detail.entry.js +3 -2
- package/dist/esm/aico-fetch-article-detail.entry.js.map +1 -1
- package/dist/esm/aico-news-list-item.entry.js +1 -1
- package/dist/esm/aico-news-list-item.entry.js.map +1 -1
- package/dist/esm/aico-news-list.entry.js +4 -3
- package/dist/esm/aico-news-list.entry.js.map +1 -1
- package/dist/esm/aico-no-content_2.entry.js +5 -3
- package/dist/esm/aico-no-content_2.entry.js.map +1 -1
- package/dist/esm/aico-special-news-carousel.entry.js +4 -3
- package/dist/esm/aico-special-news-carousel.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-54ffec33.js → utils-b4eec8e9.js} +11 -5
- package/dist/esm/utils-b4eec8e9.js.map +1 -0
- package/dist/types/components/aico-article-detail/aico-article-detail.d.ts +1 -0
- package/dist/types/components/aico-fetch-article-detail/aico-fetch-article-detail.d.ts +1 -0
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +1 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +1 -0
- package/dist/types/components/content/aico-asking-content/aico-asking-content.d.ts +1 -0
- package/dist/types/components/content/aico-block-quote-content/aico-block-quote-content.d.ts +1 -0
- package/dist/types/components/content/aico-bullet-content/aico-bullet-content.d.ts +1 -0
- package/dist/types/components/content/aico-carousel-content/aico-carousel-content.d.ts +1 -0
- package/dist/types/components/content/aico-content-card-content/aico-content-card-content.d.ts +1 -0
- package/dist/types/components/content/aico-divider-content/aico-divider-content.d.ts +1 -0
- package/dist/types/components/content/aico-document-content/aico-document-content.d.ts +1 -0
- package/dist/types/components/content/aico-faq-content/aico-faq-content.d.ts +1 -0
- package/dist/types/components/content/aico-heading-content/aico-heading-content.d.ts +1 -0
- package/dist/types/components/content/aico-html-content/aico-html-content.d.ts +1 -0
- package/dist/types/components/content/aico-link-content/aico-link-content.d.ts +1 -0
- package/dist/types/components/content/aico-page-content/aico-page-content.d.ts +1 -0
- package/dist/types/components/content/aico-table-content/aico-table-content.d.ts +1 -0
- package/dist/types/components/content/aico-text-content/aico-text-content.d.ts +1 -0
- package/dist/types/components/content/aico-title-content/aico-title-content.d.ts +1 -0
- package/dist/types/components/content/aico-upload-content/aico-upload-content.d.ts +1 -0
- package/dist/types/components/content/aico-video-content/aico-video-content.d.ts +1 -0
- package/dist/types/components.d.ts +42 -0
- package/dist/types/model/article/content/CarouselContent.d.ts +4 -2
- package/dist/types/utils/utils.d.ts +2 -2
- package/package.json +3 -2
- package/dist/aico-components/p-0ca1f065.entry.js +0 -2
- package/dist/aico-components/p-0ca1f065.entry.js.map +0 -1
- package/dist/aico-components/p-1c4a07ef.entry.js.map +0 -1
- package/dist/aico-components/p-406fa2e5.entry.js +0 -2
- package/dist/aico-components/p-406fa2e5.entry.js.map +0 -1
- package/dist/aico-components/p-4c0f3325.entry.js +0 -2
- package/dist/aico-components/p-4c0f3325.entry.js.map +0 -1
- package/dist/aico-components/p-5109399b.entry.js +0 -2
- package/dist/aico-components/p-5109399b.entry.js.map +0 -1
- package/dist/aico-components/p-6464810e.entry.js +0 -2
- package/dist/aico-components/p-6464810e.entry.js.map +0 -1
- package/dist/aico-components/p-b1f8308f.entry.js +0 -2
- package/dist/aico-components/p-b1f8308f.entry.js.map +0 -1
- package/dist/aico-components/p-dfd3b0d3.js +0 -2
- package/dist/aico-components/p-dfd3b0d3.js.map +0 -1
- package/dist/cjs/utils-095ed22b.js.map +0 -1
- package/dist/esm/utils-54ffec33.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, F as Fragment } from './index-4621a8ba.js';
|
|
2
2
|
import { j as jquery } from './slick-d11cf173.js';
|
|
3
|
-
import { s as strIsNullOrEmptyOrWhitespace, g as getImageWidthPrc, d as getClass, e as getYoutubeURL } from './utils-
|
|
3
|
+
import { s as strIsNullOrEmptyOrWhitespace, g as getImageWidthPrc, d as getClass, e as getYoutubeURL } from './utils-b4eec8e9.js';
|
|
4
4
|
|
|
5
5
|
const aicoAlbumContentCss = "";
|
|
6
6
|
|
|
@@ -76,11 +76,12 @@ const AicoAskingContent = class {
|
|
|
76
76
|
constructor(hostRef) {
|
|
77
77
|
registerInstance(this, hostRef);
|
|
78
78
|
this.content = undefined;
|
|
79
|
+
this.locale = 'de';
|
|
79
80
|
}
|
|
80
81
|
render() {
|
|
81
|
-
var _a, _b;
|
|
82
|
-
const translation = this.content.asking.translations.
|
|
83
|
-
return (h("div", { class: "card" }, h("div", { class: "card-body" }, h("div", { class: "card-text d-block" }, h("h1", { class: "card-title" }, "Asking"), h("table", { class: "team-table" }, h("tbody", null, h("tr", { class: "agenda-event" }, h("td", null, h("h3", null, this.content.asking.startsAt.toLocaleDateString())), h("td", null, `${this.content.asking.startTime.toLocaleDateString()} - ${(
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
const translation = (_a = this.content.asking.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
84
|
+
return (h("div", { class: "card" }, h("div", { class: "card-body" }, h("div", { class: "card-text d-block" }, h("h1", { class: "card-title" }, "Asking"), h("table", { class: "team-table" }, h("tbody", null, h("tr", { class: "agenda-event" }, h("td", null, h("h3", null, this.content.asking.startsAt.toLocaleDateString())), h("td", null, `${this.content.asking.startTime.toLocaleDateString()} - ${(_c = (_b = this.content.asking.endTime) === null || _b === void 0 ? void 0 : _b.toLocaleDateString()) !== null && _c !== void 0 ? _c : 'N/A'}`), h("td", { style: { width: '49%' } }, translation === null || translation === void 0 ? void 0 : translation.title)), h("tr", { class: "event-details" }, h("td", { colSpan: 3, style: { padding: '0' } }, h("table", { class: "more-details-table" }, h("tbody", null, h("tr", null, h("th", null, "Description"), h("td", null, this.content.asking.description)), h("tr", null, h("th", null, "Gathering"), h("td", null, this.content.asking.meetingPoint)), h("tr", null, h("th", null, "Place (Address)"), h("td", null, this.content.asking.location)), h("tr", null, h("th", null, "Asking for"), h("td", { style: { 'white-space': 'pre' } }, this.content.asking.recipents)), h("tr", null, h("th", null, "Clothing / Equipment"), h("td", { style: { 'white-space': 'pre' } }, this.content.asking.clothingEquipment)), h("tr", null, h("th", null, "Provisions"), h("td", null, this.content.asking.catering)), h("tr", null, h("th", null, "Coaching"), h("td", null, this.content.asking.coaching))))))))))));
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
87
|
AicoAskingContent.style = aicoAskingContentCss;
|
|
@@ -95,9 +96,11 @@ const AicoBlockQuoteContent = class {
|
|
|
95
96
|
constructor(hostRef) {
|
|
96
97
|
registerInstance(this, hostRef);
|
|
97
98
|
this.content = undefined;
|
|
99
|
+
this.locale = 'de';
|
|
98
100
|
}
|
|
99
101
|
render() {
|
|
100
|
-
|
|
102
|
+
var _a;
|
|
103
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
101
104
|
return (h(ConditionalRender, { condition: translation !== null }, h("blockquote", { class: "blockquote", style: { 'background-color': this.content.quotesColor } }, h("p", { class: "mb-2", style: { color: this.content.textColor } }, translation.quoteText), h("footer", { class: "blockquote-footer ms-2", style: { color: this.content.authorColor } }, translation.quoteAuthorLine))));
|
|
102
105
|
}
|
|
103
106
|
};
|
|
@@ -109,9 +112,11 @@ const AicoBulletContent = class {
|
|
|
109
112
|
constructor(hostRef) {
|
|
110
113
|
registerInstance(this, hostRef);
|
|
111
114
|
this.content = undefined;
|
|
115
|
+
this.locale = 'de';
|
|
112
116
|
}
|
|
113
117
|
render() {
|
|
114
|
-
|
|
118
|
+
var _a;
|
|
119
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
115
120
|
const styles = new Map();
|
|
116
121
|
if (this.content.fontSize) {
|
|
117
122
|
styles.set('font-size', this.content.fontSize);
|
|
@@ -119,17 +124,17 @@ const AicoBulletContent = class {
|
|
|
119
124
|
if (this.content.fontFamily) {
|
|
120
125
|
styles.set('font-family', this.content.fontFamily);
|
|
121
126
|
}
|
|
122
|
-
return (h("div", { class: "content", style: Object.fromEntries(styles) }, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation) })), h("ul", null, this.content.bulletBullets
|
|
127
|
+
return (h("div", { class: "content", style: Object.fromEntries(styles) }, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation), locale: this.locale })), h("ul", null, this.content.bulletBullets
|
|
123
128
|
.sort((a, b) => { var _a, _b; return ((_a = a.sort) !== null && _a !== void 0 ? _a : 0) - ((_b = b.sort) !== null && _b !== void 0 ? _b : 0); })
|
|
124
129
|
.map(bullet => {
|
|
125
130
|
if (bullet.translations.length === 0) {
|
|
126
131
|
return null;
|
|
127
132
|
}
|
|
128
|
-
const translation = bullet.translations
|
|
129
|
-
if (strIsNullOrEmptyOrWhitespace(translation.text)) {
|
|
133
|
+
const translation = bullet.translations.find(translation => translation.locale === this.locale);
|
|
134
|
+
if (strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.text)) {
|
|
130
135
|
return null;
|
|
131
136
|
}
|
|
132
|
-
return h("li", null, translation.text);
|
|
137
|
+
return h("li", null, translation === null || translation === void 0 ? void 0 : translation.text);
|
|
133
138
|
}))));
|
|
134
139
|
}
|
|
135
140
|
makeTitleContent(translation) {
|
|
@@ -153,6 +158,7 @@ const AicoCarouselContent = class {
|
|
|
153
158
|
registerInstance(this, hostRef);
|
|
154
159
|
this.content = undefined;
|
|
155
160
|
this.hasArrows = true;
|
|
161
|
+
this.locale = 'de';
|
|
156
162
|
}
|
|
157
163
|
componentDidLoad() {
|
|
158
164
|
jquery('.carousel').slick({
|
|
@@ -165,11 +171,14 @@ const AicoCarouselContent = class {
|
|
|
165
171
|
});
|
|
166
172
|
}
|
|
167
173
|
render() {
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
var _a;
|
|
175
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
176
|
+
return (h(Host, null, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation), locale: this.locale })), h("div", { class: "carousel" }, this.content.contentCarouselImages
|
|
170
177
|
.sort((a, b) => a.order - b.order)
|
|
171
178
|
.map(content => {
|
|
172
|
-
|
|
179
|
+
var _a;
|
|
180
|
+
const translation = (_a = content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
181
|
+
return (h("div", { class: "carousel-item card text-bg-dark text-white" }, h("div", { class: "ratio ratio-16x9 mx-auto", style: { 'max-width': '50%' } }, h("img", { class: "card-img d-block object-fit-cover", alt: "Carousel Picture", "data-lazy": translation === null || translation === void 0 ? void 0 : translation.picture })), h(ConditionalRender, { condition: content.translations.length > 0 && !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.title) }, h("div", { class: "card-img-overlay d-flex align-items-end" }, h("h5", { class: "card-title text-uppercase" }, translation === null || translation === void 0 ? void 0 : translation.title)))));
|
|
173
182
|
}))));
|
|
174
183
|
}
|
|
175
184
|
makeTitleContent(translation) {
|
|
@@ -191,11 +200,12 @@ const AicoContentCardContent = class {
|
|
|
191
200
|
constructor(hostRef) {
|
|
192
201
|
registerInstance(this, hostRef);
|
|
193
202
|
this.content = undefined;
|
|
203
|
+
this.locale = 'de';
|
|
194
204
|
}
|
|
195
205
|
render() {
|
|
196
|
-
var _a;
|
|
197
|
-
const translation = this.content.translations.
|
|
198
|
-
return (h("div", { class: "card", style: { width: '18rem' } }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.picture) }, h("img", { class: "card-img-top", alt: "Card picture", src: this.content.picture })), h("div", { class: "card-body" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.title) }, h("aico-title-content", { class: "card-title", content: this.makeTitleContent(translation) })), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.link) }, h("a", { class: "card-link", href: this.content.link, target: "_blank" }, (
|
|
206
|
+
var _a, _b;
|
|
207
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
208
|
+
return (h("div", { class: "card", style: { width: '18rem' } }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.picture) }, h("img", { class: "card-img-top", alt: "Card picture", src: this.content.picture })), h("div", { class: "card-body" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.title) }, h("aico-title-content", { class: "card-title", content: this.makeTitleContent(translation), locale: this.locale })), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.link) }, h("a", { class: "card-link", href: this.content.link, target: "_blank" }, (_b = translation === null || translation === void 0 ? void 0 : translation.linkText) !== null && _b !== void 0 ? _b : 'link')))));
|
|
199
209
|
}
|
|
200
210
|
makeTitleContent(translation) {
|
|
201
211
|
var _a;
|
|
@@ -217,9 +227,11 @@ const AicoDividerContent = class {
|
|
|
217
227
|
constructor(hostRef) {
|
|
218
228
|
registerInstance(this, hostRef);
|
|
219
229
|
this.content = undefined;
|
|
230
|
+
this.locale = 'de';
|
|
220
231
|
}
|
|
221
232
|
render() {
|
|
222
|
-
|
|
233
|
+
var _a;
|
|
234
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
223
235
|
const isOnlyMargin = translation ? translation.isOnlyMargin : this.content.isOnlyMargin;
|
|
224
236
|
return h(Host, null, isOnlyMargin ? h("div", { style: { 'padding-top': '40px' } }) : h("hr", { style: { margin: '5px' } }));
|
|
225
237
|
}
|
|
@@ -232,10 +244,11 @@ const AicoDocumentContent = class {
|
|
|
232
244
|
constructor(hostRef) {
|
|
233
245
|
registerInstance(this, hostRef);
|
|
234
246
|
this.content = undefined;
|
|
247
|
+
this.locale = 'de';
|
|
235
248
|
}
|
|
236
249
|
render() {
|
|
237
|
-
var _a;
|
|
238
|
-
const translation = this.content.translations.
|
|
250
|
+
var _a, _b;
|
|
251
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
239
252
|
const linkStyles = {};
|
|
240
253
|
const buttonStyles = {};
|
|
241
254
|
if (this.content.fontSize) {
|
|
@@ -258,7 +271,7 @@ const AicoDocumentContent = class {
|
|
|
258
271
|
if (this.content.isDocumentDisplayedAsButton && this.content.buttonHoverColor) {
|
|
259
272
|
buttonStyles['--hover-button-color'] = this.content.buttonHoverColor;
|
|
260
273
|
}
|
|
261
|
-
return (h("div", { class: "card" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.picture) }, h("img", { class: "card-img-top", alt: "image", src: translation.picture })), h("div", { class: "card-body" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.link) }, h("a", { class: "card-link", style: linkStyles, href: this.content.link }, this.content.link)), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.document) }, h("a", { href: translation.document, target: "_blank", style: buttonStyles, class: `card-link align-middle ${this.content.isDocumentDisplayedAsButton ? 'btn button-link' : ''}` }, h("i", null, h("svg", { xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", width: "24", height: "24", viewBox: "0 0 50 50" }, h("path", { d: "M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z" }))), (
|
|
274
|
+
return (h("div", { class: "card" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.picture) }, h("img", { class: "card-img-top", alt: "image", src: translation.picture })), h("div", { class: "card-body" }, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.link) }, h("a", { class: "card-link", style: linkStyles, href: this.content.link }, this.content.link)), h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.document) }, h("a", { href: translation.document, target: "_blank", style: buttonStyles, class: `card-link align-middle ${this.content.isDocumentDisplayedAsButton ? 'btn button-link' : ''}` }, h("i", null, h("svg", { xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", width: "24", height: "24", viewBox: "0 0 50 50" }, h("path", { d: "M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z" }))), (_b = translation.title) !== null && _b !== void 0 ? _b : 'File')))));
|
|
262
275
|
}
|
|
263
276
|
};
|
|
264
277
|
AicoDocumentContent.style = aicoDocumentContentCss;
|
|
@@ -6533,10 +6546,12 @@ const AicoFaqContent = class {
|
|
|
6533
6546
|
constructor(hostRef) {
|
|
6534
6547
|
registerInstance(this, hostRef);
|
|
6535
6548
|
this.content = undefined;
|
|
6549
|
+
this.locale = 'de';
|
|
6536
6550
|
}
|
|
6537
6551
|
render() {
|
|
6538
6552
|
return (h(Host, null, h("h2", { class: "card-title mb-2" }, "FAQ"), h("div", { class: "accordion", id: "aico-faq-accordion" }, this.content.faqItems.map((faqItem, index) => {
|
|
6539
|
-
|
|
6553
|
+
var _a;
|
|
6554
|
+
const translation = (_a = faqItem.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6540
6555
|
if (!translation) {
|
|
6541
6556
|
return null;
|
|
6542
6557
|
}
|
|
@@ -6552,9 +6567,11 @@ const AicoHeadingContent = class {
|
|
|
6552
6567
|
constructor(hostRef) {
|
|
6553
6568
|
registerInstance(this, hostRef);
|
|
6554
6569
|
this.content = undefined;
|
|
6570
|
+
this.locale = 'de';
|
|
6555
6571
|
}
|
|
6556
6572
|
render() {
|
|
6557
|
-
|
|
6573
|
+
var _a;
|
|
6574
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6558
6575
|
const contentStyle = { 'justify-content': this.content.isTextAtMiddleOfImage ? 'center' : 'flex-end' };
|
|
6559
6576
|
if (!strIsNullOrEmptyOrWhitespace(this.content.picture)) {
|
|
6560
6577
|
contentStyle['min-height'] = this.content.isImageHeightHalfSize ? '400px' : '600px';
|
|
@@ -6574,7 +6591,7 @@ const AicoHeadingContent = class {
|
|
|
6574
6591
|
if (!strIsNullOrEmptyOrWhitespace(this.content.textColor)) {
|
|
6575
6592
|
descriptionStyle['color'] = this.content.textColor;
|
|
6576
6593
|
}
|
|
6577
|
-
return (h("div", { class: this.content.isHeadingAlignedWithText ? 'content content-align-with-text' : 'content', style: contentStyle }, h(ConditionalRender, { condition: translation !== null }, h("div", { class: "title-wrapper", style: titleWrapperStyle }, h("aico-title-content", { content: this.makeTitleContent(translation) })), h("span", { class: "description", style: descriptionStyle }, translation.description))));
|
|
6594
|
+
return (h("div", { class: this.content.isHeadingAlignedWithText ? 'content content-align-with-text' : 'content', style: contentStyle }, h(ConditionalRender, { condition: translation !== null }, h("div", { class: "title-wrapper", style: titleWrapperStyle }, h("aico-title-content", { content: this.makeTitleContent(translation), locale: this.locale })), h("span", { class: "description", style: descriptionStyle }, translation.description))));
|
|
6578
6595
|
}
|
|
6579
6596
|
makeTitleContent(translation) {
|
|
6580
6597
|
var _a;
|
|
@@ -6597,12 +6614,12 @@ const AicoHtmlContent = class {
|
|
|
6597
6614
|
constructor(hostRef) {
|
|
6598
6615
|
registerInstance(this, hostRef);
|
|
6599
6616
|
this.content = undefined;
|
|
6617
|
+
this.locale = 'de';
|
|
6600
6618
|
}
|
|
6601
6619
|
render() {
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
}
|
|
6605
|
-
return (h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(this.content.translations[0].text) }, h("div", { innerHTML: this.content.translations[0].text })));
|
|
6620
|
+
var _a;
|
|
6621
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6622
|
+
return (h(ConditionalRender, { condition: translation !== null && !strIsNullOrEmptyOrWhitespace(translation.text) }, h("div", { innerHTML: translation.text })));
|
|
6606
6623
|
}
|
|
6607
6624
|
};
|
|
6608
6625
|
AicoHtmlContent.style = aicoHtmlContentCss;
|
|
@@ -6613,10 +6630,11 @@ const AicoLinkContent = class {
|
|
|
6613
6630
|
constructor(hostRef) {
|
|
6614
6631
|
registerInstance(this, hostRef);
|
|
6615
6632
|
this.content = undefined;
|
|
6633
|
+
this.locale = 'de';
|
|
6616
6634
|
}
|
|
6617
6635
|
render() {
|
|
6618
|
-
var _a, _b;
|
|
6619
|
-
const translation = this.content.translations.
|
|
6636
|
+
var _a, _b, _c;
|
|
6637
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6620
6638
|
const buttonLinkStyle = {};
|
|
6621
6639
|
if (this.content.textButtonColor) {
|
|
6622
6640
|
buttonLinkStyle['color'] = this.content.textButtonColor;
|
|
@@ -6634,7 +6652,7 @@ const AicoLinkContent = class {
|
|
|
6634
6652
|
buttonLinkStyle['--hover-button-color'] = this.content.hoverColor;
|
|
6635
6653
|
}
|
|
6636
6654
|
return (h(Host, null, h(ConditionalRender, { condition: !strIsNullOrEmptyOrWhitespace(translation === null || translation === void 0 ? void 0 : translation.title) }, h("label", null, translation === null || translation === void 0 ? void 0 :
|
|
6637
|
-
translation.title, ": ")), h(ConditionalRender, { condition: this.content.isImageLink !== undefined && this.content.isImageLink }, h("div", { class: "image-link-wrapper", style: { 'justify-content': this.content.picturePosition } }, h("a", { href: (
|
|
6655
|
+
translation.title, ": ")), h(ConditionalRender, { condition: this.content.isImageLink !== undefined && this.content.isImageLink }, h("div", { class: "image-link-wrapper", style: { 'justify-content': this.content.picturePosition } }, h("a", { href: (_b = translation === null || translation === void 0 ? void 0 : translation.link) !== null && _b !== void 0 ? _b : '#', target: "_blank", class: "image-link", style: { width: this.content.isImageFullSize ? '100%' : getImageWidthPrc(this.content.pictureSize) } }, h("img", { src: translation === null || translation === void 0 ? void 0 : translation.imageUrl })))), h(ConditionalRender, { condition: this.content.isImageLink === null || !this.content.isImageLink }, h("a", { href: (_c = translation === null || translation === void 0 ? void 0 : translation.link) !== null && _c !== void 0 ? _c : '#', target: "_blank", class: this.content.isButtonLink ? 'button-link' : '', style: buttonLinkStyle }, h("span", { class: "arrow-button" }, " \u2192")))));
|
|
6638
6656
|
}
|
|
6639
6657
|
};
|
|
6640
6658
|
AicoLinkContent.style = aicoLinkContentCss;
|
|
@@ -6666,15 +6684,16 @@ const AicoPageContent = class {
|
|
|
6666
6684
|
registerInstance(this, hostRef);
|
|
6667
6685
|
this.pageClicked = createEvent(this, "pageClicked", 7);
|
|
6668
6686
|
this.content = undefined;
|
|
6687
|
+
this.locale = 'de';
|
|
6669
6688
|
}
|
|
6670
6689
|
render() {
|
|
6671
|
-
var _a, _b, _c, _d;
|
|
6672
|
-
const translation = this.content.landingPage.translations.
|
|
6673
|
-
return (h(Host, { style: { 'max-width': '300px' } }, h("div", { class: "card pe-auto" }, h("div", { class: "ratio ratio-4x3" }, h("img", { class: "card-img-top img-fluid object-fit-cover", style: { 'object-position': 'center' }, src: (
|
|
6690
|
+
var _a, _b, _c, _d, _e;
|
|
6691
|
+
const translation = (_a = this.content.landingPage.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6692
|
+
return (h(Host, { style: { 'max-width': '300px' } }, h("div", { class: "card pe-auto" }, h("div", { class: "ratio ratio-4x3" }, h("img", { class: "card-img-top img-fluid object-fit-cover", style: { 'object-position': 'center' }, src: (_b = this.content.landingPage.image) !== null && _b !== void 0 ? _b : 'https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w', alt: (_c = translation === null || translation === void 0 ? void 0 : translation.imageAlt) !== null && _c !== void 0 ? _c : 'Landing page image' })), h("div", { class: "card-body", style: { 'min-height': '6rem' } }, h("h5", { class: "card-title" }, translation === null || translation === void 0 ? void 0 : translation.name), h(ConditionalRender, { condition: this.content.openExternalLink && !strIsNullOrEmptyOrWhitespace(this.content.externalLink) }, h("a", { href: this.content.externalLink, class: "card-link" }, (_d = translation === null || translation === void 0 ? void 0 : translation.buttonText) !== null && _d !== void 0 ? _d : 'Navigate to page')), h(ConditionalRender, { condition: !this.content.openExternalLink }, h("a", { href: "#", class: "card-link", onClick: e => {
|
|
6674
6693
|
var _a;
|
|
6675
6694
|
e.preventDefault();
|
|
6676
6695
|
(_a = this.pageClicked) === null || _a === void 0 ? void 0 : _a.emit(this.content);
|
|
6677
|
-
} }, (
|
|
6696
|
+
} }, (_e = translation === null || translation === void 0 ? void 0 : translation.buttonText) !== null && _e !== void 0 ? _e : 'Navigate to page'))), h(ConditionalRender, { condition: translation !== null && !strIsNullOrEmptyOrWhitespace(translation.excerpt) }, h("div", { class: "card-footer" }, h("small", { class: "text-muted" }, translation === null || translation === void 0 ? void 0 : translation.excerpt))))));
|
|
6678
6697
|
}
|
|
6679
6698
|
};
|
|
6680
6699
|
AicoPageContent.style = aicoPageContentCss;
|
|
@@ -6685,17 +6704,19 @@ const AicoTableContent = class {
|
|
|
6685
6704
|
constructor(hostRef) {
|
|
6686
6705
|
registerInstance(this, hostRef);
|
|
6687
6706
|
this.content = undefined;
|
|
6707
|
+
this.locale = 'de';
|
|
6688
6708
|
}
|
|
6689
6709
|
render() {
|
|
6690
|
-
var _a, _b;
|
|
6691
|
-
const translation = this.content.translations.
|
|
6692
|
-
const firstBackgroundColor = (
|
|
6693
|
-
const secondBackgroundColor = (
|
|
6694
|
-
return (h("div", { class: "content-table card" }, h("div", { class: "card-body" }, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { class: "card-title mt-0", content: this.makeTitleContent(translation) }), h("p", { class: "card-text" }, translation.additionalText)), h("table", { class: "table-content" }, this.content.tableRows
|
|
6710
|
+
var _a, _b, _c;
|
|
6711
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6712
|
+
const firstBackgroundColor = (_b = this.content.firstColor) !== null && _b !== void 0 ? _b : '#d6dfe1';
|
|
6713
|
+
const secondBackgroundColor = (_c = this.content.secondColor) !== null && _c !== void 0 ? _c : '#e6eced';
|
|
6714
|
+
return (h("div", { class: "content-table card" }, h("div", { class: "card-body" }, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { class: "card-title mt-0", content: this.makeTitleContent(translation), locale: this.locale }), h("p", { class: "card-text" }, translation.additionalText)), h("table", { class: "table-content" }, this.content.tableRows
|
|
6695
6715
|
.sort((a, b) => a.sort - b.sort)
|
|
6696
6716
|
.map((row, index) => {
|
|
6697
6717
|
return (h("tr", { style: { 'font-weight': '400', 'background-color': index % 2 === 0 ? firstBackgroundColor : secondBackgroundColor } }, row.rowColumns.map(col => {
|
|
6698
|
-
|
|
6718
|
+
var _a;
|
|
6719
|
+
const translation = (_a = col.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6699
6720
|
if (!translation) {
|
|
6700
6721
|
return row.isHeading ? h("th", null) : h("td", null);
|
|
6701
6722
|
}
|
|
@@ -6742,17 +6763,15 @@ const AicoTextContent = class {
|
|
|
6742
6763
|
constructor(hostRef) {
|
|
6743
6764
|
registerInstance(this, hostRef);
|
|
6744
6765
|
this.content = undefined;
|
|
6766
|
+
this.locale = 'de';
|
|
6745
6767
|
}
|
|
6746
6768
|
render() {
|
|
6747
|
-
var _a, _b, _c;
|
|
6748
|
-
|
|
6749
|
-
return h("aico-no-content", null);
|
|
6750
|
-
}
|
|
6751
|
-
const translation = this.content.translations.length > 0 ? this.content.translations[0] : null;
|
|
6769
|
+
var _a, _b, _c, _d;
|
|
6770
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6752
6771
|
const contentStyles = {};
|
|
6753
6772
|
if (this.content.hasBackgroundColor) {
|
|
6754
|
-
contentStyles['background-color'] = (
|
|
6755
|
-
contentStyles['color'] = (
|
|
6773
|
+
contentStyles['background-color'] = (_b = this.content.backgroundColor) !== null && _b !== void 0 ? _b : 'white';
|
|
6774
|
+
contentStyles['color'] = (_c = this.content.textColor) !== null && _c !== void 0 ? _c : 'black';
|
|
6756
6775
|
contentStyles['width'] = '100%';
|
|
6757
6776
|
contentStyles['padding'] = '15px';
|
|
6758
6777
|
contentStyles['margin-top'] = '10px';
|
|
@@ -6763,9 +6782,9 @@ const AicoTextContent = class {
|
|
|
6763
6782
|
}
|
|
6764
6783
|
if (this.content.alignmentEnabled) {
|
|
6765
6784
|
contentStyles['display'] = 'flex';
|
|
6766
|
-
contentStyles['align-items'] = (
|
|
6785
|
+
contentStyles['align-items'] = (_d = this.content.verticalAlign) !== null && _d !== void 0 ? _d : 'flex-start';
|
|
6767
6786
|
}
|
|
6768
|
-
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({
|
|
6787
|
+
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), locale: this.locale }), h(ConditionalRender, { condition: this.shouldDisplayTextAndPicture(translation) }, h("div", { class: "row g-4" }, h("div", { class: getClass({
|
|
6769
6788
|
'col-md-8': true,
|
|
6770
6789
|
'order-1': this.content.picturePosition === 'right',
|
|
6771
6790
|
'order-2': this.content.picturePosition === 'left',
|
|
@@ -6827,11 +6846,13 @@ const AicoUploadContent = class {
|
|
|
6827
6846
|
constructor(hostRef) {
|
|
6828
6847
|
registerInstance(this, hostRef);
|
|
6829
6848
|
this.content = undefined;
|
|
6849
|
+
this.locale = 'de';
|
|
6830
6850
|
}
|
|
6831
6851
|
render() {
|
|
6832
|
-
|
|
6852
|
+
var _a;
|
|
6853
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6833
6854
|
const youtubeUrl = this.content && this.content.videoUrl ? getYoutubeURL(this.content.videoUrl) : null;
|
|
6834
|
-
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 => {
|
|
6855
|
+
return (h(Host, null, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation), locale: this.locale })), 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 => {
|
|
6835
6856
|
if (strIsNullOrEmptyOrWhitespace(upload.path)) {
|
|
6836
6857
|
return null;
|
|
6837
6858
|
}
|
|
@@ -6857,11 +6878,13 @@ const AicoVideoContent = class {
|
|
|
6857
6878
|
constructor(hostRef) {
|
|
6858
6879
|
registerInstance(this, hostRef);
|
|
6859
6880
|
this.content = undefined;
|
|
6881
|
+
this.locale = 'de';
|
|
6860
6882
|
}
|
|
6861
6883
|
render() {
|
|
6862
|
-
|
|
6884
|
+
var _a;
|
|
6885
|
+
const translation = (_a = this.content.translations.find(translation => translation.locale === this.locale)) !== null && _a !== void 0 ? _a : null;
|
|
6863
6886
|
const youtubeUrl = translation && translation.videoUrl ? getYoutubeURL(translation.videoUrl) : null;
|
|
6864
|
-
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" }))))));
|
|
6887
|
+
return (h(Host, null, h(ConditionalRender, { condition: translation !== null }, h("aico-title-content", { content: this.makeTitleContent(translation), locale: this.locale })), 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" }))))));
|
|
6865
6888
|
}
|
|
6866
6889
|
makeTitleContent(translation) {
|
|
6867
6890
|
var _a;
|