(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ced8d26a"],{"09a7":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("9127"),r=a("3af9"),o=a("7a23"),c=a("c765");function l(e){const t=e.element.properties;r["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(c["b"])(),t=Object(o["computed"])(()=>n["F"].ofNullable(this.currentInstance).map(e=>r["R"].fetchProperties(e)).map(e=>e.layout).map(e=>n["t"][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(c["a"])({layout:t}),{layout:t}}}},b8cb:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a("3af9");const r=["TreeSelect","Cascader","Address","Company","Department","Employee"];function o(e){var t;if(Object(n["Gc"])(e)){const a=null===(t=e.currentWidget)||void 0===t?void 0:t.widgetName;if(a)return r.includes(a)}return!1}},b919:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return m}));var n=a("9127"),r=a("3af9"),o=a("7a23"),c=a("b8cb"),l=a("09a7"),i=a("2695");a("c765"),a("b90b");const s=Object.assign(Object.assign({},r["Rb"]),{top:"0",height:"100%"}),d=Object.assign(Object.assign({},r["Sb"]),{top:"0"}),b={top:"12px",height:"calc(100% - 24px)"};var m=Object(o["defineComponent"])({name:"DesignerMobileForm",mixins:[r["u"],r["r"],l["a"],i["a"]],props:Object.assign(Object.assign({},r["v"]),{emptyHeight:{type:Number,default:r["l"].DesignerForm.emptyHeight},emptyHint:{type:String,default:r["l"].DesignerForm.emptyHint}}),setup(e){const{protocolVersion:t}=Object(r["fd"])(),a=()=>{const a=e.currentInstance;if(!a)return;const c=r["R"].fetchOptions(a);c.title=n["f"].cast(Object(o["computed"])(()=>{var t,a;return Object(n["W"])((null===(a=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===a?void 0:a.title)||"表单组件")})),r["ob"].isV3(t.value)&&(c.normalMaskStyle=s,c.toolbarStyle=d,c.toolbarMaskTooltipStyle=b)};return Object(r["md"])(a),{isNotSupportWidget:c["a"]}}});const u={class:"designer-form-item",style:{flex:"1 1 0"}};function p(e,t,a,n,r,c){const l=Object(o["resolveComponent"])("empty-draggable"),i=Object(o["resolveComponent"])("k-draggable");return Object(o["openBlock"])(),Object(o["createBlock"])(i,{class:Object(o["normalizeClass"])(["mobile-designer-form oio-m-row","designer-form-"+e.layout,e.isInline?"designer-form-inline":"",e.mainAreaChildren.length?"":"designer-form-empty"]),list:e.mainAreaChildren,"item-key":"id",group:e.mainArea.draggableGroup,"component-data":e.rowComponentData,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.mapper,currentInstance:e.mainArea},Object(o["createSlots"])({item:Object(o["withCtx"])(({element:t,index:a,colData:n})=>[Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t.id,class:Object(o["normalizeClass"])(["designer-form-item",e.fetchDraggableIgnoredClass(t)]),style:Object(o["normalizeStyle"])(n.style)},[Object(o["renderSlot"])(e.$slots,"default",{instance:t,index:a})],6)),[[o["vShow"],e.isShowInstance(t)&&!e.isNotSupportWidget(t)]])]),_:2},[e.isEmptyInstance(e.mainArea)?{name:"footer",fn:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("div",u,[Object(o["createVNode"])(l,{height:"100%",text:e.emptyHint},null,8,["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"])}m.render=p,m.__file="src/view/component/designer-draggable/component/view/form/DesignerForm.vue"},c765:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return i}));var n=a("9127"),r=a("7a23");const o={layout:Object(r["computed"])(()=>n["t"].VERTICAL)},c=Symbol("MobileDesignerFieldContext"),l=e=>{Object(r["provide"])(c,Object.assign(Object.assign({},o),e))},i=()=>Object(r["inject"])(c,Object.assign({},o))}}]);