{"version":3,"file":"PipedriveForm.DQg4oMSK.mjs","names":["Framer.useLocaleInfo","useRef","useMemo","useState","useCallback","__esmMin","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","te","_e","p","c","init_jsx_runtime","ce","de","init_framer_BikQVKhx","useLocaleInfo","addPropertyControls","ControlType","hasText","value","isPipedriveFormUrl","parsed","url","normalizeSourceValue","isOfficialPipedriveLoaderUrl","LOADER_SRC","extractPipedriveUrlFromSnippet","html","dataMatch","scriptMatch","candidateUrl","loaderUrl","PipedriveForm","props","useLocaleInfoSafe","localeInfo","hostRef","htmlFrameRef","resolvedFallbackHeight","fallbackH","fallbackHeight","resolvedTitle","title","iframeTitle","htmlHeight","setHtmlHeight","pipedriveHeight","setPipedriveHeight","pipedriveHasMeasuredContent","setPipedriveHasMeasuredContent","normalizedSource","source","normalizedSourceEN","sourceEN","italianFormUrl","formUrl","formURL","italianHtml","htmlEmbed","hTML","englishFormUrl","formUrlEN","englishHtml","htmlEmbedEN","localeCode","code","isEnglishLocale","localeSource","localeFormUrl","localeHtml","localeHasConfig","effectiveSource","effectiveFormUrl","trimmedHtml","usePipedriveLoader","pipedriveUrlFromSnippet","shouldUsePipedriveLoader","loaderFormUrl","updateHtmlHeight","nextHeight","safeHeight","MAX_EMBED_HEIGHT","MIN_EMBED_HEIGHT","current","updatePipedriveHeight","rounded","host","wrapper","script","observedFrame","frameResizeObserver","readFrameHeight","frame","attachToCurrentFrame","mutationObserver","timerA","timerB","timerC","onMessage","currentWindow","event","payload","maybeType","maybeHeight","htmlSrcDoc","style","init_PipedriveForm","urlFromControls"],"sources":["https:/framerusercontent.com/modules/KUkMT9iKCYqmMMkJFvV6/3YWr8xtaa1RVNIiT1Cmm/PipedriveForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import*as Framer from\"framer\";import{addPropertyControls,ControlType}from\"framer\";// User request: update existing PipedriveForm in place, keep current export/file and URL behavior, add URL/HTML source mode, isolate HTML embeds in iframe srcDoc with safe sandbox, keep sizing/styling compatibility, support safe resize messaging, and keep SSR/canvas safe with minimal controls.\n// Script ufficiale Pipedrive: crea l'iframe del form e ne gestisce l'altezza\nconst LOADER_SRC=\"https://webforms.pipedrive.com/f/loader\";const MIN_EMBED_HEIGHT=120;const MAX_EMBED_HEIGHT=2e4;function hasText(value){return typeof value===\"string\"&&value.trim().length>0;}function isPipedriveFormUrl(url){try{const parsed=new URL(url);return(parsed.protocol===\"https:\"||parsed.protocol===\"http:\")&&parsed.hostname.toLowerCase()===\"webforms.pipedrive.com\"&&parsed.pathname.startsWith(\"/f/\");}catch{return false;}}function normalizeSourceValue(value){const normalized=typeof value===\"string\"?value.trim().toLowerCase():\"\";return normalized===\"html\"?\"html\":\"url\";}function isOfficialPipedriveLoaderUrl(url){return url.trim().toLowerCase()===LOADER_SRC;}function extractPipedriveUrlFromSnippet(html){if(!hasText(html))return null;const dataMatch=html.match(/data-pd-webforms\\s*=\\s*[\"']([^\"']+)[\"']/i);const scriptMatch=html.match(/<script[^>]+src\\s*=\\s*[\"']([^\"']+)[\"'][^>]*>/i);if(!dataMatch||!scriptMatch)return null;const candidateUrl=dataMatch[1]?.trim();const loaderUrl=scriptMatch[1]?.trim();if(!candidateUrl||!loaderUrl)return null;if(!isOfficialPipedriveLoaderUrl(loaderUrl))return null;return isPipedriveFormUrl(candidateUrl)?candidateUrl:null;}/**\n * Pipedrive Form\n *\n * Incorpora un web form Pipedrive. L'altezza segue quella del form.\n *\n * @framerIntrinsicWidth 560\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PipedriveForm(props){const{source=\"URL\",sourceEN=\"URL\",formUrl,formURL,htmlEmbed=\"\",hTML=\"\",formUrlEN=\"\",htmlEmbedEN=\"\",iframeTitle=\"Embedded form\",title,fallbackHeight=633,fallbackH,style}=props;const useLocaleInfoSafe=Framer.useLocaleInfo;const localeInfo=useLocaleInfoSafe?useLocaleInfoSafe():undefined;const hostRef=useRef(null);const htmlFrameRef=useRef(null);const resolvedFallbackHeight=useMemo(()=>typeof fallbackH===\"number\"?fallbackH:fallbackHeight,[fallbackH,fallbackHeight]);const resolvedTitle=useMemo(()=>hasText(title)?title.trim():iframeTitle,[iframeTitle,title]);const[htmlHeight,setHtmlHeight]=useState(resolvedFallbackHeight);const[pipedriveHeight,setPipedriveHeight]=useState(resolvedFallbackHeight);const[pipedriveHasMeasuredContent,setPipedriveHasMeasuredContent]=useState(false);const normalizedSource=useMemo(()=>normalizeSourceValue(typeof source===\"string\"?source:\"url\"),[source]);const normalizedSourceEN=useMemo(()=>normalizeSourceValue(typeof sourceEN===\"string\"?sourceEN:\"url\"),[sourceEN]);const italianFormUrl=useMemo(()=>{if(hasText(formUrl))return formUrl.trim();if(hasText(formURL))return formURL.trim();return\"\";},[formURL,formUrl]);const italianHtml=useMemo(()=>{if(hasText(htmlEmbed))return htmlEmbed.trim();if(hasText(hTML))return hTML.trim();return\"\";},[hTML,htmlEmbed]);const englishFormUrl=useMemo(()=>hasText(formUrlEN)?formUrlEN.trim():\"\",[formUrlEN]);const englishHtml=useMemo(()=>hasText(htmlEmbedEN)?htmlEmbedEN.trim():\"\",[htmlEmbedEN]);const localeCode=useMemo(()=>{const code=localeInfo?.activeLocale?.code;return typeof code===\"string\"?code.toLowerCase():\"\";},[localeInfo]);const localeMode=useMemo(()=>{if(/^en(?:-|$)/i.test(localeCode))return\"en\";if(/^it(?:-|$)/i.test(localeCode))return\"it\";return\"it\";},[localeCode]);const isEnglishLocale=localeMode===\"en\";const localeSource=isEnglishLocale?normalizedSourceEN:normalizedSource;const localeFormUrl=isEnglishLocale?englishFormUrl:italianFormUrl;const localeHtml=isEnglishLocale?englishHtml:italianHtml;const localeHasConfig=useMemo(()=>{if(!isEnglishLocale)return true;return localeSource===\"url\"?hasText(localeFormUrl):hasText(localeHtml);},[isEnglishLocale,localeFormUrl,localeHtml,localeSource]);const effectiveSource=localeHasConfig?localeSource:normalizedSource;const effectiveFormUrl=localeHasConfig?localeFormUrl:italianFormUrl;const trimmedHtml=localeHasConfig?localeHtml:italianHtml;const usePipedriveLoader=useMemo(()=>effectiveSource===\"url\"?isPipedriveFormUrl(effectiveFormUrl):false,[effectiveFormUrl,effectiveSource]);const pipedriveUrlFromSnippet=useMemo(()=>extractPipedriveUrlFromSnippet(trimmedHtml),[trimmedHtml]);const shouldUsePipedriveLoader=useMemo(()=>{if(effectiveSource===\"url\")return usePipedriveLoader;return Boolean(pipedriveUrlFromSnippet);},[effectiveSource,pipedriveUrlFromSnippet,usePipedriveLoader]);const loaderFormUrl=useMemo(()=>{if(effectiveSource===\"url\")return effectiveFormUrl;return pipedriveUrlFromSnippet??\"\";},[effectiveFormUrl,effectiveSource,pipedriveUrlFromSnippet]);const updateHtmlHeight=useCallback(nextHeight=>{if(!Number.isFinite(nextHeight))return;const safeHeight=Math.min(MAX_EMBED_HEIGHT,Math.max(MIN_EMBED_HEIGHT,Math.round(nextHeight)));startTransition(()=>{setHtmlHeight(current=>current!==safeHeight?safeHeight:current);});},[]);const updatePipedriveHeight=useCallback(nextHeight=>{if(!Number.isFinite(nextHeight))return;const rounded=Math.round(nextHeight);if(rounded<=0)return;const safeHeight=Math.min(MAX_EMBED_HEIGHT,Math.max(1,rounded));startTransition(()=>{setPipedriveHeight(current=>current!==safeHeight?safeHeight:current);setPipedriveHasMeasuredContent(true);});},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const host=hostRef.current;if(!host)return;if(!shouldUsePipedriveLoader||!loaderFormUrl){host.innerHTML=\"\";return;}// Ricrea il contenitore a ogni cambio di URL, poi carica il loader\nhost.innerHTML=\"\";const wrapper=document.createElement(\"div\");wrapper.className=\"pipedriveWebForms\";wrapper.setAttribute(\"data-pd-webforms\",loaderFormUrl);const script=document.createElement(\"script\");script.src=LOADER_SRC;script.async=true;wrapper.appendChild(script);host.appendChild(wrapper);return()=>{host.innerHTML=\"\";};},[loaderFormUrl,shouldUsePipedriveLoader]);useEffect(()=>{if(typeof window===\"undefined\")return;if(!shouldUsePipedriveLoader)return;const host=hostRef.current;if(!host)return;startTransition(()=>{setPipedriveHasMeasuredContent(false);setPipedriveHeight(resolvedFallbackHeight);});let observedFrame=null;let frameResizeObserver=null;const readFrameHeight=frame=>{updatePipedriveHeight(frame.getBoundingClientRect().height||frame.offsetHeight);};const attachToCurrentFrame=()=>{const frame=host.querySelector(\"iframe\");if(!(frame instanceof HTMLIFrameElement))return;if(observedFrame===frame)return;frameResizeObserver?.disconnect();observedFrame=frame;frameResizeObserver=new ResizeObserver(()=>{if(!observedFrame)return;readFrameHeight(observedFrame);});frameResizeObserver.observe(frame);readFrameHeight(frame);};const mutationObserver=new MutationObserver(()=>{attachToCurrentFrame();});mutationObserver.observe(host,{childList:true,subtree:true,attributes:true});const timerA=window.setTimeout(attachToCurrentFrame,250);const timerB=window.setTimeout(attachToCurrentFrame,1e3);const timerC=window.setTimeout(attachToCurrentFrame,2500);attachToCurrentFrame();return()=>{window.clearTimeout(timerA);window.clearTimeout(timerB);window.clearTimeout(timerC);frameResizeObserver?.disconnect();mutationObserver.disconnect();observedFrame=null;};},[resolvedFallbackHeight,shouldUsePipedriveLoader,updatePipedriveHeight,loaderFormUrl]);useEffect(()=>{if(effectiveSource!==\"html\"||shouldUsePipedriveLoader)return;startTransition(()=>setHtmlHeight(resolvedFallbackHeight));},[effectiveSource,resolvedFallbackHeight,shouldUsePipedriveLoader,trimmedHtml]);useEffect(()=>{if(typeof window===\"undefined\")return;if(effectiveSource!==\"html\"||shouldUsePipedriveLoader)return;const onMessage=event=>{const currentWindow=htmlFrameRef.current?.contentWindow;if(!currentWindow||event.source!==currentWindow)return;const payload=event.data;if(!payload||typeof payload!==\"object\")return;const maybeType=\"type\"in payload&&typeof payload.type===\"string\"?payload.type:\"\";const maybeHeight=\"height\"in payload&&typeof payload.height===\"number\"?payload.height:null;if(maybeType!==\"framerEmbedResize\"||maybeHeight===null)return;updateHtmlHeight(maybeHeight);};window.addEventListener(\"message\",onMessage);return()=>window.removeEventListener(\"message\",onMessage);},[effectiveSource,shouldUsePipedriveLoader,updateHtmlHeight]);const htmlSrcDoc=useMemo(()=>{if(!trimmedHtml)return\"\";return`<!doctype html>\n<html>\n  <head>\n    <meta charset=\"utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <style>\n      html, body { margin: 0; padding: 0; width: 100%; background: transparent; }\n      body { overflow-x: hidden; }\n      * { box-sizing: border-box; max-width: 100%; }\n      #framer-embed-root { display: flow-root; width: 100%; }\n    </style>\n  </head>\n  <body>\n    <div id=\"framer-embed-root\">${trimmedHtml}</div>\n    <script>\n      (function () {\n        var sent = 0\n        var minHeight = ${MIN_EMBED_HEIGHT}\n        var maxHeight = ${MAX_EMBED_HEIGHT}\n        var root = document.getElementById(\"framer-embed-root\")\n        function sendHeight() {\n          if (!root) return\n          var rectHeight = root.getBoundingClientRect().height || 0\n          var scrollHeight = root.scrollHeight || 0\n          var offsetHeight = root.offsetHeight || 0\n          var height = Math.max(rectHeight, scrollHeight, offsetHeight)\n          if (!isFinite(height)) return\n          if (height < minHeight) height = minHeight\n          if (height > maxHeight) height = maxHeight\n          if (Math.abs(height - sent) < 1) return\n          sent = height\n          window.parent.postMessage({ type: \"framerEmbedResize\", height: height }, \"*\")\n        }\n        var observer = new ResizeObserver(sendHeight)\n        if (root) observer.observe(root)\n        var mutation = new MutationObserver(sendHeight)\n        mutation.observe(document.body, { childList: true, subtree: true, attributes: true, characterData: true })\n        window.addEventListener(\"load\", sendHeight)\n        window.addEventListener(\"resize\", sendHeight)\n        setTimeout(sendHeight, 300)\n        setTimeout(sendHeight, 1000)\n        setTimeout(sendHeight, 2500)\n        sendHeight()\n      })()\n    </script>\n  </body>\n</html>`;},[trimmedHtml]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .pd-form-host, .pd-form-host .pipedriveWebForms { width: 100%; }\n                .pd-form-host iframe { width: 100% !important; border: 0; display: block; }\n            `}),shouldUsePipedriveLoader?/*#__PURE__*/_jsx(\"div\",{ref:hostRef,className:\"pd-form-host\",\"data-pd-height\":pipedriveHeight,style:{minHeight:pipedriveHasMeasuredContent?undefined:resolvedFallbackHeight}}):effectiveSource===\"url\"&&hasText(effectiveFormUrl)?/*#__PURE__*/_jsx(\"iframe\",{title:resolvedTitle,src:effectiveFormUrl,style:{width:\"100%\",border:0,display:\"block\",height:resolvedFallbackHeight}}):effectiveSource===\"url\"?/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minHeight:resolvedFallbackHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",border:\"1px dashed #EEEEEE\",background:\"#F5F5F5\",color:\"#666666\",padding:16,textAlign:\"center\"},children:\"Add a form URL to render your embed.\"}):trimmedHtml?/*#__PURE__*/_jsx(\"iframe\",{ref:htmlFrameRef,title:resolvedTitle,srcDoc:htmlSrcDoc,sandbox:\"allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-scripts allow-downloads\",style:{width:\"100%\",border:0,display:\"block\",height:htmlHeight}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minHeight:resolvedFallbackHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",border:\"1px dashed #EEEEEE\",background:\"#F5F5F5\",color:\"#666666\",padding:16,textAlign:\"center\"},children:\"Add trusted HTML embed code to render your form. Some providers may have restrictions when sandboxed.\"})]});}addPropertyControls(PipedriveForm,{source:{type:ControlType.Enum,title:\"Source IT\",defaultValue:\"URL\",options:[\"URL\",\"HTML\"],displaySegmentedControl:true},formURL:{type:ControlType.String,title:\"Form URL IT\",defaultValue:\"\",placeholder:\"https://webforms.pipedrive.com/f/... or any https:// URL\",hidden:props=>normalizeSourceValue(props.source)!==\"url\"},hTML:{type:ControlType.String,title:\"HTML IT\",defaultValue:\"\",placeholder:\"<iframe ...></iframe> or full embed snippet\",displayTextArea:true,hidden:props=>normalizeSourceValue(props.source)!==\"html\"},sourceEN:{type:ControlType.Enum,title:\"Source EN\",defaultValue:\"URL\",options:[\"URL\",\"HTML\"],displaySegmentedControl:true,description:\"Used when locale is en or en-*. If EN configuration is empty, component falls back to IT settings.\"},formUrlEN:{type:ControlType.String,title:\"Form URL EN\",defaultValue:\"\",placeholder:\"Optional English URL. Empty = fallback to IT config\",hidden:props=>normalizeSourceValue(props.sourceEN)!==\"url\",description:\"Optional English URL. If empty while EN locale is active, IT source and content are used.\"},htmlEmbedEN:{type:ControlType.String,title:\"HTML EN\",defaultValue:\"\",placeholder:\"Optional English HTML. Empty = fallback to IT config\",displayTextArea:true,hidden:props=>normalizeSourceValue(props.sourceEN)!==\"html\",description:\"Optional English HTML embed. If empty while EN locale is active, IT source and content are used.\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Embedded form\",placeholder:\"Accessible iframe title\",hidden:props=>{const urlFromControls=hasText(props.formUrl)?props.formUrl:hasText(props.formURL)?props.formURL:\"\";return normalizeSourceValue(props.source)===\"url\"&&isPipedriveFormUrl(urlFromControls);}},fallbackH:{type:ControlType.Number,title:\"Fallback H\",defaultValue:633,min:120,max:2e4,step:1,unit:\"px\",hidden:props=>{const urlFromControls=hasText(props.formUrl)?props.formUrl:hasText(props.formURL)?props.formURL:\"\";return normalizeSourceValue(props.source)===\"url\"&&isPipedriveFormUrl(urlFromControls);}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PipedriveForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"560\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PipedriveForm.map"],"mappings":"A,2OAEiH,SAASsB,EAAQ,EAAM,CAAC,OAAO,OAAOC,GAAQ,UAAUA,EAAM,KAAK,CAAC,C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