import{_ as w}from"./index.f1422708.js";import{x as B,y as D,N as T,w as h}from"./element-plus.55d71530.js";import{a as E,s as N}from"./decoration.6e17be7b.js";import{_ as k}from"./mobile-style.vue_vue_type_script_setup_true_lang.3e60ab18.js";import{d as F,r as p,b as U,i as L,o as n,c as d,V as m,M as a,a as P,u,j as S,U as c,aa as A,L as _,Q as I,S as J}from"./@vue.96c135a1.js";import"./index.e2bd5212.js";import"./@vueuse.f4694335.js";import"./lodash.d6737109.js";import"./@amap.8a62addd.js";import"./axios.c6b9fe3d.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.7f53c13d.js";import"./color.4952d479.js";import"./clone.dd01d7ea.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"./dayjs.37feae28.js";import"./@element-plus.07bd0514.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.bc6f35ed.js";import"./theme-picker.7b18f281.js";const M={class:"mt-[-10px]"},Bt=F({__name:"style",setup(O){const e=p(0),s=p([{name:"\u79FB\u52A8\u7AEF",id:5,component:k,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=U(()=>s.value[e.value]||{}),l=async()=>{const i=await E({id:o.value.id});o.value.data=JSON.parse(i.data)},f=async()=>{await N({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),l()};return L(async()=>{await l()}),(i,r)=>{const b=B,v=D,C=T,y=h,V=w;return n(),d(c,null,[m(C,{shadow:"never",class:"!border-none"},{default:a(()=>[P("div",M,[m(v,{modelValue:u(e),"onUpdate:modelValue":r[0]||(r[0]=t=>S(e)?e.value=t:null),onTabChange:r[1]||(r[1]=()=>{})},{default:a(()=>[(n(!0),d(c,null,A(u(s),(t,g)=>(n(),_(b,{key:t.id,label:t.name,name:g},{default:a(()=>[(n(),_(I(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:a(()=>[m(y,{type:"primary",onClick:f},{default:a(()=>[J("\u4FDD\u5B58")]),_:1})]),_:1})],64)}}});export{Bt as default};
