(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a43cd"],{"061b":function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return d}));var n=c("9127"),r=c("3af9"),a=c("b90b"),s=c("7ee8"),i=c("bc9b"),o=c("7a23");const l=Object.assign(Object.assign({},r["Rb"]),{pointerEvents:"all"});var d=Object(o["defineComponent"])({name:"DesignerMobileCardCascader",mixins:[r["u"]],props:Object.assign({},r["v"]),setup(e){Object(o["onBeforeMount"])(()=>{const t=e.currentInstance;if(!t)return;const c=r["R"].fetchOptions(t);c.normalMaskStyle=l});const t=Object(o["computed"])(()=>{var t;const c=null===(t=e.currentInstance)||void 0===t?void 0:t.element.properties.nodes;let r=!1;if(null===c||void 0===c?void 0:c.length){const e=[];if(c.forEach(t=>{var c,a,i;const o=null===(c=t.modelDefinition)||void 0===c?void 0:c.model;if(o){const c=Object(n["X"])(),l={key:c,model:o},d=null===(a=t.selfReferencesFieldDefinition)||void 0===a?void 0:a.field;d&&(l.selfReferences={model:(null===(i=t.selfReferencesFieldDefinition)||void 0===i?void 0:i.model)||o,fieldName:d}),t.title&&(r=!0),e.push({key:c,title:n["f"].cast(()=>{const{title:e}=t;if(r||!Object(s["a"])(e))return e||""}),value:l,children:[{key:Object(n["X"])(),title:t.modelDefinition.displayName||Object(n["W"])("未命名模型"),value:{},children:[],isLeaf:!0}],isLeaf:!0})}}),e.length)return e}return[{key:Object(n["X"])(),title:Object(n["W"])("未配置"),value:{},children:[],isLeaf:!0}]}),c=Object(o["computed"])(()=>n["F"].ofNullable(e.currentInstance).map(e=>r["R"].fetchProperties(e)).map(e=>e.enableSearch).map(e=>n["c"].toBoolean(e)).orElse(!1));return{rootNodes:t,enableSearch:c}},render(){const{currentInstance:e}=this;if(!e)return[];const t=[];this.rootNodes.forEach(e=>{var c;const r=!!e.value.selfReferences,{title:s}=e;let l;l=Object(i["a"])(s)?null===(c=n["f"].cast(s))||void 0===c?void 0:c():s,t.push(Object(o["createVNode"])(n["z"],{key:e.key,class:r?"designer-card-cascader-card-tree":"designer-card-cascader-card-list",title:l},{default:()=>{const t=Object(o["createVNode"])("OioTree",{data:e.children});return this.enableSearch?[Object(o["createVNode"])("div",{class:"designer-search-tree-wrapper"},[Object(o["createVNode"])(a["V"],{placeholder:Object(n["W"])("请输入关键字")}),t])]:[t]}}))});let c=t;return Object(o["createVNode"])(n["A"],{class:"mobile-designer-card-cascader",style:Object(r["kc"])(e)},{default:()=>c})}});d.__file="src/view/component/designer-draggable/component/element/card-cascader/DesignerCardCascader.vue"}}]);