(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96f04202"],{"09a7":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("9127"),c=n("3af9"),l=n("7a23"),r=n("c765");function o(e){const t=e.element.properties;c["R"].isModal(e).result||(t&&delete t.layout,e.children.forEach(e=>o(e)))}const i={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(r["b"])(),t=Object(l["computed"])(()=>a["F"].ofNullable(this.currentInstance).map(e=>c["R"].fetchProperties(e)).map(e=>e.layout).map(e=>a["t"][e.toUpperCase()]).orElse(e.value));return Object(l["watch"])(()=>{var e,t,n;return null===(n=null===(t=null===(e=this.currentInstance)||void 0===e?void 0:e.element)||void 0===t?void 0:t.properties)||void 0===n?void 0:n.layout},()=>{var e;null===(e=this.currentInstance)||void 0===e||e.children.forEach(e=>o(e))}),Object(r["a"])({layout:t}),{layout:t}}}},c765:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n("9127"),c=n("7a23");const l={layout:Object(c["computed"])(()=>a["t"].VERTICAL)},r=Symbol("MobileDesignerFieldContext"),o=e=>{Object(c["provide"])(r,Object.assign(Object.assign({},l),e))},i=()=>Object(c["inject"])(r,Object.assign({},l))},cc09:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n("9127"),c=n("3af9"),l=n("7a23"),r=n("09a7"),o=n("2695"),i=(n("c765"),n("b90b"),Object(l["defineComponent"])({name:"DesignerMobileView",mixins:[c["u"],r["a"],o["a"]],props:Object.assign(Object.assign({},c["v"]),{emptyHeight:{type:Number,default:500},emptyHint:{type:String,default:"视图区：拖拽「视图」相关组件在这里配置视图模板"}}),setup(e){const t=()=>{const t=e.currentInstance;if(t){const n=c["R"].fetchOptions(t);n.title=a["f"].cast(Object(l["computed"])(()=>{var t,n,l,r;let o=null===(n=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===n?void 0:n.title;if(!o){const t=null===(r=null===(l=e.currentInstance)||void 0===l?void 0:l.element)||void 0===r?void 0:r.subtype;if(t)switch(t){case c["A"].TABLE:o="表格视图";break;case c["A"].FORM:o="表单视图";break;case c["A"].DETAIL:o="详情视图";break;case c["A"].SEARCH:o="搜索视图";break;case c["A"].GALLERY:o="画廊视图";break}}return Object(a["W"])(o||"视图")}))}};Object(c["md"])(t);const n=Object(l["computed"])(()=>{var t,n,a,c;return null===(c=null===(a=null===(n=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===n?void 0:n.subtype)||void 0===a?void 0:a.toLocaleLowerCase)||void 0===c?void 0:c.call(a)}),r={[c["A"].SEARCH]:1,[c["A"].GALLERY]:2,[c["A"].ACTION_BAR]:10},o=5,i=Object(l["computed"])(()=>{const t=a["F"].ofNullable(e.currentInstance).map(e=>e.children.filter(e=>e.element.bizType!==c["B"].SLOT)).orElse([]);return t.sort((e,t)=>(r[e.element.subtype]||o)-(r[t.element.subtype]||o)),t});return{viewType:n,realChildren:i}}}));const s={class:"designer-view-item",style:{flex:"1 1 0"}};function d(e,t,n,a,c,r){const o=Object(l["resolveComponent"])("empty-draggable"),i=Object(l["resolveComponent"])("k-draggable");return Object(l["openBlock"])(),Object(l["createBlock"])(i,{class:Object(l["normalizeClass"])(["mobile-designer-view oio-m-row",e.viewType?"designer-view-"+e.viewType:""]),list:e.realChildren,"item-key":"id",group:e.currentInstance.draggableGroup,"component-data":e.rowComponentData,sort:e.isAllowElementSort(e.currentInstance),direction:e.DraggableDirection.VERTICAL,invertSwap:!0,disabled:e.isFixedInstance(e.currentInstance),"start-callback":e.startCallback,"end-callback":e.endCallback,"added-callback":e.addedCallback,"moved-callback":e.movedCallback,"removed-callback":e.removedCallback,"move-to-self-callback":e.moveToSelfCallback,"move-to-other-callback":e.moveToOtherCallback,"draggable-filter":e.draggableFilter,"disable-add":e.isDisableAddElement(e.currentInstance),mapper:e.mapper,currentInstance:e.currentInstance},Object(l["createSlots"])({item:Object(l["withCtx"])(({element:t,index:n,colData:a})=>[Object(l["withDirectives"])((Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:t.id,class:Object(l["normalizeClass"])(["designer-view-item",e.fetchDraggableIgnoredClass(t),"designer-view-item-"+t.element.subtype])},[Object(l["renderSlot"])(e.$slots,"default",{instance:t,index:n})],2)),[[l["vShow"],e.isShowInstance(t)]])]),_:2},[e.isEmptyInstance(e.currentInstance)?{name:"footer",fn:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("div",s,[Object(l["createVNode"])(o,{height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"])])]),key:"0"}:void 0]),1032,["class","list","group","component-data","sort","direction","disabled","start-callback","end-callback","added-callback","moved-callback","removed-callback","move-to-self-callback","move-to-other-callback","draggable-filter","disable-add","mapper","currentInstance"])}i.render=d,i.__file="src/view/component/designer-draggable/component/view/DesignerView.vue"}}]);