PageSourceSearch

https://fluz.app/assets/EarnBadge-JpI2KFE-.js

js fluz.app collected 2026-09-24 08:54:20 UTC 2,609 bytes, 1 lines download raw bytes

1import{j as e}from"./jsx-runtime-Cf8x2fCZ.js";import{I as c}from"./Button-Clh_B6Kd.js";import{T as g}from"./Tooltip-DHmPkynV.js";import{r as w}from"./index-DVyYOtpF.js";import{a as f}from"./useWindowSize-B91zkAD8.js";import{h as T}from"./moment-DFQk2YtK.js";import{c as R}from"./offer-BVeSIK9V.js";import{f as B,d as I}from"./display-currency-vGF_cvkI.js";import{c as W}from"./index-CJx4bWmi.js";const C="_root_zbry5_8",D="_gradient_zbry5_52",O="_badges_zbry5_74",r={root:C,"spend-label":"_spend-label_zbry5_19","transaction-amount-label":"_transaction-amount-label_zbry5_28","earning-label":"_earning-label_zbry5_37",gradient:D,"locked-percentage":"_locked-percentage_zbry5_59",badges:O,"boost-tooltip":"_boost-tooltip_zbry5_80"},Y=x=>{const{spendValue:m,percentage:t,lockedPercentage:s,earnValue:a,boostAvailable:o=!1,gradient:_=o?"multi2":"multi1",gradientDirection:$="Horizontal",boostPercentage:n,paymentSelected:l,isExclusiveRate:h,isInstantRate:j,isTierCompleted:p,transactionFee:i,transactionAmount:u,exclusiveRateEndDate:y,offers:b,badgeLabelOverride:d}=x,{isBelowThresholdWidth:v}=f({thresholdWidth:1090}),{isBelowThresholdWidth:N}=f({thresholdWidth:576}),E=w.useMemo(()=>d||(o?`UP TO ${n}%`:i||(!l||!a?`EARN ${!l||!R(b)?"UP TO ":""}${t}%`:`EARN ${t}%`)),[d,o,n,a,l,t,i,b]),k=a!==void 0&&a!==""&&Number(a)<=0,z=Number(t)<=0;return k||z?null:e.jsxs("div",{className:r.root,children:[m&&!v?e.jsx("div",{className:r["spend-label"],children:`$${B(m)}`}):null,u!==void 0?e.jsx("div",{className:W([r["spend-label"],r["transaction-amount-label"]]),children:`${I(u)}`}):null,e.jsxs("div",{className:r.badges,children:[e.jsx("div",{className:`${h?"dual4Horizontal":`${_}${$}`} ${r.gradient}`,children:e.jsxs("div",{className:`${r["earning-label"]}`,children:[E,o?e.jsx(g,{content:e.jsx("div",{className:r["boost-tooltip"],children:`You’ll earn ${n}% cashback on first $10 of your purchase and ${t}% on the full amount`}),placement:"top",trigger:["click"],gradientBorder:!0,variant:"light",children:e.jsx("span",{children:e.jsx(c,{name:"InfoEmph",color:"gray_1000",width:"12px",height:"12px"})})}):null]})}),h&&!j&&s?e.jsxs("div",{className:r["locked-percentage"],children:[p?`+ ${s-parseFloat(t)}% BONUS`:`${s}% ${N?"":"LOCKED"}`," ",p?e.jsx(g,{content:`Your bonus will be added when the offer period ends on ${T(y).format("MMM DD")}`,placement:"top",trigger:"click",variant:"dark",offset:[0,25],children:e.jsx("span",{children:e.jsx(c,{name:"InfoEmph",color:"gray_1000",width:"12px",height:"12px"})})}):e.jsx(c,{name:"LockEmph",width:"12px",height:"12px",color:"gray_600"})]}):null]})]})};export{Y as E};

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.