import{C as e,S as t,St as n,T as r,X as i,Y as a,ct as o,dt as s,j as c,nn as l,tt as u,w as d,wt as f}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{t as p}from"./_plugin-vue_export-helper-CnS4QQza.js";import{Ci as m,Ct as h,Gt as g,Xi as _,ei as v}from"./stores-BWYw2E2w.js";import{n as y}from"./ChildrenRenderer-Da6qWp02.js";var b={class:`theme-controller-render py-3 flex flex-col items-center mb-3`},x=p(c({__name:`ThemeControllerRender`,props:{updateFlag:{},controllerType:{},xmlObj:{}},setup(c){i(`isPreviewForm`,n(!0));let p=c,x=n(!1),S=f(null),C=()=>{let e=p.controllerType||``;/^gx-pc/.test(e)?(S.value=h(e),x.value=_.find(t=>t.name===e)?.defaultColumn===320):/^gx-mobile/.test(e)?(S.value=y(e),x.value=g.find(t=>t.name===e)?.defaultColumn===320):S.value=null},w=n(null),T=()=>{let e=p.xmlObj,t=p.controllerType||``;if(!e||!t){w.value=null;return}w.value=m(t,e,``,``,{},null)||null};return o(()=>p.updateFlag,()=>{C(),T()},{immediate:!0}),(n,i)=>(a(),r(`div`,b,[i[0]||=t(`p`,{style:{color:`#6B7280`},class:`text-xs`},`实时预览`,-1),t(`div`,{class:l([`render-wrap w-full mt-3 flex flex-row min-h-12`,`${x.value?`child-full-width`:`justify-center`}`])},[w.value?(a(),e(v,{class:l(`fjs-element `),controller:w.value,hiddenOperate:!0,hiddenBorder:!0,isRootPanel:!1,hoverShowOperate:!1,innerLabelLayout:`左边`,innerLabelWidth:`100`,key:w.value.timeKey},{default:s(()=>[(a(),e(u(S.value),{"item-element":w.value,key:w.value.timeKey},null,8,[`item-element`]))]),_:1},8,[`controller`])):d(``,!0)],2)]))}}),[[`__scopeId`,`data-v-0f40158d`]]);export{x as default};