import{x as f,o as n,l,m as c,u as r,b as s,a as o,t as i,y as m,c as g,J as y}from"./runtime-dom.esm-bundler.c4caba60.js";import{C as p}from"./Caret.cc16468c.js";import{S as k}from"./CheckSolid.b3bb7c27.js";import{S as C}from"./ExclamationSolid.b94effd4.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(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",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 _};
