(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22ce83"],{f4dc:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var c=n("3af9"),r=n("7a23"),o=n("c621"),a=n("d5fa"),i=Object(r["defineComponent"])({name:"EmptyData",props:{currentWidget:{type:Object,required:!0},errorMessage:{type:String}},components:{OioIcon:a["OioIcon"]}});const s={class:"empty-data"},d={class:"icon"},l={class:"empty-data-text"};function p(e,t,n,c,o,a){const i=Object(r["resolveComponent"])("oio-icon");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[Object(r["createElementVNode"])("span",d,[Object(r["createVNode"])(i,{icon:"oinone-tixing",size:"14px",color:"var(--oio-error-color)"})]),Object(r["createElementVNode"])("span",l,[e.errorMessage?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.errorMessage),1)],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(`${e.$translate("未设置")}${e.currentWidget.widgetDisplayName}`),1)],64))])])}i.render=p,i.__file="src/view/component/designer-draggable/component/element/media/EmptyData.vue";var m=Object(r["defineComponent"])({name:"SimpleMediaData",props:{currentInstance:{type:Object,required:!0},disable:{type:Boolean,default:!1}},setup(e){return{}}});const u={class:"simple-media-data"};function b(e,t,n,c,o,a){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",u,[Object(r["renderSlot"])(e.$slots,"default")])}function O(e,t){return Object(r["createVNode"])(i,{currentWidget:e,errorMessage:t})}m.render=b,m.__file="src/view/component/designer-draggable/component/element/media/SimpleMediaData.vue";var j=Object(r["defineComponent"])({name:"SimpleMedia",components:{EmptyData:i,SimpleMediaData:m},props:{currentInstance:{type:Object,required:!0}},setup(e){const t=Object(r["computed"])(()=>{const t=e.currentInstance.currentWidget,n={widget:t.widgetName},c=o["BaseElementWidget"].Selector(n);return c?(new o["VueWidget"]).createWidget(c,t.widgetName,{}).getComponent():O(t,Object(o["translateValueByKey"])("无法正确获取组件"))});return{finalComponent:Object(r["toRaw"])(t)}},render(){return Object(r["createVNode"])(m,{currentInstance:this.currentInstance,disable:!0},{default:()=>{var e;return[Object(r["createVNode"])(this.finalComponent,(null===(e=this.currentInstance)||void 0===e?void 0:e.element.properties)||{})]}})}}),g=Object(r["defineComponent"])({name:"DesignerMedia",mixins:[c["u"]],components:{SimpleMedia:j}});const f=["id"];function v(e,t,n,c,o,a){const i=Object(r["resolveComponent"])("simple-media");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{id:e.fetchInstanceDomId(e.currentInstance.id)},[Object(r["createVNode"])(i,{"current-instance":e.currentInstance},null,8,["current-instance"])],8,f)}g.render=v,g.__file="src/view/component/designer-draggable/component/element/DesignerMedia.vue"}}]);