(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ead18b5"],{"3a23":function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return s}));var c=a("c621"),n=a("3af9"),o=a("7a23"),l=a("6911");const r=Object.assign(Object.assign({},n["Rb"]),{borderWidth:"8px",top:"-8px",left:"-8px",width:"calc(100% + 16px)",height:"calc(100% + 16px)"});var s=Object(o["defineComponent"])({name:"DesignerTab",mixins:[n["u"],l["a"],n["D"]],props:Object.assign(Object.assign({},n["v"]),{emptyHeight:{type:Number,default:n["l"].DesignerTab.emptyHeight},emptyHint:{type:String,default:n["l"].DesignerTab.emptyHint}}),setup(e){const{protocolVersion:t}=Object(n["fd"])(),a=()=>{const a=e.currentInstance;if(a){const l=n["R"].fetchOptions(a);l.title=c["CastHelper"].cast(Object(o["computed"])(()=>{const t=e.currentInstance;return t?Object(c["translateValueByKey"])(n["gb"].computeTabTitle(t)||c["DEFAULT_TAB_TITLE"]):Object(c["translateValueByKey"])(c["DEFAULT_TAB_TITLE"])})),n["ob"].isV3(t.value)&&(l.normalMaskStyle=r),l.removeMessage=Object(c["translateValueByKey"])(n["l"].DesignerTab.removeMessage)}};Object(n["md"])(a);const l=Object(c["useInjectOioTabsContext"])(),s=Object(o["computed"])(()=>l.tabPosition.value===c["OioTabPosition"].TOP?"40px":"254px");return{emptyHeight:s}}});const i={key:0,class:"designer-tab-item",style:{flex:"1 1 0"}};function d(e,t,a,c,n,l){const r=Object(o["resolveComponent"])("empty-draggable"),s=Object(o["resolveComponent"])("k-draggable");return Object(o["openBlock"])(),Object(o["createBlock"])(s,{class:Object(o["normalizeClass"])([e.isV3ProtocolVersion?"designer-tab oio-row":"designer-tab-v2","designer-tab-"+e.layout,e.currentInstance.children.length?"":"designer-tab-empty"]),list:e.currentInstance.children,"item-key":"id",group:e.currentInstance.draggableGroup,"component-data":e.isV3ProtocolVersion?e.rowComponentData:void 0,sort:e.isAllowElementSort(e.currentInstance),direction:e.DraggableDirection.HORIZONTAL,swapThreshold:.6,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,"disable-add":e.isDisableAddElement(e.currentInstance),mapper:e.isV3ProtocolVersion?e.mapper:void 0,currentInstance:e.currentInstance},Object(o["createSlots"])({item:Object(o["withCtx"])(({element:t,index:a,colData:c})=>[e.isV3ProtocolVersion?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t.id,class:Object(o["normalizeClass"])(["designer-tab-item",e.fetchDraggableIgnoredClass(t)]),style:Object(o["normalizeStyle"])(c.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-tab-item",e.fetchDraggableIgnoredClass(t)])},[Object(o["renderSlot"])(e.$slots,"default",{instance:t,index:a})],2)),[[o["vShow"],e.isShowInstance(t)]])]),_:2},[e.isEmptyInstance(e.currentInstance)?{name:"footer",fn:Object(o["withCtx"])(()=>[e.isV3ProtocolVersion?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["createVNode"])(r,{height:e.emptyHeight,text:e.emptyHint},null,8,["height","text"])])):(Object(o["openBlock"])(),Object(o["createBlock"])(r,{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","disable-add","mapper","currentInstance"])}s.render=d,s.__file="src/view/component/designer-draggable/component/container/tabs/DesignerTab.vue"},6911:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var c=a("c621"),n=a("3af9"),o=a("7a23");function l(e){n["R"].isModal(e).result||(e.element.properties&&delete e.element.properties.layout,e.children.forEach(e=>l(e)))}const r={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(n["gd"])(),t=Object(o["computed"])(()=>c["Optional"].ofNullable(this.currentInstance).map(e=>n["R"].fetchProperties(e)).map(e=>e.layout).map(e=>c["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=>l(e))}),Object(n["kd"])({layout:t}),{layout:t}}}}}]);