{"version":3,"file":"TermlyEmbed.BcMrFhLI.mjs","names":["React.useRef","React.useEffect","_jsxs","_jsx","__esmMin","de","init_npm_react_18_3_1","ce","window","init_jsx_runtime","p","c","init_ssg_sandbox_shims","init_framer_BWzg2IRg","ControlType","addPropertyControls","TermlyEmbed","props","documentId","textColor","linkColor","headingColor","ref","existing","run","w","s","css","init_TermlyEmbed"],"sources":["https:/framerusercontent.com/modules/keP7kJJwPDxdCbbiyyVU/f0zPzKQuUCi7WdKu3Bui/TermlyEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Embeds a live Termly document (privacy policy, terms of use, etc.).\n * @framerIntrinsicWidth 760\n * @framerIntrinsicHeight 600\n */export default function TermlyEmbed(props){const{documentId,textColor,linkColor,headingColor}=props;const ref=React.useRef(null);React.useEffect(()=>{if(typeof document===\"undefined\")return;const existing=document.querySelector(\"script[data-termly-embed]\");const run=()=>{const w=window;if(w.TermlyEmbed&&w.TermlyEmbed.init){try{w.TermlyEmbed.init();}catch(e){}}};if(existing){existing.remove();}const s=document.createElement(\"script\");s.src=\"https://app.termly.io/embed-policy.min.js\";s.async=true;s.setAttribute(\"data-termly-embed\",\"true\");s.onload=run;document.body.appendChild(s);return()=>{s.remove();};},[documentId]);const css=`\n    .termly-wrap, .termly-wrap * { font-family: \"Lora\", Georgia, serif !important; color: ${textColor} !important; background: transparent !important; font-size: 18px !important; line-height: 1.75 !important; }\n    .termly-wrap [data-custom-class=\"title\"], .termly-wrap [data-custom-class=\"title\"] * { display:none !important; }\n    .termly-wrap [data-custom-class=\"subtitle\"], .termly-wrap [data-custom-class=\"subtitle\"] * { display:none !important; }\n    .termly-wrap [data-custom-class=\"heading_1\"], .termly-wrap [data-custom-class=\"heading_1\"] * { font-family: \"Oswald\", sans-serif !important; font-size: 30px !important; font-weight: 600 !important; color: ${headingColor} !important; line-height: 1.25 !important; }\n    .termly-wrap [data-custom-class=\"heading_2\"], .termly-wrap [data-custom-class=\"heading_2\"] * { font-family: \"Oswald\", sans-serif !important; font-size: 21px !important; font-weight: 500 !important; color: ${textColor} !important; }\n    .termly-wrap a, .termly-wrap a * { color: ${linkColor} !important; text-decoration: underline !important; word-break: break-word; }\n    .termly-wrap ul { padding-left: 24px; }\n    .termly-wrap table { width: 100%; border-collapse: collapse; }\n    .termly-wrap td, .termly-wrap th { border-top: 1px solid rgba(176,141,60,0.4); padding: 12px 8px; vertical-align: top; text-align: left; }\n    `;return /*#__PURE__*/_jsxs(\"div\",{className:\"termly-wrap\",style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"div\",{ref:ref,name:\"termly-embed\",\"data-id\":documentId})]});}TermlyEmbed.defaultProps={documentId:\"767a2381-0f87-453e-9533-cef0c7d5769f\",textColor:\"#000000\",linkColor:\"#5a1a1f\",headingColor:\"#5a1a1f\"};addPropertyControls(TermlyEmbed,{documentId:{type:ControlType.String,title:\"Termly ID\"},textColor:{type:ControlType.Color,title:\"Text\"},linkColor:{type:ControlType.Color,title:\"Links\"},headingColor:{type:ControlType.Color,title:\"Headings\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TermlyEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"760\",\"framerIntrinsicHeight\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TermlyEmbed.map"],"mappings":"A,sMAIG,SAAwBgB,EAAYC,EAAM,CAAC,GAAK,CAACC,aAAWC,YAAUC,YAAUC,gBAAcJ,EAAYK,EAAItB,EAAa,IAAI,EAAEC,MAAoB,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAMsB,EAAS,SAAS,cAAc,2BAA2B,EAAQC,MAAQ,CAAC,IAAMC,EAAEjB,EAAO,GAAGiB,EAAE,aAAaA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