import{v as f,o as n,k as l,l as c,u as r,b as s,a as o,t as i,x as m,c as g,E as y}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{C as k}from"./Caret.d9cc70ba.js";import{S as p}from"./CheckSolid.a0a6d7e0.js";import{S as C}from"./ExclamationSolid.4ca1f801.js";const S={class:"aioseo-alert-actionable__content"},d=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(k),{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(p),{key:1})):s("",!0),o("div",S,[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),d])):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 _};
