"use strict";(self.webpackChunkLHCReactAPP=self.webpackChunkLHCReactAPP||[]).push([[396],{2396:function(e,t,n){n.r(t);var i=n(6540);t.default=function(e){var t=e.previewFiles,n=e.onRemoveFile,a=e.t;return t&&0!==t.length?i.createElement("div",{className:"border-top p-2 w-100 file-preview-container",style:{bottom:"100%",left:0,zIndex:10}},i.createElement("div",{className:"d-flex flex-wrap gap-2"},t.map((function(e,t){return i.createElement("div",{key:e.id||t,className:"file-preview-item position-relative"},e.previewUrl&&e.type&&e.type.startsWith("image/")?i.createElement("div",{className:"position-relative"},i.createElement("img",{src:e.previewUrl,alt:e.name,className:"file-preview-image border rounded",style:{width:"80px",height:"80px",objectFit:"cover"}}),i.createElement("button",{type:"button",className:"position-absolute top-0 end-0 btn btn-danger btn-sm rounded-circle d-flex align-items-center justify-content-center",onClick:function(){return n(e.id)},title:a("chat.remove_file"),style:{width:"20px",height:"20px",fontSize:"0.7rem",transform:"translate(50%, -50%)"}},"×")):i.createElement("div",{className:"position-relative d-flex align-items-center bg-light border rounded p-2"},i.createElement("i",{className:"material-icons me-2 text-muted"},""),i.createElement("span",{className:"small text-truncate",style:{maxWidth:"80px"}},e.name),i.createElement("button",{type:"button",className:"position-absolute top-0 end-0 btn btn-danger btn-sm rounded-circle d-flex align-items-center justify-content-center",onClick:function(){return n(e.id)},title:a("chat.remove_file"),style:{width:"20px",height:"20px",fontSize:"0.7rem",transform:"translate(50%, -50%)"}},"×")))})))):null}}}]);
//# sourceMappingURL=396.da7a8f4bd7f9edbaeadc.js.map