import{z as k,r as C,k as c,i as n,p as u,h as t,v as f,q as T,T as M,x as B,a3 as L,f as e,e as V,n as g,t as p,Q as m,j as b,s as z,P as S,J as U,_ as $}from"#entry";import{U as F}from"./CuVY3jVB.js";import{u as h}from"./lOVP0ool.js";import{e as N}from"./DoyTWK7L.js";const O={role:"dialog",class:"relative mx-4 px-10 py-12 bg-white rounded-lg overflow-hidden"},j={key:0,class:"mb-4"},D={class:"text-center leading-tight font-body"},I={class:"text-center leading-tight font-body"},K=k({__name:"BaseLoginModal",props:{heading:{default:""},loginUrl:{},loginLabel:{default:"Sign In"}},emits:["modalVisibleToggle","closed"],setup(s,{expose:x,emit:y}){const w=s,i=y,{displayFont:l}=N(),a=C(!1),v=async()=>{await U(),a.value=!0,h().toggleModalOpened(!0),i("modalVisibleToggle")},o=async()=>{a.value=!1,h().toggleModalOpened(!1),i("closed")},_=()=>{o(),setTimeout(()=>window.open(w.loginUrl,"_self"),300)};return x({openModal:v,closeModal:o}),(r,d)=>(n(),c(S,{to:"body"},[t(a)?(n(),c(t(F),{key:0,options:{immediate:!0}},{default:f(()=>[T(M,{name:"fade",tabindex:"-1"},{default:f(()=>[B(e("div",{class:"fixed inset-0 flex justify-center items-center | focus:outline-none || modal-overlay",tabindex:"-1",onClick:b(o,["self"]),onKeydown:z(o,["esc"])},[e("article",O,[e("button",{ref:"close",type:"button",class:"absolute z-20 inline-block p-4 text-black opacity-75 transition-opacity duration-300 | focus:outline-none focus:opacity-100 || close","aria-label":"Close",onClick:o},[...d[0]||(d[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.7 12.7"},[e("path",{d:"M12.7 1.4L11.3 0 6.4 4.9 1.4 0 0 1.4 5 6.4 0 11.3 1.4 12.7 6.4 7.8 11.3 12.7 12.7 11.3 7.8 6.4z"})],-1)])],512),s.heading?(n(),V("header",j,[e("h3",{class:g(["text-2xl text-center font-bold uppercase tracking-wide leading-tight",`${t(l)}`])},p(s.heading),3)])):u("",!0),e("div",D,[m(r.$slots,"body",{},void 0,!0)]),e("button",{class:g(["block w-full my-5 px-6 py-2 font-semibold tracking-wide text-center uppercase text-white bg-blue-500 rounded-full transition-colors duration-200 | hover:bg-blue-600 | focus:outline-none || login",`${t(l)}`]),onClick:b(_,["prevent"])},p(s.loginLabel),3),e("footer",I,[m(r.$slots,"footer",{},void 0,!0)])])],544),[[L,t(a)]])]),_:3})]),_:3})):u("",!0)]))}}),Q=$(K,[["__scopeId","data-v-93026da7"]]);export{Q as _};