{"version":3,"file":"text_section_cta.ByDROxAW.mjs","names":["useState","p"],"sources":["https:/framerusercontent.com/modules/Gp9uBPDLD6jFzPLYGvtd/VJyuPzNgGLeDXsglXKcr/text_section_cta.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 *\n * Text section with CTA buttons.\n * Outer wrapper uses 100vw full-bleed so the background always\n * stretches edge-to-edge, even inside a constrained Framer container.\n * Inner content is capped at maxWidth and centered with margin auto.\n * Breakpoints follow best practice: mobile < 640, tablet < 1024.\n */export default function Text_section_cta(props){const{subtitle,heading,description,primaryCtaLabel,primaryCtaLink,secondaryCtaLabel,secondaryCtaLink,accentColor,headingColor,bodyColor,backgroundColor,maxWidth,showSecondaryButton,paddingLeft,paddingRight}=props;const[w,setW]=useState(typeof window!==\"undefined\"?window.innerWidth:1200);useEffect(()=>{const h=()=>setW(window.innerWidth);window.addEventListener(\"resize\",h);return()=>window.removeEventListener(\"resize\",h);},[]);const mob=w<640;const tab=w>=640&&w<1024;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100vw\",position:\"relative\",left:\"50%\",marginLeft:\"-50vw\",backgroundColor,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"div\",{style:{maxWidth,margin:\"0 auto\",padding:mob?`64px ${paddingRight}px ${64}px ${paddingLeft}px`:tab?`96px ${paddingRight}px ${96}px ${paddingLeft}px`:`128px ${paddingRight}px ${128}px ${paddingLeft}px`,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:24,maxWidth:mob?\"100%\":810},children:[subtitle&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:accentColor,fontSize:mob?16:18,fontWeight:500,lineHeight:\"24px\",fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif'},children:subtitle}),/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,color:headingColor,fontSize:mob?28:tab?32:38,fontWeight:500,lineHeight:mob?\"36px\":tab?\"40px\":\"48px\",letterSpacing:\"-0.2px\",fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif'},children:heading}),description&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:bodyColor,fontSize:mob?16:18,fontWeight:400,lineHeight:\"28px\",fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif'},children:description}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:\"12px 16px\",alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"a\",{href:primaryCtaLink,style:{display:\"inline-flex\",alignItems:\"center\",gap:6,backgroundColor:accentColor,color:\"#fff\",fontSize:15,fontWeight:425,fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif',borderRadius:16.5,padding:\"3px 12px 6px 16px\",textDecoration:\"none\",lineHeight:\"24px\",whiteSpace:\"nowrap\"},children:[primaryCtaLabel,/*#__PURE__*/_jsx(\"svg\",{width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",style:{marginTop:1},children:/*#__PURE__*/_jsx(\"path\",{d:\"M0 6h11M6.5 1l5 5l-5 5\",stroke:\"#fff\",strokeWidth:\"1.5\"})})]}),showSecondaryButton&&/*#__PURE__*/_jsxs(\"a\",{href:secondaryCtaLink,style:{display:\"inline-flex\",alignItems:\"center\",gap:6,color:accentColor,fontSize:15,fontWeight:425,fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif',textDecoration:\"none\",lineHeight:\"24px\",whiteSpace:\"nowrap\"},children:[secondaryCtaLabel,/*#__PURE__*/_jsx(\"svg\",{width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",style:{marginTop:1},children:/*#__PURE__*/_jsx(\"path\",{d:\"M0 6h11M6.5 1l5 5l-5 5\",stroke:accentColor,strokeWidth:\"1.5\"})})]})]})]})})});}addPropertyControls(Text_section_cta,{subtitle:{title:\"Subtitle\",type:ControlType.String,defaultValue:\"How it works\"},heading:{title:\"Heading\",type:ControlType.String,defaultValue:\"Deep dive into Naologic’s unified ERP stack\"},description:{title:\"Description\",type:ControlType.String,defaultValue:\"Explore specific products and features and how they can benefit your business. Or, if you’re new to payments, read our guides to learn more about the fundamentals.\",displayTextArea:true},primaryCtaLabel:{title:\"Primary CTA\",type:ControlType.String,defaultValue:\"See all features\"},primaryCtaLink:{title:\"Primary Link\",type:ControlType.Link,defaultValue:\"#\"},showSecondaryButton:{title:\"Show Secondary\",type:ControlType.Boolean,defaultValue:true},secondaryCtaLabel:{title:\"Secondary CTA\",type:ControlType.String,defaultValue:\"Read guides\",hidden:p=>!p.showSecondaryButton},secondaryCtaLink:{title:\"Secondary Link\",type:ControlType.Link,defaultValue:\"#\"},accentColor:{title:\"Accent Color\",type:ControlType.Color,defaultValue:\"#9966ff\"},headingColor:{title:\"Heading Color\",type:ControlType.Color,defaultValue:\"#0a2540\"},bodyColor:{title:\"Body Color\",type:ControlType.Color,defaultValue:\"#425466\"},backgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#f6f9fc\"},maxWidth:{title:\"Max Width\",type:ControlType.Number,defaultValue:1200,min:600,max:1600,step:50},paddingLeft:{title:\"Padding Left\",type:ControlType.Number,defaultValue:0,min:0,max:200,step:4},paddingRight:{title:\"Padding Right\",type:ControlType.Number,defaultValue:0,min:0,max:200,step:4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Text_section_cta\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./text_section_cta.map"],"mappings":"sMASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,cAAY,kBAAgB,iBAAe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