import{aa as b,d as y,b as C,c as d,e as c,f as A,g as m,h as t,i as l,u as o,k as f,A as g,m as i,_ as D}from"./index.0308b213.js";import{M as h}from"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";const U=()=>b.request({url:"agent/plugin.robot.robot/config"}),v=s=>b.request({url:"agent/plugin.robot.robot/config",method:"POST",data:s}),w={class:"area-config"},x={class:"operation-btn"},E=i("\u63D0\u4EA4"),I={class:"config-form"},N=i("URL"),R=i("\u5C0F\u7A0B\u5E8F"),q=y({setup(s){const e=C({webhookurl:"",source_icon_url:"",source_desc:"",card_image_aspect_ratio:"",card_action_type:1,card_action_url:"",card_action_appid:"",card_action_pagepath:""});(()=>{U().then(_=>{e.webhookurl=_.webhookurl||"",e.source_icon_url=_.source_icon_url||"",e.source_desc=_.source_desc||"",e.card_image_aspect_ratio=_.card_image_aspect_ratio||1.3,e.card_action_type=_.card_action_type||1,e.card_action_url=_.card_action_url||"",e.card_action_appid=_.card_action_appid||"",e.card_action_pagepath=_.card_action_pagepath||""})})();const V=()=>{v(e).then(_=>{})};return(_,a)=>{const F=d("el-button"),r=d("el-input"),n=d("el-form-item"),p=d("el-radio"),B=d("el-radio-group"),k=d("el-form");return c(),A("div",w,[m("div",x,[t(F,{type:"primary",onClick:V},{default:l(()=>[E]),_:1})]),m("div",I,[t(k,{model:o(e),"label-width":"160px"},{default:l(()=>[t(n,{label:"webhook\u5730\u5740"},{default:l(()=>[t(r,{modelValue:o(e).webhookurl,"onUpdate:modelValue":a[0]||(a[0]=u=>o(e).webhookurl=u)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u6D88\u606F\u5361\u7247\u5934\u6807\u9898"},{default:l(()=>[t(r,{modelValue:o(e).source_desc,"onUpdate:modelValue":a[1]||(a[1]=u=>o(e).source_desc=u)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u6D88\u606F\u5361\u7247\u5934\u56FE\u7247"},{default:l(()=>[t(h,{modelValue:o(e).source_icon_url,"onUpdate:modelValue":a[2]||(a[2]=u=>o(e).source_icon_url=u),limit:1,size:"80px"},null,8,["modelValue"])]),_:1}),t(n,{label:"\u6D88\u606F\u5185\u5BB9\u56FE\u7247\u5BBD\u9AD8\u6BD4"},{default:l(()=>[t(r,{modelValue:o(e).card_image_aspect_ratio,"onUpdate:modelValue":a[3]||(a[3]=u=>o(e).card_image_aspect_ratio=u),placeholder:"\u8BF7\u8F93\u51651.3-2.25\u7684\u6570\u5B57"},null,8,["modelValue"])]),_:1}),t(n,{label:"\u5361\u7247\u8DF3\u8F6C\u5185\u5BB9"},{default:l(()=>[t(B,{modelValue:o(e).card_action_type,"onUpdate:modelValue":a[4]||(a[4]=u=>o(e).card_action_type=u)},{default:l(()=>[t(p,{label:1},{default:l(()=>[N]),_:1}),t(p,{label:2},{default:l(()=>[R]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(e).card_action_type==1?(c(),f(n,{key:0,label:"URL\u8DEF\u5F84"},{default:l(()=>[t(r,{modelValue:o(e).card_action_url,"onUpdate:modelValue":a[5]||(a[5]=u=>o(e).card_action_url=u)},null,8,["modelValue"])]),_:1})):g("",!0),o(e).card_action_type==2?(c(),f(n,{key:1,label:"\u5C0F\u7A0B\u5E8FAPPID"},{default:l(()=>[t(r,{modelValue:o(e).card_action_appid,"onUpdate:modelValue":a[6]||(a[6]=u=>o(e).card_action_appid=u)},null,8,["modelValue"])]),_:1})):g("",!0)]),_:1},8,["model"])])])}}});const G=D(q,[["__scopeId","data-v-d0ea8d65"]]);export{G as default};
