import{G as p,H as c}from"./x-CuOWXDIc.js";import{_ as i}from"./Header-BeJXVFR4.js";import"./chevron-down-pL4huxTV.js";import"./zap-Dlr53vCB.js";import"./arrow-left-right-CV947KQO.js";import"./image-BrU8DlLG.js";import"./scroll-text-DCRgAVec.js";import"./file-text-CoeT_eaW.js";const m=document.getElementById("header-island");if(m){const t=document.getElementById("header-props"),o=t?JSON.parse(t.textContent):{};p({render(){return c(i,{...o,onLogout:()=>{var e,n;fetch((((e=o.cmsConfig)==null?void 0:e.admin_url)||"/cms")+"/logout",{method:"POST",headers:{"X-XSRF-TOKEN":decodeURIComponent(((n=document.cookie.match(/XSRF-TOKEN=([^;]+)/))==null?void 0:n[1])||""),Accept:"application/json"},credentials:"include"}).then(()=>{var r;window.location.href=(((r=o.cmsConfig)==null?void 0:r.admin_url)||"/cms")+"/login"})}})}}).mount(m)}
