import{y as f,o as n,c as l,w as c,u as r,b as s,e as o,t as i,a as m,d as g,J as y}from"./runtime-dom.esm-bundler.d8b05b6d.js";import{C as p}from"./Caret.2e43336b.js";import{S as k}from"./CheckSolid.6a15f8e6.js";import{S as C}from"./ExclamationSolid.2117778a.js";const d={class:"aioseo-alert-actionable__content"},S=o("span",null,"→",-1),$={__name:"Actionable",props:{title:String,text:String,button:String,buttonType:String,type:String,size:String,showClose:Boolean},emits:["click","close-alert"],setup(t){return(a,e)=>{const b=f("base-button");return n(),l(r(p),{class:"aioseo-alert-actionable",type:t.type,size:t.size,showClose:t.showClose,onCloseAlert:e[2]||(e[2]=u=>a.$emit("close-alert"))},{default:c(()=>[t.type==="yellow"?(n(),l(r(C),{key:0})):s("",!0),t.type==="green"?(n(),l(r(k),{key:1})):s("",!0),o("div",d,[o("strong",null,i(t.title),1),o("p",null,[m(i(t.text)+" ",1),t.buttonType==="link"&&t.button?(n(),g("a",{key:0,href:"#",onClick:e[0]||(e[0]=y(u=>a.$emit("click"),["prevent"]))},[m(i(t.button)+" ",1),S])):s("",!0)]),t.buttonType!=="link"&&t.button?(n(),l(b,{key:0,size:"medium",type:"blue",tag:"button",onClick:e[1]||(e[1]=y(u=>a.$emit("click"),["stop"]))},{default:c(()=>[o("span",null,i(t.button),1)]),_:1})):s("",!0)])]),_:1},8,["type","size","showClose"])}}};export{$ as _};
