{"version":3,"file":"SplitBleed.DOjpErP0.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_BisrWwwE","addPropertyControls","SplitBleed","props","style","css","hairline","content","image","img","cropToText","focus","init_SplitBleed","ControlType"],"sources":["https:/framerusercontent.com/modules/ZL5WqwRJmc8t3uAuGGWg/QCJilmx5bJLjVPG5plB8/SplitBleed.js"],"sourcesContent":["// Split bleed (DESIGN 3, P8), as the local build site/src/components/SplitBleed.astro (Revamp S5).\n// White section. Text on the left half, its left edge on the container edge (1200 px wrap, 40 px gutter);\n// the photo fills the right half to the viewport edge. Tablet and Phone: one column, photo below the text.\n// Content = canvas frames in the \"Content\" slot (h2, text, tick list, button, origin mark keep their own tags, styles and links).\n// \"Top hairline\" = the 1 px Charcoal-20 line when the section follows another White section (local \".light + .light\").\n// Colours: E1 colour-style tokens only. Breakpoints by container width (= viewport width; full-bleed section).\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const white=\"var(--token-14ab572a-7f9d-4ed8-a72f-3ef91a2cb45b)\";const charcoal=\"var(--token-f6685d8e-5a0a-4a7d-8032-2be521a39344)\";const charcoal20=\"var(--token-f2561c4d-25aa-41da-b5ea-e52e93a292b1)\";const css=`\n.sbl-q{container-type:inline-size;width:100%}\n.sbl{display:grid;grid-template-columns:1fr 1fr;width:100%;box-sizing:border-box;background:${white};color:${charcoal}}\n.sbl--line{border-top:1px solid ${charcoal20}}\n.sbl__text{display:flex;flex-direction:column;align-items:flex-start;gap:32px;min-width:0;box-sizing:border-box;padding:144px 96px 144px max(40px, calc((100cqw - 1200px) / 2 + 40px))}\n.sbl__text>*{width:100%!important;max-width:100%}\n.sbl__img{display:block;width:100%;height:100%;object-fit:cover}\n.sbl__media{position:relative;min-width:0;overflow:hidden}\n.sbl__media .sbl__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n@container (max-width:1199.98px){.sbl__media{aspect-ratio:3/2}.sbl{grid-template-columns:1fr}.sbl__text{padding:96px 40px}.sbl__img{height:auto}}\n@container (max-width:809.98px){.sbl__text{padding:96px 24px}}\n`;/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function SplitBleed(props){const{image,hairline=true,cropToText=false,focus=\"50% 50%\",content,style}=props;return /*#__PURE__*/_jsxs(\"div\",{className:\"sbl-q\",style:{...style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"section\",{className:hairline?\"sbl sbl--line\":\"sbl\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"sbl__text\",children:content}),image?.src&&(()=>{const img=/*#__PURE__*/_jsx(\"img\",{className:\"sbl__img\",src:image.src,srcSet:image.srcSet,alt:image.alt??\"\",loading:\"lazy\",style:cropToText?{objectPosition:focus}:undefined});// Crop to text: the photo takes the height of the text column (Tablet/Phone: 3:2 under the text).\nreturn cropToText?/*#__PURE__*/_jsx(\"div\",{className:\"sbl__media\",children:img}):img;})()]})]});}addPropertyControls(SplitBleed,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},hairline:{type:ControlType.Boolean,title:\"Top hairline\",description:\"On when the section follows another White section\",defaultValue:true},cropToText:{type:ControlType.Boolean,title:\"Crop to text\",description:\"Photo takes the text height; 3:2 when stacked\",defaultValue:false},focus:{type:ControlType.String,title:\"Focus\",description:\"CSS object-position, e.g. 50% 60%\",defaultValue:\"50% 50%\",hidden:p=>!p.cropToText},content:{type:ControlType.Slot,title:\"Content\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SplitBleed\",\"slots\":[\"content\"],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SplitBleed.map"],"mappings":"A,8JAoBG,SAAwBM,EAAW,EAAM,CAAC,GAAK,CAAC,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