import{_ as w}from"./index.16598435.js";import{x as B,y as D,J as T,w as h}from"./element-plus.ab0703f2.js";import{a as E,s as k}from"./decoration.fee225b2.js";import{_ as F}from"./mobile-style.vue_vue_type_script_setup_true_lang.92277cbc.js";import{d as N,r as p,b as P,i as U,o as n,c as d,W as m,Q as e,a as J,u,j as S,F as c,a9 as A,P as _,S as I,U as L}from"./@vue.340249d8.js";import"./index.5ab034a5.js";import"./@vueuse.e3650918.js";import"./lodash.3d784a58.js";import"./axios.45058a27.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.558a564d.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./lodash-es.edba6135.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.vue_vue_type_script_setup_true_lang.9482c280.js";import"./theme-picker.9d5e9a25.js";const O={class:"mt-[-10px]"},Dt=N({__name:"style",setup(j){const a=p(0),s=p([{name:"\u79FB\u52A8\u7AEF",id:5,component:F,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=P(()=>s.value[a.value]||{}),i=async()=>{const l=await E({id:o.value.id});o.value.data=JSON.parse(l.data)},f=async()=>{await k({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),i()};return U(async()=>{await i()}),(l,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:e(()=>[J("div",O,[m(v,{modelValue:u(a),"onUpdate:modelValue":r[0]||(r[0]=t=>S(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(),_(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:e(()=>[m(y,{type:"primary",onClick:f},{default:e(()=>[L("\u4FDD\u5B58")]),_:1})]),_:1})],64)}}});export{Dt as default};