PageSourceSearch

https://debtbusters.com.au/assets/DebtSlider-CACDH9xQ.js

js debtbusters.com.au collected 2026-10-03 21:41:55 UTC 2,958 bytes, 1 lines download raw bytes

1import{G as e,o as t,q as n}from"./useStore-CsI6HBwk.js";import{t as r}from"./proxy-Bm1ey6rX.js";import{t as i}from"./use-reduced-motion-DDuvvmId.js";var a=n(e(),1),o=t(),s=6e4,c=[0,16.67,33.33,50,66.67,83.33,100],l=[{left:`16.67%`,label:`$10k`,phone:!1},{left:`33.33%`,label:`$20k`,phone:!0},{left:`50%`,label:`$30k`,phone:!1},{left:`66.67%`,label:`$40k`,phone:!0},{left:`83.33%`,label:`$50k`,phone:!1}];function u({value:e,onChange:t,ariaLabel:n=`Total debt`,inputId:u}){let[d,f]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),h=i(),g=e/s*100,_=h?{duration:0}:{type:`spring`,stiffness:220,damping:28,mass:.6};return(0,o.jsxs)(`div`,{className:`relative mt-5 pb-1`,children:[(0,o.jsxs)(`div`,{className:`relative h-6`,children:[(0,o.jsxs)(`div`,{className:`absolute inset-x-0 top-1/2 -translate-y-1/2 h-2 rounded-md bg-brand-navy/10 overflow-hidden`,children:[(0,o.jsx)(r.div,{className:`absolute inset-y-0 left-0 rounded-md bg-brand-red`,animate:{width:`${g}%`},transition:_}),!h&&(0,o.jsx)(r.div,{className:`absolute inset-y-0 w-16 bg-gradient-to-r from-transparent via-white/50 to-transparent`,animate:{x:d?[`-100%`,`500%`]:`-100%`},transition:{duration:1.4,repeat:d?1/0:0,ease:`linear`}})]}),(0,o.jsx)(`div`,{className:`absolute inset-x-0 top-1/2 -translate-y-1/2 h-2 pointer-events-none`,children:c.map(e=>(0,o.jsx)(`span`,{className:`absolute top-1/2 -translate-y-1/2 h-3 w-px bg-brand-navy/25`,style:{left:`${e}%`}},e))}),(0,o.jsx)(r.div,{"aria-hidden":!0,className:`absolute top-1/2 pointer-events-none`,style:{left:`${g}%`,x:`-50%`,y:`-50%`},animate:{left:`${g}%`},transition:_,children:(0,o.jsx)(r.div,{animate:{scale:d&&!h?1.08:1},transition:h?{duration:0}:{type:`spring`,stiffness:400,damping:22},className:`h-6 w-6 rounded-md bg-white border border-brand-navy shadow-[0_2px_0_rgba(26,26,26,0.9),0_4px_12px_-2px_rgba(26,26,26,0.25)] flex items-center justify-center ${p?`ring-[3px] ring-[color-mix(in_oklab,var(--brand-red)_70%,transparent)] ring-offset-2`:``}`,children:(0,o.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-sm bg-brand-red`})})}),(0,o.jsx)(`input`,{id:u,type:`range`,min:0,max:s,step:500,value:e,onChange:e=>t(Number(e.target.value)),onPointerDown:()=>f(!0),onPointerUp:()=>f(!1),onPointerCancel:()=>f(!1),onFocus:e=>m(e.target.matches(`:focus-visible`)),onBlur:()=>{f(!1),m(!1)},"aria-label":n,"aria-valuetext":(e=>e>=6e4?`$60,000 or more`:`$${e.toLocaleString(`en-AU`)}`)(e),className:`absolute inset-x-0 -top-2.5 -bottom-2.5 w-full opacity-0 cursor-grab active:cursor-grabbing`})]}),(0,o.jsxs)(`div`,{className:`relative mt-2 h-5 text-caption font-semibold text-brand-navy/70 tabular-nums`,children:[(0,o.jsx)(`span`,{className:`absolute top-0 left-0`,children:`$0`}),l.map(e=>(0,o.jsx)(`span`,{className:`absolute top-0 ${e.phone?``:`hidden sm:inline`}`,style:{left:e.left,transform:`translateX(-50%)`},children:e.label},e.label)),(0,o.jsx)(`span`,{className:`absolute top-0 right-0`,children:`$60k+`})]})]})}export{u as n,s as t};

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.