{"version":3,"file":"TermlyPolicy.BF9Lit10.mjs","names":["useRef","s"],"sources":["https:/framerusercontent.com/modules/KBTq4ARkspcHyqU3vvym/OKSWpQWM5cBHGmTrH3yq/TermlyPolicy.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function TermlyPolicy(props){const{policyId=\"a18d6f19-46e6-42e8-92a6-1f4d07ac77ff\"}=props;const ref=useRef(null);useEffect(()=>{if(!ref.current)return;if(!document.getElementById(\"termly-embed-style\")){const style=document.createElement(\"style\");style.id=\"termly-embed-style\";style.textContent=`\n                [name=\"termly-embed\"] {\n                    width: 100% !important;\n                    max-width: 100% !important;\n                    overflow-x: hidden !important;\n                }\n\n                [name=\"termly-embed\"] * {\n                    max-width: 100% !important;\n                    box-sizing: border-box !important;\n                    overflow-wrap: break-word !important;\n                    word-break: break-word !important;\n                }\n\n                [name=\"termly-embed\"] table {\n                    width: 100% !important;\n                    table-layout: fixed !important;\n                }\n\n                [name=\"termly-embed\"] img,\n                [name=\"termly-embed\"] iframe {\n                    max-width: 100% !important;\n                    height: auto;\n                }\n            `;document.head.appendChild(style);}ref.current.innerHTML=\"\";const div=document.createElement(\"div\");div.setAttribute(\"name\",\"termly-embed\");div.setAttribute(\"data-id\",policyId);ref.current.appendChild(div);document.querySelectorAll('script[src*=\"embed-policy.min.js\"]').forEach(s=>s.remove());const s=document.createElement(\"script\");s.src=\"https://app.termly.io/embed-policy.min.js\";s.async=true;document.body.appendChild(s);},[policyId]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\"}});}addPropertyControls(TermlyPolicy,{policyId:{type:ControlType.String,title:\"Policy ID\",defaultValue:\"a18d6f19-46e6-42e8-92a6-1f4d07ac77ff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TermlyPolicy\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TermlyPolicy.map"],"mappings":"6KAAmI,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,wCAAwC,EAAY,EAAIA,EAAO,KAAK,CAwBmM,OAxBlM,MAAc,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,GAAG,CAAC,SAAS,eAAe,qBAAqB,CAAC,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,qBAAqB,EAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;cAwB1a,SAAS,KAAK,YAAY,EAAM,CAAE,EAAI,QAAQ,UAAU,GAAG,IAAM,EAAI,SAAS,cAAc,MAAM,CAAC,EAAI,aAAa,OAAO,eAAe,CAAC,EAAI,aAAa,UAAU,EAAS,CAAC,EAAI,QAAQ,YAAY,EAAI,CAAC,SAAS,iBAAiB,qCAAqC,CAAC,QAAQ,GAAGC,EAAE,QAAQ,CAAC,CAAC,IAAM,EAAE,SAAS,cAAc,SAAS,CAAC,EAAE,IAAI,4CAA4C,EAAE,MAAM,GAAK,SAAS,KAAK,YAAY,EAAE,EAAG,CAAC,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,CAAC,CAAC,kBAxBxd,IAAoC,IAAoD,CAwBkY,EAAoB,EAAa,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,uCAAuC,CAAC,CAAC"}