{"version":3,"file":"CalcFramer.DsObcTdM.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/4DR19A7rnuizyCghaxYj/PIO1jfLLwWCtgzAtK8ab/CalcFramer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const baseHue=0// Define base hue in degrees\n;const saturation=100// Define saturation percentage\n;const lightness=50// Define lightness percentage\n;export function withCalcWidth1(Component){return function(props){const updatedStyle={...props.style,width:\"calc(100% - 200px)\",backgroundColor:`hsl(${baseHue+20}deg, ${saturation}%, ${lightness}%)`,boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcHeight(Component){return function(props){const updatedStyle={...props.style,height:\"calc(100vh - 120px)\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcHeightBrand(Component){return function(props){const updatedStyle={...props.style,height:\"calc(100vh - 50px)\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcHeightMobile(Component){return function(props){const updatedStyle={...props.style,height:\"340px\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcHeight2(Component){return function(props){const updatedStyle={...props.style,height:\"calc(100vh - 100px)\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcHeight3(Component){return function(props){const updatedStyle={...props.style,minHeight:\"calc(240px + auto)\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcWidth2(Component){return function(props){const updatedStyle={...props.style,width:\"calc(100% - 10px)\",backgroundColor:`hsl(${baseHue+40}deg, ${saturation}%, ${lightness}%)`};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcWidth3(Component){return function(props){const updatedStyle={...props.style,width:\"calc(100% + 50px)\",backgroundColor:`hsl(${baseHue-20}deg, ${saturation}%, ${lightness}%)`};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcWidth4(Component){return function(props){const updatedStyle={...props.style,width:\"calc(50% + 10px)\",backgroundColor:`hsl(${baseHue-40}deg, ${saturation}%, ${lightness}%)`};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withCalcWidth(Component){return props=>{const updatedStyle={...props.style,width:\"calc(100% - 200px)\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}export function withAdjustedHeight(Component){return function(props){const[isDesktop,setIsDesktop]=useState(false);useEffect(()=>{if(typeof window!==\"undefined\"){const handleResize=()=>{setIsDesktop(window.innerWidth>=768);};// Set initial value\nhandleResize();// Listen for resize events\nwindow.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);}},[]);const updatedStyle={...props.style,marginBottom:isDesktop?\"-240px\":\"0\",boxSizing:\"border-box\"};return /*#__PURE__*/_jsx(Component,{...props,style:updatedStyle});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCalcWidth\":{\"type\":\"reactHoc\",\"name\":\"withCalcWidth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcHeight2\":{\"type\":\"reactHoc\",\"name\":\"withCalcHeight2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcWidth2\":{\"type\":\"reactHoc\",\"name\":\"withCalcWidth2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcWidth4\":{\"type\":\"reactHoc\",\"name\":\"withCalcWidth4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcHeightBrand\":{\"type\":\"reactHoc\",\"name\":\"withCalcHeightBrand\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcWidth3\":{\"type\":\"reactHoc\",\"name\":\"withCalcWidth3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcHeight3\":{\"type\":\"reactHoc\",\"name\":\"withCalcHeight3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcHeightMobile\":{\"type\":\"reactHoc\",\"name\":\"withCalcHeightMobile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcHeight\":{\"type\":\"reactHoc\",\"name\":\"withCalcHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAdjustedHeight\":{\"type\":\"reactHoc\",\"name\":\"withAdjustedHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCalcWidth1\":{\"type\":\"reactHoc\",\"name\":\"withCalcWidth1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CalcFramer.map"],"mappings":"kIAGoS,SAAgB,EAAe,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAa,CAAC,GAAG,EAAM,MAAM,OAAO,sBAAsB,UAAU,aAAa,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAa,CAAC,EAAI,SAAgB,EAAoB,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAa,CAAC,GAAG,EAAM,MAAM,OAAO,qBAAqB,UAAU,aAAa,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAa,CAAC,EAA6oD,SAAgB,EAAmB,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAC,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,MAAiB,CAAC,EAAa,EAAO,YAAY,IAAI,EAE5hF,OAD/C,GAAc,CACd,EAAO,iBAAiB,SAAS,EAAa,KAAW,EAAO,oBAAoB,SAAS,EAAa,GAAI,EAAE,CAAC,CAAC,IAAM,EAAa,CAAC,GAAG,EAAM,MAAM,aAAa,EAAU,SAAS,IAAI,UAAU,aAAa,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,EAAa,CAAC,uBALvO,IAAsC"}