{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/aYfFqBUFY8UJY4jwCZbm/VGKfvHtWwGHjIZyWfCqr/Form.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function WebAppEmbed({label,lang}){const[domain,setDomain]=React.useState(\"\");React.useEffect(()=>{// This code runs only on the client.\nconst hostname=window.location.hostname;const cleanHostname=hostname.replace(/^www\\./,\"\");const extractedDomain=cleanHostname.split(\".\")[0];setDomain(extractedDomain);console.log(\"Hostname:\",hostname);console.log(\"Cleaned Hostname:\",cleanHostname);console.log(\"Extracted Domain:\",extractedDomain);},[]);// Only render iframe if domain is computed.\nif(!domain)return null;const url=`https://forms.scaile.it/?label=${label}&lang=${lang}&port=${domain}`;console.log(\"Constructed URL:\",url);return /*#__PURE__*/_jsx(\"iframe\",{src:url,style:{width:\"100%\",height:550,border:\"none\"},title:\"Embedded Web App\"});}WebAppEmbed.defaultProps={label:\"general\",lang:\"EN\"};addPropertyControls(WebAppEmbed,{label:{type:ControlType.String,title:\"Label\"},lang:{type:ControlType.String,title:\"Lang\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"WebAppEmbed\":{\"type\":\"reactComponent\",\"name\":\"WebAppEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form.map"],
  "mappings": "2IAAkI,SAASA,EAAY,CAAC,MAAAC,EAAM,KAAAC,CAAI,EAAE,CAAC,GAAK,CAACC,EAAOC,CAAS,EAAQC,EAAS,EAAE,EAE9M,GAFsNC,EAAU,IAAI,CACpO,IAAMC,EAASC,EAAO,SAAS,SAAeC,EAAcF,EAAS,QAAQ,SAAS,EAAE,EAAQG,EAAgBD,EAAc,MAAM,GAAG,EAAE,CAAC,EAAEL,EAAUM,CAAe,EAAE,QAAQ,IAAI,YAAYH,CAAQ,EAAE,QAAQ,IAAI,oBAAoBE,CAAa,EAAE,QAAQ,IAAI,oBAAoBC,CAAe,CAAE,EAAE,CAAC,CAAC,EAC1S,CAACP,EAAO,OAAO,KAAK,IAAMQ,EAAI,kCAAkCV,CAAK,SAASC,CAAI,SAASC,CAAM,GAAG,eAAQ,IAAI,mBAAmBQ,CAAG,EAAsB,EAAK,SAAS,CAAC,IAAIA,EAAI,MAAM,CAAC,MAAM,OAAO,OAAO,IAAI,OAAO,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAE,CAACX,EAAY,aAAa,CAAC,MAAM,UAAU,KAAK,IAAI,EAAEY,EAAoBZ,EAAY,CAAC,MAAM,CAAC,KAAKa,EAAY,OAAO,MAAM,OAAO,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,MAAM,CAAC,CAAC",
  "names": ["WebAppEmbed", "label", "lang", "domain", "setDomain", "ye", "ue", "hostname", "window", "cleanHostname", "extractedDomain", "url", "addPropertyControls", "ControlType"]
}
