@everymatrix/general-preview-social-posts 1.0.69

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 (44) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-preview-social-posts.cjs.entry.js +322 -0
  3. package/dist/cjs/general-preview-social-posts.cjs.js +25 -0
  4. package/dist/cjs/index-3a1dd540.js +1200 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/collection/collection-manifest.json +12 -0
  8. package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.css +112 -0
  9. package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.js +533 -0
  10. package/dist/collection/components/general-preview-social-posts/index.js +1 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/locale.utils.js +66 -0
  13. package/dist/collection/utils/utils.js +45 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/general-preview-social-posts.entry.js +318 -0
  16. package/dist/esm/general-preview-social-posts.js +20 -0
  17. package/dist/esm/index-16f33f52.js +1173 -0
  18. package/dist/esm/index.js +1 -0
  19. package/dist/esm/loader.js +11 -0
  20. package/dist/general-preview-social-posts/general-preview-social-posts.esm.js +1 -0
  21. package/dist/general-preview-social-posts/index.esm.js +0 -0
  22. package/dist/general-preview-social-posts/p-1f296318.js +2 -0
  23. package/dist/general-preview-social-posts/p-5434bb4a.entry.js +1 -0
  24. package/dist/general-preview-social-posts/p-e1255160.js +1 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-preview-social-posts/.stencil/packages/stencil/general-preview-social-posts/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-preview-social-posts/.stencil/packages/stencil/general-preview-social-posts/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/general-preview-social-posts/general-preview-social-posts.d.ts +84 -0
  32. package/dist/types/components/general-preview-social-posts/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +169 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +2 -0
  37. package/dist/types/utils/utils.d.ts +9 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1,66 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['de', 'en', 'hr'];
