{"version":3,"file":"text_section_cta.CdeLmsZb.mjs","names":["useRef","p"],"sources":["https:/framerusercontent.com/modules/Gp9uBPDLD6jFzPLYGvtd/MClSXdXgWNLA69EkTdZG/text_section_cta.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef}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 * Typography & layout are CSS-driven (clamp + media queries) so first\n * paint on mobile renders at the correct size — no SSR/hydration flash.\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;// Unique class scope so multiple instances don't collide\nconst scopeRef=useRef(\"tsc-\"+Math.random().toString(36).slice(2,8));const scope=scopeRef.current;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100vw\",position:\"relative\",left:\"50%\",marginLeft:\"-50vw\",backgroundColor,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${scope}-inner {\n                    max-width: ${maxWidth}px;\n                    margin: 0 auto;\n                    padding-top: 128px;\n                    padding-bottom: 128px;\n                    padding-left: max(${paddingLeft}px, 0px);\n                    padding-right: max(${paddingRight}px, 0px);\n                    box-sizing: border-box;\n                }\n                .${scope}-content {\n                    display: grid;\n                    gap: 24px;\n                    width: 100%;\n                    max-width: 810px;\n                }\n                .${scope}-subtitle {\n                    font-size: clamp(16px, 1.7vw, 18px);\n                    line-height: 1.4;\n                }\n                .${scope}-heading {\n                    font-size: clamp(28px, 5vw, 38px);\n                    line-height: 1.25;\n                }\n                .${scope}-desc {\n                    font-size: clamp(16px, 1.7vw, 18px);\n                    line-height: 1.6;\n                }\n                @media (max-width: 1023px) {\n                    .${scope}-inner {\n                        padding-top: 96px;\n                        padding-bottom: 96px;\n                        padding-left: max(${paddingLeft}px, 32px);\n                        padding-right: max(${paddingRight}px, 32px);\n                    }\n                }\n                @media (max-width: 639px) {\n                    .${scope}-inner {\n                        padding-top: 64px;\n                        padding-bottom: 64px;\n                        padding-left: max(${paddingLeft}px, 20px);\n                        padding-right: max(${paddingRight}px, 20px);\n                    }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:scope+\"-inner\",children:/*#__PURE__*/_jsxs(\"div\",{className:scope+\"-content\",children:[subtitle&&/*#__PURE__*/_jsx(\"h2\",{className:scope+\"-subtitle\",style:{margin:0,color:accentColor,fontWeight:500,fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif'},children:subtitle}),/*#__PURE__*/_jsx(\"h1\",{className:scope+\"-heading\",style:{margin:0,color:headingColor,fontWeight:500,letterSpacing:\"-0.2px\",fontFamily:'sohne-var, \"Helvetica Neue\", Arial, sans-serif'},children:heading}),description&&/*#__PURE__*/_jsx(\"p\",{className:scope+\"-desc\",style:{margin:0,color:bodyColor,fontWeight:400,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,description:\"Adds to a 20px (mobile) / 32px (tablet) baseline so content always has breathing room.\"},paddingRight:{title:\"Padding Right\",type:ControlType.Number,defaultValue:0,min:0,max:200,step:4,description:\"Adds to a 20px (mobile) / 32px (tablet) baseline so content always has breathing room.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Text_section_cta\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./text_section_cta.map"],"mappings":"iLASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,cAAY,kBAAgB,iBAAe,oBAAkB,mBAAiB,cAAY,eAAa,YAAU,kBAAgB,WAAS,sBAAoB,cAAY,gBAAc,EACxL,EAA3DA,EAAO,OAAO,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAsB,QAAQ,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,QAAQ,SAAS,WAAW,KAAK,MAAM,WAAW,QAAQ,kBAAgB,UAAU,aAAa,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;mBAC5Q,EAAM;iCACQ,EAAS;;;;wCAIF,EAAY;yCACX,EAAa;;;mBAGnC,EAAM;;;;;;mBAMN,EAAM;;;;mBAIN,EAAM;;;;mBAIN,EAAM;;;;;uBAKF,EAAM;;;4CAGe,EAAY;6CACX,EAAa;;;;uBAInC,EAAM;;;4CAGe,EAAY;6CACX,EAAa;;;cAG5C,CAAC,CAAc,EAAK,MAAM,CAAC,UAAU,EAAM,SAAS,SAAsB,EAAM,MAAM,CAAC,UAAU,EAAM,WAAW,SAAS,CAAC,GAAuB,EAAK,KAAK,CAAC,UAAU,EAAM,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