{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/RfzvbhThZdJgsb4XXijT/4ZKqR6aiV9rv676gI9TX/Click_1.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({background:\"#0099FF\"});export function mobileView(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const handleMessage=event=>{const iframe=document.querySelector(\"#form-contact\");const heroSection=document.querySelector('div[name=\"Hero Section\"]');const height=event.data// Get the height from the iframe\n;if(height&&height.type===\"height\"){console.log(height.content);if(iframe&&heroSection){iframe.style.height=`${height.content+50}px`;iframe.style.maxHeight=`${height.content+50}px`;heroSection.style.height=height.content<=600?\"880px\":`${height.content+390}px`;}}};let isFirstTime=true;if(isFirstTime){isFirstTime=false;window.addEventListener(\"message\",handleMessage);}return()=>{window.removeEventListener(\"message\",handleMessage);};}},[]);const handleClick=()=>{const targetElement=document.getElementById(\"contact\");if(targetElement){targetElement.scrollIntoView({behavior:\"smooth\"});}};return /*#__PURE__*/_jsx(Component,{...props,onTouchStart:handleClick,onMouseDown:handleClick,onClick:handleClick});};}export function withClick(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const handleMessage=event=>{const iframe=document.querySelector(\"#form-contact\");const heroSection=document.querySelector('div[name=\"Hero Section\"]');const height=event.data// Get the height from the iframe\n;if(height&&height.type===\"height\"){console.log(height.content);if(iframe&&heroSection){iframe.style.height=`${height.content+50}px`;heroSection.style.height=height.content<=600?\"730px\":`${height.content+330}px`;}}};let isFirstTime=true;if(isFirstTime){isFirstTime=false;window.addEventListener(\"message\",handleMessage);}return()=>{window.removeEventListener(\"message\",handleMessage);};}},[]);const handleClick=()=>{const targetElement=document.getElementById(\"contact\");if(targetElement){targetElement.scrollIntoView({behavior:\"smooth\"});}};return /*#__PURE__*/_jsx(Component,{...props,onTouchStart:handleClick,onMouseDown:handleClick,onClick:handleClick});};}export function resizBlogForm(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){const handleMessage=event=>{const iframe=document.querySelector(\"#form-contact\");const height=event.data// Get the height from the iframe\n;console.log(height,height.type);if(height&&height.type===\"height\"){console.log(height.content,iframe);if(iframe){iframe.style.height=`${height.content+50}px`;}}};let isFirstTime=true;if(isFirstTime){isFirstTime=false;window.addEventListener(\"message\",handleMessage);}return()=>{window.removeEventListener(\"message\",handleMessage);};}},[]);const handleClick=()=>{const targetElement=document.getElementById(\"contact\");if(targetElement){targetElement.scrollIntoView({behavior:\"smooth\"});}};return /*#__PURE__*/_jsx(Component,{...props,onTouchStart:handleClick,onMouseDown:handleClick,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"resizBlogForm\":{\"type\":\"reactHoc\",\"name\":\"resizBlogForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mobileView\":{\"type\":\"reactHoc\",\"name\":\"mobileView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClick\":{\"type\":\"reactHoc\",\"name\":\"withClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Click_1.map"],
  "mappings": "kIAA6I,IAAMA,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC,EAAS,SAASC,EAAWC,EAAU,CAAC,OAAOC,GAAO,CAACC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,IAAY,CAAC,IAAMC,EAAcC,GAAO,CAAC,IAAMC,EAAO,SAAS,cAAc,eAAe,EAAQC,EAAY,SAAS,cAAc,0BAA0B,EAAQC,EAAOH,EAAM,KACzcG,GAAQA,EAAO,OAAO,WAAU,QAAQ,IAAIA,EAAO,OAAO,EAAKF,GAAQC,IAAaD,EAAO,MAAM,OAAO,GAAGE,EAAO,QAAQ,OAAOF,EAAO,MAAM,UAAU,GAAGE,EAAO,QAAQ,OAAOD,EAAY,MAAM,OAAOC,EAAO,SAAS,IAAI,QAAQ,GAAGA,EAAO,QAAQ,SAAU,EAAMC,EAAY,GAAK,OAAGA,IAAaA,EAAY,GAAMN,EAAO,iBAAiB,UAAUC,CAAa,GAAS,IAAI,CAACD,EAAO,oBAAoB,UAAUC,CAAa,CAAE,EAAG,EAAE,CAAC,CAAC,EAAE,IAAMM,EAAY,IAAI,CAAC,IAAMC,EAAc,SAAS,eAAe,SAAS,EAAKA,GAAeA,EAAc,eAAe,CAAC,SAAS,QAAQ,CAAC,CAAG,EAAE,OAAoBC,EAAKZ,EAAU,CAAC,GAAGC,EAAM,aAAaS,EAAY,YAAYA,EAAY,QAAQA,CAAW,CAAC,CAAE,CAAE,CACxC,SAASG,EAAcC,EAAU,CAAC,OAAOC,GAAO,CAACC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,IAAY,CAAC,IAAMC,EAAcC,GAAO,CAAC,IAAMC,EAAO,SAAS,cAAc,eAAe,EAAQC,EAAOF,EAAM,KAC/1B,QAAQ,IAAIE,EAAOA,EAAO,IAAI,EAAKA,GAAQA,EAAO,OAAO,WAAU,QAAQ,IAAIA,EAAO,QAAQD,CAAM,EAAKA,IAAQA,EAAO,MAAM,OAAO,GAAGC,EAAO,QAAQ,QAAS,EAAMC,EAAY,GAAK,OAAGA,IAAaA,EAAY,GAAML,EAAO,iBAAiB,UAAUC,CAAa,GAAS,IAAI,CAACD,EAAO,oBAAoB,UAAUC,CAAa,CAAE,EAAG,EAAE,CAAC,CAAC,EAAE,IAAMK,EAAY,IAAI,CAAC,IAAMC,EAAc,SAAS,eAAe,SAAS,EAAKA,GAAeA,EAAc,eAAe,CAAC,SAAS,QAAQ,CAAC,CAAG,EAAE,OAAoBC,EAAKX,EAAU,CAAC,GAAGC,EAAM,aAAaQ,EAAY,YAAYA,EAAY,QAAQA,CAAW,CAAC,CAAE,CAAE",
  "names": ["useStore", "createStore", "mobileView", "Component", "props", "ue", "window", "handleMessage", "event", "iframe", "heroSection", "height", "isFirstTime", "handleClick", "targetElement", "p", "resizBlogForm", "Component", "props", "ue", "window", "handleMessage", "event", "iframe", "height", "isFirstTime", "handleClick", "targetElement", "p"]
}
