1import{j as e}from"./vendor-ui-x7D0iLe8.js";import{r as t,L as c}from"./vendor-react-aMKJrssV.js";import{d as u,X as x}from"./index-DQ5XgqgM.js";import{C as f}from"./clock-BR6WxgL9.js";import"./vendor-data-LOeL2b27.js";const i="eqiqs_trial_ending_dismissed",j=()=>{const{isTrial:n,trialDaysLeft:s,tier:a}=u(),[o,r]=t.useState(!1);if(t.useEffect(()=>{sessionStorage.getItem(i)==="1"&&r(!0)},[]),o||!n||s==null||s>3||s<0)return null;const l=s===0,d=s===0?"today":s===1?"tomorrow":`in ${s} days`,m=()=>{sessionStorage.setItem(i,"1"),r(!0)};return e.jsxs("div",{role:"status",className:`w-full px-4 py-2.5 flex items-center justify-center gap-3 text-sm font-body border-b ${l?"bg-amber-500/15 text-amber-700 dark:text-amber-400 border-amber-500/30":"bg-primary/10 text-foreground border-primary/20"}`,children:[e.jsx(f,{className:"h-4 w-4 shrink-0"}),e.jsxs("span",{className:"truncate",children:["Your ",e.jsx("strong",{className:"font-semibold capitalize",children:a})," trial ends"," ",e.jsx("strong",{children:d}),".",e.jsx("span",{className:"hidden sm:inline",children:" Add a card to keep your access â cancel anytime."})]}),e.jsx(c,{to:"/billing",className:"shrink-0 inline-flex items-center rounded-md bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground hover:bg-primary/90 transition-colors",children:"Add payment"}),e.jsx("button",{onClick:m,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 text-muted-foreground hover:text-foreground hover:bg-foreground
1/5 transition-colors",children:e.jsx(x,{className:"h-3.5 w-3.5"})})]})};export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.