{"version":3,"file":"LegalBody.C8UiczAt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/z9FXosO5OGQjpD51mji6/o5MhYL599jdGMIDgV5HF/LegalBody.js"],"sourcesContent":["// Synteris site component.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{ctlCells,ctlTxt}from\"https://framerusercontent.com/modules/JnrYTyOjqjqPtAJfvwc2/bdrAdHGnyxpJnrbnxwxs/controls.js\";import{Css,useMeasure,LAYOUT_W_CONTROL,lw}from\"https://framerusercontent.com/modules/61YXww0YSbehJLdVTN7C/xytgdOzwgXYHyvvyqgjJ/motion.js\";import{ACCENT_DEEP,HAIR,INK,INK2,MONO,PAPER,SANS,TNUM}from\"https://framerusercontent.com/modules/jJQJadxiyfiEQ1dJxBbB/6VEtEBxp9IBw73pQJbVS/tokens.js\";const FALLBACK_LEGAL={privacy:{title:\"Privacy notice\",updated:\"[DATE]\",sections:[[\"[Section heading]\",\"[Privacy notice text to be supplied by Synteris.]\"],[\"[Section heading]\",\"[Privacy notice text to be supplied by Synteris.]\"],[\"[Section heading]\",\"[Privacy notice text to be supplied by Synteris.]\"]]},terms:{title:\"Terms of use\",updated:\"[DATE]\",sections:[[\"[Section heading]\",\"[Terms of use text to be supplied by Synteris.]\"],[\"[Section heading]\",\"[Terms of use text to be supplied by Synteris.]\"],[\"[Section heading]\",\"[Terms of use text to be supplied by Synteris.]\"]]},cookies:{title:\"Cookie policy\",updated:\"[DATE]\",sections:[[\"[Section heading]\",\"[Cookie policy text - Phase 6: no tracking cookies; Plausible analytics is cookieless; list any strictly necessary cookies.]\"]]},accessibility:{title:\"Accessibility statement\",updated:\"[DATE]\",sections:[[\"[Section heading]\",\"[Accessibility statement text - Phase 6.]\"]]}};const LEGAL=FALLBACK_LEGAL;/** @framerSupportedLayoutWidth any-prefer-fixed\n *  @framerSupportedLayoutHeight auto\n *  @framerIntrinsicWidth 1200 */export function LegalBody(props){const{doc=\"privacy\"}=props;const base=FALLBACK_LEGAL[doc]||FALLBACK_LEGAL.privacy;// every part of the document is a field; an untouched instance is the\n// shipped document, byte for byte\nconst d={title:ctlTxt(props.title,base.title),updated:ctlTxt(props.updated,base.updated),sections:ctlCells(props.sections,base.sections,2)};const{ref,w}=useMeasure(lw(props));const compact=w<760;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",background:PAPER,fontFamily:SANS},children:[/*#__PURE__*/_jsx(Css,{}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:820,margin:\"0 auto\",padding:compact?\"44px 20px 48px\":\"80px 40px 72px\"},children:[props.draft&&/*#__PURE__*/_jsx(\"div\",{role:\"note\",style:{marginBottom:28,padding:\"12px 16px\",border:`1px dashed ${ACCENT_DEEP}`,borderRadius:10,fontSize:14,fontWeight:600,color:ACCENT_DEEP},children:ctlTxt(props.draftLabel,\"[Draft - for Geoff's review]\")}),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:MONO,fontSize:10,letterSpacing:\"0.14em\",color:ACCENT_DEEP},children:[ctlTxt(props.kicker,\"LEGAL \\xb7 UPDATED\"),\" \",d.updated]}),/*#__PURE__*/_jsx(\"h1\",{style:{margin:\"16px 0 0\",fontFamily:SANS,fontWeight:600,fontSize:compact?34:48,letterSpacing:\"-0.028em\",color:INK},children:d.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"16px 0 0\",fontFamily:SANS,fontSize:15,lineHeight:1.65,color:INK2},children:ctlTxt(props.paragraph,\"[Legal contact line]\")}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:40},children:d.sections.map(([t,b],i)=>/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${HAIR}`,padding:\"22px 0\",display:\"grid\",gridTemplateColumns:compact?\"1fr\":\"56px 1fr\",gap:compact?8:20},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:MONO,fontSize:11,color:ACCENT_DEEP,...TNUM},children:String(i+1).padStart(2,\"0\")}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontFamily:SANS,fontWeight:600,fontSize:18,letterSpacing:\"-0.01em\",color:INK},children:t}),b.split(\" | \").map((para,j)=>/*#__PURE__*/_jsx(\"p\",{style:{margin:\"10px 0 0\",fontFamily:SANS,fontSize:14.5,lineHeight:1.7,color:INK2},children:para},j))]})]},t))})]})]});}addPropertyControls(LegalBody,{layoutWidth:LAYOUT_W_CONTROL,doc:{type:ControlType.Enum,title:\"Doc\",options:[\"privacy\",\"terms\",\"cookies\",\"accessibility\"],defaultValue:\"privacy\"},paragraph:{type:ControlType.String,title:\"Paragraph\",defaultValue:\"[Legal contact line]\",displayTextArea:true},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},updated:{type:ControlType.String,title:\"Updated\",defaultValue:\"\"},kicker:{type:ControlType.String,title:\"Kicker\",defaultValue:\"LEGAL \\xb7 UPDATED\"},draft:{type:ControlType.Boolean,title:\"Draft\",defaultValue:false,description:\"Shows the draft banner until the wording is approved\"},draftLabel:{type:ControlType.String,title:\"Draft Label\",defaultValue:\"[Draft - for Geoff's review]\",hidden:p=>!p.draft},sections:{type:ControlType.String,title:\"Sections\",displayTextArea:true,description:'one section per line, heading and body separated by a middle dot; separate paragraphs in a body with \" | \"',defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"LegalBody\":{\"type\":\"reactComponent\",\"name\":\"LegalBody\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LegalBody.map"],"mappings":"4TAGiC,SAAgB,EAAU,EAAM,CAAC,GAAK,CAAC,MAAI,WAAW,EAAY,EAAK,EAAe,IAAM,EAAe,QAEtI,EAAE,CAAC,MAAM,EAAO,EAAM,MA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