import{T as i}from"./TEditor.fed75c12.js";import{d as g,aX as f,b as v,c as n,e as V,f as b,h as l,i as m,u as a,g as B,m as F,E}from"./index.0308b213.js";import{al as A,am as w}from"./setting.644fa418.js";import{F as D}from"./index.d8717905.js";import"./index.esm.3fe50213.js";const C=B("span",null,"\u670D\u52A1\u534F\u8BAE\u8BBE\u7F6E",-1),U=F("\u4FDD\u5B58"),z=g({setup(x){const d=f.get("uniacid"),e=v({agreement_privacy_policy_tips:"",member_agreement:"",member_privacy_policy:"",manager_agreement:"",manager_privacy_policy:"",deliveryer_agreement:"",deliveryer_privacy_policy:"",plateform_agreement:"",plateform_privacy_policy:"",member_delete_agreement:""}),_=()=>{A({uniacid:d}).then(r=>{e.agreement_privacy_policy_tips=r.agreement_privacy_policy_tips||"",e.member_agreement=r.member_agreement||"",e.member_privacy_policy=r.member_privacy_policy||"",e.manager_agreement=r.manager_agreement||"",e.manager_privacy_policy=r.manager_privacy_policy||"",e.deliveryer_agreement=r.deliveryer_agreement||"",e.deliveryer_privacy_policy=r.deliveryer_privacy_policy||"",e.plateform_agreement=r.plateform_agreement||"",e.plateform_privacy_policy=r.plateform_privacy_policy||"",e.member_delete_agreement=r.member_delete_agreement||""})},p=()=>{w(e).then(r=>r&&E({message:"\u4FDD\u5B58\u6210\u529F",type:"success"}))};return _(),(r,t)=>{const o=n("el-form-item"),y=n("el-card"),s=n("el-form"),c=n("el-button");return V(),b("div",null,[l(s,{ref:"formRef",model:a(e),"label-width":"160px",size:"default","label-position":"right"},{default:m(()=>[l(y,{shadow:"always","body-style":{padding:"20px"}},{header:m(()=>[C]),default:m(()=>[l(o,{label:"\u670D\u52A1\u534F\u8BAE\u548C\u9690\u79C1\u653F\u7B56\u63D0\u793A\u4FE1\u606F",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).agreement_privacy_policy_tips,"onUpdate:modelValue":t[0]||(t[0]=u=>a(e).agreement_privacy_policy_tips=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u987E\u5BA2\u670D\u52A1\u534F\u8BAE",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).member_agreement,"onUpdate:modelValue":t[1]||(t[1]=u=>a(e).member_agreement=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u987E\u5BA2\u9690\u79C1\u653F\u7B56",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).member_privacy_policy,"onUpdate:modelValue":t[2]||(t[2]=u=>a(e).member_privacy_policy=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u5546\u6237\u670D\u52A1\u534F\u8BAE",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).manager_agreement,"onUpdate:modelValue":t[3]||(t[3]=u=>a(e).manager_agreement=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u5546\u6237\u9690\u79C1\u653F\u7B56",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).manager_privacy_policy,"onUpdate:modelValue":t[4]||(t[4]=u=>a(e).manager_privacy_policy=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u914D\u9001\u5458\u670D\u52A1\u534F\u8BAE",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).deliveryer_agreement,"onUpdate:modelValue":t[5]||(t[5]=u=>a(e).deliveryer_agreement=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u914D\u9001\u5458\u9690\u79C1\u653F\u7B56",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).deliveryer_privacy_policy,"onUpdate:modelValue":t[6]||(t[6]=u=>a(e).deliveryer_privacy_policy=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u5E73\u53F0\u9690\u79C1\u653F\u7B56",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).plateform_privacy_policy,"onUpdate:modelValue":t[7]||(t[7]=u=>a(e).plateform_privacy_policy=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u5E73\u53F0\u670D\u52A1\u534F\u8BAE",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).plateform_agreement,"onUpdate:modelValue":t[8]||(t[8]=u=>a(e).plateform_agreement=u)},null,8,["modelValue"])]),_:1}),l(o,{label:"\u7528\u6237\u6CE8\u9500\u534F\u8BAE",style:{width:"100%"}},{default:m(()=>[l(i,{modelValue:a(e).member_delete_agreement,"onUpdate:modelValue":t[9]||(t[9]=u=>a(e).member_delete_agreement=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"]),l(D,null,{default:m(()=>[l(c,{type:"primary",size:"small",onClick:p},{default:m(()=>[U]),_:1})]),_:1})])}}});export{z as default};
