{"version":3,"file":"compare-before-after-section.min.js","mappings":"yZAeO,SAAuBA,GAC5B,MAAMC,EAAQC,SAASC,cAAc,SACrCF,EAAMG,QAAQC,KAAO,OACrB,MAAMC,EAAOJ,SAASK,eAAeP,GACrCC,EAAMO,YAAYF,IACHJ,SAASO,MAAQP,SAASQ,MAAQR,SAASS,iBACnDH,YAAYP,EACrB,CCdAW","sources":["webpack://lange/./lib/css-dom.ts","webpack://lange/./sections/compare-before-after/index.ts"],"sourcesContent":["/**\n * Generates a style element containing the given content and appends it to the dom.\n *\n * This is an alternative to the webpack style-loader that circumvents the overly complex webpack\n * configuration and plugin behavior. This intentionally avoids using CSSStyleSheet or any other\n * kind of feature that is not broadly supported or accurately polyfilled.\n *\n * This is safe to call before the dom has loaded.\n *\n * This is safe to call on platforms where document.head is not defined.\n *\n * This annotates appended style attributes with a data-lazy attribute so that it is trivial to\n * identify which elements were appended to the dom in this manner. This extra annotation is not\n * expected to have a material performance impact.\n */\nexport function appendCSSText(content: string) {\n  const style = document.createElement('style');\n  style.dataset.lazy = 'true';\n  const node = document.createTextNode(content);\n  style.appendChild(node);\n  const parent = document.head || document.body || document.documentElement;\n  parent.appendChild(style);\n}\n","import { appendCSSText } from '../../lib/css-dom.js';\nimport styles from './index.scss';\n\n// This module supports the src/sections/compare-before-after.liquid section currently being used on\n// all MBG landing pages.\n\n// This uses the new carousel-element\n\nappendCSSText(styles);\n"],"names":["content","style","document","createElement","dataset","lazy","node","createTextNode","appendChild","head","body","documentElement","appendCSSText"],"sourceRoot":""}