@parameter1/base-cms-marko-web 3.8.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- package/base-cms-marko-web-0.7.4.tgz +0 -0
- package/base-cms-marko-web-0.9.37.tgz +0 -0
- package/base-cms-marko-web-0.9.55.tgz +0 -0
- package/components/browser-component.marko.js +86 -0
- package/components/document/components/assets.marko.js +43 -0
- package/components/document/components/body-wrapper.marko.js +33 -0
- package/components/document/components/error.marko.js +85 -0
- package/components/document/components/live-reload.marko.js +30 -0
- package/components/document/components/polyfill.marko.js +33 -0
- package/components/document/container.marko.js +54 -0
- package/components/document/index.marko.js +118 -0
- package/components/element/array.marko.js +67 -0
- package/components/element/audio.marko.js +33 -0
- package/components/element/block.marko.js +44 -0
- package/components/element/clear.marko.js +32 -0
- package/components/element/components/image.marko.js +62 -0
- package/components/element/components/text.marko.js +37 -0
- package/components/element/content/address1.marko.js +40 -0
- package/components/element/content/address2.marko.js +40 -0
- package/components/element/content/audio.marko.js +40 -0
- package/components/element/content/authors.marko.js +43 -0
- package/components/element/content/body.marko.js +62 -0
- package/components/element/content/byline.marko.js +41 -0
- package/components/element/content/city-state-zip.marko.js +40 -0
- package/components/element/content/contributors.marko.js +43 -0
- package/components/element/content/country.marko.js +40 -0
- package/components/element/content/embed-code.marko.js +41 -0
- package/components/element/content/end-date.marko.js +42 -0
- package/components/element/content/ends.marko.js +41 -0
- package/components/element/content/fax.marko.js +40 -0
- package/components/element/content/images.marko.js +44 -0
- package/components/element/content/mobile.marko.js +40 -0
- package/components/element/content/name.marko.js +41 -0
- package/components/element/content/phone.marko.js +40 -0
- package/components/element/content/photographers.marko.js +43 -0
- package/components/element/content/public-email.marko.js +47 -0
- package/components/element/content/published.marko.js +42 -0
- package/components/element/content/short-name.marko.js +41 -0
- package/components/element/content/sidebar-stubs.marko.js +64 -0
- package/components/element/content/sidebars.marko.js +63 -0
- package/components/element/content/source.marko.js +40 -0
- package/components/element/content/sponsors.marko.js +43 -0
- package/components/element/content/start-date.marko.js +42 -0
- package/components/element/content/starts.marko.js +41 -0
- package/components/element/content/teaser.marko.js +41 -0
- package/components/element/content/title.marko.js +40 -0
- package/components/element/content/tollfree.marko.js +40 -0
- package/components/element/content/website.marko.js +51 -0
- package/components/element/date.marko.js +27 -0
- package/components/element/image/caption.marko.js +41 -0
- package/components/element/image/credit.marko.js +41 -0
- package/components/element/image/display-name.marko.js +40 -0
- package/components/element/image/slider.marko.js +51 -0
- package/components/element/img.marko.js +43 -0
- package/components/element/index.marko.js +47 -0
- package/components/element/link.marko.js +54 -0
- package/components/element/magazine-issue/description.marko.js +41 -0
- package/components/element/magazine-issue/digital-edition-url.marko.js +52 -0
- package/components/element/magazine-issue/name.marko.js +41 -0
- package/components/element/magazine-issue/pdf-url.marko.js +52 -0
- package/components/element/magazine-publication/cancel-url.marko.js +52 -0
- package/components/element/magazine-publication/change-address-url.marko.js +52 -0
- package/components/element/magazine-publication/description.marko.js +41 -0
- package/components/element/magazine-publication/einquiry-url.marko.js +52 -0
- package/components/element/magazine-publication/name.marko.js +41 -0
- package/components/element/magazine-publication/renewal-url.marko.js +52 -0
- package/components/element/magazine-publication/reprints-url.marko.js +52 -0
- package/components/element/magazine-publication/subscribe-url.marko.js +52 -0
- package/components/element/obj-array.marko.js +56 -0
- package/components/element/obj-audio.marko.js +51 -0
- package/components/element/obj-date.marko.js +54 -0
- package/components/element/obj-nodes.marko.js +62 -0
- package/components/element/obj-text.marko.js +53 -0
- package/components/element/obj.marko.js +61 -0
- package/components/element/picture.marko.js +85 -0
- package/components/element/text.marko.js +76 -0
- package/components/element/website-section/description.marko.js +45 -0
- package/components/element/website-section/hierarchy.marko.js +61 -0
- package/components/element/website-section/name.marko.js +46 -0
- package/components/load-more/index.marko.js +119 -0
- package/components/load-more/trigger.marko.js +40 -0
- package/components/node/body.marko.js +112 -0
- package/components/node/element.marko.js +39 -0
- package/components/node/footer.marko.js +63 -0
- package/components/node/header.marko.js +63 -0
- package/components/node/image-inner-wrapper.marko.js +116 -0
- package/components/node/image-wrapper.marko.js +98 -0
- package/components/node/image.marko.js +93 -0
- package/components/node/index.marko.js +100 -0
- package/components/node-list/body.marko.js +50 -0
- package/components/node-list/element.marko.js +35 -0
- package/components/node-list/footer.marko.js +50 -0
- package/components/node-list/header.marko.js +50 -0
- package/components/node-list/index.marko.js +93 -0
- package/components/node-list/node.marko.js +49 -0
- package/components/node-list/nodes.marko.js +126 -0
- package/components/page/container.marko.js +46 -0
- package/components/page/description.marko.js +26 -0
- package/components/page/image.marko.js +122 -0
- package/components/page/layouts/content.marko.js +63 -0
- package/components/page/layouts/default.marko.js +61 -0
- package/components/page/layouts/dynamic-page.marko.js +60 -0
- package/components/page/layouts/magazine-issue.marko.js +60 -0
- package/components/page/layouts/magazine-publication.marko.js +60 -0
- package/components/page/layouts/website-section.marko.js +78 -0
- package/components/page/metadata/components/common.marko.js +108 -0
- package/components/page/metadata/content.marko.js +201 -0
- package/components/page/metadata/default.marko.js +29 -0
- package/components/page/metadata/dynamic-page.marko.js +85 -0
- package/components/page/metadata/magazine-issue.marko.js +84 -0
- package/components/page/metadata/magazine-publication.marko.js +80 -0
- package/components/page/metadata/website-section.marko.js +79 -0
- package/components/page/rel-canonical.marko.js +42 -0
- package/components/page/title.marko.js +46 -0
- package/components/page/wrapper.marko.js +63 -0
- package/components/queries/all-author-content.marko.js +38 -0
- package/components/queries/all-company-content.marko.js +38 -0
- package/components/queries/all-published-content.marko.js +38 -0
- package/components/queries/components/loader.marko.js +45 -0
- package/components/queries/content.marko.js +38 -0
- package/components/queries/dynamic-page.marko.js +38 -0
- package/components/queries/index.marko.js +108 -0
- package/components/queries/magazine-active-issues.marko.js +38 -0
- package/components/queries/magazine-issue.marko.js +38 -0
- package/components/queries/magazine-latest-issue.marko.js +38 -0
- package/components/queries/magazine-publication.marko.js +38 -0
- package/components/queries/magazine-publications.marko.js +38 -0
- package/components/queries/magazine-scheduled-content.marko.js +38 -0
- package/components/queries/related-published-content.marko.js +38 -0
- package/components/queries/website-optioned-content.marko.js +38 -0
- package/components/queries/website-scheduled-content.marko.js +38 -0
- package/components/queries/website-section.marko.js +38 -0
- package/components/resolve/index.marko.js +86 -0
- package/components/resolve/page.marko.js +49 -0
- package/components/rss/website-section.marko.js +46 -0
- package/middleware/page-node/index.js +15 -2
- package/middleware/with-content.js +2 -0
- package/package.json +2 -2
- package/src/components/ads/gam/define-display.marko.js +63 -0
- package/src/components/ads/gam/display.marko.js +41 -0
- package/src/components/ads/gam/head.marko.js +48 -0
- package/src/components/ads/gam/init.marko.js +31 -0
- package/src/components/ads/gam/out-of-page.marko.js +47 -0
- package/src/components/ads/placeholder.marko.js +35 -0
- package/src/components/browser/component.marko.js +38 -0
- package/src/components/document/components/assets.marko.js +52 -0
- package/src/components/document/components/error.marko.js +54 -0
- package/src/components/document/components/load-more-result.marko.js +27 -0
- package/src/components/document/index.marko.js +73 -0
- package/src/components/document/live-reload.marko.js +35 -0
- package/src/components/elements/content/authors.marko.js +38 -0
- package/src/components/elements/content/body.marko.js +38 -0
- package/src/components/elements/content/byline.marko.js +38 -0
- package/src/components/elements/content/components/contacts.marko.js +68 -0
- package/src/components/elements/content/contributors.marko.js +38 -0
- package/src/components/elements/content/embed-code.marko.js +38 -0
- package/src/components/elements/content/name.marko.js +38 -0
- package/src/components/elements/content/photographers.marko.js +38 -0
- package/src/components/elements/content/published.marko.js +38 -0
- package/src/components/elements/content/short-name.marko.js +38 -0
- package/src/components/elements/content/source.marko.js +38 -0
- package/src/components/elements/content/sponsors.marko.js +38 -0
- package/src/components/elements/content/teaser.marko.js +38 -0
- package/src/components/elements/core/components/imgix.marko.js +58 -0
- package/src/components/elements/core/components/tag-content.marko.js +37 -0
- package/src/components/elements/core/date.marko.js +56 -0
- package/src/components/elements/core/html.marko.js +38 -0
- package/src/components/elements/core/image.marko.js +91 -0
- package/src/components/elements/core/link.marko.js +61 -0
- package/src/components/elements/core/load-more.marko.js +49 -0
- package/src/components/elements/core/text.marko.js +125 -0
- package/src/components/elements/website-section/hierarchy.marko.js +65 -0
- package/src/components/elements/website-section/name.marko.js +42 -0
- package/src/components/gtm/container-init.marko.js +49 -0
- package/src/components/gtm/container-push.marko.js +41 -0
- package/src/components/gtm/container-start.marko.js +55 -0
- package/src/components/gtm/container.marko.js +72 -0
- package/src/components/gtm/track-event.marko.js +36 -0
- package/src/components/gtm/track-inview-event.marko.js +36 -0
- package/src/components/page/container/components/content.marko.js +48 -0
- package/src/components/page/container/components/default.marko.js +39 -0
- package/src/components/page/container/components/dynamic-page.marko.js +45 -0
- package/src/components/page/container/components/home.marko.js +39 -0
- package/src/components/page/container/components/website-section.marko.js +45 -0
- package/src/components/page/container/index.marko.js +63 -0
- package/src/components/page/description.marko.js +31 -0
- package/src/components/page/metadata/components/content.marko.js +111 -0
- package/src/components/page/metadata/components/dynamic-page.marko.js +51 -0
- package/src/components/page/metadata/components/magazine-issue.marko.js +51 -0
- package/src/components/page/metadata/components/magazine-publication.marko.js +51 -0
- package/src/components/page/metadata/components/website-section.marko.js +51 -0
- package/src/components/page/metadata/index.marko.js +87 -0
- package/src/components/page/rel-canonical.marko.js +43 -0
- package/src/components/page/title.marko.js +50 -0
- package/src/components/queries/all-author-content.marko.js +39 -0
- package/src/components/queries/all-company-content.marko.js +39 -0
- package/src/components/queries/all-published-content.marko.js +39 -0
- package/src/components/queries/components/loader-multi.marko.js +66 -0
- package/src/components/queries/components/loader-raw.marko.js +64 -0
- package/src/components/queries/components/loader-single.marko.js +66 -0
- package/src/components/queries/components/loader.marko.js +65 -0
- package/src/components/queries/magazine-active-issues.marko.js +39 -0
- package/src/components/queries/magazine-issues.marko.js +39 -0
- package/src/components/queries/magazine-latest-issue.marko.js +39 -0
- package/src/components/queries/magazine-publications.marko.js +39 -0
- package/src/components/queries/magazine-scheduled-content.marko.js +39 -0
- package/src/components/queries/published-content.marko.js +39 -0
- package/src/components/queries/published-startable-content.marko.js +39 -0
- package/src/components/queries/related-published-content.marko.js +39 -0
- package/src/components/queries/website-scheduled-content-by-year.marko.js +39 -0
- package/src/components/queries/website-scheduled-content.marko.js +39 -0
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,86 @@
|
|
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$3.8.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
|
+
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
22
|
+
|
23
|
+
function render(input, out, __component, component, state) {
|
24
|
+
var data = input;
|
25
|
+
|
26
|
+
const id = randomElementId({ prefix: 'vue' });
|
27
|
+
|
28
|
+
const tag = defaultValue(input.tag, "div");
|
29
|
+
|
30
|
+
const { name } = input;
|
31
|
+
|
32
|
+
const ssr = defaultValue(input.ssr, false);
|
33
|
+
|
34
|
+
const hydrate = ssr ? true : defaultValue(input.hydrate, false);
|
35
|
+
|
36
|
+
const skipWhenExists = defaultValue(input.skipWhenExists, false);
|
37
|
+
|
38
|
+
const props = JSON.stringify(input.props || {});
|
39
|
+
|
40
|
+
const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', props: ${props}, hydrate: ${hydrate}, skipWhenExists: ${skipWhenExists} });`;
|
41
|
+
|
42
|
+
if (ssr) {
|
43
|
+
const { compiledVueComponents } = out.global;
|
44
|
+
|
45
|
+
const Component = compiledVueComponents[name];
|
46
|
+
|
47
|
+
if (!Component) throw new Error(`No compiled Vue template found for ${name}. Unable to render server-side.`);
|
48
|
+
|
49
|
+
marko_web_resolve_tag({
|
50
|
+
promise: renderComponent(Component, {
|
51
|
+
id: id,
|
52
|
+
props: input.props
|
53
|
+
}),
|
54
|
+
renderBody: function(out, { resolved: html }) {
|
55
|
+
out.w(marko_str(html));
|
56
|
+
}
|
57
|
+
}, out, __component, "0");
|
58
|
+
} else {
|
59
|
+
marko_dynamicTag(out, tag, function() {
|
60
|
+
return marko_assign({}, input.attrs, {
|
61
|
+
id: id,
|
62
|
+
class: input.class
|
63
|
+
});
|
64
|
+
}, function(out) {
|
65
|
+
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "2");
|
66
|
+
}, null, null, __component, "1");
|
67
|
+
}
|
68
|
+
|
69
|
+
out.w("<script class=\"component\"" +
|
70
|
+
marko_attr("data-name", name) +
|
71
|
+
">" +
|
72
|
+
marko_str(contents) +
|
73
|
+
"</script>");
|
74
|
+
}
|
75
|
+
|
76
|
+
marko_template._ = marko_renderer(render, {
|
77
|
+
___type: marko_componentType
|
78
|
+
}, marko_component);
|
79
|
+
|
80
|
+
marko_template.meta = {
|
81
|
+
id: "/@parameter1/base-cms-marko-web$3.8.0/components/browser-component.marko",
|
82
|
+
component: "./browser-component.marko",
|
83
|
+
tags: [
|
84
|
+
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
85
|
+
]
|
86
|
+
};
|
@@ -0,0 +1,43 @@
|
|
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/assets.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
marko_forOf = require("marko/src/runtime/helpers/for-of"),
|
8
|
+
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
9
|
+
|
10
|
+
function render(input, out, __component, component, state) {
|
11
|
+
var data = input;
|
12
|
+
|
13
|
+
const { config } = out.global;
|
14
|
+
|
15
|
+
const scripts = config.sources();
|
16
|
+
|
17
|
+
const stylesheets = config.styles();
|
18
|
+
|
19
|
+
marko_forOf(scripts, function(src) {
|
20
|
+
out.w("<script" +
|
21
|
+
marko_attr("src", src) +
|
22
|
+
"></script>");
|
23
|
+
});
|
24
|
+
|
25
|
+
var $for$0 = 0;
|
26
|
+
|
27
|
+
marko_forOf(stylesheets, function(href) {
|
28
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
29
|
+
|
30
|
+
out.w("<link rel=\"stylesheet\"" +
|
31
|
+
marko_attr("href", href) +
|
32
|
+
">");
|
33
|
+
});
|
34
|
+
}
|
35
|
+
|
36
|
+
marko_template._ = marko_renderer(render, {
|
37
|
+
___implicit: true,
|
38
|
+
___type: marko_componentType
|
39
|
+
});
|
40
|
+
|
41
|
+
marko_template.meta = {
|
42
|
+
id: "/@parameter1/base-cms-marko-web$2.13.0/components/document/components/assets.marko"
|
43
|
+
};
|
@@ -0,0 +1,33 @@
|
|
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$3.8.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$3.8.0/components/document/components/body-wrapper.marko"
|
33
|
+
};
|
@@ -0,0 +1,85 @@
|
|
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$3.8.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$3.8.0/components/document/components/error.marko",
|
81
|
+
tags: [
|
82
|
+
"../../page/title.marko",
|
83
|
+
"../../page/wrapper.marko"
|
84
|
+
]
|
85
|
+
};
|
@@ -0,0 +1,30 @@
|
|
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$3.8.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$3.8.0/components/document/components/live-reload.marko"
|
30
|
+
};
|
@@ -0,0 +1,33 @@
|
|
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$3.8.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$3.8.0/components/document/components/polyfill.marko"
|
33
|
+
};
|
@@ -0,0 +1,54 @@
|
|
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$3.8.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$3.8.0/components/document/container.marko",
|
51
|
+
tags: [
|
52
|
+
"../page/container.marko"
|
53
|
+
]
|
54
|
+
};
|
@@ -0,0 +1,118 @@
|
|
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$3.8.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$3.8.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
|
+
};
|
@@ -0,0 +1,67 @@
|
|
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$3.8.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$3.8.0/components/element/array.marko"
|
67
|
+
};
|
@@ -0,0 +1,33 @@
|
|
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$3.8.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$3.8.0/components/element/audio.marko"
|
33
|
+
};
|
@@ -0,0 +1,44 @@
|
|
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$3.8.0/components/element/block.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
|
+
|
13
|
+
function render(input, out, __component, component, state) {
|
14
|
+
var data = input;
|
15
|
+
|
16
|
+
const tag = input.tag || "div";
|
17
|
+
|
18
|
+
const blockName = input.name || "block";
|
19
|
+
|
20
|
+
const classNames = [blockName, ...getAsArray(input, "modifiers").map(mod => `${blockName}--${mod}`), input.class];
|
21
|
+
|
22
|
+
if (input.renderBody) {
|
23
|
+
marko_dynamicTag(out, tag, function() {
|
24
|
+
return marko_assign({}, input.attrs, {
|
25
|
+
class: classNames
|
26
|
+
});
|
27
|
+
}, function(out) {
|
28
|
+
marko_dynamicTag(out, input.renderBody, function() {
|
29
|
+
return {
|
30
|
+
"block-name": blockName
|
31
|
+
};
|
32
|
+
}, null, null, null, __component, "1");
|
33
|
+
}, null, null, __component, "0");
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
marko_template._ = marko_renderer(render, {
|
38
|
+
___implicit: true,
|
39
|
+
___type: marko_componentType
|
40
|
+
});
|
41
|
+
|
42
|
+
marko_template.meta = {
|
43
|
+
id: "/@parameter1/base-cms-marko-web$3.8.0/components/element/block.marko"
|
44
|
+
};
|
@@ -0,0 +1,32 @@
|
|
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$3.8.0/components/element/clear.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
marko_styleAttr = require("marko/src/runtime/html/helpers/style-attr");
|
8
|
+
|
9
|
+
function render(input, out, __component, component, state) {
|
10
|
+
var data = input;
|
11
|
+
|
12
|
+
const { value } = input;
|
13
|
+
|
14
|
+
if ([
|
15
|
+
"left",
|
16
|
+
"right",
|
17
|
+
"both"
|
18
|
+
].includes(value)) {
|
19
|
+
out.w("<div" +
|
20
|
+
marko_styleAttr(("clear: " + value) + ";") +
|
21
|
+
"></div>");
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
marko_template._ = marko_renderer(render, {
|
26
|
+
___implicit: true,
|
27
|
+
___type: marko_componentType
|
28
|
+
});
|
29
|
+
|
30
|
+
marko_template.meta = {
|
31
|
+
id: "/@parameter1/base-cms-marko-web$3.8.0/components/element/clear.marko"
|
32
|
+
};
|