import{_ as y}from"./index.25a763ba.js";import{a0 as k,C as x,P as N,Q as U,y as H,I,w as R,D as S}from"./element-plus.517d4382.js";import{r as B}from"./index.8b1962e9.js";import{d as C,a0 as q,ai as E,o as n,c as T,V as e,M as t,O as F,L as _,a as i,S as G,T as a,U as L}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";function M(p){return B.post({url:"/channel.web_page_setting/setConfig",params:p})}function O(){return B.get({url:"/channel.web_page_setting/getConfig"})}const P=a("\u5F00\u542F"),Q=a("\u5173\u95ED"),j=i("div",{class:"form-tips"},"\u72B6\u6001\u4E3A\u5173\u95ED\u65F6\uFF0C\u5C06\u4E0D\u5BF9\u5916\u63D0\u4F9B\u670D\u52A1\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C",-1),z=a("\u7A7A\u9875\u9762"),J=a("\u81EA\u5B9A\u4E49\u94FE\u63A5"),K={class:"w-80"},W={class:"flex-1 min-w-0 break-words"},X=a("\u590D\u5236"),Y=a("\u4FDD\u5B58"),Z=C({name:"h5Config"}),Ht=C({...Z,setup(p){const o=q({status:0,page_status:0,page_url:"",url:""}),m=async()=>{const d=await O();for(const u in o)o[u]=d[u]},b=async()=>{await M(o),m()};return m(),(d,u)=>{const D=k,c=x,s=N,f=U,r=H,h=I,g=R,w=S,v=y,V=E("copy"),A=E("perms");return n(),T("div",null,[e(c,{class:"!border-none",shadow:"never"},{default:t(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),e(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[e(w,{ref:"formRef",model:o,"label-width":"120px"},{default:t(()=>[e(r,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:t(()=>[i("div",null,[e(f,{modelValue:o.status,"onUpdate:modelValue":u[0]||(u[0]=l=>o.status=l)},{default:t(()=>[e(s,{label:1},{default:t(()=>[P]),_:1}),e(s,{label:0},{default:t(()=>[Q]),_:1})]),_:1},8,["modelValue"]),j])]),_:1}),e(r,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"page_status"},{default:t(()=>[e(f,{modelValue:o.page_status,"onUpdate:modelValue":u[1]||(u[1]=l=>o.page_status=l)},{default:t(()=>[e(s,{label:0},{default:t(()=>[z]),_:1}),e(s,{label:1},{default:t(()=>[J]),_:1})]),_:1},8,["modelValue"])]),_:1}),o.page_status==1?(n(),_(r,{key:0,label:"",prop:"page_url"},{default:t(()=>[i("div",K,[e(h,{modelValue:o.page_url,"onUpdate:modelValue":u[2]||(u[2]=l=>o.page_url=l),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):G("",!0),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:t(()=>[i("div",W,[a(L(o.url)+" ",1),F((n(),_(g,null,{default:t(()=>[X]),_:1})),[[V,o.url]])])]),_:1})]),_:1},8,["model"])]),_:1}),F((n(),_(v,null,{default:t(()=>[e(g,{type:"primary",onClick:b},{default:t(()=>[Y]),_:1})]),_:1})),[[A,["channel.web_page_setting/setConfig"]]])])}}});export{Ht as default};