Loading
function(e,t,n){"use strict";n.d(t,{A:()=>E,O:()=>A});var l=n(627968),i=n(64700),s=n(503698),r=n.n(s),a=n(989349),o=n.n(a),u=n(278416),c=n(834730),d=n(459192),m=n(990078),h=n(262427),p=n(396583),f=n(375708),g=n(82199);function E(e){let{className:t,Icon:n=u.g,customGraphic:i,gradientColor:s="green",tooltip:a,...o}=e,c=()=>(0,l.jsx)(h.A,{className:r()(g.Xx,t),gradientColor:s,...null!=i?{customGraphic:i}:{Icon:n},...o});return null!=a&&"object"==typeof a?(0,l.jsx)(d.u,{assetSize:48,...a,children:c()}):null!=a&&"string"==typeof a?(0,l.jsx)(m.m,{text:a,children:c()}):c()}function A(e){let{text:t,endDatetime:n,...s}=e,[r,a]=i.useState(()=>C(n));return(0,p.A)(()=>{a(C(n))},1e3),(0,l.jsx)(E,{...s,children:(0,l.jsxs)("div",{className:g.Yu,children:[(0,l.jsx)(c.E,{variant:"text-xs/semibold",color:"currentColor",children:t}),null!=r?(0,l.jsx)(c.E,{className:g.cR,variant:"text-xs/medium",color:"currentColor",children:r}):null]})})}function C(e){if(null==e)return null;let t=o()(),n=o()(new Date(e)).diff(t,"days");return n<=0?null:f.intl.formatToPlainString(f.t.BXpdIg,{days:Math.max(n,1)})}}