import{_ as w}from"./index-BwK8zDrs.js";import{l as h,m as B,H as T,h as k}from"./element-plus-z3MwpXC9.js";import{a as D,s as E}from"./decoration-BKETkxh7.js";import{_ as N}from"./mobile-style.vue_vue_type_script_setup_true_lang-lalRrIMk.js";import{d as U,r as p,b as L,f as P,o as n,c as d,V as m,M as e,a as S,u,i as I,U as c,aa as J,L as _,Q as M,S as O}from"./@vue-TMcuEboY.js";import"./index-DXEGVToZ.js";import"./nprogress-Cgf5DU8x.js";import"./balanced-match-mNcR6oh4.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./@element-plus-DRBc1Xzw.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./dayjs-CMfar2R3.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./index.vue_vue_type_script_setup_true_lang-Cj_-Ra1I.js";import"./theme-picker-CTBnkHcF.js";const F={class:"mt-[-10px]"},wt=U({__name:"style",setup(H){const a=p(0),s=p([{name:"移动端",id:5,component:N,data:{themeColorId:1,topTextColor:"white",navigationBarColor:"",themeColor1:"",themeColor2:"",buttonColor:"white"}}]),o=L(()=>s.value[a.value]||{}),l=async()=>{const i=await D({id:o.value.id});o.value.data=JSON.parse(i.data)},f=async()=>{await E({id:o.value.id,type:o.value.id,data:JSON.stringify(o.value.data)}),l()};return P(async()=>{await l()}),(i,r)=>{const b=h,v=B,C=T,V=k,y=w;return n(),d(c,null,[m(C,{shadow:"never",class:"!border-none"},{default:e(()=>[S("div",F,[m(v,{modelValue:u(a),"onUpdate:modelValue":r[0]||(r[0]=t=>I(a)?a.value=t:null)},{default:e(()=>[(n(!0),d(c,null,J(u(s),(t,g)=>(n(),_(b,{key:t.id,label:t.name,name:g},{default:e(()=>[(n(),_(M(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(y,{class:"mt-4",fixed:!0},{default:e(()=>[m(V,{type:"primary",onClick:f},{default:e(()=>r[1]||(r[1]=[O("保存")])),_:1})]),_:1})],64)}}});export{wt as default};
