{"version":3,"file":"Five.DOLSxcXf.mjs","names":["React.useState","React.useRef"],"sources":["https:/framerusercontent.com/modules/AXs5fK6SCGUk6k0FYMgo/4V4Np5LwRLkLJFGbbo3U/Five.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Five Disciplines — Restrata bento grid\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */// Returns a breakpoint string instead of a raw width, and only re-renders\n// when the breakpoint actually changes. A small hysteresis band around each\n// threshold prevents the feedback loop (layout change -> scrollbar/height\n// change -> width change -> layout change) that causes flickering.\nfunction useBreakpoint(ref){const[bp,setBp]=React.useState(\"desktop\");const bpRef=React.useRef(bp);React.useEffect(()=>{if(!ref.current)return;const HYST=24;const compute=w=>{const cur=bpRef.current;// hysteresis: stay in the current breakpoint near the edges\nif(cur===\"mobile\"&&w<640+HYST)return\"mobile\";if(cur===\"tablet\"&&w>=640-HYST&&w<1024+HYST)return\"tablet\";if(cur===\"desktop\"&&w>=1024-HYST)return\"desktop\";return w<640?\"mobile\":w<1024?\"tablet\":\"desktop\";};let frame=0;const ro=new ResizeObserver(entries=>{const w=entries[0].borderBoxSize?.[0]?.inlineSize??entries[0].contentRect.width;cancelAnimationFrame(frame);frame=requestAnimationFrame(()=>{const next=compute(Math.round(w));if(next!==bpRef.current){bpRef.current=next;setBp(next);}});});ro.observe(ref.current);return()=>{cancelAnimationFrame(frame);ro.disconnect();};},[]);return bp;}export default function FiveDisciplines(props){const{items,image,background,cardColor,featuredColor,tintColor,accent,textColor,mutedColor,headingFont,bodyFont}=props;const ref=React.useRef(null);const bp=useBreakpoint(ref);const mobile=bp===\"mobile\";const tablet=bp===\"tablet\";const pad=mobile?24:tablet?32:36;const radius=16;const numStyle={...bodyFont,fontSize:13,fontWeight:600,letterSpacing:\"0.1em\"};const titleStyle={...headingFont,fontSize:mobile?19:21,lineHeight:1.25,fontWeight:600};const descStyle={...bodyFont,fontSize:mobile?14.5:15,lineHeight:1.55};const featured=items[0];const second=items[1];const rest=items.slice(2);const card=(item,i,bg,tc,mc)=>/*#__PURE__*/_jsxs(\"div\",{style:{background:bg,borderRadius:radius,padding:pad,display:\"flex\",flexDirection:\"column\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{...numStyle,color:accent},children:item.number}),/*#__PURE__*/_jsx(\"div\",{style:{...titleStyle,color:tc},children:item.title}),/*#__PURE__*/_jsx(\"div\",{style:{...descStyle,color:mc},children:item.description})]},i);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{background,padding:mobile?\"48px 20px\":tablet?\"64px 32px\":\"0px\",width:\"100%\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:mobile||tablet?\"1fr\":\"1.45fr 1fr\",gap:20,marginTop:0},children:[/*#__PURE__*/_jsxs(\"div\",{style:{background:featuredColor,borderRadius:radius,padding:pad,display:\"grid\",gridTemplateColumns:mobile?\"1fr\":\"1fr 1fr\",gap:mobile?20:28,alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14},children:[/*#__PURE__*/_jsx(\"div\",{style:{...numStyle,color:accent},children:featured?.number}),/*#__PURE__*/_jsx(\"div\",{style:{...titleStyle,color:\"#FFFFFF\"},children:featured?.title}),/*#__PURE__*/_jsx(\"div\",{style:{...descStyle,color:\"#9DB4BE\"},children:featured?.description})]}),image?.src&&/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt??\"\",style:{width:\"100%\",height:mobile?180:220,objectFit:\"cover\",borderRadius:10,display:\"block\"}})]}),second&&card(second,1,cardColor,textColor,mutedColor)]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:mobile?\"1fr\":tablet?\"1fr 1fr\":`repeat(${Math.max(rest.length,1)}, 1fr)`,gap:20,marginTop:20},children:rest.map((item,i)=>card(item,i,i===rest.length-1?tintColor:cardColor,textColor,mutedColor))})]});}FiveDisciplines.defaultProps={background:\"#FFFFFF\",cardColor:\"#F4F6F6\",featuredColor:\"#12283A\",tintColor:\"#DFF3EF\",accent:\"#0F8378\",textColor:\"#12283A\",mutedColor:\"#5A6E7E\",items:[{number:\"01\",title:\"Enterprise Risk Management\",description:\"ERM design and assessments, security risk assessments, programme design, and assurance reviews.\"},{number:\"02\",title:\"Business Continuity\",description:\"BCMS design, programme assessments, business impact analysis, and business continuity planning.\"},{number:\"03\",title:\"Crisis & Emergency Management\",description:\"Crisis management system design, programme assessments, emergency response plan review and development, and embedded CMT and IMT advisory.\"},{number:\"04\",title:\"Capability Development\",description:\"CMT and IMT training, exercises and simulations, family liaison training, crisis communications training, and role-specific programmes.\"},{number:\"05\",title:\"resilienceOS Enablement\",description:\"Discovery workshops, value and benefit mapping, change programme design, and ROC / GSOC design.\"}]};addPropertyControls(FiveDisciplines,{headingFont:{type:ControlType.Font,title:\"Heading font\",controls:\"extended\",displayFontSize:false,displayTextAlignment:false,defaultFontType:\"sans-serif\"},bodyFont:{type:ControlType.Font,title:\"Body font\",controls:\"extended\",displayFontSize:false,displayTextAlignment:false,defaultFontType:\"sans-serif\"},items:{type:ControlType.Array,title:\"Disciplines\",control:{type:ControlType.Object,controls:{number:{type:ControlType.String},title:{type:ControlType.String},description:{type:ControlType.String,displayTextArea:true}}}},image:{type:ControlType.ResponsiveImage,title:\"Featured image\"},background:{type:ControlType.Color,title:\"Background\"},cardColor:{type:ControlType.Color,title:\"Card\"},featuredColor:{type:ControlType.Color,title:\"Featured card\"},tintColor:{type:ControlType.Color,title:\"Tinted card\"},accent:{type:ControlType.Color,title:\"Accent\"},textColor:{type:ControlType.Color,title:\"Text\"},mutedColor:{type:ControlType.Color,title:\"Muted text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FiveDisciplines\",\"slots\":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