{"version":3,"file":"N1Zzm0ZEL.De1qv6O2.mjs","names":["Newsletter02","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/UIm5tPrhJLkx0vOIeDKS/dHEALlXp5WmamEomcOU3/N1Zzm0ZEL.js"],"sourcesContent":["// Generated by Framer (0e6a859)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,forwardLoader,getFonts,runTasksWithYield,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Newsletter02 from\"https://framerusercontent.com/modules/9L2K2r14qy66NTRYUBcz/HxOIpyPqIkVAgsVRKgEA/zQ3y_Vt68.js\";const Newsletter02Fonts=getFonts(Newsletter02);const cycleOrder=[\"VvcsNFGCC\",\"yt3LydlcD\",\"pRRPKswL2\"];const serializationHash=\"framer-9wxIe\";const variantClassNames={pRRPKswL2:\"framer-v-jpxi3x\",VvcsNFGCC:\"framer-v-3qtr0i\",yt3LydlcD:\"framer-v-1uxtv32\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const he_88YrYE=undefined;const QxZygnpY6=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const matchVariant=(...args)=>{for(const arg of args){if(arg&&typeof arg===\"string\")return arg;}return undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Desktop:\"VvcsNFGCC\",Phone:\"pRRPKswL2\",Tablet:\"yt3LydlcD\"};const Variants=motion.create(React.Fragment);const getProps=({ariaLabel,fill,height,id,width,...props})=>{return{...props,he_88YrYE:ariaLabel??props.he_88YrYE,QxZygnpY6:fill??props.QxZygnpY6??\"rgb(255, 255, 255)\",variant:humanReadableVariantMap[props.variant]??props.variant??\"VvcsNFGCC\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,QxZygnpY6,he_88YrYE,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"VvcsNFGCC\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if([\"yt3LydlcD\",\"pRRPKswL2\"].includes(baseVariant))return false;return true;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.section,{...restProps,...gestureHandlers,\"aria-label\":he_88YrYE,className:cx(scopingClassNames,\"framer-3qtr0i\",className,classNames),\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"VvcsNFGCC\",ref:refBinding,style:{...style},...addPropertyOverrides({pRRPKswL2:{\"data-framer-name\":\"Phone\"},yt3LydlcD:{\"data-framer-name\":\"Tablet\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1mojdzy\",\"data-framer-name\":\"CPI Sections Newsletter Shape\",layoutDependency:layoutDependency,layoutId:\"xs7D9umWG\",style:{backgroundColor:QxZygnpY6}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-m39ho6\",\"data-framer-name\":\"Newsletter\",layoutDependency:layoutDependency,layoutId:\"fMoa2uZsR\",style:{backgroundColor:\"var(--token-80e087f6-5904-42c5-a50c-3cc61b5e4ab9, rgb(0, 81, 242))\"},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:477,width:`min(${componentViewport?.width||\"100vw\"} * 0.75, 1200px)`,y:(componentViewport?.y||0)+0+(((componentViewport?.height||666)-0-666)/2+99+0)+-100,...addPropertyOverrides({pRRPKswL2:{width:`min(max(${componentViewport?.width||\"100vw\"} - 40px, 1px), 1200px)`,y:(componentViewport?.y||0)+0+(((componentViewport?.height||856)-0-577)/2+0+0)+40},yt3LydlcD:{width:`min(max(${componentViewport?.width||\"100vw\"} - 80px, 1px), 1200px)`,y:(componentViewport?.y||0)+0+(((componentViewport?.height||799)-0-637)/2+0+0)+60}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-131q526-container\",\"data-framer-name\":\"Newsletter Form\",layoutDependency:layoutDependency,layoutId:\"wI82xayxM-container\",name:\"Newsletter Form\",nodeId:\"wI82xayxM\",rendersWithMotion:true,scopeId:\"N1Zzm0ZEL\",transformTemplate:transformTemplate1,...addPropertyOverrides({pRRPKswL2:{transformTemplate:undefined},yt3LydlcD:{transformTemplate:undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(Newsletter02,{height:\"100%\",id:\"wI82xayxM\",layoutId:\"wI82xayxM\",n9Li41ROW:\"Stay up to date with all the latest\\u2028development from\\u2028CPI and beyond.\",name:\"Newsletter Form\",OT06hkNaR:\"Subscribe to our newsletter\",pHpbYClkv:true,style:{maxWidth:\"100%\",width:\"100%\"},variant:matchVariant(\"MotkhxWRv\"),width:\"100%\",...addPropertyOverrides({pRRPKswL2:{variant:matchVariant(\"FRHaRnos9\")},yt3LydlcD:{variant:matchVariant(\"nZZXR94Wf\")}},baseVariant,gestureVariant)})})})})]})})})});});const css=[\".framer-9wxIe.framer-1klpcmo, .framer-9wxIe .framer-1klpcmo { display: block; }\",\".framer-9wxIe.framer-3qtr0i { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 1200px; }\",\".framer-9wxIe .framer-1mojdzy { flex: none; height: 99px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 100%; }\",\".framer-9wxIe .framer-m39ho6 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 567px; justify-content: center; overflow: visible; padding: 0px; position: relative; scroll-margin-top: 340px; width: 100%; }\",\".framer-9wxIe .framer-131q526-container { flex: none; height: auto; left: 50%; max-width: 1200px; position: absolute; top: -100px; width: 75%; z-index: 1; }\",\".framer-9wxIe.framer-v-1uxtv32.framer-3qtr0i { width: 810px; }\",\".framer-9wxIe.framer-v-1uxtv32 .framer-m39ho6 { height: min-content; padding: 60px 40px 100px 40px; }\",\".framer-9wxIe.framer-v-1uxtv32 .framer-131q526-container, .framer-9wxIe.framer-v-jpxi3x .framer-131q526-container { flex: 1 0 0px; left: unset; position: relative; top: unset; width: 1px; }\",\".framer-9wxIe.framer-v-jpxi3x.framer-3qtr0i { width: 390px; }\",\".framer-9wxIe.framer-v-jpxi3x .framer-m39ho6 { height: min-content; padding: 40px 20px 60px 20px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 666\n * @framerIntrinsicWidth 1200\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"yt3LydlcD\":{\"layout\":[\"fixed\",\"auto\"]},\"pRRPKswL2\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"QxZygnpY6\":\"fill\",\"he_88YrYE\":\"ariaLabel\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerN1Zzm0ZEL=withCSS(Component,css,\"framer-9wxIe\");export default FramerN1Zzm0ZEL;FramerN1Zzm0ZEL.displayName=\"Newsletter Form\";FramerN1Zzm0ZEL.defaultProps={height:666,width:1200};addPropertyControls(FramerN1Zzm0ZEL,{variant:{options:[\"VvcsNFGCC\",\"yt3LydlcD\",\"pRRPKswL2\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],title:\"Variant\",type:ControlType.Enum},QxZygnpY6:{defaultValue:\"rgb(255, 255, 255)\",title:\"Fill\",type:ControlType.Color},he_88YrYE:{optional:true,title:\"Aria Label\",type:ControlType.String},onhe_88YrYEChange:{changes:\"he_88YrYE\",type:ControlType.ChangeHandler}});addFonts(FramerN1Zzm0ZEL,[{explicitInter:true,fonts:[]},...Newsletter02Fonts],{supportsExplicitInterCodegen:true});FramerN1Zzm0ZEL.loader={load:(props,context)=>{return runTasksWithYield([()=>forwardLoader(Newsletter02,{},context)],context);}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerN1Zzm0ZEL\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"1200\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"yt3LydlcD\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"pRRPKswL2\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicHeight\":\"666\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\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