System.register(["./vendor-legacy-2701520b.js","./index-legacy-2b663974.js"],(function(e,t){"use strict";var n,l,i,o=document.createElement("style");return o.textContent=".lj-media-input[data-v-5ee443df]{display:block;overflow:hidden;width:0;height:0}.lj-dialog-root .lj-dialog-main{width:100vw;height:100vh}.lj-dialog-root .lj-dialog-main.is-align-center{display:flex;justify-content:center;align-items:center}.lj-dialog-root .lj-dialog-main.is-align-center .lj-dialog-content{margin:0!important}\n",document.head.appendChild(o),{setters:[function(e){n=e.r,l=e.w},function(e){i=e.n}],execute:function(){e("L",i({__name:"LJMediaInput",emits:["change"],setup:function(e,t){var l=t.expose,i=t.emit,o=n(),a=function(){o.value.value="",o.value.click()},s=function(e){return(e/1024/1024).toFixed(2)+"MB"};return l({mediaClick:a}),{__sfc:!0,ljMediaInputRef:o,emits:i,mediaClick:a,getMediaType:function(e){return e?e.indexOf("video")>-1?"video":e.indexOf("audio")>-1?"audio":e.indexOf("image")>-1?"image":"other":null},getSize:s,changeMedia:function(e){var t=e.target.files[0],n={raw:t,name:t.name,size:s(t.size),type:t.type};i("change",n)}}}},(function(){var e=this._self._c;return e("div",{staticClass:"lj-media-input"},[e("input",{ref:"ljMediaInputRef",attrs:{type:"file",accept:"video/*,audio/*",multiple:!1},on:{change:this._self._setupProxy.changeMedia}})])}),[],!1,null,"5ee443df",null,null).exports),e("u","/svg/video-icon-450c14c8.svg");var t={__name:"LJDialog",props:{value:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},center:{type:Boolean,default:!1},closeModal:{type:Boolean,default:!1},closeEsc:{type:Boolean,default:!1},destroyClose:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},isSubmit:{type:Boolean,default:!0},submitLoading:{type:Boolean,default:!1},footer:{type:Boolean,default:!0},title:{type:String,default:"提示"},width:{type:String,default:"30%"},cancelText:{type:String,default:"取 消"},confirmText:{type:String,default:"确 定"}},emits:["input","cancel","confirm"],setup:function(e,t){var i=t.emit,o=e,a=n(o.value);l((function(){return o.value}),(function(e){a.value=e}));var s=function(){a.value=!1,i("input",!1)};return{__sfc:!0,emits:i,props:o,dialogVisible:a,changeClose:function(){s()},handleClose:s,handleCancel:function(){s()},handleConfirm:function(){i("confirm"),o.isSubmit||s()}}}};e("a",i(t,(function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"lj-dialog-root"},[t("el-dialog",{staticClass:"lj-dialog-main",class:{"is-align-center":e.alignCenter},attrs:{"append-to-body":!0,"custom-class":"lj-dialog-content",center:e.center,"close-on-click-modal":e.closeModal,"close-on-press-escape":e.closeEsc,visible:n.dialogVisible,"show-close":e.showClose,"destroy-on-close":e.destroyClose,width:e.width},on:{"update:visible":function(e){n.dialogVisible=e},close:n.changeClose}},[e._t("title",(function(){return[t("template",{slot:"title"},[e._v(" "+e._s(e.title)+" ")])]})),e._t("default",(function(){return[t("span",[e._v("这是一段信息")])]})),e._t("footer",(function(){return[e.footer?t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:n.handleCancel}},[e._v(e._s(e.cancelText))]),t("el-button",{attrs:{type:"primary",loading:e.submitLoading},on:{click:n.handleConfirm}},[e._v(" "+e._s(e.confirmText)+" ")])],1):e._e()]}))],2)],1)}),[],!1,null,null,null,null).exports)}}}));
