import{r as t,h as s}from"./p-38dcedc4.js";import{l as i,m as o}from"./p-c3d35135.js";import{a as n}from"./p-63e3a721.js";import{m as a}from"./p-3935e744.js";import{e as l,g as e}from"./p-8d47f7b8.js";import"./p-202e7480.js";import"./p-f2660943.js";import"./p-5a5a5c96.js";const r=class{constructor(s){t(this,s),this.modelObj={},this.cfg=[]}componentWillLoad(){this.initData()}async initData(){const t=await i.create({message:"模型加载中..."});this.model=this.item.model,!0!==this.model.isFill&&(await this.model.fill(),console.log(this.model,l(this.model)),this.item.text=l(this.model)),this.cfg=await a.getConfigJson(this.model),this.modelObj=e(this.model),setTimeout((()=>{t.dismiss()}),300)}dismissModal(){o.dismiss()}render(){return[s("ion-header",{translucent:!0},s("ion-toolbar",null,s("ion-buttons",{slot:"start"},s("ion-button",{onClick:this.dismissModal},"返回")),s("ion-title",null,this.item.text),this.item.enableOpenDesign?s("ion-buttons",{slot:"end"},s("ion-button",{onClick:t=>{t.stopPropagation(),n.openDesignView(this.model)}},"设计")):null)),s("ion-content",{fullscreen:!0},s("ibz-model-list",{model:this.model,modelObj:this.modelObj,cfg:this.cfg}))]}};r.style=":host{display:block}";export{r as app_model_main}