{"version":3,"file":"horizontal_stack_4_images.C_lYCHOd.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/m3vgj0eIr8zrE7qE6Zve/PMJ52D7xVWWYe2lU0Y6k/horizontal_stack_4_images.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";const defaultIcon='<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"1.5\"/><path d=\"M12 8v4l2.5 2.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 700\n */export default function Horizontal_stack_4_images(props){const{heading=\"Audit in real time\",headingColor=\"#0A2540\",description=\"Easily review your accounting entries and prepare for audits. Revenue Recognition makes it seamless to trace each recognised and deferred revenue amount back to the underlying customers and invoices.\",descriptionColor=\"#425466\",backgroundColor=\"#FFFFFF\",verticalPadding=80,horizontalPadding=24,dividerColor=\"#E6E6E9\",captionColor=\"#425466\",iconColor=\"#635BFF\",iconBorderColor=\"#E6E6E9\",iconSize=24,card1Image,card1Caption=\"Review a detailed breakdown of monthly activity\",card1Icon,card2Image,card2Caption=\"Identify which customers were billed\",card2Icon,card3Image,card3Caption=\"Track how a particular customer paid\",card3Icon,card4Image,card4Caption=\"Understand how transactions were categorised\",card4Icon}=props;const containerRef=useRef(null);const[layoutWidth,setLayoutWidth]=useState(1200);useEffect(()=>{const el=containerRef.current;if(!el)return;const measure=()=>{const containerW=el.getBoundingClientRect().width;const windowW=typeof window!==\"undefined\"?window.innerWidth:1200;const w=Math.max(containerW,windowW);if(w>0)setLayoutWidth(w);};measure();const ro=new ResizeObserver(()=>{requestAnimationFrame(measure);});ro.observe(el);const onResize=()=>requestAnimationFrame(measure);window.addEventListener(\"resize\",onResize);return()=>{ro.disconnect();window.removeEventListener(\"resize\",onResize);};},[]);const isMobile=layoutWidth<550;const isTablet=layoutWidth>=550&&layoutWidth<900;const cards=[{image:card1Image,caption:card1Caption,icon:card1Icon},{image:card2Image,caption:card2Caption,icon:card2Icon},{image:card3Image,caption:card3Caption,icon:card3Icon},{image:card4Image,caption:card4Caption,icon:card4Icon}];const renderIcon=iconSvg=>{if(!iconSvg)return null;return /*#__PURE__*/_jsx(\"div\",{style:{width:iconSize+16,height:iconSize+16,borderRadius:8,border:`1px solid ${iconBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:iconColor,flexShrink:0,marginBottom:12,backgroundColor:\"#FFFFFF\"},dangerouslySetInnerHTML:{__html:iconSvg}});};const renderCard=(card,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"4 / 3\",borderRadius:10,border:`1px solid ${dividerColor}`,overflow:\"hidden\",backgroundColor:\"#F6F9FC\",boxShadow:\"0 2px 8px rgba(0,0,0,0.04)\"},children:card.image?/*#__PURE__*/_jsx(\"img\",{src:card.image,alt:card.caption,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#CBD5E0\",fontSize:13},children:\"No image\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:20},children:[renderIcon(card.icon),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:isMobile?14:15,lineHeight:1.5,color:captionColor,margin:0,fontWeight:400},children:card.caption})]})]},index);const renderDesktop=()=>{const items=[];cards.forEach((card,i)=>{if(i>0){items.push(/*#__PURE__*/_jsx(\"div\",{style:{width:1,backgroundColor:dividerColor,alignSelf:\"stretch\",flexShrink:0,margin:\"0 24px\"}},`d-${i}`));}items.push(renderCard(card,i));});return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",marginTop:48},children:items});};const renderTablet=()=>/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:40},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0},children:renderCard(cards[0],0)}),/*#__PURE__*/_jsx(\"div\",{style:{width:1,backgroundColor:dividerColor,alignSelf:\"stretch\",flexShrink:0,margin:\"0 24px\"}}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0},children:renderCard(cards[1],1)})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:1,backgroundColor:dividerColor,margin:\"32px 0\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0},children:renderCard(cards[2],2)}),/*#__PURE__*/_jsx(\"div\",{style:{width:1,backgroundColor:dividerColor,alignSelf:\"stretch\",flexShrink:0,margin:\"0 24px\"}}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0},children:renderCard(cards[3],3)})]})]});const renderMobile=()=>/*#__PURE__*/_jsx(\"div\",{style:{marginTop:32},children:cards.map((card,i)=>/*#__PURE__*/_jsxs(\"div\",{children:[i>0&&/*#__PURE__*/_jsx(\"div\",{style:{height:1,backgroundColor:dividerColor,margin:\"28px 0\"}}),renderCard(card,i)]},i))});return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",backgroundColor,padding:`${verticalPadding}px ${horizontalPadding}px`,boxSizing:\"border-box\",fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1200,margin:\"0 auto\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:isMobile?28:isTablet?34:42,fontWeight:600,color:headingColor,margin:0,lineHeight:1.15,letterSpacing:\"-0.025em\"},children:heading}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:isMobile?16:18,lineHeight:1.65,color:descriptionColor,margin:\"16px 0 0 0\",maxWidth:720},children:description}),isMobile?renderMobile():isTablet?renderTablet():renderDesktop()]})});}addPropertyControls(Horizontal_stack_4_images,{heading:{title:\"Heading\",type:ControlType.String,defaultValue:\"Audit in real time\"},headingColor:{title:\"Heading Color\",type:ControlType.Color,defaultValue:\"#0A2540\"},description:{title:\"Description\",type:ControlType.String,defaultValue:\"Easily review your accounting entries and prepare for audits. Revenue Recognition makes it seamless to trace each recognised and deferred revenue amount back to the underlying customers and invoices.\",displayTextArea:true},descriptionColor:{title:\"Description Color\",type:ControlType.Color,defaultValue:\"#425466\"},backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#FFFFFF\"},verticalPadding:{title:\"V. Padding\",type:ControlType.Number,defaultValue:80,min:0,max:200,step:4},horizontalPadding:{title:\"H. Padding\",type:ControlType.Number,defaultValue:24,min:0,max:100,step:4},dividerColor:{title:\"Divider Color\",type:ControlType.Color,defaultValue:\"#E6E6E9\"},captionColor:{title:\"Caption Color\",type:ControlType.Color,defaultValue:\"#425466\"},iconColor:{title:\"Icon Color\",type:ControlType.Color,defaultValue:\"#635BFF\"},iconBorderColor:{title:\"Icon Border\",type:ControlType.Color,defaultValue:\"#E6E6E9\"},iconSize:{title:\"Icon Size\",type:ControlType.Number,defaultValue:24,min:16,max:48,step:2},card1Image:{title:\"Card 1 Image\",type:ControlType.Image},card1Caption:{title:\"Card 1 Caption\",type:ControlType.String,defaultValue:\"Review a detailed breakdown of monthly activity\"},card1Icon:{title:\"Card 1 Icon SVG\",type:ControlType.String,defaultValue:\"\",displayTextArea:true},card2Image:{title:\"Card 2 Image\",type:ControlType.Image},card2Caption:{title:\"Card 2 Caption\",type:ControlType.String,defaultValue:\"Identify which customers were billed\"},card2Icon:{title:\"Card 2 Icon SVG\",type:ControlType.String,defaultValue:\"\",displayTextArea:true},card3Image:{title:\"Card 3 Image\",type:ControlType.Image},card3Caption:{title:\"Card 3 Caption\",type:ControlType.String,defaultValue:\"Track how a particular customer paid\"},card3Icon:{title:\"Card 3 Icon SVG\",type:ControlType.String,defaultValue:\"\",displayTextArea:true},card4Image:{title:\"Card 4 Image\",type:ControlType.Image},card4Caption:{title:\"Card 4 Caption\",type:ControlType.String,defaultValue:\"Understand how transactions were categorised\"},card4Icon:{title:\"Card 4 Icon SVG\",type:ControlType.String,defaultValue:\"\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Horizontal_stack_4_images\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1200\",\"framerIntrinsicHeight\":\"700\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./horizontal_stack_4_images.map"],"mappings":"wMAKG,SAAwB,EAA0B,EAAM,CAAC,GAAK,CAAC,UAAQ,qBAAqB,eAAa,UAAU,cAAY,0MAA0M,mBAAiB,UAAU,kBAAgB,UAAU,kBAAgB,GAAG,oBAAkB,GAAG,eAAa,UAAU,eAAa,UAAU,YAAU,UAAU,kBAAgB,UAAU,WAAS,GAAG,aAAW,eAAa,kDAAkD,YAAU,aAAW,eAAa,uCAAuC,YAAU,aAAW,eAAa,uCAAuC,YAAU,aAAW,eAAa,+CAA+C,aAAW,EAAY,EAAaA,EAAO,KAAK,CAAM,CAAC,EAAY,GAAgBC,EAAS,KAAK,CAAC,MAAc,CAAC,IAAM,EAAG,EAAa,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,MAAY,CAAC,IAAM,EAAW,EAAG,uBAAuB,CAAC,MAAY,EAAe,IAAS,OAA8B,KAAlB,EAAO,WAAsB,EAAE,KAAK,IAAI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