@mindful-web/marko-web-theme-monorail 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/browser/.eslintrc.js +1 -0
- package/browser/block-loader.vue +64 -0
- package/browser/comment-toggle-button.vue +89 -0
- package/browser/company-search.vue +78 -0
- package/browser/content-meter-track.vue +90 -0
- package/browser/i18n-vue.js +11 -0
- package/browser/idx-newsletter-form/index.js +61 -0
- package/browser/idx-newsletter-form/inline.vue +243 -0
- package/browser/idx-newsletter-form/pushdown.vue +249 -0
- package/browser/idx-newsletter-form/toggle-button.vue +65 -0
- package/browser/index.js +170 -0
- package/browser/inline-newsletter-form/step1.vue +159 -0
- package/browser/inline-newsletter-form.vue +129 -0
- package/browser/menu-toggle-button.vue +150 -0
- package/browser/newsletter-close-button.vue +44 -0
- package/browser/newsletter-signup-form/check-icon.vue +13 -0
- package/browser/newsletter-signup-form/form-group.vue +50 -0
- package/browser/newsletter-signup-form/input-form-group.vue +57 -0
- package/browser/newsletter-signup-form/newsletter-checkbox.vue +63 -0
- package/browser/newsletter-signup-form/privacy-policy.vue +38 -0
- package/browser/newsletter-signup-form/select-form-group.vue +59 -0
- package/browser/newsletter-signup-form/sign-up-button.vue +49 -0
- package/browser/newsletter-signup-form/step2.vue +284 -0
- package/browser/newsletter-signup-modal-listener.vue +59 -0
- package/browser/newsletter-toggle-button.vue +42 -0
- package/browser/reveal-ad-handler.vue +195 -0
- package/browser/section-search.vue +89 -0
- package/browser/site-newsletter-menu/step1.vue +189 -0
- package/browser/site-newsletter-menu.vue +176 -0
- package/browser/ssr.js +15 -0
- package/browser/top-stories-menu.vue +58 -0
- package/browser/translations-vue.js +50 -0
- package/browser/wufoo-form.vue +62 -0
- package/components/ads/fixed-ad-bottom.marko +7 -0
- package/components/ads/fixed-ad-bottom.marko.js +36 -0
- package/components/ads/marko.json +20 -0
- package/components/ads/reveal-ad-handler.marko +9 -0
- package/components/ads/reveal-ad-handler.marko.js +38 -0
- package/components/blocks/author-bios.marko +28 -0
- package/components/blocks/author-bios.marko.js +76 -0
- package/components/blocks/callout-cards.marko +15 -0
- package/components/blocks/callout-cards.marko.js +74 -0
- package/components/blocks/company-inquiry-form.marko +30 -0
- package/components/blocks/company-inquiry-form.marko.js +93 -0
- package/components/blocks/company-search.marko +1 -0
- package/components/blocks/company-search.marko.js +29 -0
- package/components/blocks/content-card-deck.marko +142 -0
- package/components/blocks/content-card-deck.marko.js +325 -0
- package/components/blocks/content-meter.marko +85 -0
- package/components/blocks/content-meter.marko.js +132 -0
- package/components/blocks/full-width-native-ad.marko +21 -0
- package/components/blocks/full-width-native-ad.marko.js +62 -0
- package/components/blocks/hero-card.marko +91 -0
- package/components/blocks/hero-card.marko.js +207 -0
- package/components/blocks/latest-content-list.marko +89 -0
- package/components/blocks/latest-content-list.marko.js +146 -0
- package/components/blocks/latest-podcast.marko +64 -0
- package/components/blocks/latest-podcast.marko.js +172 -0
- package/components/blocks/latest-products-feed.marko +58 -0
- package/components/blocks/latest-products-feed.marko.js +166 -0
- package/components/blocks/marko.json +204 -0
- package/components/blocks/more-products.marko +49 -0
- package/components/blocks/more-products.marko.js +135 -0
- package/components/blocks/most-popular-list.marko +75 -0
- package/components/blocks/most-popular-list.marko.js +146 -0
- package/components/blocks/most-popular.marko +97 -0
- package/components/blocks/most-popular.marko.js +190 -0
- package/components/blocks/native-x-card-deck.marko +85 -0
- package/components/blocks/native-x-card-deck.marko.js +221 -0
- package/components/blocks/native-x-promo-card.marko +55 -0
- package/components/blocks/native-x-promo-card.marko.js +135 -0
- package/components/blocks/newsletter-signup-banner-external.marko +33 -0
- package/components/blocks/newsletter-signup-banner-external.marko.js +103 -0
- package/components/blocks/newsletter-signup-banner-large.marko +36 -0
- package/components/blocks/newsletter-signup-banner-large.marko.js +93 -0
- package/components/blocks/newsletter-signup-banner.marko +39 -0
- package/components/blocks/newsletter-signup-banner.marko.js +69 -0
- package/components/blocks/opinion.marko +34 -0
- package/components/blocks/opinion.marko.js +95 -0
- package/components/blocks/primary-image.marko +125 -0
- package/components/blocks/primary-image.marko.js +228 -0
- package/components/blocks/products.marko +57 -0
- package/components/blocks/products.marko.js +157 -0
- package/components/blocks/read-next.marko +42 -0
- package/components/blocks/read-next.marko.js +113 -0
- package/components/blocks/related-stories.marko +74 -0
- package/components/blocks/related-stories.marko.js +165 -0
- package/components/blocks/resource-library.marko +77 -0
- package/components/blocks/resource-library.marko.js +194 -0
- package/components/blocks/section-body-feed.marko +39 -0
- package/components/blocks/section-body-feed.marko.js +99 -0
- package/components/blocks/section-card-deck-featured.marko +37 -0
- package/components/blocks/section-card-deck-featured.marko.js +105 -0
- package/components/blocks/section-card-deck.marko +13 -0
- package/components/blocks/section-card-deck.marko.js +44 -0
- package/components/blocks/section-card-list.marko +102 -0
- package/components/blocks/section-card-list.marko.js +236 -0
- package/components/blocks/section-feed.marko +46 -0
- package/components/blocks/section-feed.marko.js +94 -0
- package/components/blocks/section-forbes.marko +102 -0
- package/components/blocks/section-forbes.marko.js +221 -0
- package/components/blocks/section-list-deck.marko +38 -0
- package/components/blocks/section-list-deck.marko.js +109 -0
- package/components/blocks/section-list.marko +89 -0
- package/components/blocks/section-list.marko.js +179 -0
- package/components/blocks/section-search.marko +14 -0
- package/components/blocks/section-search.marko.js +57 -0
- package/components/blocks/section-title-feed.marko +40 -0
- package/components/blocks/section-title-feed.marko.js +100 -0
- package/components/blocks/top-stories-menu.marko +40 -0
- package/components/blocks/top-stories-menu.marko.js +98 -0
- package/components/blocks/top-stories.marko +76 -0
- package/components/blocks/top-stories.marko.js +186 -0
- package/components/blocks/white-papers.marko +80 -0
- package/components/blocks/white-papers.marko.js +205 -0
- package/components/breadcrumbs/content-page.marko +7 -0
- package/components/breadcrumbs/content-page.marko.js +35 -0
- package/components/breadcrumbs/index.marko +21 -0
- package/components/breadcrumbs/index.marko.js +59 -0
- package/components/breadcrumbs/marko.json +32 -0
- package/components/breadcrumbs/scss/_breadcrumbs.scss +35 -0
- package/components/breadcrumbs/website-section.marko +31 -0
- package/components/breadcrumbs/website-section.marko.js +107 -0
- package/components/breadcrumbs/with-home.marko +13 -0
- package/components/breadcrumbs/with-home.marko.js +65 -0
- package/components/client-side-block-loader.marko +6 -0
- package/components/client-side-block-loader.marko.js +36 -0
- package/components/client-side-blocks/marko.json +8 -0
- package/components/client-side-blocks/most-popular-list.marko +1 -0
- package/components/client-side-blocks/most-popular-list.marko.js +31 -0
- package/components/client-side-blocks/most-popular.marko +1 -0
- package/components/client-side-blocks/most-popular.marko.js +31 -0
- package/components/content/body-with-injection.marko +116 -0
- package/components/content/body-with-injection.marko.js +190 -0
- package/components/content/contact-details/index.marko +95 -0
- package/components/content/contact-details/index.marko.js +274 -0
- package/components/content/contact-details/marko.json +27 -0
- package/components/content/contact-details/section.marko +9 -0
- package/components/content/contact-details/section.marko.js +37 -0
- package/components/content/download/form-dot-com.marko +23 -0
- package/components/content/download/form-dot-com.marko.js +59 -0
- package/components/content/download/identity-x.marko +73 -0
- package/components/content/download/identity-x.marko.js +149 -0
- package/components/content/download/index.marko +43 -0
- package/components/content/download/index.marko.js +113 -0
- package/components/content/download/link.marko +12 -0
- package/components/content/download/link.marko.js +45 -0
- package/components/content/download/marko.json +26 -0
- package/components/content/download/wufoo.marko +23 -0
- package/components/content/download/wufoo.marko.js +59 -0
- package/components/content/link-url/index.marko +16 -0
- package/components/content/link-url/index.marko.js +48 -0
- package/components/content/link-url/marko.json +9 -0
- package/components/content/marko.json +18 -0
- package/components/content/sections-listed-in.marko +26 -0
- package/components/content/sections-listed-in.marko.js +89 -0
- package/components/content-attribution/attribution.marko +1 -0
- package/components/content-attribution/attribution.marko.js +33 -0
- package/components/content-attribution/components/authors.marko +3 -0
- package/components/content-attribution/components/authors.marko.js +42 -0
- package/components/content-attribution/components/byline.marko +1 -0
- package/components/content-attribution/components/byline.marko.js +30 -0
- package/components/content-attribution/components/company.marko +7 -0
- package/components/content-attribution/components/company.marko.js +43 -0
- package/components/content-attribution/components/contributors.marko +3 -0
- package/components/content-attribution/components/contributors.marko.js +42 -0
- package/components/content-attribution/components/photographers.marko +3 -0
- package/components/content-attribution/components/photographers.marko.js +42 -0
- package/components/content-attribution/components/source.marko +1 -0
- package/components/content-attribution/components/source.marko.js +30 -0
- package/components/content-attribution/components/sponsors.marko +3 -0
- package/components/content-attribution/components/sponsors.marko.js +42 -0
- package/components/content-attribution/index.marko +34 -0
- package/components/content-attribution/index.marko.js +81 -0
- package/components/content-attribution/marko.json +27 -0
- package/components/directory-facets/facet-container/facet-container.marko +32 -0
- package/components/directory-facets/facet-container/facet-container.marko.js +65 -0
- package/components/directory-facets/facet-container/marko.json +26 -0
- package/components/directory-facets/facet-list/facet-list.marko +66 -0
- package/components/directory-facets/facet-list/facet-list.marko.js +140 -0
- package/components/directory-facets/facet-list/marko.json +23 -0
- package/components/directory-facets/facet.marko +15 -0
- package/components/directory-facets/facet.marko.js +44 -0
- package/components/directory-facets/find-active-facet.js +22 -0
- package/components/directory-facets/index.marko +29 -0
- package/components/directory-facets/index.marko.js +77 -0
- package/components/directory-facets/marko.json +40 -0
- package/components/facebook-connect.marko +52 -0
- package/components/facebook-connect.marko.js +59 -0
- package/components/flows/card-deck.marko +63 -0
- package/components/flows/card-deck.marko.js +159 -0
- package/components/flows/content/card-deck-col.marko +49 -0
- package/components/flows/content/card-deck-col.marko.js +98 -0
- package/components/flows/content/directory-section.marko +41 -0
- package/components/flows/content/directory-section.marko.js +107 -0
- package/components/flows/content/list.marko +51 -0
- package/components/flows/content/list.marko.js +98 -0
- package/components/flows/content/marko.json +39 -0
- package/components/flows/marko.json +42 -0
- package/components/flows/section-feed.marko +66 -0
- package/components/flows/section-feed.marko.js +118 -0
- package/components/gam/components/define-display-ad.marko +106 -0
- package/components/gam/components/define-display-ad.marko.js +171 -0
- package/components/gam/define-display-ad.marko +27 -0
- package/components/gam/define-display-ad.marko.js +60 -0
- package/components/gam/inject-ads.marko +28 -0
- package/components/gam/inject-ads.marko.js +56 -0
- package/components/gam/marko.json +17 -0
- package/components/gam/utils/increment-pos.js +13 -0
- package/components/gam/wallpaper-ad.marko +18 -0
- package/components/gam/wallpaper-ad.marko.js +75 -0
- package/components/identity-x/comment-stream.marko +33 -0
- package/components/identity-x/comment-stream.marko.js +71 -0
- package/components/identity-x/content-page-gate.marko +85 -0
- package/components/identity-x/content-page-gate.marko.js +171 -0
- package/components/identity-x/marko.json +38 -0
- package/components/identity-x/newsletter-footer.marko +56 -0
- package/components/identity-x/newsletter-footer.marko.js +100 -0
- package/components/identity-x/newsletter-inline.marko +22 -0
- package/components/identity-x/newsletter-inline.marko.js +55 -0
- package/components/identity-x/newsletter-modal.marko +42 -0
- package/components/identity-x/newsletter-modal.marko.js +88 -0
- package/components/identity-x/newsletter-pushdown.marko +66 -0
- package/components/identity-x/newsletter-pushdown.marko.js +113 -0
- package/components/layouts/ad-preview.marko +84 -0
- package/components/layouts/ad-preview.marko.js +166 -0
- package/components/layouts/marko.json +15 -0
- package/components/marko.json +58 -0
- package/components/menu-toggle-button.marko +19 -0
- package/components/menu-toggle-button.marko.js +45 -0
- package/components/native-x/marko.json +5 -0
- package/components/native-x/render.marko +13 -0
- package/components/native-x/render.marko.js +45 -0
- package/components/nodes/author-bio.marko +39 -0
- package/components/nodes/author-bio.marko.js +121 -0
- package/components/nodes/author-card.marko +42 -0
- package/components/nodes/author-card.marko.js +115 -0
- package/components/nodes/author-published.marko +41 -0
- package/components/nodes/author-published.marko.js +105 -0
- package/components/nodes/author.marko +28 -0
- package/components/nodes/author.marko.js +92 -0
- package/components/nodes/components/attribution.marko +13 -0
- package/components/nodes/components/attribution.marko.js +49 -0
- package/components/nodes/components/authors.marko +7 -0
- package/components/nodes/components/authors.marko.js +43 -0
- package/components/nodes/components/company-name.marko +1 -0
- package/components/nodes/components/company-name.marko.js +33 -0
- package/components/nodes/components/dates.marko +11 -0
- package/components/nodes/components/dates.marko.js +58 -0
- package/components/nodes/components/section-sponsor.marko +14 -0
- package/components/nodes/components/section-sponsor.marko.js +56 -0
- package/components/nodes/content-published.marko +46 -0
- package/components/nodes/content-published.marko.js +89 -0
- package/components/nodes/content.marko +175 -0
- package/components/nodes/content.marko.js +327 -0
- package/components/nodes/directory-section-feed-content.marko +161 -0
- package/components/nodes/directory-section-feed-content.marko.js +387 -0
- package/components/nodes/featured-products-card.marko +52 -0
- package/components/nodes/featured-products-card.marko.js +110 -0
- package/components/nodes/marko.json +83 -0
- package/components/nodes/product-feed-content.marko +52 -0
- package/components/nodes/product-feed-content.marko.js +137 -0
- package/components/nodes/section-feed-content.marko +256 -0
- package/components/nodes/section-feed-content.marko.js +624 -0
- package/components/nodes/standard-promo.marko +39 -0
- package/components/nodes/standard-promo.marko.js +111 -0
- package/components/nodes/youtube-card.marko +53 -0
- package/components/nodes/youtube-card.marko.js +120 -0
- package/components/page/attribution.marko +1 -0
- package/components/page/attribution.marko.js +33 -0
- package/components/page/contact-details.marko +1 -0
- package/components/page/contact-details.marko.js +33 -0
- package/components/page/content.marko +27 -0
- package/components/page/content.marko.js +68 -0
- package/components/page/contents.marko +1 -0
- package/components/page/contents.marko.js +33 -0
- package/components/page/dates.marko +1 -0
- package/components/page/dates.marko.js +33 -0
- package/components/page/default.marko +25 -0
- package/components/page/default.marko.js +67 -0
- package/components/page/marko.json +51 -0
- package/components/page/website-section.marko +30 -0
- package/components/page/website-section.marko.js +83 -0
- package/components/pagination-controls.marko +53 -0
- package/components/pagination-controls.marko.js +122 -0
- package/components/query-total-count.marko +8 -0
- package/components/query-total-count.marko.js +45 -0
- package/components/reveal-ad-handler.marko +9 -0
- package/components/reveal-ad-handler.marko.js +38 -0
- package/components/site-footer/container.marko +11 -0
- package/components/site-footer/container.marko.js +39 -0
- package/components/site-footer/copyright.marko +21 -0
- package/components/site-footer/copyright.marko.js +66 -0
- package/components/site-footer/index.marko +130 -0
- package/components/site-footer/index.marko.js +338 -0
- package/components/site-footer/marko.json +14 -0
- package/components/site-footer/social-icons.marko +24 -0
- package/components/site-footer/social-icons.marko.js +64 -0
- package/components/site-header.marko +104 -0
- package/components/site-header.marko.js +221 -0
- package/components/site-menu/components/search.marko +27 -0
- package/components/site-menu/components/search.marko.js +80 -0
- package/components/site-menu/components/social-icons.marko +1 -0
- package/components/site-menu/components/social-icons.marko.js +32 -0
- package/components/site-menu/header.marko +10 -0
- package/components/site-menu/header.marko.js +38 -0
- package/components/site-menu/index.marko +117 -0
- package/components/site-menu/index.marko.js +201 -0
- package/components/site-menu/marko.json +11 -0
- package/components/site-menu/section.marko +26 -0
- package/components/site-menu/section.marko.js +67 -0
- package/components/site-navbar/brand.marko +8 -0
- package/components/site-navbar/brand.marko.js +43 -0
- package/components/site-navbar/index.marko +13 -0
- package/components/site-navbar/index.marko.js +49 -0
- package/components/site-navbar/item.marko +96 -0
- package/components/site-navbar/item.marko.js +182 -0
- package/components/site-navbar/items.marko +27 -0
- package/components/site-navbar/items.marko.js +80 -0
- package/components/site-navbar/logo.marko +15 -0
- package/components/site-navbar/logo.marko.js +41 -0
- package/components/site-navbar/marko.json +20 -0
- package/components/site-navbar/search.marko +20 -0
- package/components/site-navbar/search.marko.js +73 -0
- package/components/site-navbar/utils/get-nav-items.js +21 -0
- package/components/site-navbar/utils/is-active-link.js +1 -0
- package/components/site-newsletter-menu.marko +11 -0
- package/components/site-newsletter-menu.marko.js +37 -0
- package/components/social/get-provider.js +5 -0
- package/components/social/icon-link.marko +22 -0
- package/components/social/icon-link.marko.js +63 -0
- package/components/social/icons.marko +22 -0
- package/components/social/icons.marko.js +62 -0
- package/components/social/marko.json +15 -0
- package/components/social-follow.marko +32 -0
- package/components/social-follow.marko.js +95 -0
- package/components/ssr-html-inject.marko +102 -0
- package/components/ssr-html-inject.marko.js +133 -0
- package/graphql/fragments/category-sections.js +25 -0
- package/graphql/fragments/company-search.js +13 -0
- package/graphql/fragments/content-card-deck-block.js +27 -0
- package/graphql/fragments/content-list.js +45 -0
- package/graphql/fragments/content-meter.js +20 -0
- package/graphql/fragments/content-page.js +192 -0
- package/graphql/fragments/dynamic-page.js +15 -0
- package/graphql/fragments/featured-companies.js +16 -0
- package/graphql/fragments/latest-podcast-block.js +14 -0
- package/graphql/fragments/latest-products-feed-block.js +28 -0
- package/graphql/fragments/mindful-advertising-post-by-id.js +55 -0
- package/graphql/fragments/most-popular-block.js +21 -0
- package/graphql/fragments/native-x-image.js +12 -0
- package/graphql/fragments/native-x-story.js +28 -0
- package/graphql/fragments/opinion-block.js +41 -0
- package/graphql/fragments/products-block.js +27 -0
- package/graphql/fragments/read-next-block.js +28 -0
- package/graphql/fragments/related-stories-block.js +27 -0
- package/graphql/fragments/resource-library-block.js +20 -0
- package/graphql/fragments/section-body-feed-block.js +30 -0
- package/graphql/fragments/section-card-deck-featured-block.js +21 -0
- package/graphql/fragments/section-card-list-block.js +22 -0
- package/graphql/fragments/section-feed-block.js +86 -0
- package/graphql/fragments/section-info.js +13 -0
- package/graphql/fragments/section-list-block.js +21 -0
- package/graphql/fragments/section-list-card-block.js +27 -0
- package/graphql/fragments/sections-search.js +46 -0
- package/graphql/fragments/top-stories-block.js +34 -0
- package/graphql/fragments/top-stories-menu-block.js +21 -0
- package/graphql/fragments/website-section-page.js +16 -0
- package/graphql/fragments/white-papers-block.js +27 -0
- package/i18n.js +11 -0
- package/marko.json +5 -0
- package/middleware/content-gating.js +13 -0
- package/middleware/content-metering.js +156 -0
- package/middleware/i18n.js +12 -0
- package/middleware/newsletter-modal-state.js +11 -0
- package/middleware/newsletter-state.js +22 -0
- package/middleware/pagination.js +24 -0
- package/package.json +56 -0
- package/routes/ad-preview.js +11 -0
- package/routes/advertising-post.js +25 -0
- package/routes/company-search.js +27 -0
- package/routes/native-x.js +9 -0
- package/routes/print.js +11 -0
- package/routes/render-block.js +32 -0
- package/routes/search.js +28 -0
- package/routes/taxonomy.js +29 -0
- package/scss/_functions.scss +164 -0
- package/scss/_mixins.scss +503 -0
- package/scss/_variables.scss +328 -0
- package/scss/components/_ad-container.scss +237 -0
- package/scss/components/_author-bio-node.scss +47 -0
- package/scss/components/_author-node.scss +23 -0
- package/scss/components/_author-published-node.scss +43 -0
- package/scss/components/_bootstrap.scss +19 -0
- package/scss/components/_breadcrumbs.scss +1 -0
- package/scss/components/_comments.scss +275 -0
- package/scss/components/_content-meter.scss +147 -0
- package/scss/components/_content-page-gate.scss +37 -0
- package/scss/components/_content-page.scss +351 -0
- package/scss/components/_default-theme.scss +1 -0
- package/scss/components/_embedded-media.scss +100 -0
- package/scss/components/_identity-x.scss +71 -0
- package/scss/components/_lazyload.scss +15 -0
- package/scss/components/_load-more.scss +65 -0
- package/scss/components/_magazine-publication-buttons.scss +65 -0
- package/scss/components/_newsletter-signup-modal.scss +133 -0
- package/scss/components/_node-list.scss +26 -0
- package/scss/components/_node.scss +173 -0
- package/scss/components/_page-attribution.scss +102 -0
- package/scss/components/_page-contact-details.scss +23 -0
- package/scss/components/_page-dates.scss +24 -0
- package/scss/components/_page-image.scss +92 -0
- package/scss/components/_page-rail.scss +7 -0
- package/scss/components/_page-wrapper.scss +146 -0
- package/scss/components/_page.scss +3 -0
- package/scss/components/_pagination-controls.scss +38 -0
- package/scss/components/_reveal-ad.scss +28 -0
- package/scss/components/_search-page.scss +188 -0
- package/scss/components/_site-footer.scss +247 -0
- package/scss/components/_site-header.scss +9 -0
- package/scss/components/_site-menu.scss +327 -0
- package/scss/components/_site-navbar-b.scss +128 -0
- package/scss/components/_site-navbar.scss +107 -0
- package/scss/components/_site-newsletter-menu.scss +561 -0
- package/scss/components/_social-icons.scss +12 -0
- package/scss/components/_spec-guide.scss +79 -0
- package/scss/components/_sponsor-logo.scss +31 -0
- package/scss/components/_sticky-top.scss +8 -0
- package/scss/components/_wallpaper-ad.scss +36 -0
- package/scss/components/blocks/_callout-cards.scss +19 -0
- package/scss/components/blocks/_company-inquiry-form.scss +41 -0
- package/scss/components/blocks/_company-search.scss +57 -0
- package/scss/components/blocks/_content-card-deck.scss +143 -0
- package/scss/components/blocks/_directory-facets.scss +112 -0
- package/scss/components/blocks/_hero-card.scss +59 -0
- package/scss/components/blocks/_latest-content-list.scss +13 -0
- package/scss/components/blocks/_latest-podcast.scss +69 -0
- package/scss/components/blocks/_latest-products-feed.scss +97 -0
- package/scss/components/blocks/_magazine-publication-card.scss +30 -0
- package/scss/components/blocks/_more-products.scss +35 -0
- package/scss/components/blocks/_most-popular.scss +70 -0
- package/scss/components/blocks/_newsletter-signup-banner-large.scss +51 -0
- package/scss/components/blocks/_newsletter-signup-banner.scss +99 -0
- package/scss/components/blocks/_newsletter-signup-site-footer.scss +11 -0
- package/scss/components/blocks/_node-author.scss +27 -0
- package/scss/components/blocks/_opinion.scss +76 -0
- package/scss/components/blocks/_primary-image.scss +98 -0
- package/scss/components/blocks/_products.scss +71 -0
- package/scss/components/blocks/_promo-card.scss +67 -0
- package/scss/components/blocks/_read-next.scss +53 -0
- package/scss/components/blocks/_related-native-x-stories.scss +14 -0
- package/scss/components/blocks/_related-stories.scss +102 -0
- package/scss/components/blocks/_resource-library.scss +79 -0
- package/scss/components/blocks/_section-card-deck-featured.scss +22 -0
- package/scss/components/blocks/_section-card-list.scss +81 -0
- package/scss/components/blocks/_section-feed.scss +253 -0
- package/scss/components/blocks/_section-forbes.scss +32 -0
- package/scss/components/blocks/_section-list.scss +80 -0
- package/scss/components/blocks/_section-search.scss +40 -0
- package/scss/components/blocks/_social-follow.scss +28 -0
- package/scss/components/blocks/_top-stories-menu.scss +38 -0
- package/scss/components/blocks/_top-stories.scss +179 -0
- package/scss/components/blocks/_white-papers.scss +60 -0
- package/scss/components/default-theme/site-navbar.scss +187 -0
- package/scss/components/flows/_card-deck.scss +47 -0
- package/scss/components/flows/_column-list.scss +28 -0
- package/scss/components/flows/_featured.scss +29 -0
- package/scss/components/flows/_hero.scss +44 -0
- package/scss/components/flows/_incremented-nodes.scss +21 -0
- package/scss/core.scss +125 -0
- package/scss/critical/_bootstrap.scss +15 -0
- package/scss/critical/_core.scss +27 -0
- package/scss/critical/_theme.scss +23 -0
- package/scss/variables/_buttons.scss +66 -0
- package/scss/variables/_default-theme.scss +715 -0
- package/scss/variables/_inputs.scss +24 -0
- package/scss/variables/_typography.scss +525 -0
- package/templates/ad-preview.marko +79 -0
- package/templates/ad-preview.marko.js +151 -0
- package/templates/content/components/presented-by.marko +22 -0
- package/templates/content/components/presented-by.marko.js +72 -0
- package/templates/content/native-x-story.marko +82 -0
- package/templates/content/native-x-story.marko.js +248 -0
- package/templates/content/print.marko +188 -0
- package/templates/content/print.marko.js +434 -0
- package/templates/search.marko +136 -0
- package/templates/search.marko.js +335 -0
- package/templates/taxonomy.marko +71 -0
- package/templates/taxonomy.marko.js +194 -0
- package/translations.js +14 -0
- package/utils/content-iframe.js +34 -0
- package/utils/content-meter-helpers.js +58 -0
- package/utils/convert-mindful-ad-preview.js +34 -0
- package/utils/get-child-sections-by-id.js +11 -0
- package/utils/get-content-preview.js +7 -0
- package/utils/get-sections-from-schedules.js +10 -0
- package/utils/has-omeda-id.js +11 -0
- package/utils/query-total-count.js +90 -0
- package/utils/render-site-idx-newsletter-menu.js +26 -0
- package/utils/render-site-newsletter-menu.js +16 -0
- package/utils/set-section-name-from-label.js +14 -0
- package/utils/shuffle-array.js +9 -0
- package/utils/site-idx-newsletter-menu-props.js +61 -0
- package/utils/site-newsletter-menu-props.js +41 -0
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.0.0/components/nodes/section-feed-content.marko",
|
|
6
|
+
marko_component = require("./section-feed-content.marko"),
|
|
7
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
9
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
10
|
+
getAsObject = module_objectPath_module.getAsObject,
|
|
11
|
+
getAsArray = module_objectPath_module.getAsArray,
|
|
12
|
+
get = module_objectPath_module.get,
|
|
13
|
+
module_image_module = require("@mindful-web/image"),
|
|
14
|
+
image_module = module_image_module.default || module_image_module,
|
|
15
|
+
buildImgixUrl = module_image_module.buildImgixUrl,
|
|
16
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
17
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
18
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
19
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
20
|
+
marko_web_element_template = require("@mindful-web/marko-web/components/element/index.marko"),
|
|
21
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
22
|
+
marko_web_element_tag = marko_loadTag(marko_web_element_template),
|
|
23
|
+
section_sponsor_template = require("./components/section-sponsor.marko"),
|
|
24
|
+
section_sponsor_tag = marko_loadTag(section_sponsor_template),
|
|
25
|
+
marko_web_content_short_name_template = require("@mindful-web/marko-web/components/element/content/short-name.marko"),
|
|
26
|
+
marko_web_content_short_name_tag = marko_loadTag(marko_web_content_short_name_template),
|
|
27
|
+
marko_web_content_name_template = require("@mindful-web/marko-web/components/element/content/name.marko"),
|
|
28
|
+
marko_web_content_name_tag = marko_loadTag(marko_web_content_name_template),
|
|
29
|
+
marko_web_obj_nodes_template = require("@mindful-web/marko-web/components/element/obj-nodes.marko"),
|
|
30
|
+
marko_web_obj_nodes_tag = marko_loadTag(marko_web_obj_nodes_template),
|
|
31
|
+
marko_web_content_teaser_template = require("@mindful-web/marko-web/components/element/content/teaser.marko"),
|
|
32
|
+
marko_web_content_teaser_tag = marko_loadTag(marko_web_content_teaser_template),
|
|
33
|
+
marko_web_link_template = require("@mindful-web/marko-web/components/element/link.marko"),
|
|
34
|
+
marko_web_link_tag = marko_loadTag(marko_web_link_template),
|
|
35
|
+
marko_web_content_body_template = require("@mindful-web/marko-web/components/element/content/body.marko"),
|
|
36
|
+
marko_web_content_body_tag = marko_loadTag(marko_web_content_body_template),
|
|
37
|
+
marko_web_content_address1_template = require("@mindful-web/marko-web/components/element/content/address1.marko"),
|
|
38
|
+
marko_web_content_address1_tag = marko_loadTag(marko_web_content_address1_template),
|
|
39
|
+
marko_web_content_address2_template = require("@mindful-web/marko-web/components/element/content/address2.marko"),
|
|
40
|
+
marko_web_content_address2_tag = marko_loadTag(marko_web_content_address2_template),
|
|
41
|
+
marko_web_content_city_state_zip_template = require("@mindful-web/marko-web/components/element/content/city-state-zip.marko"),
|
|
42
|
+
marko_web_content_city_state_zip_tag = marko_loadTag(marko_web_content_city_state_zip_template),
|
|
43
|
+
marko_web_block_template = require("@mindful-web/marko-web/components/element/block.marko"),
|
|
44
|
+
marko_web_block_tag = marko_loadTag(marko_web_block_template),
|
|
45
|
+
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
46
|
+
marko_forOf = require("marko/dist/runtime/helpers/for-of"),
|
|
47
|
+
marko_web_content_start_date_template = require("@mindful-web/marko-web/components/element/content/start-date.marko"),
|
|
48
|
+
marko_web_content_start_date_tag = marko_loadTag(marko_web_content_start_date_template),
|
|
49
|
+
marko_web_content_end_date_template = require("@mindful-web/marko-web/components/element/content/end-date.marko"),
|
|
50
|
+
marko_web_content_end_date_tag = marko_loadTag(marko_web_content_end_date_template),
|
|
51
|
+
marko_classAttr = require("marko/dist/runtime/html/helpers/class-attr"),
|
|
52
|
+
marko_web_content_published_template = require("@mindful-web/marko-web/components/element/content/published.marko"),
|
|
53
|
+
marko_web_content_published_tag = marko_loadTag(marko_web_content_published_template),
|
|
54
|
+
marko_web_content_title_template = require("@mindful-web/marko-web/components/element/content/title.marko"),
|
|
55
|
+
marko_web_content_title_tag = marko_loadTag(marko_web_content_title_template),
|
|
56
|
+
marko_web_picture_template = require("@mindful-web/marko-web/components/element/picture.marko"),
|
|
57
|
+
marko_web_picture_tag = marko_loadTag(marko_web_picture_template),
|
|
58
|
+
theme_content_link_url_template = require("../content/link-url/index.marko"),
|
|
59
|
+
theme_content_link_url_tag = marko_loadTag(theme_content_link_url_template);
|
|
60
|
+
|
|
61
|
+
function render(input, out, __component, component, state) {
|
|
62
|
+
var data = input;
|
|
63
|
+
|
|
64
|
+
const { site, i18n } = out.global;
|
|
65
|
+
|
|
66
|
+
const content = getAsObject(input, "node");
|
|
67
|
+
|
|
68
|
+
const { company } = content;
|
|
69
|
+
|
|
70
|
+
const authors = getAsArray(content, "authors.edges");
|
|
71
|
+
|
|
72
|
+
const contentType = defaultValue(content.type, 'article');
|
|
73
|
+
|
|
74
|
+
const modifiers = [...getAsArray(input, "modifiers"), `${contentType}-content-type`]
|
|
75
|
+
|
|
76
|
+
const withCompany = (company) ? defaultValue(input.withCompany, true) : false;
|
|
77
|
+
|
|
78
|
+
const withAuthors = (authors.length) ? defaultValue(input.withAuthors, false) : false;
|
|
79
|
+
|
|
80
|
+
const bylinePrefix = withAuthors ? defaultValue(input.bylinePrefix, "By ") : "";
|
|
81
|
+
|
|
82
|
+
const primaryImage = getAsObject(content, "primaryImage");
|
|
83
|
+
|
|
84
|
+
const primarySection = getAsObject(content, "primarySection");
|
|
85
|
+
|
|
86
|
+
const containerAttrs = getAsObject(input, "containerAttrs");
|
|
87
|
+
|
|
88
|
+
const linkAttrs = getAsObject(input, "linkAttrs");
|
|
89
|
+
|
|
90
|
+
const withBody = defaultValue(input.withBody, false);
|
|
91
|
+
|
|
92
|
+
const withAddress = defaultValue(input.withAddress, (content.type === "company"));
|
|
93
|
+
|
|
94
|
+
const withDates = defaultValue(input.withDates, true);
|
|
95
|
+
|
|
96
|
+
const withSpeakers = defaultValue(input.withSpeakers, true);
|
|
97
|
+
|
|
98
|
+
const dateFormat = defaultValue(input.dateFormat, "MMMM D, YYYY");
|
|
99
|
+
|
|
100
|
+
const multiDateFormats = input.multiDateFormats;
|
|
101
|
+
|
|
102
|
+
const isUpcoming = content.startDate > Date.now();
|
|
103
|
+
|
|
104
|
+
if (isUpcoming) modifiers.push("upcoming");
|
|
105
|
+
|
|
106
|
+
const withSection = defaultValue(input.withSection, true);
|
|
107
|
+
|
|
108
|
+
const withSponsorLogo = defaultValue(input.withSponsorLogo, false);
|
|
109
|
+
|
|
110
|
+
const withTeaser = defaultValue(input.withTeaser, true);
|
|
111
|
+
|
|
112
|
+
const displayImage = defaultValue(input.displayImage, true);
|
|
113
|
+
|
|
114
|
+
const lazyload = defaultValue(input.lazyload, true);
|
|
115
|
+
|
|
116
|
+
const linkOffsite = getAsObject(site, "config.linkOffsite");
|
|
117
|
+
|
|
118
|
+
const linkField = get(linkOffsite, contentType);
|
|
119
|
+
|
|
120
|
+
const linkTarget = linkField && get(content, linkField) ? defaultValue(get(linkOffsite, "target"), "") : "";
|
|
121
|
+
|
|
122
|
+
const imageOptions = {
|
|
123
|
+
w: 250,
|
|
124
|
+
h: 167,
|
|
125
|
+
fit: "crop",
|
|
126
|
+
// account for and apply fill & fill color of transparent if fit is fill.
|
|
127
|
+
...(input.imageOptions && { ...getAsObject(input, "imageOptions") }),
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const mobileImageOptions = {
|
|
131
|
+
...imageOptions,
|
|
132
|
+
w: 112,
|
|
133
|
+
h: 112,
|
|
134
|
+
...(input.mobileImageOptions && { ...getAsObject(input, "mobileImageOptions") }),
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const blockName = "section-feed-content-node";
|
|
138
|
+
|
|
139
|
+
marko_web_block_tag({
|
|
140
|
+
name: blockName,
|
|
141
|
+
tag: "div",
|
|
142
|
+
modifiers: modifiers,
|
|
143
|
+
attrs: containerAttrs,
|
|
144
|
+
renderBody: function(out) {
|
|
145
|
+
marko_web_element_tag({
|
|
146
|
+
name: "contents",
|
|
147
|
+
tag: "div",
|
|
148
|
+
blockName: blockName,
|
|
149
|
+
renderBody: function(out) {
|
|
150
|
+
marko_web_element_tag({
|
|
151
|
+
name: "body",
|
|
152
|
+
tag: "div",
|
|
153
|
+
blockName: blockName,
|
|
154
|
+
renderBody: function(out) {
|
|
155
|
+
if (input.sponsoredBy) {
|
|
156
|
+
marko_web_element_tag({
|
|
157
|
+
name: "sponsored-by",
|
|
158
|
+
tag: "div",
|
|
159
|
+
blockName: blockName,
|
|
160
|
+
renderBody: function(out) {
|
|
161
|
+
out.w(marko_escapeXml(i18n("Sponsored By")) +
|
|
162
|
+
" " +
|
|
163
|
+
marko_escapeXml(input.sponsoredBy));
|
|
164
|
+
}
|
|
165
|
+
}, out, __component, "3");
|
|
166
|
+
} else if (withSection) {
|
|
167
|
+
section_sponsor_tag({
|
|
168
|
+
blockName: blockName,
|
|
169
|
+
section: primarySection,
|
|
170
|
+
labels: content.labels
|
|
171
|
+
}, out, __component, "4");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
marko_web_content_short_name_tag({
|
|
175
|
+
tag: "h5",
|
|
176
|
+
blockName: blockName,
|
|
177
|
+
obj: content,
|
|
178
|
+
link: {
|
|
179
|
+
field: linkField,
|
|
180
|
+
target: linkTarget,
|
|
181
|
+
attrs: linkAttrs
|
|
182
|
+
}
|
|
183
|
+
}, out, __component, "5");
|
|
184
|
+
|
|
185
|
+
if (withAuthors) {
|
|
186
|
+
marko_web_element_tag({
|
|
187
|
+
name: "content-authors",
|
|
188
|
+
tag: "div",
|
|
189
|
+
blockName: blockName,
|
|
190
|
+
renderBody: function(out) {
|
|
191
|
+
marko_web_obj_nodes_tag({
|
|
192
|
+
type: "content",
|
|
193
|
+
blockName: blockName,
|
|
194
|
+
obj: content,
|
|
195
|
+
field: "authors",
|
|
196
|
+
tag: "span",
|
|
197
|
+
renderBody: function(out, { node, index, length }) {
|
|
198
|
+
if (index === 0) {
|
|
199
|
+
marko_web_element_tag({
|
|
200
|
+
name: "content-authors-label",
|
|
201
|
+
tag: "span",
|
|
202
|
+
blockName: blockName,
|
|
203
|
+
renderBody: function(out) {
|
|
204
|
+
out.w(marko_escapeXml(bylinePrefix));
|
|
205
|
+
}
|
|
206
|
+
}, out, __component, "8");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
marko_web_content_name_tag({
|
|
210
|
+
tag: "span",
|
|
211
|
+
blockName: blockName,
|
|
212
|
+
obj: node,
|
|
213
|
+
link: true
|
|
214
|
+
}, out, __component, "9");
|
|
215
|
+
|
|
216
|
+
if ((index + 1) !== length) {
|
|
217
|
+
out.w(", ");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, out, __component, "7");
|
|
221
|
+
}
|
|
222
|
+
}, out, __component, "6");
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (withCompany) {
|
|
226
|
+
marko_web_content_name_tag({
|
|
227
|
+
class: blockName + "__content-company",
|
|
228
|
+
obj: content.company,
|
|
229
|
+
link: true
|
|
230
|
+
}, out, __component, "10");
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (withTeaser) {
|
|
234
|
+
marko_web_content_teaser_tag({
|
|
235
|
+
blockName: blockName,
|
|
236
|
+
obj: content,
|
|
237
|
+
link: {
|
|
238
|
+
field: linkField,
|
|
239
|
+
target: linkTarget,
|
|
240
|
+
attrs: linkAttrs
|
|
241
|
+
}
|
|
242
|
+
}, out, __component, "11");
|
|
243
|
+
|
|
244
|
+
if (input.teaserCTA) {
|
|
245
|
+
marko_web_link_tag({
|
|
246
|
+
class: "teaser-link",
|
|
247
|
+
href: content.siteContext.path,
|
|
248
|
+
title: content.shortName,
|
|
249
|
+
renderBody: function(out) {
|
|
250
|
+
out.w(marko_escapeXml(input.teaserCTA));
|
|
251
|
+
}
|
|
252
|
+
}, out, __component, "12");
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (withBody) {
|
|
257
|
+
marko_web_content_body_tag({
|
|
258
|
+
blockName: blockName,
|
|
259
|
+
obj: content
|
|
260
|
+
}, out, __component, "13");
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (withAddress && ((content.address1 || content.address2) || content.cityStateZip)) {
|
|
264
|
+
marko_web_block_tag({
|
|
265
|
+
name: blockName,
|
|
266
|
+
tag: "div",
|
|
267
|
+
modifiers: [
|
|
268
|
+
"contact-info"
|
|
269
|
+
],
|
|
270
|
+
renderBody: function(out) {
|
|
271
|
+
marko_web_content_address1_tag({
|
|
272
|
+
blockName: blockName,
|
|
273
|
+
obj: content
|
|
274
|
+
}, out, __component, "15");
|
|
275
|
+
|
|
276
|
+
marko_web_content_address2_tag({
|
|
277
|
+
blockName: blockName,
|
|
278
|
+
obj: content
|
|
279
|
+
}, out, __component, "16");
|
|
280
|
+
|
|
281
|
+
marko_web_content_city_state_zip_tag({
|
|
282
|
+
blockName: blockName,
|
|
283
|
+
obj: content
|
|
284
|
+
}, out, __component, "17");
|
|
285
|
+
}
|
|
286
|
+
}, out, __component, "14");
|
|
287
|
+
} else if (withDates && input.date) {
|
|
288
|
+
marko_dynamicTag(out, input.date, null, null, null, null, __component, "18");
|
|
289
|
+
} else if ((withDates && multiDateFormats) && (content.startDate || content.endDate)) {
|
|
290
|
+
marko_web_element_tag({
|
|
291
|
+
name: "multidates",
|
|
292
|
+
tag: "div",
|
|
293
|
+
blockName: blockName,
|
|
294
|
+
modifiers: modifiers,
|
|
295
|
+
renderBody: function(out) {
|
|
296
|
+
var $for$0 = 0;
|
|
297
|
+
|
|
298
|
+
marko_forOf(multiDateFormats, function(dateObj) {
|
|
299
|
+
const dateFormat = dateObj.dateFormat || dateFormat;
|
|
300
|
+
|
|
301
|
+
const timezone = dateObj.timezone || "America/Chicago";
|
|
302
|
+
|
|
303
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
|
304
|
+
|
|
305
|
+
out.w("<div" +
|
|
306
|
+
marko_classAttr(blockName + "__content-event-dates") +
|
|
307
|
+
">");
|
|
308
|
+
|
|
309
|
+
marko_web_content_start_date_tag({
|
|
310
|
+
tag: "span",
|
|
311
|
+
blockName: blockName,
|
|
312
|
+
obj: content,
|
|
313
|
+
format: dateFormat,
|
|
314
|
+
timezone: timezone
|
|
315
|
+
}, out, __component, "21" + $keyScope$0);
|
|
316
|
+
|
|
317
|
+
marko_web_content_end_date_tag({
|
|
318
|
+
tag: "span",
|
|
319
|
+
blockName: blockName,
|
|
320
|
+
obj: content,
|
|
321
|
+
format: dateFormat,
|
|
322
|
+
timezone: timezone
|
|
323
|
+
}, out, __component, "22" + $keyScope$0);
|
|
324
|
+
|
|
325
|
+
out.w("</div>");
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
}, out, __component, "19");
|
|
329
|
+
} else if (withDates && (content.startDate || content.endDate)) {
|
|
330
|
+
out.w("<div" +
|
|
331
|
+
marko_classAttr(blockName + "__content-event-dates") +
|
|
332
|
+
">");
|
|
333
|
+
|
|
334
|
+
marko_web_content_start_date_tag({
|
|
335
|
+
tag: "span",
|
|
336
|
+
blockName: blockName,
|
|
337
|
+
obj: content,
|
|
338
|
+
format: dateFormat
|
|
339
|
+
}, out, __component, "24");
|
|
340
|
+
|
|
341
|
+
marko_web_content_end_date_tag({
|
|
342
|
+
tag: "span",
|
|
343
|
+
blockName: blockName,
|
|
344
|
+
obj: content,
|
|
345
|
+
format: dateFormat
|
|
346
|
+
}, out, __component, "25");
|
|
347
|
+
|
|
348
|
+
out.w("</div>");
|
|
349
|
+
} else if (withDates && multiDateFormats) {
|
|
350
|
+
marko_web_element_tag({
|
|
351
|
+
name: "multidates",
|
|
352
|
+
tag: "div",
|
|
353
|
+
blockName: blockName,
|
|
354
|
+
modifiers: modifiers,
|
|
355
|
+
renderBody: function(out) {
|
|
356
|
+
var $for$1 = 0;
|
|
357
|
+
|
|
358
|
+
marko_forOf(multiDateFormats, function(dateObj) {
|
|
359
|
+
const dateFormat = dateObj.dateFormat || dateFormat;
|
|
360
|
+
|
|
361
|
+
const timezone = dateObj.timezone || "America/Chicago";
|
|
362
|
+
|
|
363
|
+
var $keyScope$1 = "[" + (($for$1++) + "]");
|
|
364
|
+
|
|
365
|
+
marko_web_content_published_tag({
|
|
366
|
+
blockName: blockName,
|
|
367
|
+
obj: content,
|
|
368
|
+
format: dateFormat,
|
|
369
|
+
timezone: timezone
|
|
370
|
+
}, out, __component, "27" + $keyScope$1);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}, out, __component, "26");
|
|
374
|
+
} else if (withDates) {
|
|
375
|
+
marko_web_content_published_tag({
|
|
376
|
+
blockName: blockName,
|
|
377
|
+
obj: content,
|
|
378
|
+
format: dateFormat
|
|
379
|
+
}, out, __component, "28");
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if ((withSpeakers && getAsArray(content, "speakers.edges").length) && (content.type === "webinar")) {
|
|
383
|
+
marko_web_element_tag({
|
|
384
|
+
name: "content-speakers",
|
|
385
|
+
tag: "div",
|
|
386
|
+
blockName: blockName,
|
|
387
|
+
renderBody: function(out) {
|
|
388
|
+
marko_web_obj_nodes_tag({
|
|
389
|
+
type: "content",
|
|
390
|
+
blockName: blockName,
|
|
391
|
+
obj: content,
|
|
392
|
+
field: "speakers",
|
|
393
|
+
tag: "span",
|
|
394
|
+
renderBody: function(out, { node, index, length }) {
|
|
395
|
+
if (index === 0) {
|
|
396
|
+
marko_web_element_tag({
|
|
397
|
+
name: "content-speakers-label",
|
|
398
|
+
tag: "span",
|
|
399
|
+
blockName: blockName,
|
|
400
|
+
renderBody: function(out) {
|
|
401
|
+
if (length === 1) {
|
|
402
|
+
out.w("Speaker: ");
|
|
403
|
+
} else {
|
|
404
|
+
out.w("Speakers: ");
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}, out, __component, "31");
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
marko_web_content_name_tag({
|
|
411
|
+
tag: "span",
|
|
412
|
+
blockName: blockName,
|
|
413
|
+
obj: node,
|
|
414
|
+
link: false
|
|
415
|
+
}, out, __component, "32");
|
|
416
|
+
|
|
417
|
+
out.w("<span>, </span>");
|
|
418
|
+
|
|
419
|
+
marko_web_content_title_tag({
|
|
420
|
+
tag: "span",
|
|
421
|
+
blockName: blockName,
|
|
422
|
+
obj: node
|
|
423
|
+
}, out, __component, "34");
|
|
424
|
+
|
|
425
|
+
if ((index + 1) !== length) {
|
|
426
|
+
out.w("; ");
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}, out, __component, "30");
|
|
430
|
+
}
|
|
431
|
+
}, out, __component, "29");
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
const hasSponsorsImage = getAsArray(content, "sponsors.edges").map(edge => getAsObject(edge, "node")).some(({primaryImage}) => primaryImage);
|
|
435
|
+
|
|
436
|
+
const sponsorsModifiers = hasSponsorsImage ? ['has-logo'] : [];
|
|
437
|
+
|
|
438
|
+
marko_web_element_tag({
|
|
439
|
+
name: "content-sponsors",
|
|
440
|
+
tag: "div",
|
|
441
|
+
blockName: blockName,
|
|
442
|
+
modifiers: sponsorsModifiers,
|
|
443
|
+
renderBody: function(out) {
|
|
444
|
+
marko_web_obj_nodes_tag({
|
|
445
|
+
type: "content",
|
|
446
|
+
blockName: blockName,
|
|
447
|
+
obj: content,
|
|
448
|
+
field: "sponsors",
|
|
449
|
+
tag: "span",
|
|
450
|
+
renderBody: function(out, { node, index, length }) {
|
|
451
|
+
if (index === 0) {
|
|
452
|
+
marko_web_element_tag({
|
|
453
|
+
name: "content-sponsors-label",
|
|
454
|
+
tag: "span",
|
|
455
|
+
blockName: blockName,
|
|
456
|
+
renderBody: function(out) {
|
|
457
|
+
out.w(marko_escapeXml(i18n("Sponsored By")) +
|
|
458
|
+
": ");
|
|
459
|
+
}
|
|
460
|
+
}, out, __component, "37");
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
if (withSponsorLogo && node.primaryImage) {
|
|
464
|
+
const src = buildImgixUrl(node.primaryImage.src, imageOptions, null, true);
|
|
465
|
+
|
|
466
|
+
const srcset = [src, `${buildImgixUrl(src, { dpr: 2 })} 2x`];
|
|
467
|
+
|
|
468
|
+
const srcMobile = buildImgixUrl(node.primaryImage.src, mobileImageOptions, null, true);
|
|
469
|
+
|
|
470
|
+
const srcsetMobile = [srcMobile, `${buildImgixUrl(srcMobile, { dpr: 2 })} 2x`];
|
|
471
|
+
|
|
472
|
+
const link = linkField && get(node, linkField) ? get(node, linkField) : get(node, "siteContext.path");
|
|
473
|
+
|
|
474
|
+
marko_web_picture_tag({
|
|
475
|
+
link: {
|
|
476
|
+
href: link,
|
|
477
|
+
target: linkTarget,
|
|
478
|
+
attrs: linkAttrs
|
|
479
|
+
},
|
|
480
|
+
sources: [
|
|
481
|
+
{
|
|
482
|
+
srcset: srcset,
|
|
483
|
+
media: "(min-width: 768px)",
|
|
484
|
+
width: 120,
|
|
485
|
+
height: 80
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
image: {
|
|
489
|
+
lazyload: lazyload,
|
|
490
|
+
src: srcMobile,
|
|
491
|
+
srcset: srcsetMobile,
|
|
492
|
+
class: [
|
|
493
|
+
blockName + "__image"
|
|
494
|
+
],
|
|
495
|
+
alt: node.primaryImage.alt,
|
|
496
|
+
attrs: {
|
|
497
|
+
width: "120",
|
|
498
|
+
height: "80"
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}, out, __component, "38");
|
|
502
|
+
} else {
|
|
503
|
+
marko_web_content_name_tag({
|
|
504
|
+
tag: "span",
|
|
505
|
+
blockName: blockName,
|
|
506
|
+
obj: node,
|
|
507
|
+
link: true
|
|
508
|
+
}, out, __component, "42");
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
if (((index + 1) !== length) && (!hasSponsorsImage)) {
|
|
512
|
+
marko_web_element_tag({
|
|
513
|
+
name: "contentsponsors-seporator",
|
|
514
|
+
tag: "span",
|
|
515
|
+
blockName: blockName,
|
|
516
|
+
renderBody: function(out) {
|
|
517
|
+
out.w(", ");
|
|
518
|
+
}
|
|
519
|
+
}, out, __component, "43");
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}, out, __component, "36");
|
|
523
|
+
}
|
|
524
|
+
}, out, __component, "35");
|
|
525
|
+
|
|
526
|
+
if (withDates && (content.type === "webinar")) {
|
|
527
|
+
const linkUrl = (content.linkUrl) ? content.linkUrl : get(content, "siteContext.path");
|
|
528
|
+
|
|
529
|
+
const target = (content.linkUrl) ? "_blank" : "_self";
|
|
530
|
+
|
|
531
|
+
const obj = { ...content, linkUrl };
|
|
532
|
+
|
|
533
|
+
theme_content_link_url_tag({
|
|
534
|
+
obj: obj,
|
|
535
|
+
label: isUpcoming ? "" + i18n("Register for Webinar") : "" + i18n("View Webinar"),
|
|
536
|
+
target: target
|
|
537
|
+
}, out, __component, "44");
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}, out, __component, "2");
|
|
541
|
+
}
|
|
542
|
+
}, out, __component, "1");
|
|
543
|
+
|
|
544
|
+
if (displayImage && primaryImage.src) {
|
|
545
|
+
marko_web_element_tag({
|
|
546
|
+
name: "image-wrapper",
|
|
547
|
+
tag: "div",
|
|
548
|
+
blockName: blockName,
|
|
549
|
+
renderBody: function(out) {
|
|
550
|
+
const isLogo = content.type === "company" ? true : get(primaryImage, "isLogo");
|
|
551
|
+
|
|
552
|
+
const src = buildImgixUrl(primaryImage.src, imageOptions, null, isLogo);
|
|
553
|
+
|
|
554
|
+
const srcset = [src, `${buildImgixUrl(src, { dpr: 2 })} 2x`];
|
|
555
|
+
|
|
556
|
+
const srcMobile = buildImgixUrl(primaryImage.src, mobileImageOptions, null, isLogo);
|
|
557
|
+
|
|
558
|
+
const srcsetMobile = [srcMobile, `${buildImgixUrl(srcMobile, { dpr: 2 })} 2x`];
|
|
559
|
+
|
|
560
|
+
const link = linkField && get(content, linkField) ? get(content, linkField) : get(content, "siteContext.path");
|
|
561
|
+
|
|
562
|
+
marko_web_picture_tag({
|
|
563
|
+
link: {
|
|
564
|
+
href: link,
|
|
565
|
+
target: linkTarget,
|
|
566
|
+
attrs: linkAttrs
|
|
567
|
+
},
|
|
568
|
+
sources: [
|
|
569
|
+
{
|
|
570
|
+
srcset: srcset,
|
|
571
|
+
media: "(min-width: 768px)",
|
|
572
|
+
width: imageOptions.w,
|
|
573
|
+
height: imageOptions.h
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
image: {
|
|
577
|
+
lazyload: lazyload,
|
|
578
|
+
src: srcMobile,
|
|
579
|
+
srcset: srcsetMobile,
|
|
580
|
+
class: [
|
|
581
|
+
blockName + "__image"
|
|
582
|
+
],
|
|
583
|
+
alt: primaryImage.alt,
|
|
584
|
+
attrs: {
|
|
585
|
+
width: mobileImageOptions.w,
|
|
586
|
+
height: mobileImageOptions.h
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}, out, __component, "46");
|
|
590
|
+
}
|
|
591
|
+
}, out, __component, "45");
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}, out, __component, "0");
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
marko_template._ = marko_renderer(render, {
|
|
598
|
+
e_: marko_componentType
|
|
599
|
+
}, marko_component);
|
|
600
|
+
|
|
601
|
+
marko_template.meta = {
|
|
602
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.0.0/components/nodes/section-feed-content.marko",
|
|
603
|
+
component: "./section-feed-content.marko",
|
|
604
|
+
tags: [
|
|
605
|
+
"@mindful-web/marko-web/components/element/index.marko",
|
|
606
|
+
"./components/section-sponsor.marko",
|
|
607
|
+
"@mindful-web/marko-web/components/element/content/short-name.marko",
|
|
608
|
+
"@mindful-web/marko-web/components/element/content/name.marko",
|
|
609
|
+
"@mindful-web/marko-web/components/element/obj-nodes.marko",
|
|
610
|
+
"@mindful-web/marko-web/components/element/content/teaser.marko",
|
|
611
|
+
"@mindful-web/marko-web/components/element/link.marko",
|
|
612
|
+
"@mindful-web/marko-web/components/element/content/body.marko",
|
|
613
|
+
"@mindful-web/marko-web/components/element/content/address1.marko",
|
|
614
|
+
"@mindful-web/marko-web/components/element/content/address2.marko",
|
|
615
|
+
"@mindful-web/marko-web/components/element/content/city-state-zip.marko",
|
|
616
|
+
"@mindful-web/marko-web/components/element/block.marko",
|
|
617
|
+
"@mindful-web/marko-web/components/element/content/start-date.marko",
|
|
618
|
+
"@mindful-web/marko-web/components/element/content/end-date.marko",
|
|
619
|
+
"@mindful-web/marko-web/components/element/content/published.marko",
|
|
620
|
+
"@mindful-web/marko-web/components/element/content/title.marko",
|
|
621
|
+
"@mindful-web/marko-web/components/element/picture.marko",
|
|
622
|
+
"../content/link-url/index.marko"
|
|
623
|
+
]
|
|
624
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { get } from "@mindful-web/object-path";
|
|
2
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
3
|
+
|
|
4
|
+
$ const { i18n } = out.global;
|
|
5
|
+
$ const { node, imageWidth, imageHeight } = input;
|
|
6
|
+
|
|
7
|
+
$ const linkText = get(node, "linkText") || i18n(defaultValue(input.linkText, "Read More"));
|
|
8
|
+
$ const blockName = defaultValue(input.blockName, "pib-page-card");
|
|
9
|
+
|
|
10
|
+
<marko-web-block name=blockName attrs=input.attrs>
|
|
11
|
+
<marko-web-element block-name=blockName name="inner-wrapper">
|
|
12
|
+
<div>
|
|
13
|
+
<marko-web-element block-name=blockName name="title">
|
|
14
|
+
${node.shortName}
|
|
15
|
+
</marko-web-element>
|
|
16
|
+
<marko-web-element block-name=blockName name="description">
|
|
17
|
+
${node.teaser}
|
|
18
|
+
</marko-web-element>
|
|
19
|
+
|
|
20
|
+
<marko-web-link
|
|
21
|
+
class=`btn btn-primary ${blockName}__download-btn`
|
|
22
|
+
href=node.siteContext.path
|
|
23
|
+
title=linkText
|
|
24
|
+
attrs=input.linkAttrs
|
|
25
|
+
>
|
|
26
|
+
${linkText}
|
|
27
|
+
</marko-web-link>
|
|
28
|
+
</div>
|
|
29
|
+
<if(node.primaryImage)>
|
|
30
|
+
<marko-web-img
|
|
31
|
+
class=`${blockName}__issue-cover`
|
|
32
|
+
src=node.primaryImage.src
|
|
33
|
+
srcset=[`${node.primaryImage.src}&dpr=2 2x`]
|
|
34
|
+
alt=node.primaryImage.alt
|
|
35
|
+
attrs={ width: imageWidth, height: imageHeight }
|
|
36
|
+
/>
|
|
37
|
+
</if>
|
|
38
|
+
</marko-web-element>
|
|
39
|
+
</marko-web-block>
|