@aiconomy/aico-components 0.0.179 → 0.0.187
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/README.md +0 -513
- 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-c9763f2d.entry.js → p-f2c14c63.entry.js} +3 -3
- package/dist/aico-components/p-f2c14c63.entry.js.map +1 -0
- package/dist/cjs/aico-album-content_27.cjs.entry.js +94 -66
- package/dist/cjs/aico-album-content_27.cjs.entry.js.map +1 -1
- package/dist/cjs/aico-components.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/aico-news-list/aico-news-list.js +63 -23
- 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 +26 -6
- package/dist/collection/components/aico-special-news-carousel/aico-special-news-carousel.js.map +1 -1
- package/dist/collection/components/aico-top-news-carousel/aico-top-news-carousel.js +25 -5
- package/dist/collection/components/aico-top-news-carousel/aico-top-news-carousel.js.map +1 -1
- package/dist/collection/model/AicoApiRequestInfo.js +7 -3
- package/dist/collection/model/AicoApiRequestInfo.js.map +1 -1
- package/dist/collection/utils/utils.js +53 -34
- package/dist/collection/utils/utils.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 +26 -21
- package/dist/components/aico-news-list.js.map +1 -1
- package/dist/components/aico-special-news-carousel.js +6 -4
- package/dist/components/aico-special-news-carousel.js.map +1 -1
- package/dist/components/aico-top-news-carousel.js +5 -3
- package/dist/components/aico-top-news-carousel.js.map +1 -1
- package/dist/components/utils.js +60 -37
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/aico-album-content_27.entry.js +94 -66
- package/dist/esm/aico-album-content_27.entry.js.map +1 -1
- package/dist/esm/aico-components.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ssr/index.js +99 -67
- package/dist/ssr/index.mjs +99 -67
- package/dist/types/components/aico-news-list/aico-news-list.d.ts +8 -0
- package/dist/types/components/aico-special-news-carousel/aico-special-news-carousel.d.ts +4 -0
- package/dist/types/components/aico-top-news-carousel/aico-top-news-carousel.d.ts +4 -0
- package/dist/types/components.d.ts +35 -3
- package/dist/types/model/AicoApiRequestInfo.d.ts +3 -2
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/aico-components/p-c9763f2d.entry.js.map +0 -1
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"hideTopArticles":[4,"hide-top-articles"],"hideSpecialArticles":[4,"hide-special-articles"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
|
|
19
|
+
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"hideTopArticles":[4,"hide-top-articles"],"hideSpecialArticles":[4,"hide-special-articles"],"latestNews":[4,"latest-news"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
//# sourceMappingURL=aico-components.js.map
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"hideTopArticles":[4,"hide-top-articles"],"hideSpecialArticles":[4,"hide-special-articles"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
|
|
8
|
+
return bootstrapLazy([["aico-asking-list-content",[[6,"aico-asking-list-content"]]],["aico-collection-content",[[6,"aico-collection-content"]]],["aico-album-content_27",[[2,"aico-fetch-article-detail",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"],"articleId":[1,"article-id"],"articleUrlHandle":[1,"article-url-handle"],"article":[32]}],[2,"aico-news-list",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"hideTopArticles":[4,"hide-top-articles"],"hideSpecialArticles":[4,"hide-special-articles"],"latestNews":[4,"latest-news"],"pageSize":[2,"page-size"],"nextButtonText":[1,"next-button-text"],"previousButtonText":[1,"previous-button-text"],"locale":[1],"newsResponse":[32],"pageNumber":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-special-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-top-news-carousel",{"aicoUrl":[1,"aico-url"],"aicoBearerToken":[1,"aico-bearer-token"],"userAccessToken":[1,"user-access-token"],"newsChannels":[1,"news-channels"],"newsSellerIds":[1,"news-seller-ids"],"newsBrandIds":[1,"news-brand-ids"],"newsLanguageLocales":[1,"news-language-locales"],"numberOfArticles":[2,"number-of-articles"],"locale":[1],"newsResponse":[32],"newsChannelsArr":[32],"newsSellerIdsArr":[32],"newsBrandIdsArr":[32],"newsLanguageLocalesArr":[32]}],[2,"aico-article-detail",{"article":[16],"locale":[1],"hideDateAndAuthor":[4,"hide-date-and-author"],"hideCategoryAndTags":[4,"hide-category-and-tags"]}],[2,"aico-news-list-item",{"article":[16],"articleIndex":[2,"article-index"],"locale":[1]}],[2,"aico-bullet-content",{"content":[16],"locale":[1]}],[2,"aico-carousel-content",{"content":[16],"hasArrows":[4,"has-arrows"],"locale":[1]}],[2,"aico-content-card-content",{"content":[16],"locale":[1]}],[2,"aico-heading-content",{"content":[16],"locale":[1]}],[2,"aico-table-content",{"content":[16],"locale":[1]}],[2,"aico-text-content",{"content":[16],"locale":[1]}],[2,"aico-upload-content",{"content":[16],"locale":[1]}],[2,"aico-video-content",{"content":[16],"locale":[1]}],[2,"aico-album-content",{"content":[16]}],[2,"aico-asking-content",{"content":[16],"locale":[1]}],[2,"aico-block-quote-content",{"content":[16],"locale":[1]}],[2,"aico-divider-content",{"content":[16],"locale":[1]}],[2,"aico-document-content",{"content":[16],"locale":[1]}],[2,"aico-faq-content",{"content":[16],"locale":[1]}],[2,"aico-html-content",{"content":[16],"locale":[1]}],[2,"aico-link-content",{"content":[16],"locale":[1]}],[2,"aico-news-content",{"content":[16]}],[2,"aico-page-content",{"content":[16],"locale":[1]}],[2,"aico-testimonial-content",{"content":[16]}],[2,"aico-title-content",{"content":[16],"locale":[1]}],[2,"aico-no-content"]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
package/dist/ssr/index.js
CHANGED
|
@@ -15978,15 +15978,19 @@ const ConditionalRender = ({ condition }, children) => {
|
|
|
15978
15978
|
return condition ? children : [];
|
|
15979
15979
|
};
|
|
15980
15980
|
|
|
15981
|
-
const getAuthenticatedHeaders = (
|
|
15981
|
+
const getAuthenticatedHeaders = (token) => {
|
|
15982
15982
|
const headers = new Headers();
|
|
15983
15983
|
headers.append('Accept', 'application/vnd.api+json');
|
|
15984
|
-
headers.append('Authorization', `Bearer ${
|
|
15984
|
+
headers.append('Authorization', `Bearer ${token}`);
|
|
15985
15985
|
return headers;
|
|
15986
15986
|
};
|
|
15987
15987
|
const getAuthenticatedRequest = (api, route, query, signal) => {
|
|
15988
|
+
const token = api.bearerToken || api.accessToken;
|
|
15989
|
+
if (!token) {
|
|
15990
|
+
throw new Error('No valid token found');
|
|
15991
|
+
}
|
|
15988
15992
|
return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {
|
|
15989
|
-
headers: getAuthenticatedHeaders(
|
|
15993
|
+
headers: getAuthenticatedHeaders(token),
|
|
15990
15994
|
signal,
|
|
15991
15995
|
});
|
|
15992
15996
|
};
|
|
@@ -15996,58 +16000,77 @@ function setArrayFilter(queryParams, key, values) {
|
|
|
15996
16000
|
queryParams.append(key, value);
|
|
15997
16001
|
}
|
|
15998
16002
|
}
|
|
15999
|
-
async function fetchNewsArticles(api, page, size, signal, newsChannels = [], newsSellerIds = [], newsBrandIds = [], newsLanguageLocales = [], hideTopArticles = false, hideSpecialArticles = false) {
|
|
16003
|
+
async function fetchNewsArticles(api, page, size, signal, newsChannels = [], newsSellerIds = [], newsBrandIds = [], newsLanguageLocales = [], hideTopArticles = false, hideSpecialArticles = false, latestNews = false) {
|
|
16004
|
+
const url = api.bearerToken
|
|
16005
|
+
? 'news'
|
|
16006
|
+
: api.accessToken
|
|
16007
|
+
? latestNews
|
|
16008
|
+
? 'aico-shops/1/latest-news-resource'
|
|
16009
|
+
: 'aico-shops/1/news-resource'
|
|
16010
|
+
: '';
|
|
16000
16011
|
const queryParams = new URLSearchParams();
|
|
16001
16012
|
queryParams.set('page[number]', String(page));
|
|
16002
16013
|
queryParams.set('page[size]', String(size));
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
|
|
16014
|
+
if (api.bearerToken) {
|
|
16015
|
+
queryParams.set('sort', '-publishDate');
|
|
16016
|
+
queryParams.set('filter[isActive]', '1');
|
|
16017
|
+
queryParams.set('filter[excludeTag][]', 'Eisnull');
|
|
16018
|
+
setArrayFilter(queryParams, 'filter[channel][]', newsChannels);
|
|
16019
|
+
setArrayFilter(queryParams, 'filter[sellerIds][]', newsSellerIds);
|
|
16020
|
+
setArrayFilter(queryParams, 'filter[brandId][]', newsBrandIds);
|
|
16021
|
+
setArrayFilter(queryParams, 'filter[newsLanguage][]', newsLanguageLocales);
|
|
16022
|
+
if (hideTopArticles) {
|
|
16023
|
+
queryParams.set('filter[isTopNews]', '0');
|
|
16024
|
+
}
|
|
16025
|
+
if (hideSpecialArticles) {
|
|
16026
|
+
queryParams.set('filter[isSpecialArticle]', '0');
|
|
16027
|
+
}
|
|
16028
|
+
}
|
|
16029
|
+
const request = getAuthenticatedRequest(api, url, queryParams, signal);
|
|
16017
16030
|
const response = await fetch(request);
|
|
16018
16031
|
return await response.json();
|
|
16019
16032
|
}
|
|
16020
16033
|
async function fetchSpecialNewsArticles(api, page, size, signal, newsChannels = [], newsSellerIds = [], newsBrandIds = [], newsLanguageLocales = []) {
|
|
16034
|
+
const url = api.bearerToken
|
|
16035
|
+
? 'news'
|
|
16036
|
+
: 'aico-shops/1/news-resource';
|
|
16021
16037
|
const queryParams = new URLSearchParams();
|
|
16022
16038
|
queryParams.set('page[number]', String(page));
|
|
16023
16039
|
queryParams.set('page[size]', String(size));
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16040
|
+
if (api.bearerToken) {
|
|
16041
|
+
queryParams.set('sort', '-publishDate');
|
|
16042
|
+
queryParams.set('filter[isActive]', '1');
|
|
16043
|
+
queryParams.set('filter[isSpecialArticle]', '1');
|
|
16044
|
+
queryParams.set('filter[isLightVersion]', 'true');
|
|
16045
|
+
queryParams.set('filter[excludeTag][]', 'Eisnull');
|
|
16046
|
+
setArrayFilter(queryParams, 'filter[channel][]', newsChannels);
|
|
16047
|
+
setArrayFilter(queryParams, 'filter[sellerIds][]', newsSellerIds);
|
|
16048
|
+
setArrayFilter(queryParams, 'filter[brandId][]', newsBrandIds);
|
|
16049
|
+
setArrayFilter(queryParams, 'filter[newsLanguage][]', newsLanguageLocales);
|
|
16050
|
+
}
|
|
16051
|
+
const request = getAuthenticatedRequest(api, url, queryParams, signal);
|
|
16034
16052
|
const response = await fetch(request);
|
|
16035
16053
|
return await response.json();
|
|
16036
16054
|
}
|
|
16037
16055
|
async function fetchTopNewsArticles(api, page, size, signal, newsChannels = [], newsSellerIds = [], newsBrandIds = [], newsLanguageLocales = []) {
|
|
16056
|
+
const url = api.bearerToken
|
|
16057
|
+
? 'news'
|
|
16058
|
+
: 'aico-shops/1/news-resource';
|
|
16038
16059
|
const queryParams = new URLSearchParams();
|
|
16039
16060
|
queryParams.set('page[number]', String(page));
|
|
16040
16061
|
queryParams.set('page[size]', String(size));
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
16062
|
+
if (api.bearerToken) {
|
|
16063
|
+
queryParams.set('sort', '-publishDate');
|
|
16064
|
+
queryParams.set('filter[isActive]', '1');
|
|
16065
|
+
queryParams.set('filter[isTopNews]', '1');
|
|
16066
|
+
queryParams.set('filter[isLightVersion]', 'true');
|
|
16067
|
+
queryParams.set('filter[excludeTag][]', 'Eisnull');
|
|
16068
|
+
setArrayFilter(queryParams, 'filter[channel][]', newsChannels);
|
|
16069
|
+
setArrayFilter(queryParams, 'filter[sellerIds][]', newsSellerIds);
|
|
16070
|
+
setArrayFilter(queryParams, 'filter[brandId][]', newsBrandIds);
|
|
16071
|
+
setArrayFilter(queryParams, 'filter[newsLanguage][]', newsLanguageLocales);
|
|
16072
|
+
}
|
|
16073
|
+
const request = getAuthenticatedRequest(api, url, queryParams, signal);
|
|
16051
16074
|
const response = await fetch(request);
|
|
16052
16075
|
return await response.json();
|
|
16053
16076
|
}
|
|
@@ -23082,13 +23105,15 @@ class AicoNewsList {
|
|
|
23082
23105
|
this.newsBrandIdsArr = [];
|
|
23083
23106
|
this.newsLanguageLocalesArr = [];
|
|
23084
23107
|
this.aicoUrl = undefined;
|
|
23085
|
-
this.aicoBearerToken =
|
|
23108
|
+
this.aicoBearerToken = '';
|
|
23109
|
+
this.userAccessToken = '';
|
|
23086
23110
|
this.newsChannels = '';
|
|
23087
23111
|
this.newsSellerIds = '';
|
|
23088
23112
|
this.newsBrandIds = '';
|
|
23089
23113
|
this.newsLanguageLocales = '';
|
|
23090
23114
|
this.hideTopArticles = true;
|
|
23091
23115
|
this.hideSpecialArticles = false;
|
|
23116
|
+
this.latestNews = false;
|
|
23092
23117
|
this.pageSize = 16;
|
|
23093
23118
|
this.nextButtonText = 'Next';
|
|
23094
23119
|
this.previousButtonText = 'Previous';
|
|
@@ -23097,7 +23122,7 @@ class AicoNewsList {
|
|
|
23097
23122
|
connectedCallback() {
|
|
23098
23123
|
this.newsListFetchController = new AbortController();
|
|
23099
23124
|
this.pageNumber = 1;
|
|
23100
|
-
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
|
|
23125
|
+
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken, accessToken: this.userAccessToken };
|
|
23101
23126
|
this.newsChannelsArr = splitByComma(this.newsChannels);
|
|
23102
23127
|
this.newsSellerIdsArr = splitByComma(this.newsSellerIds);
|
|
23103
23128
|
this.newsBrandIdsArr = splitByComma(this.newsBrandIds);
|
|
@@ -23107,36 +23132,37 @@ class AicoNewsList {
|
|
|
23107
23132
|
this.newsListFetchController.abort('disconnected');
|
|
23108
23133
|
}
|
|
23109
23134
|
async componentWillLoad() {
|
|
23110
|
-
this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal, this.newsChannelsArr, this.newsSellerIdsArr, this.newsBrandIdsArr, this.newsLanguageLocalesArr, this.hideTopArticles, this.hideSpecialArticles);
|
|
23135
|
+
this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal, this.newsChannelsArr, this.newsSellerIdsArr, this.newsBrandIdsArr, this.newsLanguageLocalesArr, this.hideTopArticles, this.hideSpecialArticles, this.latestNews);
|
|
23111
23136
|
}
|
|
23112
23137
|
async componentWillUpdate() {
|
|
23113
23138
|
this.newsListFetchController = new AbortController();
|
|
23114
|
-
this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal, this.newsChannelsArr, this.newsSellerIdsArr, this.newsBrandIdsArr, this.newsLanguageLocalesArr, this.hideTopArticles, this.hideSpecialArticles);
|
|
23139
|
+
this.newsResponse = await fetchNewsArticles(this.api, this.pageNumber, this.pageSize, this.newsListFetchController.signal, this.newsChannelsArr, this.newsSellerIdsArr, this.newsBrandIdsArr, this.newsLanguageLocalesArr, this.hideTopArticles, this.hideSpecialArticles, this.latestNews);
|
|
23115
23140
|
}
|
|
23116
23141
|
render() {
|
|
23117
23142
|
var _a, _b, _c;
|
|
23118
|
-
return (hAsync(Host, { key: '
|
|
23143
|
+
return (hAsync(Host, { key: 'e1667c954dd75052b26f824431174b7e734b484c' }, hAsync("div", { key: '93ebe550604322a061fc082390592445491877a6', class: "newslist-grid-container mb-4" }, (_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.data.filter(article => this.latestNews || !article.attributes.isTopNews).map((article, articleIndex) => {
|
|
23119
23144
|
return (hAsync("div", { key: article.id, class: "col" }, hAsync("aico-news-list-item", { article: article, articleIndex: articleIndex, onArticleClick: e => {
|
|
23120
23145
|
var _a;
|
|
23121
23146
|
(_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
23122
23147
|
e.stopPropagation();
|
|
23123
23148
|
}, locale: this.locale })));
|
|
23124
|
-
})),
|
|
23125
|
-
|
|
23126
|
-
this.pageNumber
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
|
|
23130
|
-
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
|
|
23134
|
-
|
|
23135
|
-
|
|
23136
|
-
|
|
23137
|
-
this.pageNumber
|
|
23138
|
-
|
|
23139
|
-
|
|
23149
|
+
})), !this.latestNews &&
|
|
23150
|
+
hAsync("nav", { key: 'b4e081968bf0de39ca6deb53f46e51149ba90c96', class: "w-100", "aria-label": "News navigation" }, hAsync("ul", { key: '306919fae60915ef97b0f8b499105252cffa7355', class: "pagination justify-content-center" }, hAsync("li", { key: '2004858d91a1d36f344947003e16276c06d012e4', class: `page-item page-link user-select-none d-flex align-items-center ${!((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.links.prev) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
23151
|
+
if (this.pageNumber > 1) {
|
|
23152
|
+
this.pageNumber -= 1;
|
|
23153
|
+
}
|
|
23154
|
+
return false;
|
|
23155
|
+
} }, hAsync("svg", { key: '794bc0a90223b0bfb469732e64c8ecdc33cbf95f', xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-left me-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, hAsync("path", { key: 'c114c34774e564ee68e70a72f02a53acc7d7403f', "fill-rule": "evenodd", d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0" })), this.previousButtonText), this.getViewablePages().map(page => (hAsync("li", { class: `page-item page-link user-select-none ${page === '...' ? 'disabled' : Number(page) === this.pageNumber ? 'active' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
23156
|
+
if (page !== '...') {
|
|
23157
|
+
this.pageNumber = Number(page);
|
|
23158
|
+
}
|
|
23159
|
+
return false;
|
|
23160
|
+
} }, page))), hAsync("li", { key: 'a3b8aa8f9d69ad837e90b17f683fbcb97e70dd56', class: `page-item page-link user-select-none d-flex align-items-center ${!((_c = this.newsResponse) === null || _c === void 0 ? void 0 : _c.links.next) ? 'disabled' : ''}`, style: { cursor: 'pointer' }, onClick: () => {
|
|
23161
|
+
var _a, _b;
|
|
23162
|
+
if (((_a = this.newsResponse) === null || _a === void 0 ? void 0 : _a.meta.page.lastPage) && this.pageNumber < ((_b = this.newsResponse) === null || _b === void 0 ? void 0 : _b.meta.page.lastPage)) {
|
|
23163
|
+
this.pageNumber += 1;
|
|
23164
|
+
}
|
|
23165
|
+
} }, this.nextButtonText, hAsync("svg", { key: '46589c53b68ba1f8a87a893a63469e460d01b25e', xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "bi bi-chevron-right ms-1 fs-4", style: { width: '1em', height: '1em' }, viewBox: "0 0 16 16" }, hAsync("path", { key: '5ea164fd74b2138274adcba33e0e54a42e52be4e', "fill-rule": "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708" })))))));
|
|
23140
23166
|
}
|
|
23141
23167
|
getViewablePages(lookAhead = 2) {
|
|
23142
23168
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -23173,12 +23199,14 @@ class AicoNewsList {
|
|
|
23173
23199
|
"$members$": {
|
|
23174
23200
|
"aicoUrl": [1, "aico-url"],
|
|
23175
23201
|
"aicoBearerToken": [1, "aico-bearer-token"],
|
|
23202
|
+
"userAccessToken": [1, "user-access-token"],
|
|
23176
23203
|
"newsChannels": [1, "news-channels"],
|
|
23177
23204
|
"newsSellerIds": [1, "news-seller-ids"],
|
|
23178
23205
|
"newsBrandIds": [1, "news-brand-ids"],
|
|
23179
23206
|
"newsLanguageLocales": [1, "news-language-locales"],
|
|
23180
23207
|
"hideTopArticles": [4, "hide-top-articles"],
|
|
23181
23208
|
"hideSpecialArticles": [4, "hide-special-articles"],
|
|
23209
|
+
"latestNews": [4, "latest-news"],
|
|
23182
23210
|
"pageSize": [2, "page-size"],
|
|
23183
23211
|
"nextButtonText": [1, "next-button-text"],
|
|
23184
23212
|
"previousButtonText": [1, "previous-button-text"],
|
|
@@ -23233,7 +23261,7 @@ class AicoNewsListItem {
|
|
|
23233
23261
|
return (hAsync("div", { key: 'c133677601367cd225d44f120e7efa6db950c902', class: "card h-100 pe-auto", style: { cursor: 'pointer' }, onClick: () => {
|
|
23234
23262
|
var _a;
|
|
23235
23263
|
(_a = this.articleClick) === null || _a === void 0 ? void 0 : _a.emit(this.article);
|
|
23236
|
-
} }, hAsync("div", { key: '33be1f94f953a1d60f5abba57c52f1a8d0d4d4ab', class: "ratio ratio-16x9 overflow-hidden" }, hAsync("img", { key: 'd4b5349021cba1d93c9a0dbaba3b8ea5ecb94ce1', class: "object-fit-cover", style: { 'min-height': '15rem' }, alt: "Article image", src: (_e = (_d = (_c = (_b = (_a = translation === null || translation === void 0 ? void 0 : translation.
|
|
23264
|
+
} }, hAsync("div", { key: '33be1f94f953a1d60f5abba57c52f1a8d0d4d4ab', class: "ratio ratio-16x9 overflow-hidden" }, hAsync("img", { key: 'd4b5349021cba1d93c9a0dbaba3b8ea5ecb94ce1', class: "object-fit-cover", style: { 'min-height': '15rem' }, alt: "Article image", src: (_e = (_d = (_c = (_b = (_a = translation === null || translation === void 0 ? void 0 : translation.optimizedListImage) !== null && _a !== void 0 ? _a : translation === null || translation === void 0 ? void 0 : translation.optimizedImage) !== null && _b !== void 0 ? _b : translation === null || translation === void 0 ? void 0 : translation.image) !== null && _c !== void 0 ? _c : this.article.attributes.optimizedListImage) !== null && _d !== void 0 ? _d : this.article.attributes.optimizedImage) !== null && _e !== void 0 ? _e : this.article.attributes.image }), hAsync("div", { key: 'a3745aafc708a3e18adcb68b6c7d265ab12e8730', class: "card-img-overlay d-flex justify-content-end" })), hAsync("div", { key: '28f1a23fe2174a590e5ac571c34b11efd759596c', class: "card-body" }, hAsync("h5", { key: '8a9279c63bbfaef47496b89553bbc1e74a67e56d', class: "card-title" }, (_f = translation === null || translation === void 0 ? void 0 : translation.name) !== null && _f !== void 0 ? _f : this.article.attributes.name), hAsync("p", { key: '5ca9ae322f1244e8e5c0d2afc35eec71ba580de1', class: "card-text" }, (_g = translation === null || translation === void 0 ? void 0 : translation.excerpt) !== null && _g !== void 0 ? _g : this.article.attributes.excerpt))));
|
|
23237
23265
|
}
|
|
23238
23266
|
get thisHtml() { return getElement$1(this); }
|
|
23239
23267
|
static get style() { return AicoNewsListItemStyle0; }
|
|
@@ -23318,7 +23346,8 @@ class AicoSpecialNewsCarousel {
|
|
|
23318
23346
|
this.newsBrandIdsArr = [];
|
|
23319
23347
|
this.newsLanguageLocalesArr = [];
|
|
23320
23348
|
this.aicoUrl = undefined;
|
|
23321
|
-
this.aicoBearerToken =
|
|
23349
|
+
this.aicoBearerToken = '';
|
|
23350
|
+
this.userAccessToken = '';
|
|
23322
23351
|
this.newsChannels = '';
|
|
23323
23352
|
this.newsSellerIds = '';
|
|
23324
23353
|
this.newsBrandIds = '';
|
|
@@ -23328,7 +23357,7 @@ class AicoSpecialNewsCarousel {
|
|
|
23328
23357
|
}
|
|
23329
23358
|
connectedCallback() {
|
|
23330
23359
|
this.newsListFetchController = new AbortController();
|
|
23331
|
-
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
|
|
23360
|
+
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken, accessToken: this.userAccessToken };
|
|
23332
23361
|
this.newsChannelsArr = splitByComma(this.newsChannels);
|
|
23333
23362
|
this.newsSellerIdsArr = splitByComma(this.newsSellerIds);
|
|
23334
23363
|
this.newsBrandIdsArr = splitByComma(this.newsBrandIds);
|
|
@@ -23354,7 +23383,7 @@ class AicoSpecialNewsCarousel {
|
|
|
23354
23383
|
});
|
|
23355
23384
|
}
|
|
23356
23385
|
render() {
|
|
23357
|
-
return (hAsync("div", { key: '
|
|
23386
|
+
return (hAsync("div", { key: 'cdbe261371e46876ac8b4677067c0c1d60d2e9e9', class: "carousel" }, this.newsResponse.data.map(article => {
|
|
23358
23387
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
23359
23388
|
const focusX = article.attributes.focusXPercentage ? `${article.attributes.focusXPercentage}%` : 'center';
|
|
23360
23389
|
const focusY = article.attributes.focusYPercentage ? `${article.attributes.focusYPercentage}%` : 'center';
|
|
@@ -23363,7 +23392,7 @@ class AicoSpecialNewsCarousel {
|
|
|
23363
23392
|
var _a;
|
|
23364
23393
|
e.preventDefault();
|
|
23365
23394
|
(_a = this.articleClicked) === null || _a === void 0 ? void 0 : _a.emit(article);
|
|
23366
|
-
} }, (_a = translation === null || translation === void 0 ? void 0 : translation.name) !== null && _a !== void 0 ? _a : article.attributes.name)), hAsync("p", { class: "card-text text-center" }, (_b = translation === null || translation === void 0 ? void 0 : translation.excerpt) !== null && _b !== void 0 ? _b : article.attributes.excerpt)), hAsync("div", { class: "ratio ratio-16x9 mx-auto", style: { 'max-width': '50%' } }, hAsync("img", { class: "card-img-bottom object-fit-cover", style: { 'object-position': `${focusX} ${focusY}`, 'min-height': '15rem' }, alt: "News Picture", "data-lazy": (_g = (_f = (_e = (_d = (_c = translation === null || translation === void 0 ? void 0 : translation.
|
|
23395
|
+
} }, (_a = translation === null || translation === void 0 ? void 0 : translation.name) !== null && _a !== void 0 ? _a : article.attributes.name)), hAsync("p", { class: "card-text text-center" }, (_b = translation === null || translation === void 0 ? void 0 : translation.excerpt) !== null && _b !== void 0 ? _b : article.attributes.excerpt)), hAsync("div", { class: "ratio ratio-16x9 mx-auto", style: { 'max-width': '50%' } }, hAsync("img", { class: "card-img-bottom object-fit-cover", style: { 'object-position': `${focusX} ${focusY}`, 'min-height': '15rem' }, alt: "News Picture", "data-lazy": (_g = (_f = (_e = (_d = (_c = translation === null || translation === void 0 ? void 0 : translation.optimizedListImage) !== null && _c !== void 0 ? _c : translation === null || translation === void 0 ? void 0 : translation.optimizedImage) !== null && _d !== void 0 ? _d : translation === null || translation === void 0 ? void 0 : translation.image) !== null && _e !== void 0 ? _e : article.attributes.optimizedListImage) !== null && _f !== void 0 ? _f : article.attributes.optimizedImage) !== null && _g !== void 0 ? _g : article.attributes.image }))));
|
|
23367
23396
|
})));
|
|
23368
23397
|
}
|
|
23369
23398
|
static get style() { return AicoSpecialNewsCarouselStyle0; }
|
|
@@ -23373,6 +23402,7 @@ class AicoSpecialNewsCarousel {
|
|
|
23373
23402
|
"$members$": {
|
|
23374
23403
|
"aicoUrl": [1, "aico-url"],
|
|
23375
23404
|
"aicoBearerToken": [1, "aico-bearer-token"],
|
|
23405
|
+
"userAccessToken": [1, "user-access-token"],
|
|
23376
23406
|
"newsChannels": [1, "news-channels"],
|
|
23377
23407
|
"newsSellerIds": [1, "news-seller-ids"],
|
|
23378
23408
|
"newsBrandIds": [1, "news-brand-ids"],
|
|
@@ -23622,7 +23652,8 @@ class AicoTopNewsCarousel {
|
|
|
23622
23652
|
this.newsBrandIdsArr = [];
|
|
23623
23653
|
this.newsLanguageLocalesArr = [];
|
|
23624
23654
|
this.aicoUrl = undefined;
|
|
23625
|
-
this.aicoBearerToken =
|
|
23655
|
+
this.aicoBearerToken = '';
|
|
23656
|
+
this.userAccessToken = '';
|
|
23626
23657
|
this.newsChannels = '';
|
|
23627
23658
|
this.newsSellerIds = '';
|
|
23628
23659
|
this.newsBrandIds = '';
|
|
@@ -23632,7 +23663,7 @@ class AicoTopNewsCarousel {
|
|
|
23632
23663
|
}
|
|
23633
23664
|
connectedCallback() {
|
|
23634
23665
|
this.newsListFetchController = new AbortController();
|
|
23635
|
-
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken };
|
|
23666
|
+
this.api = { baseApi: this.aicoUrl, bearerToken: this.aicoBearerToken, accessToken: this.userAccessToken };
|
|
23636
23667
|
this.newsChannelsArr = splitByComma(this.newsChannels);
|
|
23637
23668
|
this.newsSellerIdsArr = splitByComma(this.newsSellerIds);
|
|
23638
23669
|
this.newsBrandIdsArr = splitByComma(this.newsBrandIds);
|
|
@@ -23658,7 +23689,7 @@ class AicoTopNewsCarousel {
|
|
|
23658
23689
|
});
|
|
23659
23690
|
}
|
|
23660
23691
|
render() {
|
|
23661
|
-
return (hAsync("div", { key: '
|
|
23692
|
+
return (hAsync("div", { key: '403ffcf2505ada818121277bedf4099015221c9a', class: "carousel" }, this.newsResponse.data.map(article => {
|
|
23662
23693
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
23663
23694
|
const focusX = article.attributes.focusXPercentage ? `${article.attributes.focusXPercentage}%` : 'center';
|
|
23664
23695
|
const focusY = article.attributes.focusYPercentage ? `${article.attributes.focusYPercentage}%` : 'center';
|
|
@@ -23677,6 +23708,7 @@ class AicoTopNewsCarousel {
|
|
|
23677
23708
|
"$members$": {
|
|
23678
23709
|
"aicoUrl": [1, "aico-url"],
|
|
23679
23710
|
"aicoBearerToken": [1, "aico-bearer-token"],
|
|
23711
|
+
"userAccessToken": [1, "user-access-token"],
|
|
23680
23712
|
"newsChannels": [1, "news-channels"],
|
|
23681
23713
|
"newsSellerIds": [1, "news-seller-ids"],
|
|
23682
23714
|
"newsBrandIds": [1, "news-brand-ids"],
|