import{j as m}from"./vendor-mui-69397583.js";import{h as _,d as I,A as $}from"./index-c62ac197.js";import{r as L}from"./vendor-react-ece1c85f.js";function M(t,o){if(!o)return"/img/logo/";const s=o.replace(/\\/g,"/").split("/").map(encodeURIComponent).join("/");return`${t}/${s}`}const P="/img/logo/",y=t=>{const{type:o="full",mode:l="light",className:s,imgClass:d,style:p,logoWidth:h="auto"}=t,{logoIconLightMode:i,fullLogoIconLightMode:r,logoIconDarkMode:a,fullLogoIconDarkMode:c}=_(e=>e==null?void 0:e.theme),g=L.useMemo(()=>{const e={streamline_light:i,full_light:r,streamline_dark:a,full_dark:c},u=`${o}_${l}`,n=e[u],f=(n==null?void 0:n.settingFilePath)||"";return M(window.RUNTIME_CONFIG.VITE_API_BASE_URL,f)},[o,l,i,r,a,c]);return m.jsx("div",{className:I("logo",s),style:{...p,width:h},children:m.jsx("img",{style:{fill:`${l}`},className:d,src:g==="/img/logo/"?`${P}logo-${l}-${o}.png`:g,alt:`${$} logo`})})};export{y as L};
