import{a as c}from"https://app.framerstatic.com/chunk-VYDUMP4T.mjs";import{a as n}from"https://app.framerstatic.com/chunk-2F5FSM3K.mjs";import{a as i}from"https://app.framerstatic.com/chunk-HMF7T2NG.mjs";import"https://app.framerstatic.com/chunk-AHQIRSXG.mjs";var m=/-[a-f0-9]{7,}$/i;function d(e){let s=e.split(".")[0]||"";return m.test(s)&&e.endsWith(i().previewDomain)}async function f(){let e=window.deferredJsFiles;if(!e)return;let s=e.map(r=>new Promise((o,a)=>{let t=document.createElement("script");t.src=r,t.async=!1,t.defer=!0,t.onload=()=>o(),t.onerror=()=>a(),document.body.appendChild(t)}));await Promise.all(s)}async function p(){let e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",window.cssBundleURL);let s=new Promise((r,o)=>{e.onload=()=>r(),e.onerror=()=>o()});document.head.appendChild(e),await s}var w=["success","no-permission"];async function b(){let e=new URLSearchParams(window.location.search),s=e.get("framerSiteId"),r=e.get("source");if(!s||!r)return null;let o=e.get("features"),a={};try{o&&(a=JSON.parse(o))}catch{}Object.defineProperty(window,"editorBarFeatures",{value:Object.freeze(a),writable:!1});let t=await c(s),l=e.has("forceShow");if(d(r)){console.log("[Framer On-Page Editing] Unavailable because site is a version URL");return}if(n(r))if(w.includes(t.status))console.log("[Framer On-Page Editing] Available because access status is",t.status);else if(l)console.log("[Framer On-Page Editing] Available because site was opened with ?editSite once");else{console.log("[Framer On-Page Editing] 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-BMZD46ND.mjs");await u(t,s)}b().catch(console.error); //# sourceMappingURL=https://app.framerstatic.com/editorbar.764QRYIY.mjs.map