import{_ as w}from"./index.67e98804.js";import{x as B,y as T,I as D,w as h}from"./element-plus.fcb5dc91.js";import{a as E,s as k}from"./decoration.d32bf13f.js";import{_ as N}from"./mobile-style.vue_vue_type_script_setup_true_lang.acb19b44.js";import{d as F,r as p,b as I,i as O,o as n,c as d,W as m,O as e,a as P,u,j as U,V as c,a7 as A,M as _,R as J,T as L}from"./@vue.a7a54728.js";import"./index.fbf661f7.js";import"./@vueuse.0a77614e.js";import"./lodash.dbfecd92.js";import"./axios.cd7dbc38.js";import"./vue-router.c1c4566f.js";import"./pinia.b401a84e.js";import"./css-color-function.91b6e704.js";import"./color.d62296c5.js";import"./clone.f2407509.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./@element-plus.a03b0c46.js";import"./nprogress.bd8db83c.js";import"./vue-clipboard3.82df6bce.js";import"./clipboard.ae9f1cf1.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.f4ae74de.js";import"./lodash-es.50da5137.js";import"./dayjs.f435f141.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.vue_vue_type_script_setup_true_lang.1a9e8b05.js";import"./theme-picker.290dd852.js";const M={class:"mt-[-10px]"},Bt=F({__name:"style",setup(R){const a=p(0),s=p([{name:"\u79FB\u52A8\u7AEF",id:5,component:N,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=I(()=>s.value[a.value]||{}),l=async()=>{const i=await E({id:o.value.id});o.value.data=JSON.parse(i.data)},f=async()=>{await k({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),l()};return O(async()=>{await l()}),(i,r)=>{const b=B,v=T,C=D,y=h,V=w;return n(),d(c,null,[m(C,{shadow:"never",class:"!border-none"},{default:e(()=>[P("div",M,[m(v,{modelValue:u(a),"onUpdate:modelValue":r[0]||(r[0]=t=>U(a)?a.value=t:null),onTabChange:r[1]||(r[1]=()=>{})},{default:e(()=>[(n(!0),d(c,null,A(u(s),(t,g)=>(n(),_(b,{key:t.id,label:t.name,name:g},{default:e(()=>[(n(),_(J(t.component),{modelValue:t.data,"onUpdate:modelValue":x=>t.data=x},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])]),_:1}),m(V,{class:"mt-4",fixed:!0},{default:e(()=>[m(y,{type:"primary",onClick:f},{default:e(()=>[L("\u4FDD\u5B58")]),_:1})]),_:1})],64)}}});export{Bt as default};
