import{az as p,d as v,b as D,c as o,e as B,f as C,g as i,h as t,i as e,u as n,m as _,E as x,R as y,S as V,_ as w}from"./index.0308b213.js";const I=()=>p.request({url:"addon/advertise.web.index/setting"}),S=s=>p.request({url:"addon/advertise.web.index/setting",method:"POST",data:s}),f=s=>(y("data-v-dca4e2fd"),s=s(),V(),s),k={class:"advertise-config"},q={class:"operation-btn"},N=_("\u63D0\u4EA4"),T={class:"config-form"},U=_("\u5F00\u542F"),z=_("\u5173\u95ED"),M=f(()=>i("div",{class:"tn-form-item__tips"},"\u5F00\u542F\u540E\u5546\u5BB6\u9700\u8981\u8D2D\u4E70\u5E7F\u544A\u4F4D\u540E\uFF0C\u624D\u80FD\u5728\u76F8\u5E94\u63A8\u5E7F\u4F4D\u5C55\u793A\u5546\u5BB6",-1)),O=_("\u63D0\u524D"),P=_("\u5C0F\u65F6\u901A\u77E5"),R=f(()=>i("div",{class:"tn-form-item__tips"},"\u8BBE\u7F6E\u540E\u5E7F\u544A\u5230\u671F\u524D\u201Cxx\u201D\u5C0F\u65F6\u5546\u5BB6\u548C\u5E73\u53F0\u53EF\u4EE5\u63A5\u6536\u5230\u5FAE\u4FE1\u6A21\u677F\u6D88\u606F\u63D0\u9192",-1)),j=v({setup(s){const u=D({status:1,notify_before_hours:12});(()=>{I().then(a=>{u.status=a.status,u.notify_before_hours=a.notify_before_hours})})();const m=()=>{S(u).then(a=>{x.success("\u66F4\u65B0\u6570\u636E\u6210\u529F")})};return(a,d)=>{const F=o("el-button"),r=o("el-radio"),E=o("el-radio-group"),c=o("el-form-item"),b=o("el-input"),h=o("el-tab-pane"),A=o("el-tabs"),g=o("el-form");return B(),C("div",k,[i("div",q,[t(F,{type:"primary",onClick:m},{default:e(()=>[N]),_:1})]),i("div",T,[t(g,{model:n(u),"label-width":"120px"},{default:e(()=>[t(A,{type:"border-card"},{default:e(()=>[t(h,{label:"\u57FA\u7840\u8BBE\u7F6E"},{default:e(()=>[t(c,{label:"\u5546\u5BB6\u63A8\u5E7F",prop:"status"},{default:e(()=>[t(E,{modelValue:n(u).status,"onUpdate:modelValue":d[0]||(d[0]=l=>n(u).status=l)},{default:e(()=>[t(r,{label:1},{default:e(()=>[U]),_:1}),t(r,{label:0},{default:e(()=>[z]),_:1})]),_:1},8,["modelValue"]),M]),_:1}),t(c,{label:"\u5E7F\u544A\u5230\u671F\u63D0\u524D\u901A\u77E5",prop:"notify_before_hours"},{default:e(()=>[t(b,{modelValue:n(u).notify_before_hours,"onUpdate:modelValue":d[1]||(d[1]=l=>n(u).notify_before_hours=l)},{prepend:e(()=>[O]),append:e(()=>[P]),_:1},8,["modelValue"]),R]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])])}}});const J=w(j,[["__scopeId","data-v-dca4e2fd"]]);export{J as default};
