{"version":3,"file":"PriceLockWarning.BhAUbQec.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/b5BKSIwdDxNXg610uApR/TTaE7KuQXmsHKqW8KmJq/PriceLockWarning.js"],"sourcesContent":["// Create an exact replica of the pricing lock-in component with warning message\nimport{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 any\n */export default function PriceLockWarning(props){const{warningText,mainHeading,priceAmount,subheadingText,bodyText,buttonText,showButton,warningColor,headingColor,bodyTextColor,buttonColor,buttonTextColor,iconColor,warningFont,headingFont,subheadingFont,bodyFont,buttonFont,containerPadding,iconSize,iconShadowSize}=props;const[isMobile,setIsMobile]=useState(false);const[isTablet,setIsTablet]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const handleResize=()=>{setIsMobile(window.innerWidth<640);setIsTablet(window.innerWidth>=640&&window.innerWidth<1024);};handleResize();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);const getResponsiveValue=(mobile,tablet,desktop)=>{if(isMobile)return mobile;if(isTablet)return tablet;return desktop;};// Check if content elements are visible\nconst hasHeading=mainHeading||priceAmount;const hasSubheading=subheadingText;const hasBody=bodyText;const hasButtonVisible=showButton&&buttonText;const hasOtherContent=hasHeading||hasSubheading||hasBody||hasButtonVisible;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",padding:`${containerPadding}px`,position:\"relative\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:hasOtherContent?\"flex-start\":\"center\",gap:`${getResponsiveValue(16,20,24)}px`,maxWidth:isMobile?\"100%\":isTablet?\"540px\":\"600px\",width:\"100%\",height:hasOtherContent?\"auto\":\"100%\"},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"56\",height:\"50\",viewBox:\"0 0 56 50\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:`${iconSize}px`,height:`${iconSize*50/56}px`,filter:`drop-shadow(0 0 ${iconShadowSize}px ${iconColor}) drop-shadow(0 0 ${iconShadowSize/2}px ${iconColor})`},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 28 2 L 52 44 C 52.5 45 52 46.5 50.5 46.5 L 5.5 46.5 C 4 46.5 3.5 45 4 44 L 28 2 Z\",fill:\"none\",stroke:iconColor,strokeWidth:\"3\",strokeLinejoin:\"round\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M28 16V30\",stroke:iconColor,strokeWidth:\"3.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"28\",cy:\"38\",r:\"2\",fill:iconColor})]}),/*#__PURE__*/_jsx(\"div\",{style:{...warningFont,fontSize:isMobile?\"12px\":warningFont.fontSize,color:warningColor,textTransform:\"uppercase\",letterSpacing:\"0.1em\"},children:warningText}),hasHeading&&/*#__PURE__*/_jsxs(\"h1\",{style:{...headingFont,fontSize:isMobile?\"28px\":isTablet?\"34px\":headingFont.fontSize,color:headingColor,margin:0,textAlign:\"center\",wordWrap:\"break-word\",width:\"100%\"},children:[mainHeading,\" \",priceAmount]}),hasSubheading&&/*#__PURE__*/_jsx(\"p\",{style:{...subheadingFont,fontSize:isMobile?\"14px\":subheadingFont.fontSize,color:bodyTextColor,margin:0,textAlign:\"center\",width:\"100%\"},children:subheadingText}),hasBody&&/*#__PURE__*/_jsx(\"p\",{style:{...bodyFont,fontSize:isMobile?\"14px\":bodyFont.fontSize,color:bodyTextColor,margin:0,textAlign:\"center\",maxWidth:isMobile?\"100%\":\"520px\",width:\"100%\"},children:bodyText}),hasButtonVisible&&/*#__PURE__*/_jsxs(\"button\",{style:{...buttonFont,fontSize:isMobile?\"12px\":buttonFont.fontSize,backgroundColor:buttonColor,color:buttonTextColor,border:\"none\",borderRadius:isMobile?\"6px\":\"8px\",padding:`${getResponsiveValue(12,14,16)}px ${getResponsiveValue(24,28,32)}px`,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",gap:isMobile?\"8px\":\"12px\",marginTop:`${getResponsiveValue(12,14,16)}px`,textTransform:\"uppercase\",letterSpacing:\"0.05em\",flexWrap:\"wrap\",justifyContent:\"center\",width:isMobile?\"100%\":\"auto\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:`${getResponsiveValue(16,18,20)}px`,height:`${getResponsiveValue(16,18,20)}px`,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M13 4L19 10L13 16M19 10H1\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),buttonText,/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{transform:\"rotate(180deg)\",width:`${getResponsiveValue(16,18,20)}px`,height:`${getResponsiveValue(16,18,20)}px`,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M13 4L19 10L13 16M19 10H1\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]})]})});}addPropertyControls(PriceLockWarning,{warningText:{type:ControlType.String,title:\"Warning Text\",defaultValue:\"WARNING:\"},mainHeading:{type:ControlType.String,title:\"Main Heading\",defaultValue:\"LOCK-IN YOUR PRICE OF\"},priceAmount:{type:ControlType.String,title:\"Price Amount\",defaultValue:\"$49.99\"},subheadingText:{type:ControlType.String,title:\"Subheading\",defaultValue:\"The price will increase to $147 a month, it's your last chance.\",displayTextArea:true},bodyText:{type:ControlType.String,title:\"Body Text\",defaultValue:\"Hundreds of thousands of students have already joined Hustlers University and are on their way to financial freedom. Join now before the price increases to $147 a month. Don't miss out on this opportunity.\",displayTextArea:true},showButton:{type:ControlType.Boolean,title:\"Show Button\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"JOIN THE REAL WORLD\",hidden:({showButton})=>!showButton},containerPadding:{type:ControlType.Number,title:\"Container Padding\",defaultValue:40,min:0,max:200,step:1,unit:\"px\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:56,min:20,max:200,step:1,unit:\"px\"},iconShadowSize:{type:ControlType.Number,title:\"Icon Shadow Size\",defaultValue:20,min:0,max:100,step:1,unit:\"px\"},warningColor:{type:ControlType.Color,title:\"Warning Color\",defaultValue:\"#FFA500\"},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#FFFFFF\"},bodyTextColor:{type:ControlType.Color,title:\"Body Text Color\",defaultValue:\"#B8C5D6\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#FFA500\",hidden:({showButton})=>!showButton},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#0A1628\",hidden:({showButton})=>!showButton},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFA500\"},warningFont:{type:ControlType.Font,title:\"Warning Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Bold\",letterSpacing:\"0.1em\",lineHeight:\"1em\"}},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Extra Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},subheadingFont:{type:ControlType.Font,title:\"Subheading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"}},bodyFont:{type:ControlType.Font,title:\"Body Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.6em\"}},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Bold\",letterSpacing:\"0.05em\",lineHeight:\"1em\"},hidden:({showButton})=>!showButton}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PriceLockWarning\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PriceLockWarning.map"],"mappings":"iMAIG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,cAAY,cAAY,cAAY,iBAAe,WAAS,aAAW,aAAW,eAAa,eAAa,gBAAc,cAAY,kBAAgB,YAAU,cAAY,cAAY,iBAAe,WAAS,aAAW,mBAAiB,WAAS,kBAAgB,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAC,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAiB,CAAC,EAAY,EAAO,WAAW,IAAI,CAAC,EAAY,EAAO,YAAY,KAAK,EAAO,WAAW,KAAK,EAAiE,OAA9D,GAAc,CAAC,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,EAAG,EAAE,CAAC,CAAC,IAAM,GAAoB,EAAO,EAAO,IAAc,EAAgB,EAAU,EAAgB,EAAc,EAClzB,EAAW,GAAa,EAAkB,EAAc,EAAqB,EAAQ,EAAe,EAAiB,GAAY,EAAiB,EAAgB,GAAY,GAAe,GAAS,EAAiB,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS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