3
+ let TRANSLATIONS = {
4
+ en: {
5
+ loading: 'loading...',
6
+ viewAll: 'View All ...',
7
+ moreInfo: 'MORE INFO',
8
+ playNow: 'PLAY NOW',
9
+ },
10
+ de: {
11
+ loading: 'loading...',
12
+ viewAll: 'View All ...',
13
+ moreInfo: 'MORE INFO',
14
+ playNow: 'PLAY NOW',
15
+ },
16
+ ro: {
17
+ loading: 'loading...',
18
+ viewAll: 'View All ...',
19
+ moreInfo: 'MORE INFO',
20
+ playNow: 'PLAY NOW',
21
+ },
22
+ fr: {
23
+ loading: 'loading...',
24
+ viewAll: 'View All ...',
25
+ moreInfo: 'MORE INFO',
26
+ playNow: 'PLAY NOW',
27
+ },
28
+ ar: {
29
+ loading: 'loading...',
30
+ viewAll: 'View All ...',
31
+ moreInfo: 'MORE INFO',
32
+ playNow: 'PLAY NOW',
33
+ },
34
+ hr: {
35
+ loading: 'Učitavanje…',
36
+ viewAll: 'Pogledaj sve …',
37
+ moreInfo: 'VIŠE INFORMACIJA',
38
+ playNow: 'IGRAJ SADA'
39
+ }
40
+ };
41
+ export const getTranslations = (url) => {
42
+ // fetch url, get the data, replace the TRANSLATIONS content
43
+ return new Promise((resolve) => {
44
+ fetch(url)
45
+ .then((res) => res.json())
46
+ .then((data) => {
47
+ Object.keys(data).forEach((item) => {
48
+ for (let key in data[item]) {
49
+ TRANSLATIONS[item][key] = data[item][key];
50
+ }
51
+ });
52
+ resolve(true);
53
+ });
54
+ });
55
+ };
56
+ export const translate = (key, customLang, values) => {
57
+ const lang = customLang;
58
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
59
+ if (values !== undefined) {
60
+ for (const [key, value] of Object.entries(values.values)) {
61
+ const regex = new RegExp(`{${key}}`, 'g');
62
+ translation = translation.replace(regex, value);
63
+ }
64
+ }
65
+ return translation;
66
+ };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @name isMobile
3
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
4
+ * @param {String} userAgent window.navigator.userAgent
5
+ * @returns {Boolean} true or false
6
+ */
7
+ export const isMobile = (userAgent) => {
8
+ return !!(userAgent.toLowerCase().match(/android/i) ||
9
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
10
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
11
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
12
+ };
13
+ export const getDevice = () => {
14
+ let userAgent = window.navigator.userAgent;
15
+ if (userAgent.toLowerCase().match(/android/i)) {
16
+ return 'Android';
17
+ }
18
+ if (userAgent.toLocaleLowerCase().match(/customnative:ios/)) {
19
+ return 'nativeIOS';
20
+ }
21
+ if (userAgent.toLowerCase().match(/iphone/i)) {
22
+ return 'iPhone';
23
+ }
24
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
25
+ return 'iPad';
26
+ }
27
+ return 'PC';
28
+ };
29
+ export const getDevicePlatform = () => {
30
+ const device = getDevice();
31
+ if (device) {
32
+ if (device === 'PC') {
33
+ return 'dk';
34
+ }
35
+ else if (device == 'nativeIOS') {
36
+ return 'ios';
37
+ }
38
+ else if (device === 'iPad' || device === 'iPhone') {
39
+ return 'mtWeb';
40
+ }
41
+ else {
42
+ return 'mtWeb';
43
+ }
44
+ }
45
+ };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -0,0 +1,318 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-16f33f52.js';
2
+
3
+ const DEFAULT_LANGUAGE = 'en';
4
+ const SUPPORTED_LANGUAGES = ['de', 'en', 'hr'];
5
+ let TRANSLATIONS = {
6
+ en: {
7
+ loading: 'loading...',
8
+ viewAll: 'View All ...',
9
+ moreInfo: 'MORE INFO',
10
+ playNow: 'PLAY NOW',
11
+ },
12
+ de: {
13
+ loading: 'loading...',
14
+ viewAll: 'View All ...',
15
+ moreInfo: 'MORE INFO',
16
+ playNow: 'PLAY NOW',
17
+ },
18
+ ro: {
19
+ loading: 'loading...',
20
+ viewAll: 'View All ...',
21
+ moreInfo: 'MORE INFO',
22
+ playNow: 'PLAY NOW',
23
+ },
24
+ fr: {
25
+ loading: 'loading...',
26
+ viewAll: 'View All ...',
27
+ moreInfo: 'MORE INFO',
28
+ playNow: 'PLAY NOW',
29
+ },
30
+ ar: {
31
+ loading: 'loading...',
32
+ viewAll: 'View All ...',
33
+ moreInfo: 'MORE INFO',
34
+ playNow: 'PLAY NOW',
35
+ },
36
+ hr: {
37
+ loading: 'Učitavanje…',
38
+ viewAll: 'Pogledaj sve …',
39
+ moreInfo: 'VIŠE INFORMACIJA',
40
+ playNow: 'IGRAJ SADA'
41
+ }
42
+ };
43
+ const getTranslations = (url) => {
44
+ // fetch url, get the data, replace the TRANSLATIONS content
45
+ return new Promise((resolve) => {
46
+ fetch(url)
47
+ .then((res) => res.json())
48
+ .then((data) => {
49
+ Object.keys(data).forEach((item) => {
50
+ for (let key in data[item]) {
51
+ TRANSLATIONS[item][key] = data[item][key];
52
+ }
53
+ });
54
+ resolve(true);
55
+ });
56
+ });
57
+ };
58
+ const translate = (key, customLang, values) => {
59
+ const lang = customLang;
60
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
61
+ if (values !== undefined) {
62
+ for (const [key, value] of Object.entries(values.values)) {
63
+ const regex = new RegExp(`{${key}}`, 'g');
64
+ translation = translation.replace(regex, value);
65
+ }
66
+ }
67
+ return translation;
68
+ };
69
+
70
+ /**
71
+ * @name isMobile
72
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
73
+ * @param {String} userAgent window.navigator.userAgent
74
+ * @returns {Boolean} true or false
75
+ */
76
+ const getDevice = () => {
77
+ let userAgent = window.navigator.userAgent;
78
+ if (userAgent.toLowerCase().match(/android/i)) {
79
+ return 'Android';
80
+ }
81
+ if (userAgent.toLocaleLowerCase().match(/customnative:ios/)) {
82
+ return 'nativeIOS';
83
+ }
84
+ if (userAgent.toLowerCase().match(/iphone/i)) {
85
+ return 'iPhone';
86
+ }
87
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
88
+ return 'iPad';
89
+ }
90
+ return 'PC';
91
+ };
92
+ const getDevicePlatform = () => {
93
+ const device = getDevice();
94
+ if (device) {
95
+ if (device === 'PC') {
96
+ return 'dk';
97
+ }
98
+ else if (device == 'nativeIOS') {
99
+ return 'ios';
100
+ }
101
+ else if (device === 'iPad' || device === 'iPhone') {
102
+ return 'mtWeb';
103
+ }
104
+ else {
105
+ return 'mtWeb';
106
+ }
107
+ }
108
+ };
109
+
110
+ const generalPreviewSocialPostsCss = ":host {\n font-family: \"Roboto\", sans-serif;\n display: block;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.sliderWidget {\n display: block;\n max-width: 780px;\n margin: 0 auto;\n padding: 16px;\n max-height: 500px;\n}\n.sliderWidget h2 {\n font-size: 20px;\n}\n.sliderWidget .headerHontainer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.sliderWidget .headerHontainer .viewAllButton {\n cursor: pointer;\n font-weight: bold;\n color: rgb(142, 142, 142);\n}\n.sliderWidget .postSlider {\n display: flex;\n overflow-x: auto;\n scroll-snap-type: x mandatory;\n gap: 24px;\n}\n.sliderWidget .postSlider .postCard {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n scroll-snap-align: start;\n padding: 20px;\n border-radius: 6px;\n min-width: 360px;\n background-color: rgb(244, 244, 244);\n}\n.sliderWidget .postSlider .postCard .Description {\n display: -webkit-box;\n -webkit-line-clamp: 5;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin-bottom: 14px;\n}\n.sliderWidget .postSlider .postCard .imageTitle {\n display: flex;\n justify-content: flex-start;\n gap: 20px;\n}\n.sliderWidget .postSlider .postCard .imageTitle img {\n height: 120px;\n width: 120px;\n border-radius: 6px;\n}\n.sliderWidget .postSlider .postCard .imageTitle .titleSubtitle {\n display: flex;\n flex-direction: column;\n}\n.sliderWidget .postSlider .postCard .buttons {\n display: flex;\n justify-content: center;\n gap: 12px;\n}\n.sliderWidget .postSlider .postCard .buttons .moreInfoButton, .sliderWidget .postSlider .postCard .buttons .playNowButton {\n width: 172px;\n display: block;\n padding: 8px 16px;\n border: 3px solid #63B250;\n border-radius: 6px;\n cursor: pointer;\n font-weight: bold;\n}\n.sliderWidget .postSlider .postCard .buttons .moreInfoButton {\n background-color: rgb(244, 244, 244);\n color: #63B250;\n}\n.sliderWidget .postSlider .postCard .buttons .playNowButton {\n background-color: #63B250;\n color: #fff;\n}\n\nh3, h4 {\n font-size: 18px;\n}\n\np {\n font-size: 14px;\n color: rgb(91, 91, 91);\n}\n\n@container (max-width: 480px) {\n .sliderWidget h2 {\n font-size: 18px;\n }\n .sliderWidget .postSlider .postCard {\n min-width: 250px;\n }\n h3, h4 {\n font-size: 16px;\n }\n p {\n font-size: 12px;\n }\n}";
111
+ const GeneralPreviewSocialPostsStyle0 = generalPreviewSocialPostsCss;
112
+
113
+ const GeneralPreviewSocialPosts = class {
114
+ constructor(hostRef) {
115
+ registerInstance(this, hostRef);
116
+ this.moreInfo = createEvent(this, "moreInfo", 7);
117
+ this.playNow = createEvent(this, "playNow", 7);
118
+ this.viewAll = createEvent(this, "viewAll", 7);
119
+ this.platform = getDevicePlatform();
120
+ this.setClientStyling = () => {
121
+ let sheet = document.createElement('style');
122
+ sheet.innerHTML = this.clientStyling;
123
+ this.stylingContainer.prepend(sheet);
124
+ };
125
+ this.setClientStylingURL = () => {
126
+ let url = new URL(this.clientStylingUrl);
127
+ let cssFile = document.createElement('style');
128
+ fetch(url.href)
129
+ .then((res) => res.text())
130
+ .then((data) => {
131
+ cssFile.innerHTML = data;
132
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
133
+ })
134
+ .catch((err) => {
135
+ console.log('error ', err);
136
+ });
137
+ };
138
+ this.userId = '';
139
+ this.session = '';
140
+ this.postsTitle = '';
141
+ this.maxCards = '';
142
+ this.language = 'en';
143
+ this.datasource = '';
144
+ this.endpoint = '';
145
+ this.cmsEndpoint = '';
146
+ this.userRoles = '';
147
+ this.translationUrl = '';
148
+ this.clientStyling = '';
149
+ this.clientStylingUrl = '';
150
+ this.cmsEnv = 'stage';
151
+ this.pageName = 'casino';
152
+ this.posts = [];
153
+ this.stylingAppends = false;
154
+ this.isLoading = false;
155
+ this.isLoggedIn = false;
156
+ this.dataImages = [];
157
+ this.gameIds = '';
158
+ }
159
+ handleNewTranslations() {
160
+ this.isLoading = true;
161
+ getTranslations(this.translationUrl).then(() => {
162
+ this.isLoading = false;
163
+ });
164
+ }
165
+ async componentWillLoad() {
166
+ if (this.translationUrl.length > 2) {
167
+ await getTranslations(this.translationUrl);
168
+ }
169
+ }
170
+ watchSession(newValue, oldValue) {
171
+ if (newValue !== oldValue) {
172
+ this.isLoggedIn = newValue !== '';
173
+ }
174
+ }
175
+ connectedCallback() {
176
+ if (this.session) {
177
+ this.isLoggedIn = true;
178
+ }
179
+ }
180
+ componentDidRender() {
181
+ // start custom styling area
182
+ if (!this.stylingAppends && this.stylingContainer) {
183
+ if (this.clientStyling)
184
+ this.setClientStyling();
185
+ if (this.clientStylingUrl)
186
+ this.setClientStylingURL();
187
+ this.stylingAppends = true;
188
+ }
189
+ // end custom styling area
190
+ }
191
+ getDataImage(ids) {
192
+ try {
193
+ let url = new URL(`${this.endpoint}/v2/casino/groups/${this.datasource}`);
194
+ url.searchParams.append("language", this.language);
195
+ url.searchParams.append("expand", 'games');
196
+ url.searchParams.append("fields", 'games(id,thumbnail,launchUrl)');
197
+ url.searchParams.append("filter", ids);
198
+ url.searchParams.append('device', this.platform);
199
+ const options = {
200
+ 'method': 'GET',
201
+ 'Content-Type': 'application/json'
202
+ };
203
+ fetch(url.href, options)
204
+ .then((res) => {
205
+ if (res.status === 200) {
206
+ return res.json();
207
+ }
208
+ else {
209
+ throw new Error("HTTP status " + res.status);
210
+ }
211
+ })
212
+ .then((data) => {
213
+ data.items.forEach((item) => {
214
+ item.games.items.forEach(element => {
215
+ let { id, launchUrl, thumbnail } = element;
216
+ this.dataImages = [{ id, launchUrl, thumbnail }];
217
+ let index = this.posts.findIndex(post => post.gameId === id);
218
+ if (index !== -1) {
219
+ this.posts[index].images = this.dataImages;
220
+ }
221
+ });
222
+ });
223
+ })
224
+ .catch((err) => {
225
+ // Handle any errors
226
+ console.error(err);
227
+ });
228
+ }
229
+ catch (error) {
230
+ console.error('Error fetching verification types:', error);
231
+ }
232
+ }
233
+ async componentDidLoad() {
234
+ try {
235
+ let url = new URL(`${this.cmsEndpoint}/${this.language}/content/social-posts`);
236
+ url.searchParams.append("device", this.platform);
237
+ url.searchParams.append("page", this.pageName);
238
+ url.searchParams.append("language", this.language);
239
+ url.searchParams.append("userRoles", this.userRoles);
240
+ url.searchParams.append('env', this.cmsEnv);
241
+ const options = {
242
+ 'method': 'GET',
243
+ 'Content-Type': 'application/json'
244
+ };
245
+ fetch(url.href, options)
246
+ .then((res) => {
247
+ if (res.status === 200) {
248
+ return res.json();
249
+ }
250
+ else {
251
+ throw new Error("HTTP status " + res.status);
252
+ }
253
+ })
254
+ .then((data) => {
255
+ data.forEach(element => {
256
+ var _a;
257
+ const slug = element.slug;
258
+ const postId = element.id;
259
+ const { gameId, title, description, subtitle } = (_a = element.previewCard) !== null && _a !== void 0 ? _a : {};
260
+ if (gameId) {
261
+ this.gameIds += `games(id=${gameId}),`;
262
+ }
263
+ this.posts.push({ postId, gameId, title, description, subtitle, slug });
264
+ });
265
+ if (this.gameIds.length > 0) {
266
+ this.gameIds = this.gameIds.slice(0, -1); // Removes the last comma
267
+ this.gameIds = '$or(' + this.gameIds + ')';
268
+ }
269
+ this.getDataImage(this.gameIds);
270
+ })
271
+ .catch((err) => {
272
+ // Handle any errors
273
+ console.error(err);
274
+ });
275
+ }
276
+ catch (error) {
277
+ console.error('Error fetching verification types:', error);
278
+ }
279
+ }
280
+ hasUndefinedValues(obj) {
281
+ return Object.values(obj).some((value) => value === undefined);
282
+ }
283
+ render() {
284
+ if (this.isLoading) {
285
+ return (h("div", null, h("p", null, translate('loading', this.language))));
286
+ }
287
+ else {
288
+ return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "sliderWidget" }, h("div", { class: "headerHontainer" }, this.postsTitle && h("h2", null, this.postsTitle), h("div", { class: "viewAllButton", onClick: () => this.onViewAllClick() }, translate('viewAll', this.language))), h("div", { class: "postSlider" }, this.posts
289
+ .filter((post) => !this.hasUndefinedValues(post)) // Filter out posts with undefined values
290
+ .slice(0, +(this.maxCards || this.posts.length))
291
+ .map((post) => {
292
+ var _a, _b, _c, _d;
293
+ return (h("div", { class: "postCard" }, h("div", { class: "imageTitle" }, (post === null || post === void 0 ? void 0 : post.images) ? (h("a", { href: ((_b = (_a = post.images) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.launchUrl) || '', target: "_blank", rel: "noopener noreferrer" }, h("img", { src: ((_d = (_c = post.images) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.thumbnail) || '', alt: "Game Image" })))
294
+ : null, h("div", { class: "titleSubtitle" }, post.title && h("h3", null, post.title), post.subtitle && h("p", { innerHTML: post.subtitle }))), post.description &&
295
+ h("div", { class: "Description" }, h("p", { innerHTML: post.description })), h("div", { class: "buttons" }, h("button", { class: "moreInfoButton", onClick: () => this.onMoreInfoClick(post.gameId, post.postId, post.title, post.slug) }, translate('moreInfo', this.language)), this.isLoggedIn && post.gameId && h("button", { class: "playNowButton", onClick: () => this.onPlayNowClick(post.gameId) }, translate('playNow', this.language)))));
296
+ })))));
297
+ }
298
+ }
299
+ onViewAllClick() {
300
+ this.viewAll.emit();
301
+ window.postMessage({ type: 'viewAllSocialPosts' }, window.location.href);
302
+ }
303
+ onMoreInfoClick(gameId, postId, postTitle, slug) {
304
+ this.moreInfo.emit();
305
+ window.postMessage({ type: 'moreInfoSocialPost', gameId, postId, postTitle, slug }, window.location.href);
306
+ }
307
+ onPlayNowClick(gameId) {
308
+ this.playNow.emit(gameId);
309
+ window.postMessage({ type: 'playNowSocialPost', gameId: gameId }, window.location.href);
310
+ }
311
+ static get watchers() { return {
312
+ "translationUrl": ["handleNewTranslations"],
313
+ "session": ["watchSession"]
314
+ }; }
315
+ };
316
+ GeneralPreviewSocialPosts.style = GeneralPreviewSocialPostsStyle0;
317
+
318
+ export { GeneralPreviewSocialPosts as general_preview_social_posts };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-16f33f52.js';
2
+ export { s as setNonce } from './index-16f33f52.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["general-preview-social-posts",[[1,"general-preview-social-posts",{"userId":[513,"user-id"],"session":[513],"postsTitle":[513,"posts-title"],"maxCards":[513,"max-cards"],"language":[513],"datasource":[513],"endpoint":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"translationUrl":[513,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"cmsEnv":[513,"cms-env"],"pageName":[513,"page-name"],"posts":[32],"stylingAppends":[32],"isLoading":[32],"isLoggedIn":[32],"dataImages":[32],"gameIds":[32]},null,{"translationUrl":["handleNewTranslations"],"session":["watchSession"]}]]]], options);
20
+ });