"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=e.defineComponent({__name:"message-abstract-file",props:{contentText:{default:()=>[]},messageContent:{default:()=>({})},displayType:{default:"bubble"}},setup(n){const t=n,o=e.ref(t.contentText),s=e.computed((()=>{var e;const n=null==(e=null==t?void 0:t.messageContent)?void 0:e.url,o=null==n?void 0:n.lastIndexOf("."),s=null==n?void 0:n.substring(o+1);return l(s)})),r=e.computed((()=>{var e;return null==(e=null==t?void 0:t.messageContent)?void 0:e.size})),l=e=>{const n="https://web.sdk.qcloud.com/component/TUIKit/assets/file-",t=["image","pdf","text","ppt","presentation","sheet","zip","word","video","unknown"];let o="",s="";return null==t||t.forEach((t=>{(null==e?void 0:e.includes(t))&&(o=n+t+".svg",s=t)})),{iconSrc:o||n+"unknown.svg",iconType:s||"unknown"}};return(n,t)=>({a:e.unref(s).iconSrc,b:e.f(e.unref(o),((n,t,o)=>({a:e.t(n.text),b:t,c:e.n(n&&n.isHighlight?"highlight":"normal")}))),c:e.t(e.unref(r)),d:e.n(`message-abstract-file-${n.displayType}`)})}}),t=e._export_sfc(n,[["__scopeId","data-v-5d509f53"]]);wx.createComponent(t);
