{"version":3,"file":"TextBlocks.C0a1AMe0.mjs","names":["_Fragment","useRef","useState","startTransition","p"],"sources":["https:/framerusercontent.com/modules/VDrGKDZj2BCeLQNNstpL/wehVMfAqEJadikdN7RDP/TextBlocks.js"],"sourcesContent":["// TextBlocks: text-first inner-page sections, picked with `mode`.\n//   split   heading on the left, paragraphs on the right (one per line in\n//           `body`). A line starting with \"!\" is set in navy as a key line.\n//   grid    heading on top and a row of cells (icon, title, text), on white\n//           or navy. Cells: \"Title | Text | icon\" per line.\n// Content rises in when the section scrolls into view.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const NAVY=\"#242951\";const EASE=\"cubic-bezier(0.22,1,0.36,1)\";const css=`\n.rai-tb { container-type: inline-size; width: 100%; box-sizing: border-box; padding-left: 40px; padding-right: 40px; font-family: Inter, sans-serif; color: ${NAVY}; background: #fff; }\n.rai-tb[data-dark=\"true\"] { background: ${NAVY}; color: #fff; }\n.rai-tb-in { width: 100%; max-width: 1340px; margin: 0 auto; }\n.rai-tb-h { margin: 0; font-weight: 500; font-size: clamp(32px, 3.3cqw, 48px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }\n.rai-tb-split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 100px; align-items: start; }\n.rai-tb-split p { margin: 0 0 24px; font-size: 20px; line-height: 1.5; letter-spacing: -0.006em; color: #515151; }\n.rai-tb-split p:last-child { margin-bottom: 0; }\n.rai-tb-split p[data-key=\"true\"] { color: ${NAVY}; font-weight: 500; }\n.rai-tb[data-dark=\"true\"] .rai-tb-split p { color: rgba(255,255,255,0.78); }\n.rai-tb[data-dark=\"true\"] .rai-tb-split p[data-key=\"true\"] { color: #fff; }\n.rai-tb-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px; margin-top: 72px; }\n.rai-tb-cell { padding-top: 28px; border-top: 1px solid rgba(36,41,81,0.18); }\n.rai-tb[data-dark=\"true\"] .rai-tb-cell { border-top-color: rgba(255,255,255,0.22); }\n.rai-tb-cell svg { display: block; width: 26px; height: 26px; margin-bottom: 20px; }\n.rai-tb-cell b { display: block; font-weight: 500; font-size: 26px; line-height: 1.18; letter-spacing: -0.012em; }\n.rai-tb-cell p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: #515151; }\n.rai-tb[data-dark=\"true\"] .rai-tb-cell p { color: rgba(255,255,255,0.72); }\n.rai-tb-h, .rai-tb-split p, .rai-tb-cell { transition: opacity 0.7s ${EASE}, translate 0.8s ${EASE}; transition-delay: var(--d, 0ms); }\n.rai-tb[data-seen=\"false\"] .rai-tb-h, .rai-tb[data-seen=\"false\"] .rai-tb-split p, .rai-tb[data-seen=\"false\"] .rai-tb-cell { opacity: 0; translate: 0 18px; }\n@container (max-width: 900px) {\n  .rai-tb { padding-left: 20px; padding-right: 20px; }\n  .rai-tb-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }\n  .rai-tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 48px; }\n}\n@container (max-width: 520px) { .rai-tb-grid { grid-template-columns: minmax(0, 1fr); } }\n@media (max-width: 809.98px) { .rai-tb { padding-left: 20px; padding-right: 20px; } }\n@media (prefers-reduced-motion: reduce) { .rai-tb * { transition: none !important; } }\n`;function Icon({name}){let d=null;switch(name){case\"list\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"2\",width:\"8\",height:\"4\",rx:\"1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M8 12h8M8 16h5\"})]});break;case\"lock\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8a2 2 0 0 1-2-1L9 4a2 2 0 0 0-2-1H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"}),/*#__PURE__*/_jsx(\"rect\",{x:\"10\",y:\"12\",width:\"6\",height:\"5\",rx:\"1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11 12v-1.5a2 2 0 0 1 4 0V12\"})]});break;case\"chart\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M3 3v18h18\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 17v-5M13 17V8M18 17v-8\"})]});break;case\"user\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"2\",width:\"8\",height:\"4\",rx:\"1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"2.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 19a4 4 0 0 1 8 0\"})]});break;case\"settings\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"3\",width:\"18\",height:\"18\",rx:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 16v-4M12 16V9M16 16v-2\"})]});break;case\"send\":d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8a2 2 0 0 1-2-1L9 4a2 2 0 0 0-2-1H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m10 14 3-3 3 3M13 11v6\"})]});break;default:d=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"8\",y:\"2\",width:\"8\",height:\"4\",rx:\"1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m9 14 2 2 4-4\"})]});}return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:d});}function lines(text){return(text||\"\").split(\"\\n\").map(l=>l.trim()).filter(Boolean);}/**\n * @framerIntrinsicWidth 1440\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function TextBlocks(props){const{mode=\"split\",heading=\"What is an HMIS Comparable Database?\",body=\"A Homeless Management Information System (HMIS) is the shared local database that HUD-funded housing programs use to record client data.\\nVictim service providers are the exception. Federal confidentiality law prohibits them from entering personally identifying information about survivors into a shared HMIS. HUD requires them to use a comparable database instead.\\n!Restore AI is a validated HMIS Comparable Database vendor, listed on HUD Exchange among the validated systems for HUD APR and CAPER reporting.\",dark=false,spaceAbove=128,spaceBelow=128,headingFont='\"PP Neue Montreal Medium\", \"PP Neue Montreal\", Inter, sans-serif',style}=props;const ref=useRef(null);const[seen,setSeen]=useState(true);useEffect(()=>{if(typeof window===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;if(!(\"IntersectionObserver\"in window))return;const el=ref.current;if(!el)return;const r=el.getBoundingClientRect();if(r.top<(window.innerHeight||0)&&r.bottom>0)return;startTransition(()=>setSeen(false));const io=new IntersectionObserver(entries=>{if(!entries.some(e=>e.isIntersecting))return;io.disconnect();startTransition(()=>setSeen(true));},{threshold:.2});io.observe(el);const t=window.setTimeout(()=>startTransition(()=>setSeen(true)),6e3);return()=>{io.disconnect();window.clearTimeout(t);};},[]);const d=i=>({\"--d\":`${i*80}ms`});const items=lines(body);const hStyle={fontFamily:headingFont};return /*#__PURE__*/_jsxs(\"section\",{ref:ref,className:\"rai-tb\",\"data-dark\":dark?\"true\":\"false\",\"data-seen\":seen?\"true\":\"false\",style:{paddingTop:spaceAbove,paddingBottom:spaceBelow,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"div\",{className:\"rai-tb-in\",children:mode===\"split\"?/*#__PURE__*/_jsxs(\"div\",{className:\"rai-tb-split\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"rai-tb-h\",style:hStyle,children:heading}),/*#__PURE__*/_jsx(\"div\",{children:items.map((l,i)=>/*#__PURE__*/_jsx(\"p\",{\"data-key\":l.startsWith(\"!\")?\"true\":\"false\",style:d(i+1),children:l.replace(/^!/,\"\")},i))})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"rai-tb-h\",style:{...hStyle,maxWidth:820},children:heading}),/*#__PURE__*/_jsx(\"div\",{className:\"rai-tb-grid\",style:{\"--cols\":Math.min(4,Math.max(1,items.length))},children:items.map((l,i)=>{const p=l.split(\"|\").map(s=>s.trim());return /*#__PURE__*/_jsxs(\"div\",{className:\"rai-tb-cell\",style:d(i+1),children:[/*#__PURE__*/_jsx(Icon,{name:p[2]||\"check\"}),/*#__PURE__*/_jsx(\"b\",{style:hStyle,children:p[0]}),/*#__PURE__*/_jsx(\"p\",{children:p[1]})]},i);})})]})})]});}addPropertyControls(TextBlocks,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"split\",\"grid\"],optionTitles:[\"Split\",\"Grid\"],defaultValue:\"split\"},heading:{type:ControlType.String,title:\"Heading\",displayTextArea:true,defaultValue:\"What is an HMIS Comparable Database?\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true,defaultValue:\"A Homeless Management Information System (HMIS) is the shared local database that HUD-funded housing programs use to record client data.\\nVictim service providers are the exception. Federal confidentiality law prohibits them from entering personally identifying information about survivors into a shared HMIS. HUD requires them to use a comparable database instead.\\n!Restore AI is a validated HMIS Comparable Database vendor, listed on HUD Exchange among the validated systems for HUD APR and CAPER reporting.\",description:\"Split: one paragraph per line, start a line with ! for the navy key line. Grid: Title | Text | icon (check, list, lock, chart, user, settings, send).\"},dark:{type:ControlType.Boolean,title:\"Navy\",defaultValue:false},spaceAbove:{type:ControlType.Number,title:\"Space above\",defaultValue:128,min:0,max:320,unit:\"px\"},spaceBelow:{type:ControlType.Number,title:\"Space below\",defaultValue:128,min:0,max:320,unit:\"px\"},headingFont:{type:ControlType.String,title:\"Heading font\",defaultValue:'\"PP Neue Montreal Medium\", \"PP Neue Montreal\", Inter, sans-serif'}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextBlocks\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1440\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextBlocks.map"],"mappings":"kOAkCE,SAAS,EAAK,CAAC,QAAM,CAAC,IAAI,EAAE,KAAK,OAAO,EAAP,CAAa,IAAI,OAAO,EAAe,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,MAAM,IAAI,OAAO,IAAI,GAAG,GAAG,CAAC,EAAe,EAAK,OAAO,CAAC,EAAE,wFAAwF,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,OAAO,EAAe,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,EAAE,2GAA2G,CAAC,EAAe,EAAK,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,MAAM,IAAI,OAAO,IAAI,GAAG,GAAG,CAAC,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