import{d as f,G as g,g as l,aE as u,M as d,aF as p,aG as m,aH as x,c as E,b as h,h as _,m as w,aI as C,s as I,a as b}from"./index-BKaqQGb-.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-fQa65UMX.js";const H=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:i}=g(),a=I(),c=(e,o)=>_(e,{...w(a),...o}),t=C(),r=l(function*(){yield*u(t,n.config.before);const e=d(n.config.markdown,i.value)??"",o=p(e,c);(yield*m({content:o,icon:n.config.icon,color:n.config.color}))||(yield*x(n.config.expression,c,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:t,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(b(),E(k,{"action-id":s.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{H as default};
