Liferay.Loader.define("item-selector-taglib@5.2.9/item_selector_uploader/js/utils/getPreviewProps",["module","exports","require"],(function(e,t,i){window;{function r(e){return{groups:[{data:[{key:Liferay.Language.get("format"),value:e.type},{key:Liferay.Language.get("size"),value:Liferay.Util.formatStorage(e.size)},{key:Liferay.Language.get("name"),value:e.name}],title:Liferay.Language.get("file-info")}]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function({closeCaption:e,file:t,itemData:i,itemSelectedEventName:a,uploadItemReturnType:l}){const u=i.file,n=u.url;let f=u.resolvedValue;if(!f){const e={fileEntryId:u.fileEntryId,groupId:u.groupId,title:u.title,type:u.type,url:n,uuid:u.uuid};f=JSON.stringify(e)}return{currentIndex:0,handleSelectedItem:({returntype:e,value:t})=>{Liferay.Util.getOpener().Liferay.fire(a,{data:{returnType:e,value:t}})},headerTitle:e,itemReturnType:l,items:[{fileEntryId:u.fileEntryId,metadata:JSON.stringify(r(t)),mimeType:u.mimeType,returntype:l,title:u.title,url:n,value:f}]}};t.default=a}}));
//# sourceMappingURL=getPreviewProps.js.map