PageSourceSearch

https://useyourcredits.com/_next/static/chunks/5790.e26355b60805fb1c.js

js useyourcredits.com collected 2026-10-04 10:10:46 UTC 11,059 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4bb4c76-bc5f-4e9d-8c3d-c41928582e04",e._sentryDebugIdIdentifier="sentry-dbid-d4bb4c76-bc5f-4e9d-8c3d-c41928582e04")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5790],{58:(e,t,r)=>{r.d(t,{bq:()=>i,eb:()=>m,gC:()=>u,l6:()=>d,yv:()=>c});var a=r(7485),s=r(42729),l=r(86348),n=r(72741);let o=s.createContext(void 0),d=e=>{let{value:t="",onValueChange:r,children:l}=e,[n,d]=s.useState(!1),[i,c]=s.useState(""),u=s.useRef(null);s.useEffect(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let m=s.useCallback((e,t)=>{c(t),null==r||r(e)},[r]);return(0,a.jsx)(o.Provider,{value:{value:t,label:i,onValueChange:m,open:n,setOpen:d},children:(0,a.jsx)("div",{className:"relative",ref:u,children:l})})},i=s.forwardRef((e,t)=>{let{className:r,children:d,...i}=e,c=s.useContext(o);if(!c)throw Error("SelectTrigger must be used within Select");return(0,a.jsxs)("button",{ref:t,type:"button",className:(0,n.cn)("flex h-10 w-full items-center justify-between rounded-full border border-input bg-white px-5 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-[#91C8E4]",r),onClick:()=>c.setOpen(!c.open),...i,children:[d,(0,a.jsx)(l.A,{className:"h-4 w-4 opacity-50"})]})});i.displayName="SelectTrigger";let c=e=>{let{placeholder:t}=e,r=s.useContext(o);if(!r)throw Error("SelectValue must be used within Select");return(0,a.jsx)("span",{children:r.label||r.value||t})},u=e=>{let{children:t,className:r,side:l="bottom"}=e,d=s.useContext(o);if(!d)throw Error("SelectContent must be used within Select");return(0,a.jsx)("div",{role:"listbox",className:(0,n.cn)("absolute z-50 max-h-60 w-full overflow-auto rounded-md border border-slate-300 bg-white text-[#2D4E68] shadow-lg","bottom"===l?"top-full mt-1":"bottom-full mb-1",!d.open&&"hidden",r),children:t})},m=e=>{let{value:t,children:r,className:l}=e,d=s.useContext(o);if(!d)throw Error("SelectItem must be used within Select");let i=d.value===t,c=s.useMemo(()=>(function e(t){return null==t||"boolean"==typeof t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):s.isValidElement(t)?e(t.props.children):""})(r).replace(/\s+/g," ").trim(),[r]);return s.useEffect(()=>{i&&c&&d.label!==c&&d.onValueChange(t,c)},[i,c,t,d]),(0,a.jsx)("div",{role:"option","aria-selected":i,className:(0,n.cn)("relative flex cursor-pointer select-none items-center rounded px-4 py-2 text-sm hover:bg-[#91C8E4] hover:text-white",i&&"bg-[#91C8E4] text-white",l),onClick:()=>{d.onValueChange(t,c),d.setOpen(!1)},children:r})}},11764:(e,t,r)=>{r.d(t,{QF:()=>n,SG:()=>o,Zn:()=>s,aq:()=>l,mP:()=>i,vS:()=>d});var a=r(83354);let s={headlineFirstCard:"Welcome — your first card is in!",headlineSubsequent:e=>"".concat(e," added!"),subhead:"What do you want to do next?",subheadNudge:"Nice streak — ready to see your perks in action?",primary:{title:"See your benefits",subtitle:e=>"number"==typeof e&&e>0?"".concat(e," perks ready to use"):"Start using the perks on this card"},secondary:{title:"Track this application",subtitle:"Log signup-bonus progress & approval status"},tertiary:{prompt:"Have more cards?",title:"Add another card",subtitle:"Track every card in your wallet",cta:"Add another card"},organize:{prompt:"Two of the same card?",title:"Organize into groups",subtitle:"Sort cards by person or category (e.g. P1 / P2)"},dismiss:"I'll explore later"};function l(e){let{isFirstCard:t,cardName:r,annualValueCents:l}=e;if("number"==typeof l&&l>0){let e="".concat((0,a.YD)(l),"/yr in benefits");return t?"You just unlocked ".concat(e):"".concat(r," added — ").concat(e)}return t?s.headlineFirstCard:s.headlineSubsequent(r)}function n(e){let{annualValueCents:t,benefitCount:r,nudge:a}=e;return a?s.subheadNudge:"number"==typeof t&&t>0&&"number"==typeof r&&r>0?"across ".concat(r," benefits — what do you want to do next?"):s.subhead}let o=3,d={dialog:{headline:"Hold onto your benefits.",body:"Sign up free to track which credits you've used and which expire soon. We'll send a reminder before you lose them.",primaryCta:"Sign up free",secondaryCta:"I already have an account",dismiss:"Maybe later"},inline:{headline:"Don't miss your benefits",subhead:"Sign up free — we'll remind you before credits expire.",cta:"Sign up free"}},i={welcome:{headline:e=>e?"Welcome, ".concat(e,"!"):"Welcome to UseYourCredits",body:"Let's add your first card so you can start using your perks.",cta:"Get started"},pick:{headline:"Pick a card to get started",body:"These are the cards most people add first. Pick one to add it now.",escape:"Don't see yours? Search all cards"},add:{headline:e=>"Add your ".concat(e),body:"Just the basics — you can edit details anytime.",nicknameLabel:"Nickname (optional)",submit:"Add card",back:"Back"},success:{headline:"Card added!",body:"Your perks are ready. Where do you want to go next?"}}},60202:(e,t,r)=>{r.d(t,{A:()=>b});var a=r(7485),s=r(42729),l=r(81389),n=r.n(l),o=r(63229),d=r(51674),i=r(38536),c=r(11954),u=r(59937),m=r(11764),h=r(80870);function b(e){let{popularCards:t,allCards:r,onSelect:l,onBack:b,headlineOverride:p,bodyOverride:f,viewAllHref:x,onViewAll:g}
1=e,[y,w]=(0,s.useState)(""),v=(0,s.useMemo)(()=>(0,c.A)({cards:r,benefits:[],guides:[],resultsPerCategory:18}),[r]),j=(0,s.useMemo)(()=>{let e=y.trim();if(!e)return t;let r=v.search(e).cards.map(e=>e.item);return(0,u.Gx)(r)},[y,t,v]),N=y.trim().length>0,k=null!=p?p:m.mP.pick.headline,C=null!=f?f:m.mP.pick.body;return(0,a.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,a.jsx)("button",{type:"button",onClick:b,"aria-label":"Back",className:"rounded-full p-1.5 text-slate-500 hover:bg-slate-100 transition",children:(0,a.jsx)(o.A,{className:"w-5 h-5"})}),(0,a.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold text-slate-900",children:k})]}),(0,a.jsx)("p",{className:"text-slate-600 mb-6 ml-9",children:C}),(0,a.jsxs)("div",{className:"ml-9 mb-6 relative max-w-md",children:[(0,a.jsx)(d.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,a.jsx)("input",{type:"search",value:y,onChange:e=>w(e.target.value),placeholder:"Search all cards…","aria-label":"Search all cards",className:"w-full pl-9 pr-3 py-2 rounded-lg border border-slate-200 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none text-sm"})]}),(0,a.jsx)("p",{className:"ml-9 mb-3 text-xs uppercase tracking-wide text-slate-500 font-semibold",children:N?'Results for "'.concat(y.trim(),'"'):"Popular cards"}),0===j.length?(0,a.jsx)("p",{className:"ml-9 text-slate-500",children:N?"No matches. Try a different name or issuer.":"No popular cards available."}):(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:ml-9",children:j.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>l(e),className:"group flex items-center gap-3 p-3 rounded-xl border border-slate-200 bg-white hover:border-blue-400 hover:shadow-sm transition text-left",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-16 h-10 flex items-center justify-center bg-slate-50 rounded-md overflow-hidden",children:(0,a.jsx)(h.default,{slug:e.slug,name:e.name,width:64,height:40})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-slate-900 line-clamp-2 group-hover:text-blue-700",children:e.name}),(0,a.jsxs)("div",{className:"text-xs text-slate-500 mt-0.5 truncate",children:[e.issuer,e.notAvailableForNewApplications&&(0,a.jsx)("span",{className:"ml-2 inline-flex items-center px-1.5 py-0.5 rounded-md bg-slate-100 text-slate-500 text-[10px] font-medium",children:"Not accepting"})]})]})]},e.id))}),x&&(0,a.jsx)("div",{className:"ml-9 mt-6 text-center sm:text-left",children:(0,a.jsxs)(n(),{href:x,onClick:g,className:"inline-flex items-center gap-1.5 text-sm font-medium text-deep-blue hover:text-orange-500 transition-colors",children:[(0,a.jsx)("span",{children:"View all cards"}),(0,a.jsx)(i.A,{className:"w-3.5 h-3.5"})]})})]})}},80870:(e,t,r)=>{r.d(t,{default:()=>n});var a=r(7485),s=r(42729),l=r(15675);function n(e){let{slug:t,name:r,width:n=320,height:o=200,className:d="",isUnavailable:i}=e,[c,u]=(0,s.useState)(!1);return(0,a.jsx)(l.default,{src:c?"/images/cards/placeholder.svg":"/images/cards/".concat(t,".png"),alt:r,width:n,height:o,className:"".concat(d," ").concat(i?"grayscale opacity-60":""),onError:()=>u(!0)})}},92165:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var a=r(7485),s=r(42729),l=r(99438),n=r(5502),o=r(59937),d=r(60814),i=r(99060),c=r(60202);function u(e){let{loopIteration:t,source:r,onDismiss:u,onCardAdded:m}=e,[h,b]=(0,s.useState)("pick"),[p,f]=(0,s.useState)(null),{data:x=[]}=(0,n.Hi)(),g=(0,s.useMemo)(()=>(0,o.Zr)(x),[x]),{trackOnboardingWizardShown:y,trackOnboardingWizardStepViewed:w,trackOnboardingWizardCardSelected:v,trackOnboardingWizardCompleted:j,trackOnboardingWizardDismissed:N}=(0,d.z1)(),k=(0,s.useRef)(!1),C=(0,s.useRef)(null),S=(0,s.useRef)(!1),A=(0,s.useRef)(Date.now());(0,s.useEffect)(()=>{k.current||(k.current=!0,y({trigger:"add_another_loop",platform:"web"}))},[y]),(0,s.useEffect)(()=>{C.current!==h&&(C.current=h,w({step:h,cardId:null==p?void 0:p.id,platform:"web"}))},[h,null==p?void 0:p.id,w]);let E=()=>{S.current||N({step:h,secondsOnWizard:Math.round((Date.now()-A.current)/1e3),platform:"web"}),u()};
1return"add"===h&&p?(0,a.jsx)(i.A,{card:p,isOpen:!0,onClose:()=>{b("pick"),f(null)},onCardAdded:e=>{S.current=!0,e&&j({userCardId:e.userCardId,cardId:e.cardId,secondsToComplete:Math.round((Date.now()-A.current)/1e3),platform:"web"}),m()},postAddSource:r,postAddLoopIteration:t}):(0,a.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"add-another-card-headline",className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center p-4 z-[9999] animate-in fade-in-0 duration-200",children:(0,a.jsxs)("div",{className:"bg-white rounded-2xl w-full max-w-3xl max-h-[90vh] overflow-y-auto border border-slate-100 animate-in zoom-in-95 slide-in-from-bottom-4 duration-300 ease-out",children:[(0,a.jsx)("button",{type:"button",onClick:E,"aria-label":"Close",className:"absolute top-4 right-4 rounded-full p-1.5 hover:bg-slate-100 text-slate-500 transition z-10",children:(0,a.jsx)(l.A,{className:"w-5 h-5"})}),(0,a.jsx)("div",{className:"px-6 pt-8 pb-8 sm:px-10",children:(0,a.jsx)("div",{id:"add-another-card-headline",children:(0,a.jsx)(c.A,{popularCards:g,allCards:x,onSelect:e=>{v({cardId:e.id,cardName:e.name,cardIssuer:e.issuer,platform:"web"}),f(e),b("add")},onBack:E,headlineOverride:"Pick your next card",bodyOverride:"Pick one to add it now.",viewAllHref:"/cards",onViewAll: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.