PageSourceSearch

https://banks.eu/assets/deposit-offers-table-D_rWG7Uc.js

js banks.eu collected 2026-10-02 06:40:46 UTC 5,495 bytes, 1 lines download raw bytes

1import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{K as n}from"./useStore-Ci4S_CLI.js";import{a as r}from"./l-BdbS_Tq8.js";import{n as i}from"./breadcrumbs-C745ugXH.js";var a=e(n(),1),o=t(),s={Austria:`AT`,Belgium:`BE`,Bulgaria:`BG`,Croatia:`HR`,Cyprus:`CY`,"Czech Republic":`CZ`,Czechia:`CZ`,Denmark:`DK`,Estonia:`EE`,Finland:`FI`,France:`FR`,Germany:`DE`,Greece:`GR`,Hungary:`HU`,Ireland:`IE`,Italy:`IT`,Latvia:`LV`,Lithuania:`LT`,Luxembourg:`LU`,Malta:`MT`,Netherlands:`NL`,Poland:`PL`,Portugal:`PT`,Romania:`RO`,Slovakia:`SK`,Slovenia:`SI`,Spain:`ES`,Sweden:`SE`,Switzerland:`CH`};function c({rows:e,showTerm:t=!0,pageSize:n}){let{t:c}=r(),[l,u]=(0,a.useState)(`rate`),[d,f]=(0,a.useState)(`desc`),[p,m]=(0,a.useState)(0),h=(0,a.useMemo)(()=>{let t=[...e];return t.sort((e,t)=>{let n=0,r=0;return l===`rate`?(n=e.rate_pct??-1,r=t.rate_pct??-1):l===`min`?(n=e.min_deposit??0,r=t.min_deposit??0):l===`term`?(n=e.term_months??0,r=t.term_months??0):(n=e.bank_name,r=t.bank_name),n<r?d===`asc`?-1:1:n>r?d===`asc`?1:-1:0}),t},[e,l,d]),g=(0,a.useMemo)(()=>{if(!n)return h;let e=p*n;return h.slice(e,e+n)},[h,n,p]),_=n?Math.max(1,Math.ceil(h.length/n)):1,v=e=>{l===e?f(d===`asc`?`desc`:`asc`):(u(e),f(e===`rate`?`desc`:`asc`))},y=({k:e,label:t})=>(0,o.jsx)(`th`,{className:`px-4 py-3 text-xs font-bold uppercase tracking-widest text-brand-slate`,children:(0,o.jsxs)(`button`,{onClick:()=>v(e),className:`inline-flex items-center gap-1 hover:text-brand-navy`,children:[t,l===e&&(0,o.jsx)(`span`,{"aria-hidden":!0,children:d===`asc`?`▲`:`▼`})]})}),b=(e,t)=>{if(e==null)return`—`;let n=t??`EUR`;try{return new Intl.NumberFormat(`en-EU`,{style:`currency`,currency:n,maximumFractionDigits:0}).format(e)}catch{return`${n} ${e.toLocaleString()}`}};return(0,o.jsxs)(`div`,{className:`overflow-hidden rounded-2xl border border-brand-line bg-white shadow-sm`,children:[(0,o.jsxs)(`table`,{className:`w-full text-left`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{className:`border-b border-brand-line bg-slate-50`,children:[(0,o.jsx)(y,{k:`bank`,label:c(`table.bank`)}),(0,o.jsx)(`th`,{className:`px-4 py-3 text-xs font-bold uppercase tracking-widest text-brand-slate`,children:c(`table.country`)}),(0,o.jsx)(y,{k:`rate`,label:c(`table.ratePa`)}),t&&(0,o.jsx)(y,{k:`term`,label:c(`table.term`)}),(0,o.jsx)(y,{k:`min`,label:c(`table.minDeposit`)}),(0,o.jsx)(`th`,{className:`px-4 py-3 text-xs font-bold uppercase tracking-widest text-brand-slate`,children:c(`table.payment`)}),(0,o.jsx)(`th`,{className:`px-4 py-3 text-right text-xs font-bold uppercase tracking-widest text-brand-slate`,children:c(`table.apply`)})]})}),(0,o.jsxs)(`tbody`,{className:`divide-y divide-brand-line`,children:[g.map(e=>{let n=e.country?s[e.country]:null;return(0,o.jsxs)(`tr`,{className:`transition-colors hover:bg-slate-50/50`,children:[(0,o.jsxs)(`td`,{className:`px-4 py-4`,children:[(0,o.jsx)(`div`,{className:`font-semibold`,children:e.bank_name}),e.product_kind&&(0,o.jsx)(`div`,{className:`text-xs capitalize text-brand-slate`,children:e.product_kind})]}),(0,o.jsxs)(`td`,{className:`px-4 py-4 text-sm`,children:[n&&(0,o.jsx)(`span`,{className:`mr-1.5`,"aria-hidden":!0,children:i(n)}),e.country??`—`]}),(0,o.jsxs)(`td`,{className:`px-4 py-4 text-xl font-bold text-brand-blue`,children:[e.rate_pct==null?`—`:`${Number(e.rate_pct).toFixed(2)}%`,e.rate_pct!=null&&/lidion/i.test(e.bank_name)&&(0,o.jsx)(`sup`,{className:`ml-0.5 text-xs font-semibold text-brand-slate`,title:c(`table.lidionBonus`),children:`*`})]}),t&&(0,o.jsx)(`td`,{className:`px-4 py-4 text-sm`,children:e.term_months&&e.term_months>0?`${e.term_months} ${c(`table.months`)}`:c(`table.flexible`)}),(0,o.jsx)(`td`,{className:`px-4 py-4 font-mono text-sm`,children:b(e.min_deposit,e.currency)}),(0,o.jsx)(`td`,{className:`px-4 py-4 text-xs text-brand-slate`,children:e.interest_frequency??`—`}),(0,o.jsx)(`td`,{className:`px-4 py-4 text-right`,children:e.website?(0,o.jsx)(`a`,{href:e.website,target:`_blank`,rel:`noreferrer nofollow`,className:`text-sm font-semibold text-brand-blue hover:underline`,children:c(`table.visit`)}):(0,o.jsx)(`span`,{className:`text-brand-slate`,children:`—`})})]},e.id)}),g.length===0&&(0,o.jsx)(`tr`,{children:(0,o.jsx)(`td`,{colSpan:7,className:`px-4 py-12 text-center text-brand-slate`,children:c(`table.noOffers`)})})]})]}),g.some(e=>/lidion/i.test(e.bank_name))&&(0,o.jsx)(`div`,{className:`border-t border-brand-line bg-slate-50 px-4 py-2 text-xs text-brand-slate`,children:c(`table.lidionBonus`)}
1),n&&_>1&&(0,o.jsxs)(`div`,{className:`flex items-center justify-between border-t border-brand-line bg-slate-50 px-4 py-3 text-sm`,children:[(0,o.jsxs)(`div`,{className:`text-brand-slate`,children:[p*n+1,`–`,Math.min((p+1)*n,h.length),` of `,h.length]}),(0,o.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,o.jsx)(`button`,{type:`button`,onClick:()=>m(e=>Math.max(0,e-1)),disabled:p===0,className:`rounded-md border border-brand-line bg-white px-3 py-1.5 text-xs font-semibold uppercase tracking-widest text-brand-slate hover:text-brand-navy disabled:opacity-40`,children:`← Prev`}),(0,o.jsxs)(`span`,{className:`text-xs text-brand-slate`,children:[`Page `,p+1,` / `,_]}),(0,o.jsx)(`button`,{type:`button`,onClick:()=>m(e=>Math.min(_-1,e+1)),disabled:p>=_-1,className:`rounded-md border border-brand-line bg-white px-3 py-1.5 text-xs font-semibold uppercase tracking-widest text-brand-slate hover:text-brand-navy disabled:opacity-40`,children:`Next →`})]})]})]})}export{c 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.