{"version":3,"file":"JetFormEmbed.C7VZNGTC.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/gOfUSbqbPNcMXtxz73as/PzxI15099Jin9o7QMXe6/JetFormEmbed.js"],"sourcesContent":["// User instructions: create an embed for JetForm form where the link is inserted via Framer controls props and it can be customized.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * JetForm Embed\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 500\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function JetFormEmbed(props){const{url,title,backgroundColor,borderRadius,borderColor,borderWidth,allowFullscreen,lazyLoad,allow,useSandbox,sandbox,style}=props;const safeUrl=React.useMemo(()=>{const trimmed=(url||\"\").trim();if(!trimmed)return\"\";// Basic protocol guard: allow only http(s) to avoid accidental javascript: URLs.\nconst lower=trimmed.toLowerCase();if(lower.startsWith(\"http://\")||lower.startsWith(\"https://\"))return trimmed;return\"\";},[url]);const isFixedWidth=!!style&&style.width===\"100%\";const isFixedHeight=!!style&&style.height===\"100%\";const frameStyle={position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:backgroundColor,borderRadius,border:`${borderWidth}px solid ${borderColor}`,...style||{},...isFixedWidth?{}:{minWidth:240},...isFixedHeight?{}:{minHeight:180}};const iframeStyle={position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"};if(!safeUrl){return /*#__PURE__*/_jsx(\"div\",{style:{...frameStyle,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:16,color:\"rgba(0,0,0,0.6)\",fontSize:14,lineHeight:\"1.4em\",textAlign:\"center\"},\"aria-label\":\"JetForm embed placeholder\",children:\"Paste your JetForm public URL in the “URL” property.\"});}return /*#__PURE__*/_jsx(\"div\",{style:frameStyle,\"aria-label\":\"JetForm embed\",children:/*#__PURE__*/_jsx(\"iframe\",{src:safeUrl,title:title,style:iframeStyle,loading:lazyLoad?\"lazy\":\"eager\",allow:allow,sandbox:useSandbox?sandbox||\"\":undefined,allowFullScreen:allowFullscreen})});}addPropertyControls(JetFormEmbed,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://example.com\",placeholder:\"https://…\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"JetForm\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"8px\"},borderWidth:{type:ControlType.Number,title:\"Border\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},lazyLoad:{type:ControlType.Boolean,title:\"Lazy Load\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},allowFullscreen:{type:ControlType.Boolean,title:\"Fullscreen\",defaultValue:false,enabledTitle:\"Allow\",disabledTitle:\"Block\"},allow:{type:ControlType.String,title:\"Allow\",defaultValue:\"payment; clipboard-write\",placeholder:\"camera; microphone; …\"},useSandbox:{type:ControlType.Boolean,title:\"Sandbox\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},sandbox:{type:ControlType.String,title:\"Sandbox Value\",defaultValue:\"\",placeholder:\"e.g. allow-forms allow-scripts allow-same-origin\",hidden:({useSandbox})=>!useSandbox}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JetFormEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerIntrinsicHeight\":\"500\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JetFormEmbed.map"],"mappings":"0KASG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,MAAI,QA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