PageSourceSearch

https://fillrate.app/assets/trial-banner-AiZjesUT.js

js fillrate.app collected 2026-10-02 01:13:34 UTC 1,593 bytes, 1 lines download raw bytes

1import{b as l,d,j as t,L as o}from"./index-BxMItG-b.js";import{T as u}from"./triangle-alert-DfRdMDt1.js";import{C as b}from"./clock-EgAxfusY.js";function p(){const[a]=l(),{data:e}=d({queryKey:["/api/billing/status"],staleTime:60*1e3});if(a.startsWith("/settings/plan")||!e||e.subscriptionStatus==="lifetime"||e.hasStripeSubscription&&e.subscriptionStatus==="active"||e.subscriptionStatus!=="trial"&&e.subscriptionStatus!=="trialing"||e.daysLeft==null)return null;const r=e.daysLeft<=0,s=!r&&e.daysLeft<=3,n=r?"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-900 text-red-800 dark:text-red-200":s?"bg-amber-50 dark:bg-amber-950/30 border-amber-200 dark:border-amber-900 text-amber-800 dark:text-amber-200":"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-900 text-blue-800 dark:text-blue-200",i=r?"Your free trial has ended — add a payment method to keep using FillRate.":e.daysLeft===1?"1 day left on your free trial.":`${e.daysLeft} days left on your free trial.`;return t.jsxs("div",{className:`flex items-center gap-2 px-4 py-1.5 border-b text-xs ${n}`,"data-testid":"banner-trial",children:[r?t.jsx(u,{className:"h-3.5 w-3.5 shrink-0"}):t.jsx(b,{className:"h-3.5 w-3.5 shrink-0"}),t.jsx("span",{className:"font-medium","data-testid":"text-trial-banner-message",children:i}),t.jsx(o,{href:"/settings/plan",children:t.jsxs("button",{type:"button",className:"text-xs font-semibold underline-offset-2 hover:underline ml-1 cursor-pointer","data-testid":"button-trial-banner-upgrade",children:[r?"Add payment":"Upgrade now"," →"]})})]})}export{p as TrialBanner};

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.