import C from"./BaseConfig.0466b450.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.8a761348.js";import{d as b,r as g,p,c as _,e as x,f as h,h as e,i as l,u as o,m as n,y as B}from"./index.0308b213.js";const D={class:"special-offer-config"},U=n(" \u95E8\u5E97\u540E\u53F0-\u8425\u9500-\u5929\u5929\u7279\u4EF7 "),y=n("\u98CE\u683C1"),A=n("\u98CE\u683C2"),k=n("\u98CE\u683C3"),v=n("\u968F\u673A"),w=n("\u4EF7\u683C(\u4F4E\u5230\u9AD8)"),I=n("\u8DDD\u79BB(\u7531\u8FD1\u5230\u8FDC)"),N=n("\u662F"),T=n("\u5426"),z=b({props:{config:null,agentId:null},emits:["update:config"],setup(c,{emit:V}){const f=c;let u=g({title:"",desc:"",style:1,sids:[],sort_method:"random",max_num:9,is_recommend:0});return p(()=>f.config,a=>{a&&B(()=>{u.value.title=a.title,u.value.desc=a.desc,u.value.style=a.style,u.value.sids=a.sids,u.value.sort_method=a.sort_method||"random",u.value.max_num=a.max_num||9,u.value.is_recommend=a.is_recommend})},{immediate:!0}),p(u.value,a=>{V("update:config",a)}),(a,t)=>{const s=_("el-form-item"),i=_("el-input"),m=_("el-radio"),r=_("el-radio-group"),F=_("el-form");return x(),h("div",D,[e(C,{title:"\u5929\u5929\u7279\u4EF7",desc:"\u5C55\u793A\u6709\u4F18\u60E0\u7684\u5546\u54C1"},{default:l(()=>[e(F,{"label-width":"140px"},{default:l(()=>[e(s,{label:"\u8BBE\u7F6E\u9875\u9762\u8DEF\u5F84"},{default:l(()=>[U]),_:1}),e(s,{label:"\u6807\u9898"},{default:l(()=>[e(i,{modelValue:o(u).title,"onUpdate:modelValue":t[0]||(t[0]=d=>o(u).title=d),maxlength:6},null,8,["modelValue"])]),_:1}),e(s,{label:"\u63CF\u8FF0"},{default:l(()=>[e(i,{modelValue:o(u).desc,"onUpdate:modelValue":t[1]||(t[1]=d=>o(u).desc=d),maxlength:24},null,8,["modelValue"])]),_:1}),e(s,{label:"\u98CE\u683C"},{default:l(()=>[e(r,{modelValue:o(u).style,"onUpdate:modelValue":t[2]||(t[2]=d=>o(u).style=d)},{default:l(()=>[e(m,{label:"1"},{default:l(()=>[y]),_:1}),e(m,{label:"2"},{default:l(()=>[A]),_:1}),e(m,{label:"3"},{default:l(()=>[k]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u6392\u5E8F\u65B9\u5F0F"},{default:l(()=>[e(r,{modelValue:o(u).sort_method,"onUpdate:modelValue":t[3]||(t[3]=d=>o(u).sort_method=d)},{default:l(()=>[e(m,{label:"random"},{default:l(()=>[v]),_:1}),e(m,{label:"price"},{default:l(()=>[w]),_:1}),e(m,{label:"distance"},{default:l(()=>[I]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u6700\u5927\u6570\u91CF"},{default:l(()=>[e(i,{modelValue:o(u).max_num,"onUpdate:modelValue":t[4]||(t[4]=d=>o(u).max_num=d),maxlength:24},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u6237"},{default:l(()=>[e(E,{multiple:"",modelValue:o(u).sids,"onUpdate:modelValue":t[5]||(t[5]=d=>o(u).sids=d),agentid:f.agentId},null,8,["modelValue","agentid"])]),_:1}),e(s,{label:"\u662F\u5426\u53EA\u663E\u793A\u63A8\u8350\u5546\u54C1"},{default:l(()=>[e(r,{modelValue:o(u).is_recommend,"onUpdate:modelValue":t[6]||(t[6]=d=>o(u).is_recommend=d)},{default:l(()=>[e(m,{label:"1"},{default:l(()=>[N]),_:1}),e(m,{label:"0"},{default:l(()=>[T]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{z as _};
