import{x as b,o as n,l,m as c,u as r,d as s,a as o,t as i,D as m,c as g,G as y}from"./vue.esm-bundler.DqIKZLqK.js";import{C as p}from"./Caret.CE8P-qnG.js";import{S as k}from"./CheckSolid.BcqC1JWM.js";import{S as C}from"./ExclamationSolid.CWm40K6x.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 f=b("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(f,{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 _};
