(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4ca2a30"],{"09a7":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var c=n("9127"),a=n("3af9"),o=n("7a23"),r=n("c765");function l(e){const t=e.element.properties;a["R"].isModal(e).result||(t&&delete t.layout,e.children.forEach(e=>l(e)))}const i={props:{currentInstance:{type:Object,required:!0}},data(){const{layout:e}=Object(r["b"])(),t=Object(o["computed"])(()=>c["F"].ofNullable(this.currentInstance).map(e=>a["R"].fetchProperties(e)).map(e=>e.layout).map(e=>c["t"][e.toUpperCase()]).orElse(e.value));return Object(o["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=>l(e))}),Object(r["a"])({layout:t}),{layout:t}}}},c765:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return i}));var c=n("9127"),a=n("7a23");const o={layout:Object(a["computed"])(()=>c["t"].VERTICAL)},r=Symbol("MobileDesignerFieldContext"),l=e=>{Object(a["provide"])(r,Object.assign(Object.assign({},o),e))},i=()=>Object(a["inject"])(r,Object.assign({},o))},ecf4:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var c=n("9127"),a=n("3af9"),o=n("b90b"),r=n("7a23"),l=n("09a7"),i=n("eefe");n("c765");const s="确定删除布局容器和其中的容器及组件";var d=Object(r["defineComponent"])({name:"DesignerMobileContainers",mixins:[a["u"],l["a"]],components:{OioCol:o["y"]},props:Object.assign(Object.assign({},a["v"]),{minContainerCount:{type:Number}}),setup(e,t){const{focusData:n}=Object(a["fd"])(),o=Object(r["ref"])({}),l=()=>{const t=e.currentInstance;if(!t)return;const n=a["R"].fetchOptions(t);n.cols=c["h"],n.title=c["f"].cast(Object(r["computed"])(()=>{var t,n;return Object(c["W"])((null===(n=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===n?void 0:n.title)||"布局容器")})),n.removeCondition=()=>t.children.some(e=>e.children.some(e=>!!e.children.length)),n.removeMessage=Object(c["W"])(s)};Object(a["md"])(l);const d=Object(r["computed"])(()=>{const o=a["O"].fetchRowComponentData(e.currentInstance,e.currentInstance.level,c["L"].parse(t.attrs.style),!0);let r=[0,24];const l=n.value,i=e.currentInstance;return l&&i&&a["R"].contains(l,i)&&(r=[0,16]),Object.assign(Object.assign({},o),{gutter:r})}),u=e=>{const{gutter:t}=d.value;return a["O"].fetchColComponentData(e,e.level,void 0,!1,t)},b=({element:e,index:t})=>({element:e,index:t,colData:u(e)});return Object(i["b"])({containerCount:Object(r["computed"])(()=>Object.keys(o.value).length),minContainerCount:Object(r["computed"])(()=>e.minContainerCount),mountedContainer:e=>{o.value[e]=!0},unmountedContainer:e=>{delete o.value[e]}}),{containerCollection:o,rowComponentData:d,colComponentData:u,mapper:b}}});function u(e,t,n,c,a,o){const l=Object(r["resolveComponent"])("k-draggable");return Object(r["openBlock"])(),Object(r["createBlock"])(l,{class:Object(r["normalizeClass"])(["mobile-designer-containers"]),list:e.currentInstance.children,"item-key":"id",group:e.currentInstance.draggableGroup,"component-data":e.rowComponentData,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,"draggable-filter":e.draggableFilter,"disable-add":!0,mapper:e.mapper,currentInstance:e.currentInstance},{item:Object(r["withCtx"])(({element:t,index:n,colData:c})=>[Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["designer-containers-item",e.fetchDraggableIgnoredClass(t)]),key:t.id,style:Object(r["normalizeStyle"])(c.style)},[Object(r["renderSlot"])(e.$slots,"default",{instance:t,index:n})],6)),[[r["vShow"],e.isShowInstance(t)]])]),_:3},8,["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","mapper","currentInstance"])}d.render=u,d.__file="src/view/component/designer-draggable/component/container/containers/DesignerContainers.vue"},eefe:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return r}));var c=n("7a23");const a={containerCount:Object(c["computed"])(()=>0),minContainerCount:Object(c["computed"])(()=>{}),mountedContainer:()=>{},unmountedContainer:()=>{}},o=Symbol("MobileDesignerContainersContextKey"),r=e=>{Object(c["provide"])(o,Object.assign(Object.assign({},a),e))},l=()=>Object(c["inject"])(o,a)}}]);