{"version":3,"file":"section_title_description.DEVtT_iq.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/4T9QAUYvWvTniVV9Q6vk/MxgI2gh6TARCu1WDepho/section_title_description.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Section_title_desc(props){const{eyebrow,title,description,eyebrowColor,titleColor,descriptionColor,backgroundColor,textAlign,descriptionMaxWidth}=props;const[windowWidth,setWindowWidth]=useState(1200);useEffect(()=>{setWindowWidth(window.innerWidth);const handleResize=()=>setWindowWidth(window.innerWidth);window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);const isMobile=windowWidth<=809;const titleFontSize=isMobile?34:38;const titleLineHeight=isMobile?\"44px\":\"48px\";const titleLetterSpacing=isMobile?\"-0.1px\":\"-0.2px\";const sidePadding=isMobile?16:0;const font=\"system-ui, -apple-system, BlinkMacSystemFont, sans-serif\";return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor:backgroundColor,display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:1200,paddingLeft:sidePadding,paddingRight:sidePadding,paddingTop:0,paddingBottom:0,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:24,textAlign:textAlign,alignItems:textAlign===\"center\"?\"center\":\"flex-start\"},children:[eyebrow&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:font,fontSize:18,fontWeight:500,lineHeight:\"28px\",letterSpacing:\"0.2px\",color:eyebrowColor},children:eyebrow}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontFamily:font,fontSize:titleFontSize,fontWeight:500,lineHeight:titleLineHeight,letterSpacing:titleLetterSpacing,color:titleColor},children:title}),description&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:font,fontSize:18,fontWeight:300,lineHeight:\"28px\",color:descriptionColor,maxWidth:descriptionMaxWidth,width:\"100%\"},children:description})]})});}Section_title_desc.defaultProps={eyebrow:\"A unified product suite\",title:\"The Naologic enterprise ERP stack\",description:\"Our platform processes payments around the world and is built to help you adapt as rules change - from PCI certification to SCA-ready payments.\",eyebrowColor:\"#635BFF\",titleColor:\"#0A2540\",descriptionColor:\"#425466\",backgroundColor:\"transparent\",textAlign:\"left\",descriptionMaxWidth:810};addPropertyControls(Section_title_desc,{eyebrow:{title:\"Eyebrow\",type:ControlType.String,defaultValue:\"A unified product suite\"},title:{title:\"Title\",type:ControlType.String,defaultValue:\"The Naologic enterprise ERP stack\"},description:{title:\"Description\",type:ControlType.String,defaultValue:\"Our platform processes payments around the world and is built to help you adapt as rules change - from PCI certification to SCA-ready payments.\",displayTextArea:true},eyebrowColor:{title:\"Eyebrow Color\",type:ControlType.Color,defaultValue:\"#635BFF\"},titleColor:{title:\"Title Color\",type:ControlType.Color,defaultValue:\"#0A2540\"},descriptionColor:{title:\"Description Color\",type:ControlType.Color,defaultValue:\"#425466\"},backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"transparent\"},textAlign:{title:\"Text Align\",type:ControlType.Enum,options:[\"left\",\"center\"],optionTitles:[\"Left\",\"Center\"],defaultValue:\"left\"},descriptionMaxWidth:{title:\"Desc Max Width\",type:ControlType.Number,defaultValue:810,min:200,max:1200,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Section_title_desc\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./section_title_description.map"],"mappings":"sMAGG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,cAAY,eAAa,aAAW,mBAAiB,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