"use strict";(self["webpackChunk_zoom_client_email_desktop"]=self["webpackChunk_zoom_client_email_desktop"]||[]).push([[797],{41797:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var n=function(){var e=this,t=e._self._c;return t("div",{class:["select-item"],on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleOpen.apply(null,arguments)}}},[t("div",{staticClass:"select-item_left"},[t("img",{attrs:{src:e.getIcon(e.uploadItem[e.type],e.prefersColorScheme),alt:""}})]),t("div",{staticClass:"select-item_right"},[t("zm-tooltip",{attrs:{"popper-class":"attachment-name-tooltip",placement:"bottom",content:e.uploadItem[e.type]}},[t("div",{class:["name","much-hidden"]},[e._v(e._s(e.uploadItem[e.type]))])]),t("div",{staticClass:"content-info"},["Error"===e.uploadItem.downloadStatus?t("span",{staticClass:"download-error-forward"},[t("i",{staticClass:"zm-icon-corner-error"}),t("span",[e._v(e._s(e.$t("common.downloadError")))])]):t("span",[e._v(e._s(e.formatSize(e.uploadItem.size)))])])],1),t("div",{staticClass:"delete"},[e.showDelete?t("svg-icon",{staticClass:"attachment-delete-icon",attrs:{iconClass:"delete"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleClick(e.uploadItem)}}}):e._e()],1)])},a=[],l=o(34948),i=o(20629),s=o(71071),c={props:{select:{type:Boolean,default:!1},uploadItem:{type:Object,required:!0},type:{type:String,default:"fileName"},showDelete:{type:Boolean,default:!0},downloadStatus:String},computed:(0,l.Z)((0,l.Z)({},(0,i.rn)(["prefersColorScheme"])),{},{percentage:function(){return(this.uploadItem.fileSize||0)/this.uploadItem.size}}),methods:{handleOpen:function(){},handleCancel:function(){this.$emit("handleCancel",this.uploadItem)},handleDownLoad:function(){this.$emit("handleDownLoad",this.uploadItem)},handleClick:function(e){this.$emit("deleteItem",e)},getIcon:function(e,t){return(0,s.L)(e,t)},formatSize:function(e){return e<1024?e+"bytes":e>=1024&&e<1048576?(e/1024).toFixed(1)+"KB":e>=1048576?(e/1048576).toFixed(1)+"MB":void 0}}},r=c,d=o(93483),p=(0,d.Z)(r,n,a,!1,null,"90593f50",null),u=p.exports}}]);