{"version":3,"file":"PipedriveForm.VS1Boidg.mjs","names":["Framer.useLocaleInfo","useRef","useMemo","useState","useCallback"],"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":"2OAEiH,SAAS,EAAQ,EAAM,CAAC,OAAO,OAAO,GAAQ,UAAU,EAAM,KAAK,CAAC,CAAC,OAAO,CAAE,CAAC,SAAS,EAAmB,EAAI,CAAC,GAAG,CAAC,IAAM,EAAO,IAAI,IAAI,CAAG,EAAE,OAAO,EAAO,WAAW,UAAU,EAAO,WAAW,UAAU,EAAO,SAAS,YAAY,IAAI,0BAA0B,EAAO,SAAS,WAAW,KAAK,CAAE,MAAM,CAAC,MAAO,EAAM,CAAC,CAAC,SAAS,EAAqB,EAAM,CAAwE,OAAtD,OAAO,GAAQ,SAAS,EAAM,KAAK,CAAC,CAAC,YAAY,EAAE,MAAuB,OAAO,OAAO,KAAM,CAAC,SAAS,EAA6B,EAAI,CAAC,OAAO,EAAI,KAAK,CAAC,CAAC,YAAY,IAAI,CAAW,CAAC,SAAS,GAA+B,EAAK,CAAC,GAAG,CAAC,EAAQ,CAAI,EAAE,OAAO,KAAK,IAAM,EAAU,EAAK,MAAM,0CAA0C,EAAQ,EAAY,EAAK,MAAM,+CAA+C,EAAE,GAAG,CAAC,GAAW,CAAC,EAAY,OAAO,KAAK,IAAM,EAAa,EAAU,EAAE,EAAE,KAAK,EAAQ,EAAU,EAAY,EAAE,EAAE,KAAK,EAAmG,MAA9F,CAAC,GAAc,CAAC,GAAyB,CAAC,EAA6B,CAAS,EAAS,KAAY,EAAmB,CAAY,EAAE,EAAa,IAAK,CAS9oC,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,MAAM,WAAS,MAAM,UAAQ,UAAQ,YAAU,GAAG,OAAK,GAAG,YAAU,GAAG,cAA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