@everymatrix/blog-article-details 1.44.0 → 1.45.2

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 (48) hide show
  1. package/dist/blog-article-details/blog-article-details.esm.js +1 -1
  2. package/dist/blog-article-details/p-0783b0ba.js +2 -0
  3. package/dist/blog-article-details/p-e1255160.js +1 -0
  4. package/dist/blog-article-details/p-f02359f3.entry.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/blog-article-details.cjs.entry.js +223 -248
  7. package/dist/cjs/blog-article-details.cjs.js +17 -11
  8. package/dist/cjs/index-ade27b33.js +1254 -0
  9. package/dist/cjs/loader.cjs.js +7 -13
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/blog-article-details/blog-article-details.js +463 -485
  12. package/dist/collection/components/blog-article-details/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +23 -23
  14. package/dist/collection/utils/utils.js +48 -48
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/blog-article-details.entry.js +223 -248
  17. package/dist/esm/blog-article-details.js +14 -11
  18. package/dist/esm/index-9d94198d.js +1228 -0
  19. package/dist/esm/loader.js +7 -13
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/blog-article-details/.stencil/packages/stencil/blog-article-details/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/blog-article-details/.stencil/packages/stencil/blog-article-details/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/blog-article-details/blog-article-details.d.ts +78 -78
  25. package/dist/types/components/blog-article-details/index.d.ts +1 -0
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +8 -6
  34. package/dist/blog-article-details/p-68e0210a.js +0 -1
  35. package/dist/blog-article-details/p-b8c9de45.entry.js +0 -1
  36. package/dist/cjs/index-d983d0f8.js +0 -1255
  37. package/dist/components/blog-article-details.d.ts +0 -11
  38. package/dist/components/blog-article-details.js +0 -317
  39. package/dist/components/index.d.ts +0 -26
  40. package/dist/components/index.js +0 -1
  41. package/dist/esm/index-a6d43dfd.js +0 -1230
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/blog-article-details/.stencil/packages/blog-article-details/stencil.config.d.ts +0 -2
@@ -1,279 +1,254 @@
1
- import { r as registerInstance, h } from './index-a6d43dfd.js';
1
+ import { r as registerInstance, h } from './index-9d94198d.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const TRANSLATIONS = {
5
- en: {
6
- error: 'Error',
7
- },
8
- ro: {
9
- error: 'Eroare',
10
- },
11
- fr: {
12
- error: 'Error',
13
- },
14
- ar: {
15
- error: 'خطأ',
16
- },
17
- hr: {
18
- error: 'Greška',
19
- },
20
- 'pt-br': {
21
- error: 'Erro'
22
- },
23
- 'es-mx': {
24
- error: 'Error'
25
- }
5
+ en: {
6
+ error: 'Error',
7
+ },
8
+ ro: {
9
+ error: 'Eroare',
10
+ },
11
+ fr: {
12
+ error: 'Error',
13
+ },
14
+ ar: {
15
+ error: 'خطأ',
16
+ },
17
+ hr: {
18
+ error: 'Greška',
19
+ },
20
+ 'pt-br': {
21
+ error: 'Erro'
22
+ },
23
+ 'es-mx': {
24
+ error: 'Error'
25
+ }
26
26
  };
27
27
  const translate = (key, customLang) => {
28
- const lang = customLang;
29
- return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
28
+ const lang = customLang;
29
+ return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
30
30
  };
31
31
 
32
32
  const getDevice = () => {
33
- let userAgent = window.navigator.userAgent;
34
- if (userAgent.toLowerCase().match(/android/i)) {
35
- return 'Android';
36
- }
37
- if (userAgent.toLowerCase().match(/iphone/i)) {
38
- return 'iPhone';
39
- }
40
- if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
41
- return 'iPad';
42
- }
43
- return 'PC';
33
+ let userAgent = window.navigator.userAgent;
34
+ if (userAgent.toLowerCase().match(/android/i)) {
35
+ return 'Android';
36
+ }
37
+ if (userAgent.toLowerCase().match(/iphone/i)) {
38
+ return 'iPhone';
39
+ }
40
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
41
+ return 'iPad';
42
+ }
43
+ return 'PC';
44
44
  };
