import{d as r,aJ as f,aK as u,aE as g,aH as p,c as m,b as d,h as l,m as x,aI as h,s as E,a as _}from"./index-BKaqQGb-.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-fQa65UMX.js";const B=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,c=E(),a=(o,t)=>l(o,{...x(c),...t}),s=h(),i=f(()=>u(g(s,e.config.before),()=>p(e.config.expression,a,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:s,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}})));return(o,t)=>(_(),m(b,{"action-id":n.buttonId,effect:d(i)},null,8,["action-id","effect"]))}});export{B as default};
