(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2222ff"],{ce18:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return i}));var n=c("c621"),a=c("3af9"),r=c("d5fa"),l=c("7a23"),i=Object(l["defineComponent"])({name:"DesignerCardRowActionsArea",mixins:[a["u"],a["H"]],components:{OioDivider:r["OioDivider"]},props:Object.assign(Object.assign({},a["v"]),{emptyHeight:{type:Number,default:40},emptyHint:{type:String,default:a["cb"]}}),setup(e){const t=()=>{const t=e.currentInstance;if(!t)return;const c=a["R"].fetchOptions(t);c.title=n["CastHelper"].cast(Object(l["computed"])(()=>{var t,c;return Object(n["translateValueByKey"])((null===(c=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===c?void 0:c.title)||a["cb"])}))};Object(a["md"])(t);const c=Object(l["computed"])(()=>{var t;const c=[],a=null===(t=e.currentInstance)||void 0===t?void 0:t.children.length;if(a){const e=100/a;for(let t=1;t<a;t++)c.push({key:Object(n["uniqueKeyGenerator"])(),style:{left:e*t+"%"}})}return c}),r=Object(l["computed"])(()=>({maxWidth:100/(c.value.length+1)+"%"})),i=Object(l["computed"])(()=>{var t;return!!(null===(t=e.currentInstance)||void 0===t?void 0:t.element.isVirtual)});return{dividers:c,actionStyle:r,invisible:i}}});function o(e,t,c,n,a,r){const i=Object(l["resolveComponent"])("empty-draggable"),o=Object(l["resolveComponent"])("oio-divider"),s=Object(l["resolveComponent"])("k-draggable");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{class:Object(l["normalizeClass"])(["designer-card-row-actions-area",e.invisible&&"designer-card-row-actions-area-invisible",e.currentInstance.children.length?"":"designer-card-row-actions-area-empty"]),style:Object(l["normalizeStyle"])(e.currentInstance.children.length&&e.instanceStyleProperties)},[Object(l["createVNode"])(s,{class:Object(l["normalizeClass"])(["designer-card-row-actions",e.currentInstance.children.length?"":"designer-card-row-actions-empty"]),list:e.currentInstance.children,"item-key":"id",group:e.currentInstance.draggableGroup,sort:e.isAllowElementSort(e.currentInstance),direction:e.DraggableDirection.VERTICAL,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,"draggable-filter":e.draggableFilter,"disable-add":e.isDisableAddElement(e.currentInstance),currentInstance:e.currentInstance},{item:Object(l["withCtx"])(({element:t,index:c})=>[Object(l["withDirectives"])(Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["designer-card-row-actions-item",e.fetchDraggableIgnoredClass(t)]),style:Object(l["normalizeStyle"])(e.actionStyle)},[Object(l["renderSlot"])(e.$slots,"default",{instance:t,index:c})],6),[[l["vShow"],e.isShowInstance(t)]])]),footer:Object(l["withCtx"])(()=>[e.isEmptyInstance(e.currentInstance)?(Object(l["openBlock"])(),Object(l["createBlock"])(i,{key:0,class:"designer-card-row-actions-item",height:"100%","min-height":e.emptyHeight,text:e.emptyHint},null,8,["min-height","text"])):Object(l["createCommentVNode"])("v-if",!0),(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(e.dividers,(e,t)=>(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:e.key,type:"vertical",style:Object(l["normalizeStyle"])(e.style)},null,8,["style"]))),128))]),_:3},8,["class","list","group","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","currentInstance"])],6)}i.render=o,i.__file="src/view/component/designer-draggable/component/element/card/DesignerCardRowActionsArea.vue"}}]);