45
45
  function checkCustomDeviceWidth() {
46
- const width = screen.availWidth;
47
- if (width < 600) {
48
- return 'mobile';
49
- }
50
- else if (width >= 600 && width < 1100) {
51
- return 'tablet';
52
- }
46
+ const width = screen.availWidth;
47
+ if (width < 600) {
48
+ return 'mobile';
49
+ }
50
+ else if (width >= 600 && width < 1100) {
51
+ return 'tablet';
52
+ }
53
53
  }
54
54
  function getDeviceCustom() {
55
- const userAgent = navigator.userAgent.toLowerCase();
56
- let source = '';
57
- source = (userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) ? checkCustomDeviceWidth() : 'desktop';
58
- return source;
55
+ const userAgent = navigator.userAgent.toLowerCase();
56
+ let source = '';
57
+ source = (userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) ? checkCustomDeviceWidth() : 'desktop';
58
+ return source;
59
59
  }
60
60
  const getDevicePlatform = () => {
61
- const device = getDevice();
62
- if (device) {
63
- if (device === 'PC') {
64
- return 'dk';
65
- }
66
- else if (device === 'iPad' || device === 'iPhone') {
67
- return 'mtWeb';
68
- }
69
- else {
70
- return 'mtWeb';
61
+ const device = getDevice();
62
+ if (device) {
63
+ if (device === 'PC') {
64
+ return 'dk';
65
+ }
66
+ else if (device === 'iPad' || device === 'iPhone') {
67
+ return 'mtWeb';
68
+ }
69
+ else {
70
+ return 'mtWeb';
71
+ }
71
72
  }
72
- }
73
73
  };
74
74
 
75
75
  const blogArticleDetailsCss = ":host {\n display: block;\n}\n\n.DetailsContainer {\n background-color: #07072A;\n color: #fff;\n display: flex;\n flex-direction: column;\n}\n.DetailsContainer .BlogBanner div {\n height: 400px;\n}\n.DetailsContainer .DetailsHeadWrapper {\n position: relative;\n}\n.DetailsContainer .DetailsBodyWrapper {\n padding: 30px;\n}\n.DetailsContainer .BlogDate {\n font-size: 12px;\n border-radius: 5px 5px 0 0;\n padding: 10px;\n width: fit-content;\n text-align: center;\n background-color: #0D0D4D;\n z-index: 1;\n text-wrap: nowrap;\n position: absolute;\n bottom: 0;\n left: 30px;\n}\n.DetailsContainer .BlogTitle {\n font-size: 24px;\n}\n.DetailsContainer .BlogContent {\n font-size: 14px;\n}\n.DetailsContainer .BlogContent p:last-child {\n margin-bottom: 0;\n}\n\n@container (max-width: 475px) {\n .DetailsContainer {\n font-size: 12px;\n }\n}";
76
+ const BlogArticleDetailsStyle0 = blogArticleDetailsCss;
76
77
 
77
78
  const BlogArticleDetails = class {
78
- constructor(hostRef) {
79
- registerInstance(this, hostRef);
80
- /**
81
- * Language of the widget
82
- */
83
- this.language = 'en';
84
- /**
85
- * User roles
86
- */
87
- this.userRoles = 'everyone';
88
- /**
89
- * CMS Endpoint stage
90
- */
91
- this.cmsEnv = 'stage';
92
- /**
93
- * Client custom styling via string
94
- */
95
- this.clientStyling = '';
96
- /**
97
- * Client custom styling via url
98
- */
99
- this.clientStylingUrl = '';
100
- /**
101
- * Property used to display the publishing date
102
- */
103
- this.showPublishingDate = true;
104
- /**
105
- * Property used to display the image
106
- */
107
- this.showImage = true;
108
- /**
109
- * Property used to display the image
110
- */
111
- this.showTitle = true;
112
- /**
113
- * Property used to display the description
114
- */
115
- this.showContent = true;
116
- /**
117
- * Intl date format
118
- */
119
- this.intlDateTimeFormat = '';
120
- this.hasErrors = false;
121
- this.limitStylingAppends = false;
122
- this.isLoading = true;
123
- this.bannerMatrixReady = false;
124
- this.device = '';
125
- this.setClientStyling = () => {
126
- let sheet = document.createElement('style');
127
- sheet.innerHTML = this.clientStyling;
128
- this.stylingContainer.prepend(sheet);
129
- };
130
- this.setClientStylingURL = () => {
131
- let url = new URL(this.clientStylingUrl);
132
- let cssFile = document.createElement('style');
133
- fetch(url.href)
134
- .then((res) => res.text())
135
- .then((data) => {
136
- cssFile.innerHTML = data;
137
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
138
- })
139
- .catch((err) => {
140
- console.log('Error ', err);
141
- });
142
- };
143
- this.renderContentConditionally = (content) => {
144
- const hasBanner = (content === null || content === void 0 ? void 0 : content.indexOf('<bannermatrix-banner')) !== -1;
145
- if (!hasBanner) {
146
- return h("div", { class: "BlogContent", innerHTML: content });
147
- }
148
- if (this.bannerMatrixReady) {
149
- return h("div", { class: "BlogContent", innerHTML: content });
150
- }
151
- return null;
152
- };
153
- this.setImage = (image) => {
154
- let source = '';
155
- switch (this.device) {
156
- case 'mobile':
157
- source = image.sources[0].pictureSource;
158
- break;
159
- case 'tablet':
160
- source = image.sources[1].pictureSource;
161
- break;
162
- case 'desktop':
163
- source = image.sources[2].pictureSource;
164
- break;
165
- }
166
- return source;
167
- };
168
- }
169
- // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS.
170
- handleBannerReady() {
171
- this.bannerMatrixReady = true;
172
- }
173
- watchEndpoint(newValue, oldValue) {
174
- if (newValue && newValue != oldValue && this.cmsEndpoint && this.language && (this.postCustomPath || this.postSlug || this.postId)) {
175
- this.getBlogArticleDetails();
79
+ constructor(hostRef) {
80
+ registerInstance(this, hostRef);
81
+ this.setClientStyling = () => {
82
+ let sheet = document.createElement('style');
83
+ sheet.innerHTML = this.clientStyling;
84
+ this.stylingContainer.prepend(sheet);
85
+ };
86
+ this.setClientStylingURL = () => {
87
+ let url = new URL(this.clientStylingUrl);
88
+ let cssFile = document.createElement('style');
89
+ fetch(url.href)
90
+ .then((res) => res.text())
91
+ .then((data) => {
92
+ cssFile.innerHTML = data;
93
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
94
+ })
95
+ .catch((err) => {
96
+ console.log('Error ', err);
97
+ });
98
+ };
99
+ this.renderContentConditionally = (content) => {
100
+ const hasBanner = (content === null || content === void 0 ? void 0 : content.indexOf('<bannermatrix-banner')) !== -1;
101
+ if (!hasBanner) {
102
+ return h("div", { class: "BlogContent", innerHTML: content });
103
+ }
104
+ if (this.bannerMatrixReady) {
105
+ return h("div", { class: "BlogContent", innerHTML: content });
106
+ }
107
+ return null;
108
+ };
109
+ this.setImage = (image) => {
110
+ let source = '';
111
+ switch (this.device) {
112
+ case 'mobile':
113
+ source = image.sources[0].pictureSource;
114
+ break;
115
+ case 'tablet':
116
+ source = image.sources[1].pictureSource;
117
+ break;
118
+ case 'desktop':
119
+ source = image.sources[2].pictureSource;
120
+ break;
121
+ }
122
+ return source;
123
+ };
124
+ this.cmsEndpoint = undefined;
125
+ this.language = 'en';
126
+ this.userRoles = 'everyone';
127
+ this.cmsEnv = 'stage';
128
+ this.clientStyling = '';
129
+ this.clientStylingUrl = '';
130
+ this.showPublishingDate = true;
131
+ this.showImage = true;
132
+ this.showTitle = true;
133
+ this.showContent = true;
134
+ this.postId = undefined;
135
+ this.postSlug = undefined;
136
+ this.postCustomPath = undefined;
137
+ this.intlDateTimeFormat = '';
138
+ this.hasErrors = false;
139
+ this.limitStylingAppends = false;
140
+ this.isLoading = true;
141
+ this.bannerMatrixReady = false;
142
+ this.device = '';
176
143
  }
177
- }
178
- handleStylingChange(newValue, oldValue) {
179
- if (newValue !== oldValue)
180
- this.setClientStyling();
181
- }
182
- handleStylingUrlChange(newValue, oldValue) {
183
- if (newValue !== oldValue)
184
- this.setClientStylingURL();
185
- }
186
- connectedCallback() {
187
- if (this.cmsEndpoint && this.language && (this.postCustomPath || this.postSlug || this.postId)) {
188
- this.getBlogArticleDetails();
144
+ // Rerender when bannermatrix has finished loaded. Issue when bannermatrix passed as content from CMS.
145
+ handleBannerReady() {
146
+ this.bannerMatrixReady = true;
189
147
  }
190
- }
191
- getBlogArticleDetails() {
192
- if (!this.postId && !this.postSlug && !this.postCustomPath) {
193
- this.hasErrors = true;
194
- throw new Error('postId, postSlug or postCustomPath parameter has to be provided!');
148
+ watchEndpoint(newValue, oldValue) {
149
+ if (newValue && newValue != oldValue && this.cmsEndpoint && this.language && (this.postCustomPath || this.postSlug || this.postId)) {
150
+ this.getBlogArticleDetails();
151
+ }
152
+ }
153
+ handleStylingChange(newValue, oldValue) {
154
+ if (newValue !== oldValue)
155
+ this.setClientStyling();
156
+ }
157
+ handleStylingUrlChange(newValue, oldValue) {
158
+ if (newValue !== oldValue)
159
+ this.setClientStylingURL();
195
160
  }
196
- this.isLoading = true;
197
- let url = new URL(`${this.cmsEndpoint}/${this.language}/blog-posts${this.postCustomPath ? '' : '/' + this.postSlug || '/' + this.postId}`);
198
- url.searchParams.append('env', this.cmsEnv);
199
- url.searchParams.append('userRoles', this.userRoles);
200
- url.searchParams.append('device', getDevicePlatform());
201
- if (this.postCustomPath) {
202
- url.searchParams.append('customURL', this.postCustomPath);
161
+ connectedCallback() {
162
+ if (this.cmsEndpoint && this.language && (this.postCustomPath || this.postSlug || this.postId)) {
163
+ this.getBlogArticleDetails();
164
+ }
203
165
  }
204
- fetch(url.href)
205
- .then((res) => {
206
- if (res.status >= 300) {
207
- this.hasErrors = true;
208
- throw new Error('There was an error while fetching the data');
209
- }
210
- return res.json();
211
- })
212
- .then((blogContent) => {
213
- if (blogContent.count >= 1 && this.postCustomPath) {
214
- let firstBlogPublishDate = new Date(blogContent.items[0].publishingDate);
215
- let indexOfLatestPublished = 0;
216
- for (let i = 1; i < blogContent.items.length; i++) {
217
- const blogDate = new Date(blogContent.items[i].publishingDate);
218
- if (firstBlogPublishDate.getTime() < blogDate.getTime()) {
219
- firstBlogPublishDate = blogDate;
220
- indexOfLatestPublished = i;
221
- }
166
+ getBlogArticleDetails() {
167
+ if (!this.postId && !this.postSlug && !this.postCustomPath) {
168
+ this.hasErrors = true;
169
+ throw new Error('postId, postSlug or postCustomPath parameter has to be provided!');
170
+ }
171
+ this.isLoading = true;
172
+ let url = new URL(`${this.cmsEndpoint}/${this.language}/blog-posts${this.postCustomPath ? '' : '/' + this.postSlug || '/' + this.postId}`);
173
+ url.searchParams.append('env', this.cmsEnv);
174
+ url.searchParams.append('userRoles', this.userRoles);
175
+ url.searchParams.append('device', getDevicePlatform());
176
+ if (this.postCustomPath) {
177
+ url.searchParams.append('customURL', this.postCustomPath);
222
178
  }
223
- this.blogData = blogContent.items[indexOfLatestPublished];
224
- }
225
- else {
226
- this.blogData = blogContent;
227
- }
228
- this.isLoading = false;
229
- })
230
- .catch((err) => {
231
- this.hasErrors = true;
232
- console.log('Error', err);
233
- })
234
- .finally(() => this.isLoading = false);
235
- }
236
- componentDidRender() {
237
- // start custom styling area
238
- if (!this.limitStylingAppends && this.stylingContainer) {
239
- if (this.clientStyling)
240
- this.setClientStyling();
241
- if (this.clientStylingUrl)
242
- this.setClientStylingURL();
243
- this.limitStylingAppends = true;
179
+ fetch(url.href)
180
+ .then((res) => {
181
+ if (res.status >= 300) {
182
+ this.hasErrors = true;
183
+ throw new Error('There was an error while fetching the data');
184
+ }
185
+ return res.json();
186
+ })
187
+ .then((blogContent) => {
188
+ if (blogContent.count >= 1 && this.postCustomPath) {
189
+ let firstBlogPublishDate = new Date(blogContent.items[0].publishingDate);
190
+ let indexOfLatestPublished = 0;
191
+ for (let i = 1; i < blogContent.items.length; i++) {
192
+ const blogDate = new Date(blogContent.items[i].publishingDate);
193
+ if (firstBlogPublishDate.getTime() < blogDate.getTime()) {
194
+ firstBlogPublishDate = blogDate;
195
+ indexOfLatestPublished = i;
196
+ }
197
+ }
198
+ this.blogData = blogContent.items[indexOfLatestPublished];
199
+ }
200
+ else {
201
+ this.blogData = blogContent;
202
+ }
203
+ this.isLoading = false;
204
+ })
205
+ .catch((err) => {
206
+ this.hasErrors = true;
207
+ console.log('Error', err);
208
+ })
209
+ .finally(() => this.isLoading = false);
244
210
  }
245
- // end custom styling area
246
- }
247
- componentDidLoad() {
248
- this.detectAndAlertDeviceType();
249
- }
250
- detectAndAlertDeviceType() {
251
- this.device = getDeviceCustom();
252
- }
253
- formatDate(dateString) {
254
- return new Intl.DateTimeFormat(this.intlDateTimeFormat || 'en-GB').format(new Date(dateString));
255
- }
256
- render() {
257
- var _a, _b, _c, _d, _e;
258
- if (this.hasErrors) {
259
- return (h("div", { class: "BlogArticleDetails" }, h("div", { class: "Title" }, translate('error', this.language))));
211
+ componentDidRender() {
212
+ // start custom styling area
213
+ if (!this.limitStylingAppends && this.stylingContainer) {
214
+ if (this.clientStyling)
215
+ this.setClientStyling();
216
+ if (this.clientStylingUrl)
217
+ this.setClientStylingURL();
218
+ this.limitStylingAppends = true;
219
+ }
220
+ // end custom styling area
260
221
  }
261
- if (!this.isLoading) {
262
- return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "DetailsContainer" }, h("div", { class: "DetailsHeadWrapper" }, this.showPublishingDate && this.blogData.publishingDate &&
263
- h("div", { class: "BlogDate" }, this.formatDate((_a = this.blogData) === null || _a === void 0 ? void 0 : _a.publishingDate)), this.showImage && (h("div", { class: "BlogBanner" }, ((_b = this.blogData.image) === null || _b === void 0 ? void 0 : _b.src) ? (h("div", { style: { background: `url(${this.setImage(this.blogData.image)}) no-repeat center center / cover` } })) : (((_c = this.blogData.video) === null || _c === void 0 ? void 0 : _c.sources[this.device]) ? (h("video", { src: this.blogData.video.sources[this.device], controls: true })) : (h("h1", { style: { color: "white" } }, "No Image")))))), h("div", { class: "DetailsBodyWrapper" }, this.showTitle &&
264
- h("div", { class: "BlogTitle" }, (_d = this.blogData) === null || _d === void 0 ? void 0 : _d.title), this.showContent && this.renderContentConditionally((_e = this.blogData) === null || _e === void 0 ? void 0 : _e.content)))));
222
+ componentDidLoad() {
223
+ this.detectAndAlertDeviceType();
224
+ }
225
+ detectAndAlertDeviceType() {
226
+ this.device = getDeviceCustom();
227
+ }
228
+ formatDate(dateString) {
229
+ return new Intl.DateTimeFormat(this.intlDateTimeFormat || 'en-GB').format(new Date(dateString));
230
+ }
231
+ render() {
232
+ var _a, _b, _c, _d, _e;
233
+ if (this.hasErrors) {
234
+ return (h("div", { class: "BlogArticleDetails" }, h("div", { class: "Title" }, translate('error', this.language))));
235
+ }
236
+ if (!this.isLoading) {
237
+ return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "DetailsContainer" }, h("div", { class: "DetailsHeadWrapper" }, this.showPublishingDate && this.blogData.publishingDate &&
238
+ h("div", { class: "BlogDate" }, this.formatDate((_a = this.blogData) === null || _a === void 0 ? void 0 : _a.publishingDate)), this.showImage && (h("div", { class: "BlogBanner" }, ((_b = this.blogData.image) === null || _b === void 0 ? void 0 : _b.src) ? (h("div", { style: { background: `url(${this.setImage(this.blogData.image)}) no-repeat center center / cover` } })) : (((_c = this.blogData.video) === null || _c === void 0 ? void 0 : _c.sources[this.device]) ? (h("video", { src: this.blogData.video.sources[this.device], controls: true })) : (h("h1", { style: { color: "white" } }, "No Image")))))), h("div", { class: "DetailsBodyWrapper" }, this.showTitle &&
239
+ h("div", { class: "BlogTitle" }, (_d = this.blogData) === null || _d === void 0 ? void 0 : _d.title), this.showContent && this.renderContentConditionally((_e = this.blogData) === null || _e === void 0 ? void 0 : _e.content)))));
240
+ }
265
241
  }
266
- }
267
- static get watchers() { return {
268
- "postId": ["watchEndpoint"],
269
- "postSlug": ["watchEndpoint"],
270
- "postCustomPath": ["watchEndpoint"],
271
- "cmsEndpoint": ["watchEndpoint"],
272
- "language": ["watchEndpoint"],
273
- "clientStyling": ["handleStylingChange"],
274
- "clientStylingUrl": ["handleStylingUrlChange"]
275
- }; }
242
+ static get watchers() { return {
243
+ "postId": ["watchEndpoint"],
244
+ "postSlug": ["watchEndpoint"],
245
+ "postCustomPath": ["watchEndpoint"],
246
+ "cmsEndpoint": ["watchEndpoint"],
247
+ "language": ["watchEndpoint"],
248
+ "clientStyling": ["handleStylingChange"],
249
+ "clientStylingUrl": ["handleStylingUrlChange"]
250
+ }; }
276
251
  };
277
- BlogArticleDetails.style = blogArticleDetailsCss;
252
+ BlogArticleDetails.style = BlogArticleDetailsStyle0;
278
253
 
279
254
  export { BlogArticleDetails as blog_article_details };
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-a6d43dfd.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-9d94198d.js';
2
+ export { s as setNonce } from './index-9d94198d.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
2
4
 
3
5
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
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);
13
15
  };
