import{t as e}from"/assets/animate/rolldown-runtime.Dh6celcD.mjs";import{A as t,C as n,D as r,I as i,M as a,N as o,P as s,R as c,c as l,g as u,k as d,l as f,o as p,v as ee}from"/assets/animate/react.D20wc1Tc.mjs";import{C as m,a as h,r as te,t as g}from"/assets/animate/motion.Caq54Hqf.mjs";import{J as ne,N as _,R as v,S as y,Y as re,at as ie,et as ae,h as b,m as x,nt as oe,ot as S,r as C,s as w,v as T,y as E}from"/assets/animate/nocodexport.CHSdTpdQ.mjs";var D,se,O=e((()=>{v(),D={position:`relative`,width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},se={...D,borderRadius:6,background:`rgba(136, 85, 255, 0.3)`,color:`#85F`,border:`1px dashed #85F`,flexDirection:`column`},C.EventHandler,C.EventHandler,C.EventHandler,C.Number,C.Boolean,C.String,C.Enum})),k=e((()=>{v(),n()})),A=e((()=>{n()})),j=e((()=>{v()})),M=e((()=>{v()})),N=e((()=>{n()})),P=e((()=>{v()})),F=e((()=>{i(),n()})),I=e((()=>{n(),M()})),L=e((()=>{n(),v(),M(),A()})),R=e((()=>{v(),n(),O()}));function z(){return t(()=>x.current()===x.canvas,[])}var B=e((()=>{n(),v()})),ce=e((()=>{n()})),le=e((()=>{n(),v(),C.FusedNumber,C.FusedNumber})),ue=e((()=>{O(),k(),A(),j(),M(),N(),P(),F(),I(),L(),R(),B(),ce(),le()})),de=e((()=>{ue()}));function V({type:e,url:t,html:n,zoom:r,radius:i,border:a,style:o={}}){return e===`url`&&t?l(pe,{url:t,zoom:r,radius:i,border:a,style:o}):e===`html`&&n?l(he,{html:n,style:o}):l(fe,{style:o})}function fe({style:e}){return l(`div`,{style:{minHeight:W(e),...se,overflow:`hidden`,...e},children:l(`div`,{style:q,children:`To embed a website or widget, add it to the properties\xA0panel.`})})}function pe({url:e,zoom:t,radius:n,border:r,style:i}){let o=!i.height;/[a-z]+:\/\//.test(e)||(e=`https://`+e);let c=z(),[u,d]=s(c?void 0:!1);return a(()=>{if(!c)return;let t=!0;d(void 0);async function n(){let n=await fetch(`https://api.framer.com/functions/check-iframe-url?url=`+encodeURIComponent(e));if(n.status==200){let{isBlocked:e}=await n.json();t&&d(e)}else{let e=await n.text();console.error(e),d(Error(`This site can’t be reached.`))}}return n().catch(e=>{console.error(e),d(e)}),()=>{t=!1}},[e]),c&&o?l(U,{message:`URL embeds do not support auto height.`,style:i}):e.startsWith(`https://`)?u===void 0?l(ye,{}):u instanceof Error?l(U,{message:u.message,style:i}):u===!0?l(U,{message:`Can’t embed ${e} due to its content security policy.`,style:i}):l(`iframe`,{src:e,style:{...G,...i,...r,zoom:t,borderRadius:n,transformOrigin:`top center`},loading:`lazy`,fetchPriority:c?`low`:`auto`,referrerPolicy:`no-referrer`,sandbox:me(c),allowFullScreen:!0,allow:`presentation; fullscreen; accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; clipboard-write`}):l(U,{message:`Unsupported protocol.`,style:i})}function me(e){let t=[`allow-same-origin`,`allow-scripts`];return e||t.push(`allow-downloads`,`allow-forms`,`allow-modals`,`allow-orientation-lock`,`allow-pointer-lock`,`allow-popups`,`allow-popups-to-escape-sandbox`,`allow-presentation`,`allow-storage-access-by-user-activation`,`allow-top-navigation-by-user-activation`),t.join(` `)}function he({html:e,...t}){if(e.includes(`<\/script>`)){let n=e.includes(``),r=e.includes(``);return l(n||r?_e:ge,{html:e,...t})}return l(ve,{html:e,...t})}function ge({html:e,style:t}){let n=r(),[i,o]=s(0);a(()=>{let e=n.current?.contentWindow;function t(t){if(t.source!==e)return;let n=t.data;if(typeof n!=`object`||!n)return;let r=n.embedHeight;typeof r==`number`&&o(r)}return c.addEventListener(`message`,t),e?.postMessage(`getEmbedHeight`,`*`),()=>{c.removeEventListener(`message`,t)}},[]);let u=` ${e}