'use strict';

const getFileUrl = (row) => {
  if (row.bucketName == "Local") {
    return `/${row.filePath}/${row.id}${row.suffix}`;
  } else {
    return `/${row.filePath}/${row.id}${row.suffix}`;
  }
};
const showFileUrl = (url) => {
  if (url == "" || url == null || url == void 0) {
    return "";
  }
  if (url == "logo.png" || url.includes("base64,") > 0) {
    return url;
  }
  if (window.__env__.VITE_IMG_URL) {
    return window.__env__.VITE_IMG_URL + url;
  } else {
    return url;
  }
};

exports.getFileUrl = getFileUrl;
exports.showFileUrl = showFileUrl;