14
16
 
15
- patchBrowser().then(options => {
16
- return bootstrapLazy([["blog-article-details",[[1,"blog-article-details",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"showPublishingDate":[516,"show-publishing-date"],"showImage":[516,"show-image"],"showTitle":[516,"show-title"],"showContent":[516,"show-content"],"postId":[514,"post-id"],"postSlug":[513,"post-slug"],"postCustomPath":[513,"post-custom-path"],"intlDateTimeFormat":[1,"intl-date-time-format"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"bannerMatrixReady":[32],"device":[32]},[[8,"BannerMatrixReady","handleBannerReady"]]]]]], options);
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["blog-article-details",[[1,"blog-article-details",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"showPublishingDate":[516,"show-publishing-date"],"showImage":[516,"show-image"],"showTitle":[516,"show-title"],"showContent":[516,"show-content"],"postId":[514,"post-id"],"postSlug":[513,"post-slug"],"postCustomPath":[513,"post-custom-path"],"intlDateTimeFormat":[1,"intl-date-time-format"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"bannerMatrixReady":[32],"device":[32]},[[8,"BannerMatrixReady","handleBannerReady"]],{"postId":["watchEndpoint"],"postSlug":["watchEndpoint"],"postCustomPath":["watchEndpoint"],"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"]}]]]], options);
17
20
  });