import{a as c}from"https://app.framerstatic.com/chunk-UDNZJVLU.mjs";import{a as n}from"https://app.framerstatic.com/chunk-5EVFYJSQ.mjs";import{a as i}from"https://app.framerstatic.com/chunk-LQILWJHN.mjs";import"https://app.framerstatic.com/chunk-AHQIRSXG.mjs";var m=/-[a-f0-9]{7,}$/i;function d(e){let r=e.split(".")[0]||"";return m.test(r)&&e.endsWith(i().previewDomain)}async function f(){let e=window.deferredJsFiles;if(!e)return;let r=e.map(o=>new Promise((s,a)=>{let t=document.createElement("script");t.src=o,t.async=!1,t.defer=!0,t.onload=()=>s(),t.onerror=()=>a(),document.body.appendChild(t)}));await Promise.all(r)}async function p(){let e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",window.cssBundleURL);let r=new Promise((o,s)=>{e.onload=()=>o(),e.onerror=()=>s()});document.head.appendChild(e),await r}var w=["success","no-permission"];async function b(){let e=new URLSearchParams(window.location.search),r=e.get("framerSiteId"),o=e.get("source");if(!r||!o)return null;let s=e.get("features"),a={};try{s&&(a=JSON.parse(s))}catch{}Object.defineProperty(window,"editorBarFeatures",{value:Object.freeze(a),writable:!1});let t=await c(r),l=e.has("forceShow");if(d(o)){console.log("[Framer Editor Bar] Unavailable because site is a version URL");return}if(n(o)&&!w.includes(t.status))if(l)console.log("[Framer Editor Bar] Available because site was opened with ?editSite once");else{console.log("[Framer Editor Bar] Unavailable because not on a `framer.app` subdomain and access status is",t.status);return}t.status!=="error"&&window.parent.postMessage({apiVersion:1,type:"accessResult",data:{status:"success"}},"*"),t.status==="success"&&t.data.projectFeatures&&(window.framerProjectFeatures=t.data.projectFeatures),await Promise.all([f(),p()]);let{renderEditorBar:u}=await import("https://app.framerstatic.com/render-VRURVW2T.mjs");await u(t,r)}b().catch(console.error); //# sourceMappingURL=https://app.framerstatic.com/editorbar.V4WVS3FH.mjs.map