"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("classnames"),t=require("moment"),r=require("../Text/Text.js"),s=require("./Warning.js"),o=require("./DqPopover/DqPopover.js"),i=require("./AppFooter.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(a),d=n(t),l=function(a){var t=a.loadDqData,n=void 0===t||t,l=a.multiRigAssets,c=void 0===l?[]:l,m=a.asset,f=a.warningMessage,q=void 0===f?"Recommendations may be incorrect based on data quality errors":f,v=a.showWarning,p=a.testId,j=a.className,x=a.lastUpdate,g=a.dqData,b=function(e){if(e){if("number"==typeof e){var a=Date.now();return Math.abs(a-e)>Math.abs(a-1e3*e)?d.default.unix(e):d.default(e)}return d.default(e)}return null}(x);return e.jsxs("div",{className:u.default(i.root,j),"data-testid":p,children:[e.jsx(o.DqPopover,{asset:m,multiRigAssets:c,forceLoad:n,dqData:g}),(null==b?void 0:b.isValid())&&e.jsxs(r.Text,{color:"T6",size:10,className:i.lastActive,children:["Last Update: ",b.format("MMM D YYYY, hh:mm A")]}),v&&e.jsx(s.Warning,{message:q})]})};l.defaultWarningMessage="Recommendations may be incorrect based on data quality errors";var c=l;exports.AppFooter=c;
//# sourceMappingURL=AppFooter.js.map
