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