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,E as y}from"./runtime-dom.esm-bundler.h3wlw8jh.js";import{C as p}from"./Caret.mmz7e9vd.js";import{S as k}from"./CheckSolid.mcyzbupl.js";import{S as C}from"./ExclamationSolid.n6ot6dnu.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 _};
