@parameter1/base-cms-marko-web 3.0.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/browser/index.js +3 -0
- package/components/browser-component.marko +3 -2
- package/components/element/components/image.marko +1 -1
- package/components/marko.json +1 -0
- package/package.json +3 -3
- package/components/browser-component.marko.js +0 -81
- package/components/document/components/body-wrapper.marko.js +0 -33
- package/components/document/components/error.marko.js +0 -85
- package/components/document/components/lazysizes.marko.js +0 -21
- package/components/document/components/live-reload.marko.js +0 -30
- package/components/document/components/polyfill.marko.js +0 -33
- package/components/document/container.marko.js +0 -54
- package/components/document/index.marko.js +0 -118
- package/components/element/array.marko.js +0 -67
- package/components/element/audio.marko.js +0 -33
- package/components/element/block.marko.js +0 -44
- package/components/element/clear.marko.js +0 -32
- package/components/element/components/image.marko.js +0 -57
- package/components/element/components/text.marko.js +0 -37
- package/components/element/content/address1.marko.js +0 -41
- package/components/element/content/address2.marko.js +0 -41
- package/components/element/content/audio.marko.js +0 -40
- package/components/element/content/authors.marko.js +0 -43
- package/components/element/content/body.marko.js +0 -62
- package/components/element/content/byline.marko.js +0 -41
- package/components/element/content/city-state-zip.marko.js +0 -41
- package/components/element/content/contributors.marko.js +0 -44
- package/components/element/content/country.marko.js +0 -41
- package/components/element/content/embed-code.marko.js +0 -41
- package/components/element/content/end-date.marko.js +0 -42
- package/components/element/content/ends.marko.js +0 -41
- package/components/element/content/fax.marko.js +0 -41
- package/components/element/content/images.marko.js +0 -44
- package/components/element/content/mobile.marko.js +0 -41
- package/components/element/content/name.marko.js +0 -41
- package/components/element/content/phone.marko.js +0 -41
- package/components/element/content/photographers.marko.js +0 -44
- package/components/element/content/public-email.marko.js +0 -48
- package/components/element/content/published.marko.js +0 -42
- package/components/element/content/short-name.marko.js +0 -41
- package/components/element/content/sidebars.marko.js +0 -55
- package/components/element/content/source.marko.js +0 -41
- package/components/element/content/sponsors.marko.js +0 -44
- package/components/element/content/start-date.marko.js +0 -42
- package/components/element/content/starts.marko.js +0 -41
- package/components/element/content/teaser.marko.js +0 -41
- package/components/element/content/title.marko.js +0 -40
- package/components/element/content/tollfree.marko.js +0 -41
- package/components/element/content/website.marko.js +0 -52
- package/components/element/date.marko.js +0 -27
- package/components/element/image/caption.marko.js +0 -41
- package/components/element/image/credit.marko.js +0 -41
- package/components/element/image/display-name.marko.js +0 -40
- package/components/element/img.marko.js +0 -43
- package/components/element/index.marko.js +0 -47
- package/components/element/link.marko.js +0 -54
- package/components/element/magazine-issue/description.marko.js +0 -41
- package/components/element/magazine-issue/digital-edition-url.marko.js +0 -52
- package/components/element/magazine-issue/name.marko.js +0 -41
- package/components/element/magazine-publication/description.marko.js +0 -41
- package/components/element/magazine-publication/einquiry-url.marko.js +0 -52
- package/components/element/magazine-publication/name.marko.js +0 -41
- package/components/element/magazine-publication/renewal-url.marko.js +0 -52
- package/components/element/magazine-publication/reprints-url.marko.js +0 -52
- package/components/element/magazine-publication/subscribe-url.marko.js +0 -52
- package/components/element/obj-array.marko.js +0 -57
- package/components/element/obj-audio.marko.js +0 -51
- package/components/element/obj-date.marko.js +0 -54
- package/components/element/obj-nodes.marko.js +0 -62
- package/components/element/obj-text.marko.js +0 -53
- package/components/element/obj.marko.js +0 -61
- package/components/element/picture.marko.js +0 -83
- package/components/element/text.marko.js +0 -76
- package/components/element/website-section/description.marko.js +0 -45
- package/components/element/website-section/hierarchy.marko.js +0 -61
- package/components/element/website-section/name.marko.js +0 -46
- package/components/load-more/index.marko.js +0 -119
- package/components/load-more/trigger.marko.js +0 -40
- package/components/node/body.marko.js +0 -112
- package/components/node/element.marko.js +0 -39
- package/components/node/footer.marko.js +0 -63
- package/components/node/header.marko.js +0 -63
- package/components/node/image-inner-wrapper.marko.js +0 -116
- package/components/node/image-wrapper.marko.js +0 -98
- package/components/node/image.marko.js +0 -77
- package/components/node/index.marko.js +0 -100
- package/components/node-list/body.marko.js +0 -50
- package/components/node-list/element.marko.js +0 -35
- package/components/node-list/footer.marko.js +0 -50
- package/components/node-list/header.marko.js +0 -50
- package/components/node-list/index.marko.js +0 -93
- package/components/node-list/node.marko.js +0 -49
- package/components/node-list/nodes.marko.js +0 -126
- package/components/page/container.marko.js +0 -46
- package/components/page/description.marko.js +0 -26
- package/components/page/image.marko.js +0 -123
- package/components/page/layouts/content.marko.js +0 -63
- package/components/page/layouts/default.marko.js +0 -61
- package/components/page/layouts/dynamic-page.marko.js +0 -59
- package/components/page/layouts/magazine-issue.marko.js +0 -59
- package/components/page/layouts/magazine-publication.marko.js +0 -59
- package/components/page/layouts/website-section.marko.js +0 -78
- package/components/page/metadata/components/common.marko.js +0 -108
- package/components/page/metadata/content.marko.js +0 -201
- package/components/page/metadata/default.marko.js +0 -29
- package/components/page/metadata/dynamic-page.marko.js +0 -83
- package/components/page/metadata/magazine-issue.marko.js +0 -84
- package/components/page/metadata/magazine-publication.marko.js +0 -80
- package/components/page/metadata/website-section.marko.js +0 -79
- package/components/page/rel-canonical.marko.js +0 -42
- package/components/page/title.marko.js +0 -46
- package/components/page/wrapper.marko.js +0 -63
- package/components/resolve/page.marko.js +0 -49
- package/components/rss/website-section.marko.js +0 -46
package/browser/index.js
CHANGED
@@ -14,10 +14,13 @@ const load = async ({
|
|
14
14
|
props,
|
15
15
|
on,
|
16
16
|
hydrate,
|
17
|
+
skipWhenExists,
|
17
18
|
} = {}) => {
|
18
19
|
if (!el || !name) throw new Error('A Vue component name and element must be provided.');
|
19
20
|
const Component = components[name];
|
20
21
|
if (!Component) throw new Error(`No Vue component found for '${name}'`);
|
22
|
+
const shouldRender = skipWhenExists ? document.querySelectorAll(`script.component[data-name="${name}"]`).length <= 1 : true;
|
23
|
+
if (!shouldRender) return;
|
21
24
|
const component = new Vue({
|
22
25
|
provide: providers[name],
|
23
26
|
render: h => h(Component, { props, on: { ...on, ...listeners[name] } }),
|
@@ -7,8 +7,9 @@ $ const tag = defaultValue(input.tag, "div");
|
|
7
7
|
$ const { name } = input;
|
8
8
|
$ const ssr = defaultValue(input.ssr, false);
|
9
9
|
$ const hydrate = ssr ? true : defaultValue(input.hydrate, false);
|
10
|
+
$ const skipWhenExists = defaultValue(input.skipWhenExists, false);
|
10
11
|
$ const props = JSON.stringify(input.props || {});
|
11
|
-
$ const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', props: ${props}, hydrate: ${hydrate} });`;
|
12
|
+
$ const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', props: ${props}, hydrate: ${hydrate}, skipWhenExists: ${skipWhenExists} });`;
|
12
13
|
|
13
14
|
<if(ssr)>
|
14
15
|
$ const { compiledVueComponents } = out.global;
|
@@ -23,4 +24,4 @@ $ const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', p
|
|
23
24
|
<${input.renderBody} />
|
24
25
|
</>
|
25
26
|
</else>
|
26
|
-
<script>$!{contents}</script>
|
27
|
+
<script class="component" data-name=name>$!{contents}</script>
|
@@ -2,7 +2,7 @@ import { getAsArray } from "@parameter1/base-cms-object-path";
|
|
2
2
|
|
3
3
|
$ const { config } = out.global;
|
4
4
|
$ const { src, alt } = input;
|
5
|
-
$ const lazyload = config.lazyloadImages() && input.lazyload !== false
|
5
|
+
$ const lazyload = config && config.lazyloadImages() && input.lazyload !== false
|
6
6
|
$ const srcset = getAsArray(input.srcset).join(", ") || null;
|
7
7
|
|
8
8
|
$ const classNames = [input.class];
|
package/components/marko.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.1",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"@parameter1/base-cms-object-path": "^3.0.0",
|
26
26
|
"@parameter1/base-cms-tenant-context": "^3.0.0",
|
27
27
|
"@parameter1/base-cms-utils": "^3.0.0",
|
28
|
-
"@parameter1/base-cms-web-common": "^3.
|
28
|
+
"@parameter1/base-cms-web-common": "^3.3.1",
|
29
29
|
"cookie-parser": "^1.4.5",
|
30
30
|
"express": "^4.17.1",
|
31
31
|
"express-http-proxy": "^1.6.2",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"publishConfig": {
|
47
47
|
"access": "public"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "a9bdf4adb57d161694e527e3818e149dc6ed95b0"
|
50
50
|
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/browser-component.marko",
|
6
|
-
marko_component = require("./browser-component.marko"),
|
7
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
|
-
module_defaultValue = require("@parameter1/base-cms-marko-core/utils/default-value"),
|
9
|
-
defaultValue = module_defaultValue.default || module_defaultValue,
|
10
|
-
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
11
|
-
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
12
|
-
randomElementId = module_baseCmsUtils_module.randomElementId,
|
13
|
-
module_renderComponent = require("../utils/render-ssr-component"),
|
14
|
-
renderComponent = module_renderComponent.default || module_renderComponent,
|
15
|
-
marko_str = require("marko/src/runtime/helpers/to-string"),
|
16
|
-
marko_web_resolve_template = require("@parameter1/base-cms-marko-core/components/resolve.marko"),
|
17
|
-
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
18
|
-
marko_web_resolve_tag = marko_loadTag(marko_web_resolve_template),
|
19
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
20
|
-
marko_assign = require("marko/src/runtime/helpers/assign");
|
21
|
-
|
22
|
-
function render(input, out, __component, component, state) {
|
23
|
-
var data = input;
|
24
|
-
|
25
|
-
const id = randomElementId({ prefix: 'vue' });
|
26
|
-
|
27
|
-
const tag = defaultValue(input.tag, "div");
|
28
|
-
|
29
|
-
const { name } = input;
|
30
|
-
|
31
|
-
const ssr = defaultValue(input.ssr, false);
|
32
|
-
|
33
|
-
const hydrate = ssr ? true : defaultValue(input.hydrate, false);
|
34
|
-
|
35
|
-
const props = JSON.stringify(input.props || {});
|
36
|
-
|
37
|
-
const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', props: ${props}, hydrate: ${hydrate} });`;
|
38
|
-
|
39
|
-
if (ssr) {
|
40
|
-
const { compiledVueComponents } = out.global;
|
41
|
-
|
42
|
-
const Component = compiledVueComponents[name];
|
43
|
-
|
44
|
-
if (!Component) throw new Error(`No compiled Vue template found for ${name}. Unable to render server-side.`);
|
45
|
-
|
46
|
-
marko_web_resolve_tag({
|
47
|
-
promise: renderComponent(Component, {
|
48
|
-
id: id,
|
49
|
-
props: input.props
|
50
|
-
}),
|
51
|
-
renderBody: function(out, { resolved: html }) {
|
52
|
-
out.w(marko_str(html));
|
53
|
-
}
|
54
|
-
}, out, __component, "0");
|
55
|
-
} else {
|
56
|
-
marko_dynamicTag(out, tag, function() {
|
57
|
-
return marko_assign({}, input.attrs, {
|
58
|
-
id: id,
|
59
|
-
class: input.class
|
60
|
-
});
|
61
|
-
}, function(out) {
|
62
|
-
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "2");
|
63
|
-
}, null, null, __component, "1");
|
64
|
-
}
|
65
|
-
|
66
|
-
out.w("<script>" +
|
67
|
-
marko_str(contents) +
|
68
|
-
"</script>");
|
69
|
-
}
|
70
|
-
|
71
|
-
marko_template._ = marko_renderer(render, {
|
72
|
-
___type: marko_componentType
|
73
|
-
}, marko_component);
|
74
|
-
|
75
|
-
marko_template.meta = {
|
76
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/browser-component.marko",
|
77
|
-
component: "./browser-component.marko",
|
78
|
-
tags: [
|
79
|
-
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
80
|
-
]
|
81
|
-
};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/body-wrapper.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
8
|
-
marko_attrs = require("marko/src/runtime/html/helpers/attrs");
|
9
|
-
|
10
|
-
function render(input, out, __component, component, state) {
|
11
|
-
var data = input;
|
12
|
-
|
13
|
-
if (input.enabled) {
|
14
|
-
out.w("<div" +
|
15
|
-
marko_attrs(input.attrs) +
|
16
|
-
">");
|
17
|
-
|
18
|
-
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "1");
|
19
|
-
|
20
|
-
out.w("</div>");
|
21
|
-
} else {
|
22
|
-
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "2");
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
marko_template._ = marko_renderer(render, {
|
27
|
-
___implicit: true,
|
28
|
-
___type: marko_componentType
|
29
|
-
});
|
30
|
-
|
31
|
-
marko_template.meta = {
|
32
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/body-wrapper.marko"
|
33
|
-
};
|
@@ -1,85 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/error.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_isDev = require("../../../utils/is-dev"),
|
8
|
-
isDev = module_isDev.default || module_isDev,
|
9
|
-
marko_web_page_title_template = require("../../page/title.marko"),
|
10
|
-
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
11
|
-
marko_web_page_title_tag = marko_loadTag(marko_web_page_title_template),
|
12
|
-
helpers_escape_xml = require("marko/src/runtime/html/helpers/escape-xml"),
|
13
|
-
marko_escapeXml = helpers_escape_xml.x,
|
14
|
-
marko_web_page_wrapper_template = require("../../page/wrapper.marko"),
|
15
|
-
marko_web_page_wrapper_tag = marko_loadTag(marko_web_page_wrapper_template),
|
16
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag");
|
17
|
-
|
18
|
-
function render(input, out, __component, component, state) {
|
19
|
-
var data = input;
|
20
|
-
|
21
|
-
const { document } = out.global;
|
22
|
-
|
23
|
-
const error = input.error || {};
|
24
|
-
|
25
|
-
marko_dynamicTag(out, document, function() {
|
26
|
-
return {
|
27
|
-
head: {
|
28
|
-
renderBody: function(out) {
|
29
|
-
marko_web_page_title_tag({
|
30
|
-
concatWith: "|",
|
31
|
-
value: (input.statusCode + " ") + input.statusMessage
|
32
|
-
}, out, __component, "2");
|
33
|
-
|
34
|
-
if (input.statusCode === 404) {
|
35
|
-
out.w("<meta name=\"robots\" content=\"noindex\">");
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
container: {
|
40
|
-
page: {
|
41
|
-
for: "error",
|
42
|
-
renderBody: function(out) {
|
43
|
-
marko_web_page_wrapper_tag({
|
44
|
-
blockName: "page-wrapper",
|
45
|
-
tag: "div",
|
46
|
-
sections: [
|
47
|
-
{
|
48
|
-
tag: "div",
|
49
|
-
renderBody: function(out) {
|
50
|
-
out.w("<h3>" +
|
51
|
-
marko_escapeXml(input.statusCode) +
|
52
|
-
" " +
|
53
|
-
marko_escapeXml(input.statusMessage) +
|
54
|
-
"</h3><h4>" +
|
55
|
-
marko_escapeXml(error.message) +
|
56
|
-
"</h4>");
|
57
|
-
|
58
|
-
if (isDev) {
|
59
|
-
out.w("<pre>" +
|
60
|
-
marko_escapeXml(error.stack) +
|
61
|
-
"</pre>");
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
]
|
66
|
-
}, out, __component, "6");
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
};
|
71
|
-
}, null, null, null, __component, "0");
|
72
|
-
}
|
73
|
-
|
74
|
-
marko_template._ = marko_renderer(render, {
|
75
|
-
___implicit: true,
|
76
|
-
___type: marko_componentType
|
77
|
-
});
|
78
|
-
|
79
|
-
marko_template.meta = {
|
80
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/error.marko",
|
81
|
-
tags: [
|
82
|
-
"../../page/title.marko",
|
83
|
-
"../../page/wrapper.marko"
|
84
|
-
]
|
85
|
-
};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.13.0/components/document/components/lazysizes.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer");
|
7
|
-
|
8
|
-
function render(input, out, __component, component, state) {
|
9
|
-
var data = input;
|
10
|
-
|
11
|
-
out.w("<script>\n/*! lazysizes - v5.3.2 */\n!function(e){var t=function(u,D,f){\"use strict\";var k,H;if(function(){var e;var t={lazyClass:\"lazyload\",loadedClass:\"lazyloaded\",loadingClass:\"lazyloading\",preloadClass:\"lazypreload\",errorClass:\"lazyerror\",autosizesClass:\"lazyautosizes\",fastLoadedClass:\"ls-is-cached\",iframeLoadMode:0,srcAttr:\"data-src\",srcsetAttr:\"data-srcset\",sizesAttr:\"data-sizes\",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,i=u.HTMLPictureElement,P=\"addEventListener\",$=\"getAttribute\",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,o=u.requestIdleCallback,j=/^picture$/i,r=[\"load\",\"error\",\"lazyincluded\",\"_lazyloaded\"],a={},G=Array.prototype.forEach,J=function(e,t){if(!a[t]){a[t]=new RegExp(\"(\\\\s|^)\"+t+\"(\\\\s|$)\")}return a[t].test(e[$](\"class\")||\"\")&&a[t]},K=function(e,t){if(!J(e,t)){e.setAttribute(\"class\",(e[$](\"class\")||\"\").trim()+\" \"+t)}},Q=function(e,t){var a;if(a=J(e,t)){e.setAttribute(\"class\",(e[$](\"class\")||\"\").replace(a,\" \"))}},V=function(t,a,e){var i=e?P:\"removeEventListener\";if(e){V(t,a)}r.forEach(function(e){t[i](e,a)})},X=function(e,t,a,i,r){var n=D.createEvent(\"Event\");if(!a){a={}}a.instance=k;n.initEvent(t,!i,!r);n.detail=a;e.dispatchEvent(n);return n},Y=function(e,t){var a;if(!i&&(a=u.picturefill||H.pf)){if(t&&t.src&&!e[$](\"srcset\")){e.setAttribute(\"srcset\",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,a){a=a||e.offsetWidth;while(a<H.minSize&&t&&!e._lazysizesWidth){a=t.offsetWidth;t=t.parentNode}return a},ee=function(){var a,i;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;a=true;i=false;while(e.length){e.shift()()}a=false};var e=function(e,t){if(a&&!t){e.apply(this,arguments)}else{n.push(e);if(!i){i=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(a,e){return e?function(){ee(a)}:function(){var e=this;var t=arguments;ee(function(){a.apply(e,t)})}},ae=function(e){var a;var i=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){a=false;i=f.now();e()};var s=o&&n>49?function(){o(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(a){return}a=true;t=r-(f.now()-i);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ie=function(e){var t,a;var i=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-a;if(e<i){I(n,i-e)}else{(o||r)(r)}};return function(){a=f.now();if(!t){t=I(n,i)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E=\"onscroll\"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var M=0;var N=-1;var L=function(e){M--;if(!e||M<0||!e.target){M=0}};var x=function(e){if(A==null){A=Z(D.body,\"visibility\")==\"hidden\"}return A||!(Z(e.parentNode,\"visibility\")==\"hidden\"&&Z(e,\"visibility\")==\"hidden\")};var W=function(e,t){var a;var i=e;var r=x(e);g-=t;b+=t;p-=t;C+=t;while(r&&(i=i.offsetParent)&&i!=D.body&&i!=O){r=(Z(i,\"opacity\")||1)>0;if(r&&Z(i,\"overflow\")!=\"visible\"){a=i.getBoundingClientRect();r=C>a.left&&p<a.right&&b>a.top-1&&g<a.bottom+1}}return r};var t=function(){var e,t,a,i,r,n,s,o,l,u,f,c;var d=k.elements;if((h=H.loadMode)&&M<8&&(e=d.length)){t=0;N++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(o=d[t][$](\"data-expand\"))||!(n=o*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&M<1&&N>2&&h>2&&!D.hidden){w=f;N=0}else if(h>1&&N>1&&M<6){w=u}else{w=_}}if(l!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;l=n}a=d[t].getBoundingClientRect();if((b=a.bottom)>=s&&(g=a.top)<=z&&(C=a.right)>=s*c&&(p=a.left)<=y&&(b||C||p||g)&&(H.loadHidden||x(d[t]))&&(m&&M<3&&!o&&(h<3||N<4)||W(d[t],n))){R(d[t]);r=true;if(M>9){break}}else if(!r&&m&&!i&&M<4&&N<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!o&&(b||C||p||g||d[t][$](H.sizesAttr)!=\"auto\"))){i=v[0]||d[t]}}if(i&&!r){R(i)}}};var a=ae(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}L(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,B);X(t,\"lazyloaded\")};var i=te(S);var B=function(e){i({target:e.target})};var T=function(e,t){var a=e.getAttribute(\"data-load-mode\")||H.iframeLoadMode;if(a==0){e.contentWindow.location.replace(t)}else if(a==1){e.src=t}};var F=function(e){var t;var a=e[$](H.srcsetAttr);if(t=H.customMedia[e[$](\"data-media\")||e[$](\"media\")]){e.setAttribute(\"media\",t)}if(a){e.setAttribute(\"srcset\",a)}};var s=te(function(t,e,a,i,r){var n,s,o,l,u,f;if(!(u=X(t,\"lazybeforeunveil\",e)).defaultPrevented){if(i){if(a){K(t,H.autosizesClass)}else{t.setAttribute(\"sizes\",i)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){o=t.parentNode;l=o&&j.test(o.nodeName||\"\")}f=e.firesLoad||\"src\"in t&&(s||n||l);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(L,2500);V(t,B,true)}if(l){G.call(o.getElementsByTagName(\"source\"),F)}if(s){t.setAttribute(\"srcset\",s)}else if(n&&!l){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||l)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,H.fastLoadedClass)}S(u);t._lazyCache=true;I(function(){if(\"_lazyCache\"in t){delete t._lazyCache}},9)}if(t.loading==\"lazy\"){M--}},true)});var R=function(e){if(e._lazyRace){return}var t;var a=n.test(e.nodeName);var i=a&&(e[$](H.sizesAttr)||e[$](\"sizes\"));var r=i==\"auto\";if((r||!m)&&a&&(e[$](\"src\")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,\"lazyunveilread\").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;M++;s(e,t,r,i,a)};var r=ie(function(){H.loadMode=3;a()});var o=function(){if(H.loadMode==3){H.loadMode=2}r()};var l=function(){if(m){return}if(f.now()-e<999){I(l,999);return}m=true;H.loadMode=3;a();q(\"scroll\",o,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+\" \"+H.preloadClass);q(\"scroll\",a,true);q(\"resize\",a,true);q(\"pageshow\",function(e){if(e.persisted){var t=D.querySelectorAll(\".\"+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(a).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P](\"DOMNodeInserted\",a,true);O[P](\"DOMAttrModified\",a,true);setInterval(a,999)}q(\"hashchange\",a,true);[\"focus\",\"mouseover\",\"click\",\"load\",\"transitionend\",\"animationend\"].forEach(function(e){D[P](e,a,true)});if(/d$|^c/.test(D.readyState)){l()}else{q(\"load\",l);D[P](\"DOMContentLoaded\",a);I(l,2e4)}if(k.elements.length){t();ee._lsFlush()}else{a()}},checkElems:a,unveil:R,_aLSL:o}}(),re=function(){var a;var n=te(function(e,t,a,i){var r,n,s;e._lazysizesWidth=i;i+=\"px\";e.setAttribute(\"sizes\",i);if(j.test(t.nodeName||\"\")){r=t.getElementsByTagName(\"source\");for(n=0,s=r.length;n<s;n++){r[n].setAttribute(\"sizes\",i)}}if(!a.detail.dataAttr){Y(e,a.detail)}});var i=function(e,t,a){var i;var r=e.parentNode;if(r){a=s(e,r,a);i=X(e,\"lazybeforesizes\",{width:a,dataAttr:!!t});if(!i.defaultPrevented){a=i.detail.width;if(a&&a!==e._lazysizesWidth){n(e,r,i,a)}}}};var e=function(){var e;var t=a.length;if(t){e=0;for(;e<t;e++){i(a[e])}}};var t=ie(e);return{_:function(){a=D.getElementsByClassName(H.autosizesClass);q(\"resize\",t)},checkElems:t,updateElem:i}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,\"object\"==typeof module&&module.exports&&(module.exports=t)}(\"undefined\"!=typeof window?window:{});\n</script>");
|
12
|
-
}
|
13
|
-
|
14
|
-
marko_template._ = marko_renderer(render, {
|
15
|
-
___implicit: true,
|
16
|
-
___type: marko_componentType
|
17
|
-
});
|
18
|
-
|
19
|
-
marko_template.meta = {
|
20
|
-
id: "/@parameter1/base-cms-marko-web$2.13.0/components/document/components/lazysizes.marko"
|
21
|
-
};
|
@@ -1,30 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/live-reload.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_isDev = require("../../../utils/is-dev"),
|
8
|
-
isDev = module_isDev.default || module_isDev,
|
9
|
-
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
10
|
-
|
11
|
-
function render(input, out, __component, component, state) {
|
12
|
-
var data = input;
|
13
|
-
|
14
|
-
const { LIVERELOAD_PORT, EXPOSED_HOST } = process.env;
|
15
|
-
|
16
|
-
if (isDev && LIVERELOAD_PORT) {
|
17
|
-
out.w("<script" +
|
18
|
-
marko_attr("src", ((("http://" + EXPOSED_HOST) + ":") + LIVERELOAD_PORT) + "/livereload.js") +
|
19
|
-
" async></script>");
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
marko_template._ = marko_renderer(render, {
|
24
|
-
___implicit: true,
|
25
|
-
___type: marko_componentType
|
26
|
-
});
|
27
|
-
|
28
|
-
marko_template.meta = {
|
29
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/document/components/live-reload.marko"
|
30
|
-
};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.13.0/components/document/components/polyfill.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
-
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
-
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
-
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
11
|
-
|
12
|
-
function render(input, out, __component, component, state) {
|
13
|
-
var data = input;
|
14
|
-
|
15
|
-
const features = getAsArray(input, "features");
|
16
|
-
|
17
|
-
const src = `https://polyfill.io/v3/polyfill.min.js?flags=gated&features=${encodeURIComponent(features.join(','))}`;
|
18
|
-
|
19
|
-
if (features.length) {
|
20
|
-
out.w("<script" +
|
21
|
-
marko_attr("src", src) +
|
22
|
-
"></script>");
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
marko_template._ = marko_renderer(render, {
|
27
|
-
___implicit: true,
|
28
|
-
___type: marko_componentType
|
29
|
-
});
|
30
|
-
|
31
|
-
marko_template.meta = {
|
32
|
-
id: "/@parameter1/base-cms-marko-web$2.13.0/components/document/components/polyfill.marko"
|
33
|
-
};
|
@@ -1,54 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/document/container.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
-
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
-
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
11
|
-
marko_assign = require("marko/src/runtime/helpers/assign"),
|
12
|
-
marko_web_page_container_template = require("../page/container.marko"),
|
13
|
-
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
14
|
-
marko_web_page_container_tag = marko_loadTag(marko_web_page_container_template);
|
15
|
-
|
16
|
-
function render(input, out, __component, component, state) {
|
17
|
-
var data = input;
|
18
|
-
|
19
|
-
const blockName = input.blockName || "document-container";
|
20
|
-
|
21
|
-
const tag = input.tag || "div";
|
22
|
-
|
23
|
-
const modifiers = [...getAsArray(input.modifiers)];
|
24
|
-
|
25
|
-
const classNames = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`), input.class];
|
26
|
-
|
27
|
-
marko_dynamicTag(out, tag, function() {
|
28
|
-
return marko_assign({}, input.attrs, {
|
29
|
-
class: classNames
|
30
|
-
});
|
31
|
-
}, function(out) {
|
32
|
-
marko_dynamicTag(out, input.abovePage, null, null, null, null, __component, "1");
|
33
|
-
|
34
|
-
if (input.page) {
|
35
|
-
marko_web_page_container_tag(marko_assign({
|
36
|
-
tag: "main"
|
37
|
-
}, input.page), out, __component, "2");
|
38
|
-
}
|
39
|
-
|
40
|
-
marko_dynamicTag(out, input.belowPage, null, null, null, null, __component, "3");
|
41
|
-
}, null, null, __component, "0");
|
42
|
-
}
|
43
|
-
|
44
|
-
marko_template._ = marko_renderer(render, {
|
45
|
-
___implicit: true,
|
46
|
-
___type: marko_componentType
|
47
|
-
});
|
48
|
-
|
49
|
-
marko_template.meta = {
|
50
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/document/container.marko",
|
51
|
-
tags: [
|
52
|
-
"../page/container.marko"
|
53
|
-
]
|
54
|
-
};
|
@@ -1,118 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/document/index.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
-
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
-
getAsObject = module_baseCmsObjectPath_module.getAsObject,
|
10
|
-
marko_attr = require("marko/src/runtime/html/helpers/attr"),
|
11
|
-
marko_forOf = require("marko/src/runtime/helpers/for-of"),
|
12
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
13
|
-
marko_assign = require("marko/src/runtime/helpers/assign"),
|
14
|
-
marko_web_document_container_template = require("./container.marko"),
|
15
|
-
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
16
|
-
marko_web_document_container_tag = marko_loadTag(marko_web_document_container_template),
|
17
|
-
live_reload_template = require("./components/live-reload.marko"),
|
18
|
-
live_reload_tag = marko_loadTag(live_reload_template),
|
19
|
-
body_wrapper_template = require("./components/body-wrapper.marko"),
|
20
|
-
body_wrapper_tag = marko_loadTag(body_wrapper_template),
|
21
|
-
init_components_tag = marko_loadTag(require("marko/src/core-tags/components/init-components-tag")),
|
22
|
-
await_reorderer_tag = marko_loadTag(require("marko/src/core-tags/core/await/reorderer-renderer")),
|
23
|
-
_preferred_script_location_tag = marko_loadTag(require("marko/src/core-tags/components/preferred-script-location-tag"));
|
24
|
-
|
25
|
-
function render(input, out, __component, component, state) {
|
26
|
-
var data = input;
|
27
|
-
|
28
|
-
const { config } = out.global;
|
29
|
-
|
30
|
-
const dir = input.dir || "ltr";
|
31
|
-
|
32
|
-
const lang = input.lang || config.website("language.code", "en-us");
|
33
|
-
|
34
|
-
const viewport = input.viewport || "width=device-width, initial-scale=1, shrink-to-fit=no";
|
35
|
-
|
36
|
-
const wrapper = getAsObject(input, "bodyWrapper");
|
37
|
-
|
38
|
-
out.w("<!doctype html><html" +
|
39
|
-
marko_attr("lang", lang) +
|
40
|
-
marko_attr("dir", dir) +
|
41
|
-
"><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\"" +
|
42
|
-
marko_attr("content", viewport) +
|
43
|
-
">");
|
44
|
-
|
45
|
-
var $for$0 = 0;
|
46
|
-
|
47
|
-
marko_forOf(config.styles(), function(href) {
|
48
|
-
var $keyScope$0 = "[" + (($for$0++) + "]");
|
49
|
-
|
50
|
-
out.w("<link rel=\"stylesheet\"" +
|
51
|
-
marko_attr("href", href) +
|
52
|
-
">");
|
53
|
-
});
|
54
|
-
|
55
|
-
out.w("<script>\n (function(w) {\n w.markoCompQueue = w.markoCompQueue || [];\n var name = 'CMSBrowserComponents', methods = ['load', 'loadComponent'], queue = function(method) { return function() { w.markoCompQueue.push([method, arguments]) } };\n w[name] = w[name] || {};\n for (var i = 0; i < methods.length; i++) { var method = methods[i]; w[name][method] = w[name][method] || queue(method); }\n })(window);\n </script><script src=\"/dist/js/lazysizes/v5.3.2.js\" async></script><script>\n document.createElement( \"picture\" );\n </script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js\" async></script>");
|
56
|
-
|
57
|
-
marko_dynamicTag(out, input.head, null, null, null, null, __component, "6");
|
58
|
-
|
59
|
-
out.w("</head><body>");
|
60
|
-
|
61
|
-
marko_dynamicTag(out, input.aboveWrapper, null, null, null, null, __component, "8");
|
62
|
-
|
63
|
-
body_wrapper_tag({
|
64
|
-
enabled: wrapper.enabled,
|
65
|
-
attrs: wrapper.attrs,
|
66
|
-
renderBody: function(out) {
|
67
|
-
marko_dynamicTag(out, input.aboveContainer, null, null, null, null, __component, "10");
|
68
|
-
|
69
|
-
if (input.container) {
|
70
|
-
marko_web_document_container_tag(marko_assign({
|
71
|
-
blockName: "document-container",
|
72
|
-
tag: "div"
|
73
|
-
}, input.container), out, __component, "11");
|
74
|
-
}
|
75
|
-
|
76
|
-
marko_dynamicTag(out, input.belowContainer, null, null, null, null, __component, "12");
|
77
|
-
|
78
|
-
live_reload_tag({}, out, __component, "13");
|
79
|
-
|
80
|
-
marko_dynamicTag(out, input.foot, null, null, null, null, __component, "14");
|
81
|
-
}
|
82
|
-
}, out, __component, "9");
|
83
|
-
|
84
|
-
marko_dynamicTag(out, input.belowWrapper, null, null, null, null, __component, "15");
|
85
|
-
|
86
|
-
marko_forOf(config.sources(), function(src) {
|
87
|
-
out.w("<script" +
|
88
|
-
marko_attr("src", src) +
|
89
|
-
"></script>");
|
90
|
-
});
|
91
|
-
|
92
|
-
out.w("<script>CMSBrowserComponents.init();</script>");
|
93
|
-
|
94
|
-
init_components_tag({}, out);
|
95
|
-
|
96
|
-
await_reorderer_tag({}, out, __component, "16");
|
97
|
-
|
98
|
-
_preferred_script_location_tag({}, out);
|
99
|
-
|
100
|
-
out.w("</body></html>");
|
101
|
-
}
|
102
|
-
|
103
|
-
marko_template._ = marko_renderer(render, {
|
104
|
-
___implicit: true,
|
105
|
-
___type: marko_componentType
|
106
|
-
});
|
107
|
-
|
108
|
-
marko_template.meta = {
|
109
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/document/index.marko",
|
110
|
-
tags: [
|
111
|
-
"./container.marko",
|
112
|
-
"./components/live-reload.marko",
|
113
|
-
"./components/body-wrapper.marko",
|
114
|
-
"marko/src/core-tags/components/init-components-tag",
|
115
|
-
"marko/src/core-tags/core/await/reorderer-renderer",
|
116
|
-
"marko/src/core-tags/components/preferred-script-location-tag"
|
117
|
-
]
|
118
|
-
};
|
@@ -1,67 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$2.98.0/components/element/array.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
-
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
-
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
-
marko_forOf = require("marko/src/runtime/helpers/for-of"),
|
11
|
-
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
12
|
-
marko_assign = require("marko/src/runtime/helpers/assign");
|
13
|
-
|
14
|
-
function render(input, out, __component, component, state) {
|
15
|
-
var data = input;
|
16
|
-
|
17
|
-
const tag = input.tag === undefined ? "div" : input.tag;
|
18
|
-
|
19
|
-
const value = getAsArray(input, "value");
|
20
|
-
|
21
|
-
if (value.length) {
|
22
|
-
if (tag) {
|
23
|
-
marko_dynamicTag(out, tag, function() {
|
24
|
-
return marko_assign({}, input.attrs, {
|
25
|
-
class: input.class
|
26
|
-
});
|
27
|
-
}, function(out) {
|
28
|
-
var $for$0 = 0;
|
29
|
-
|
30
|
-
marko_forOf(value, function(v, index) {
|
31
|
-
var $keyScope$0 = "[" + (($for$0++) + "]");
|
32
|
-
|
33
|
-
marko_dynamicTag(out, input.renderBody, function() {
|
34
|
-
return {
|
35
|
-
value: v,
|
36
|
-
index: index,
|
37
|
-
length: value.length
|
38
|
-
};
|
39
|
-
}, null, null, null, __component, "1" + $keyScope$0);
|
40
|
-
});
|
41
|
-
}, null, null, __component, "0");
|
42
|
-
} else {
|
43
|
-
var $for$1 = 0;
|
44
|
-
|
45
|
-
marko_forOf(value, function(v, index) {
|
46
|
-
var $keyScope$1 = "[" + (($for$1++) + "]");
|
47
|
-
|
48
|
-
marko_dynamicTag(out, input.renderBody, function() {
|
49
|
-
return {
|
50
|
-
value: v,
|
51
|
-
index: index,
|
52
|
-
length: value.length
|
53
|
-
};
|
54
|
-
}, null, null, null, __component, "2" + $keyScope$1);
|
55
|
-
});
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
marko_template._ = marko_renderer(render, {
|
61
|
-
___implicit: true,
|
62
|
-
___type: marko_componentType
|
63
|
-
});
|
64
|
-
|
65
|
-
marko_template.meta = {
|
66
|
-
id: "/@parameter1/base-cms-marko-web$2.98.0/components/element/array.marko"
|
67
|
-
};
|
@@ -1,33 +0,0 @@
|
|
1
|
-
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$1.49.0/components/element/audio.marko",
|
6
|
-
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
marko_attr = require("marko/src/runtime/html/helpers/attr"),
|
8
|
-
marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
|
9
|
-
|
10
|
-
function render(input, out, __component, component, state) {
|
11
|
-
var data = input;
|
12
|
-
|
13
|
-
if (input.src) {
|
14
|
-
out.w("<audio" +
|
15
|
-
marko_mergeAttrs(input.attrs, {
|
16
|
-
src: input.src,
|
17
|
-
class: input.class,
|
18
|
-
controls: "controls"
|
19
|
-
}) +
|
20
|
-
"><p>Your browser doesn't support HTML5 audio. Here is a <a" +
|
21
|
-
marko_attr("href", input.src) +
|
22
|
-
">link to the audio</a> instead.</p></audio>");
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
marko_template._ = marko_renderer(render, {
|
27
|
-
___implicit: true,
|
28
|
-
___type: marko_componentType
|
29
|
-
});
|
30
|
-
|
31
|
-
marko_template.meta = {
|
32
|
-
id: "/@parameter1/base-cms-marko-web$1.49.0/components/element/audio.marko"
|
33
|
-
};
|