(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d45cca30"],{"1eb2":function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return d}));var l=a("c621"),n=a("3af9"),o=a("7a23"),c=a("6911");const i=Object.assign(Object.assign({},n["Rb"]),{top:"0",height:"100%"}),r=Object.assign(Object.assign({},n["Sb"]),{top:"0"}),s={top:"12px",height:"calc(100% - 24px)"};var d=Object(o["defineComponent"])({name:"DesignerDetail",mixins:[n["u"],n["r"],c["a"],n["D"]],props:Object.assign(Object.assign({},n["v"]),{emptyHeight:{type:Number,default:n["l"].DesignerDetail.emptyHeight},emptyHint:{type:String,default:n["l"].DesignerDetail.emptyHint}}),setup(e){const{protocolVersion:t}=Object(n["fd"])(),a=()=>{const a=e.currentInstance;if(!a)return;const c=n["R"].fetchOptions(a);c.title=l["CastHelper"].cast(Object(o["computed"])(()=>{var t,a;return Object(l["translateValueByKey"])((null===(a=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===a?void 0:a.title)||"详情组件")})),n["ob"].isV3(t.value)&&(c.normalMaskStyle=i,c.toolbarStyle=r,c.toolbarMaskTooltipStyle=s)};return Object(n["md"])(a),{}}});const b={key:0,class:"designer-detail-item",style:{flex:"1 1 0"}};function m(e,t,a,l,n,c){const i=Object(o["resolveComponent"])("empty-draggable"),r=Object(o["resolveComponent"])("k-draggable");return Object(o["openBlock"])(),Object(o["createBlock"])(r,{class:Object(o["normalizeClass"])([e.isV3ProtocolVersion?"designer-detail oio-row":"designer-detail-v2","designer-detail-"+e.layout,e.isInline?"designer-detail-inline":"",e.mainAreaChildren.length?"":"designer-detail-empty"]),list:e.mainAreaChildren,"item-key":"id",group:e.mainArea.draggableGroup,"component-data":e.isV3ProtocolVersion?e.rowComponentData:void 0,sort:e.isAllowElementSort(e.mainArea),direction:e.DraggableDirection.HORIZONTAL,swapThreshold:.6,disabled:e.isFixedInstance(e.mainArea),"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.mainArea),mapper:e.isV3ProtocolVersion?e.mapper:void 0,currentInstance:e.mainArea},Object(o["createSlots"])({item:Object(o["withCtx"])(({element:t,index:a,colData:l})=>[e.isV3ProtocolVersion?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t.id,class:Object(o["normalizeClass"])(["designer-detail-item",e.fetchDraggableIgnoredClass(t)]),style:Object(o["normalizeStyle"])(l.style)},[Object(o["renderSlot"])(e.$slots,"default",{instance:t,index:a})],6)),[[o["vShow"],e.isShowInstance(t)]]):Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:Object(o["normalizeClass"])(["designer-detail-item",e.fetchDraggableIgnoredClass(t)])},[Object(o["renderSlot"])(e.$slots,"default",{instance:t,index:a})],2)),[[o["vShow"],e.isShowInstance(t)]])]),_:2},[e.isEmptyInstance(e.mainArea)?{name:"footer",fn:Object(o["withCtx"])(()=>[e.isV3ProtocolVersion?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",b,[Object(o["createVNode"])(i,{height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"])])):(Object(o["openBlock"])(),Object(o["createBlock"])(i,{key:1,height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"]))]),key:"0"}:void 0]),1032,["class","list","group","component-data","sort","direction","swapThreshold","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"])}d.render=m,d.__file="src/view/component/designer-draggable/component/view/detail/DesignerDetail.vue"},6911:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var l=a("c621"),n=a("3af9"),o=a("7a23");function c(e){n["R"].isModal(e).result||(e.element.properties&&delete e.element.properties.layout,e.children.forEach(e=>c(e)))}const i={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(n["gd"])(),t=Object(o["computed"])(()=>l["Optional"].ofNullable(this.currentInstance).map(e=>n["R"].fetchProperties(e)).map(e=>e.layout).map(e=>l["FormLayout"][e.toUpperCase()]).orElse(e.value));return Object(o["watch"])(()=>{var e,t,a;return null===(a=null===(t=null===(e=this.currentInstance)||void 0===e?void 0:e.element)||void 0===t?void 0:t.properties)||void 0===a?void 0:a.layout},()=>{var e;null===(e=this.currentInstance)||void 0===e||e.children.forEach(e=>c(e))}),Object(n["kd"])({layout:t}),{layout:t}}}}}]);