PageSourceSearch

https://www.paxlovid.com/lib/blocks/hero-custom-placeholder-contai…/hero-custom-placeholder-container-dist.js

js paxlovid.com collected 2026-09-25 20:09:41 UTC 3,224 bytes, 2 lines download raw bytes

1/* eslint-disable */ 
2import{FranklinBlock,blockColorThemeStructure,blockColorThemeBlockIsActive}from"../../scripts/lib-franklin.js";export default class HeroCustomPlaceholderContainer extends FranklinBlock{beforeBlockRenderColorThemingChildren(e){if(!blockColorThemeBlockIsActive(this.block))return e;const{hero:o,placeholderSlot:t}=e,c=document.createElement("template");c.innerHTML=o??"";const l=this.block.dataset.collectionColorTheme;return o&&l&&c.content.querySelector(".core-hero")?.classList.add(l),{...e,hero:c.innerHTML,placeholderSlot:t}}async beforeBlockRender(){const e=this.block.closest(".section[data-collection-color-theme]"),o=e?.dataset?.collectionColorTheme;o&&(this.block.dataset.collectionColorTheme||this.block.setAttribute("data-collection-color-theme",o),this.block.classList.contains(o)||this.block.classList.add(o));let{hero:t,placeholderSlot:c}=this.config;const l=this.beforeBlockRenderColorThemingChildren({hero:t,placeholderSlot:c});t=l.hero,c=l.placeholderSlot;const n=document.createElement("div");n.innerHTML=t;const r=document.createElement("div"),i=document.createElement("div");i.innerText="placeholder_slot";const s=document.createElement("div");s.innerHTML=c,r.append(i),r.append(s),n.firstElementChild.firstElementChild.append(r),this.inputData={hero:n.innerHTML}}afterBlockRenderColorTheming(){const e=[{target:".block.core-hero-custom-placeholder-container",classToAdd:"surface"}],o={"color-theme-5-white-on-white":{isDefaultVariant:!0,colorThemeCollection:"data-color-theme-five",colorModeValue:"white-on-white",domTargets:[...e]},"color-theme-5-white-on-core-tinted":{isMatch:this.block.classList.contains("color-theme-5-white-on-core-tinted"),colorThemeCollection:"data-color-theme-five",colorModeValue:"white-on-core-tinted",domTargets:[...e]},"color-theme-5-core-tinted-on-white":{isMatch:this.block.classList.contains("color-theme-5-core-tinted-on-white"),colorThemeCollection:"data-color-theme-five",colorModeValue:"core-tinted-on-white",domTargets:[...e]}};this.block.classList.contains("core-hero-custom-placeholder-container")&&blockColorThemeStructure(this.block,o,!0)}async afterBlockRender(){this.block.classList.add("block-padding-standard"),this.block.classList.add("block-padding-desktop-x-0"),this.block.classList.add("block-padding-desktop-top-0"),this.block.classList.add("block-padding-mobile-x-0"),this.block.classList.add("block-padding-mobile-top-0"),blockColorThemeBlockIsActive(this.block)&&this.block.classList.contains("core-hero-custom-placeholder-container")&&this.afterBlockRenderColorTheming()}}export const schema='{\n  "hero-custom-placeholder-container": {\n    "name": "hero-custom-placeholder-container",\n    "description": "A specialized hero container component that supports custom placeholder content for dynamic content insertion. Allows for advanced hero layouts with designated slots for replacing content via CMS or other content sources while maintaining the overall hero structure.",\n    "coreBlockData": {\n      "notApplicable": true\n    },\n    "schema": {}\n  }\n}\n';export const template=' <div class="core-hero-custom-placeholder-container-inside block-inside">\n  {{ hero }}\n</div>\n';export const smartCaptureConfig=" {}";

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.