PageSourceSearch

https://www.mintly.uk/_next/static/chunks/pages/tools-3cf9a64a3c19936f.js

js mintly.uk collected 2026-10-04 21:16:17 UTC 34,029 bytes, 37 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1841],{12117:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>F});var a=s(37876),r=s(87444),n=s(1882),i=s(58736),c=s(95062),l=s(40247),d=s(15442),o=s(25922),u=s(49105),h=s(14232),m=s(47607),p=s(74950),x=s(17042),g=s(87979),j=s(88845),b=s(96523),y=s(11041),v=s(44223);s(75886);var f=s(27321),S=s(52296),I=s(12416),A=s(28416),C=s(86245),N=s(48230),w=s(42192);let P=e=>{let{accountResult:t={}}=e,s=t?.DerivedIban||t?.BranchData,r=(0,h.useMemo)(()=>{let e=[];return t?.BranchData?.Address&&(e.push(t.BranchData.Address?.BranchAddressPart1??""),e.push(t.BranchData.Address?.BranchAddressPart2??""),e.push(t.BranchData.Address?.BranchAddressPart3??""),e.push(t.BranchData.Address?.BranchAddressPart4??""),e.push(t.BranchData.Address?.BranchTown??""),e.push(t.BranchData.Address?.BranchCounty??"")),e.filter(e=>""!==e).join(", ")},[t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.Fc,{color:s?"success":"warning",children:[(0,a.jsx)("h3",{children:s?"VALID":"INVALID"}),!s&&(0,a.jsx)("p",{className:"text-default",children:t.Message??t.message??"Invalid data"})]}),t?.DerivedIban&&(0,a.jsx)("div",{className:"mx-0",children:(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"IBAN: "}),t.DerivedIban]})}),t?.BranchData&&!(0,w.A)(t.BranchData)&&(0,a.jsxs)(u.fI,{className:"d-flex",children:[(0,a.jsxs)(u.fv,{md:"7",children:[(0,a.jsx)("h5",{children:"Branch data"}),(0,a.jsx)(u.hh,{target:"bic",placement:"right",children:"Business Identifier Code (Swift Code)"}),(0,a.jsx)(u.XI,{children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Bank Name"}),(0,a.jsx)("td",{children:t.BranchData.Info?.ShortOwningBank})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Branch Name"}),(0,a.jsx)("td",{children:t.BranchData.Info?.ShortBranchTitle})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Sort Code"}),(0,a.jsx)("td",{children:t.BranchData.Info?.SortCode??t.BranchData.Info?.sortCode})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Address"}),(0,a.jsx)("td",{children:r})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Postcode"}),(0,a.jsxs)("td",{children:[(0,a.jsx)(N,{href:`https://www.google.co.uk/maps/${t.BranchData.Address?.BranchPostCode1}${t.BranchData.Address?.BranchPostCode2}`,target:"_blank"}),t.BranchData.Address?.BranchPostCode1," ",t.BranchData.Address?.BranchPostCode2]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Telephone"}),(0,a.jsxs)("td",{children:[t.BranchData.Address?.BranchTelephoneArea," ",t.BranchData.Address?.BranchTelephone]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:["BIC ",(0,a.jsx)(b.g,{icon:y.iW_,id:"bic"})]}),(0,a.jsxs)("td",{children:[t.BranchData.Info?.BicField1!=="NULL"?t.BranchData.Info?.BicField1:""," ",t.BranchData.Info?.BicField2!=="NULL"?t.BranchData.Info?.BicField2:""]})]})]})})]}),(0,a.jsxs)(u.fv,{md:"5",children:[(0,a.jsx)("h5",{children:"Supported Payment Types"}),(0,a.jsx)(u.hh,{target:"auddis",placement:"right",children:"Automated Direct Debit Instruction Service"}),(0,a.jsx)(u.hh,{target:"bacs",placement:"right",children:"Bankers' Automated Clearing System"}),(0,a.jsx)(u.hh,{target:"ics",placement:"right",children:"Image Clearing System (for digital cheques)"}),(0,a.jsx)(u.hh,{target:"sepa",placement:"right",children:"Single European Payments Area"}),(0,a.jsx)(u.XI,{children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Direct Debit Payments"}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.DirectDebitAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Direct Credit Payments"}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.DirectCreditAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Direct Debit Instructions"}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.DirectDebitInstructionsAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:["AUDDIS ",(0,a.jsx)(b.g,{icon:y.iW_,id:"auddis"})]}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.AuddisAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Faster Payments"}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.FasterPaymentsAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:["BACS Payments ",(0,a.jsx)(b.g,{icon:y.iW_,id:"bacs"})]}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.BacsAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:["ICS Payments ",(0,a.jsx)(b.g,{icon:y.iW_,id:"ics"})]}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.IcsAccepted?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:["SEPA Member ",(0,a.jsx)(b.g,{icon:y.iW_,id:"sepa"})]}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.SepaMember?"Yes":"No"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"SEPA Direct Debit Core"}),(0,a.jsx)("td",{children:t.BranchData.PaymentTypes?.SepaDirectDebit?"Yes":"No"})]})]})})]})]})]})};P.propTypes={accountResult:c.shape({DerivedIban:c.string,BranchData:c.shape({Info:c.shape({SortCode:c.string,ShortOwningBank:c.string,ShortBranchTitle:c.string,BicField1:c.string,BicField2:c.string}),Address:c.shape({BranchAddressPart1:c.string,BranchAddressPart2:c.string,BranchAddressPart3:c.string,BranchAddressPart4:c.string,BranchTown:c.string,BranchCounty:c.string,BranchPostCode1:c.string,BranchPostCode2:c.string,BranchTelephoneArea:c.string,BranchTelephone:c.string}),PaymentTypes:c.shape({SepaMember:c.bool,SepaDirectDebit:c.bool,IcsAccepted:c.bool,BacsAccepted:c.bool,FasterPaymentsAccepted:c.bool,DirectDebitInstructionsAccepted:c.bool,DirectCreditAccepted:c.bool,DirectDebitAccepted:c.bool})}),Message:c.string})},P.defaultProps={accountResult:{}};var k=s(25524),B=s(36776);let D=(0,k.qr)().concat((0,k.Xw)()).map(e=>e.productId),E=(e,t)=>(0,a.jsxs)(i.s,{children:[(0,a.jsx)("div",{className:`icon icon-sm bg-${t?"success":"warning"} rounded-circle p-1`,children:(0,a.jsx)(b.g,{icon:t?y.e68:y.bxP,className:"text-white fa-fw"})}),(0,a.jsx)("span",{className:"mt-1",children:e})]}),T=(0,a.jsxs)("p",{children:["Request limit reached. If you're trialling Mintly it's likely 
1you've reached the daily evaluation limit. If you need more checks, please ",(0,a.jsx)(N,{href:"mailto:[email protected]",children:"contact us"})," to upgrade to a paid plan. If you are using a paid subscription, please wait and try again later."]}),M=async e=>(0,v.Vu)(e.map(e=>{if("fulfilled"===e.status){let{InputData:t,...s}=e.value;return{status:"VALID",data:s??"",inputData:t??""}}return{status:"rejected"===e.status&&"ERR_NETWORK"===e.reason.code?"TOO MANY REQUESTS":"INVALID",data:{Status:e.reason.response?.data?.Message??""},inputData:e.reason.InputData??""}})),R=()=>{document.getElementById("result").scrollIntoView({behavior:"smooth"})},G=e=>{let{product:t,endpointUrl:s}=e,[r,n]=(0,h.useState)(!1),[c,l]=(0,h.useState)(),[d,o]=(0,h.useState)(!0),[m,p]=(0,h.useState)(),[x,g]=(0,h.useState)(),[v,w]=(0,h.useState)(),[k,G]=(0,h.useState)(),[$,_]=(0,h.useState)(),[z,q]=(0,h.useState)(),[F,K]=(0,h.useState)(0),[Z,U]=(0,h.useState)(!1),[V,O]=(0,h.useState)("standard"),[Y,L]=(0,h.useState)(),X=(0,h.useRef)(null),{key:W,status:J}=(0,h.useCallback)(t.find(e=>D.some(t=>e.productCode===t))||{},[t]),H=(0,h.useCallback)(t.some(e=>e.description.includes("Starter")||e.description.includes("Trial"))?500:20,[t]),Q=(0,h.useMemo)(()=>t.some(e=>e.description.includes("Trial")),[t]),ee=(0,h.useMemo)(()=>({API:{endpoints:[{name:"BankAccountApi",endpoint:s,custom_header:async()=>({"x-api-key":`${W}`}),paths:["/iban","/sortCode"]}]}}),[W,s]);j.X.configure(ee);let et=(0,h.useCallback)(e=>{let t=e.target.value;l(/^[0-9]{6}$|^[0-9]{2}-[0-9]{2}-[0-9]{2}$/.test(t))},[]),es=(0,h.useCallback)(e=>{let t=e.target.value;o(/^[0-9]{6,10}$|^$/.test(t))},[]),ea=(0,h.useCallback)(e=>{let t=e.target.value.replaceAll(/\s*/g,"");p(/^[a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{5,30}$/.test(t))},[]),er=(0,h.useCallback)(e=>{let t=e.target.value;g(/^[a-zA-Z0-9]{8}\s*[a-zA-Z0-9]{0,3}$/.test(t))},[]),en=(0,h.useCallback)(e=>new Promise(t=>{setTimeout(t,H*e)}),[H]),ei=(0,h.useCallback)(async e=>{n(!0),w(void 0),G(void 0),L(void 0),e.preventDefault();let t=e.target.elements.iban.value.replace(/\s+/g,""),s=`/iban/${t}`;_(s);try{let e=await j.X.get("BankAccountApi",s);w(()=>({...e}))}catch(e){e&&e.response?w(()=>({...e.response.data})):L(T)}n(!1),R()},[]),ec=(0,h.useCallback)(async e=>{n(!0),w(void 0),G(void 0),L(void 0),e.preventDefault();let t=e.target.elements.sortCode.value,s=e.target.elements.accountNumber.value,a=`/sortcode/${t}`;s&&(a+=`/account/${s}`),_(a);try{let e=await j.X.get("BankAccountApi",a);w(()=>({...e}))}catch(e){e&&e.response?w(()=>({...e.response.data})):L(T)}n(!1),R()},[]),el=(0,h.useCallback)(async e=>{n(!0),w(void 0),G(void 0),L(void 0),e.preventDefault();let t=e.target.elements.swiftCode.value.replace(/\s+/g,"");for(;t.length<11;)t=`${t}X`;let s=`/swift/${t}`;_(s);try{let e=await j.X.get("BankAccountApi",s);w(()=>({...e}))}catch(e){e&&e.response?w(()=>({...e.response.data})):L(T)}n(!1),R()},[]),ed=(0,h.useCallback)(async e=>{n(!0),w(void 0),G(void 0),L(void 0),K(0),e.preventDefault();let t=e.target.elements.multi.value,s=e.target.elements.dataType.value;O(s);let a=t.trim().split("\n").map(e=>e.trim()).filter(e=>e.length>0);if(t&&a&&a.length>0){let e=a.map(e=>{if("standard"===s){let t=e.split(",");if(2===t.length)return{submit:!0,sortCode:t[0].trim(),accountNumber:t[1].trim()}}else if("sortcode"===s)return e.includes(",")?{submit:!1,error:"Invalid Sort Code format"}:{submit:!0,sortCode:e.trim()};else if("iban"===s)return e.includes(",")?{submit:!1,error:"Invalid IBAN format"}:{submit:!0,iban:e.trim()};else if("bic"===s)return e.includes(",")?{submit:!1,error:"Invalid BIC format"}:{submit:!0,bic:e.trim()};return{submit:!1,error:`Invalid input: ${e}`}},[]);q(e),G(await Promise.allSettled(e.map(async(e,t)=>e.submit?"standard"===s?en(t).then(()=>K(100*(t+1)/a.length)).then(()=>j.X.get("BankAccountApi",`/sortcode/${e.sortCode}/account/${e.accountNumber}`)).then(t=>Promise.resolve({InputData:`${e.sortCode}-${e.accountNumber}`,...t})).catch(t=>Promise.reject({...t,InputData:`${e.sortCode}-${e.accountNumber}`})):"sortcode"===s?en(t).then(()=>K(100*(t+1)/a.length)).then(()=>j.X.get("BankAccountApi",`/sortcode/${e.sortCode}`)).then(t=>Promise.resolve({InputData:e.sortCode,...t})).catch(t=>Promise.reject({...t,InputData:e.sortCode})):"bic"===s?en(t).then(()=>K(100*(t+1)/a.length)).then(()=>j.X.get("BankAccountApi",`/swift/${e.bic}`)).then(t=>Promise.resolve({InputData:e.bic,...t})).catch(t=>Promise.reject({...t,InputData:e.bic})):en(t).then(()=>K(100*(t+1)/a.length)).then(()=>j.X.get("BankAccountApi",`/iban/${e.iban}`)).then(t=>Promise.resolve({InputData:e.iban,...t})).catch(t=>Promise.reject({...t,InputData:e.iban})):Promise.reject(Error("Invalid input data")))))}n(!1),R()},[]),eo=(0,h.useCallback)(async()=>{Q||((e,t,s)=>{let a=new window.Blob([e],{type:s}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.setAttribute("download",t),n.click()})(await M(k),"validation-results.csv","text/csv;charset=utf-8;")},[k,Q]),eu=(0,h.useCallback)(e=>{let t=new window.FileReader;t.onload=e=>{X.current.value=e.target.result,X.current.focus()},t.readAsText(e,"UTF-8")},[X]),eh=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),U(!0)},[]),em=(0,h.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),U(!1)},[]),ep=(0,h.useCallback)(e=>{e.preventDefault();let t=e.dataTransfer.files[0];t.size>1024e3||eu(t)},[eu]),ex=(0,h.useCallback)(e=>{e.target.files[0]&&!(e.target.files[0].size>1024e3)&&eu(e.target.files[0])},[eu]),eg=(0,h.useMemo)(()=>`
2curl --location --request \\
3GET '${s}${$}' \\
4--header 'X-API-KEY: ${W}'`.trim(),[W,s,$]),ej=(0,h.useMemo)(()=>`
5import axios from 'axios'  // const axios = require('axios') for CommonJS
6const config = {
7  headers: {
8    'X-API-KEY': '${W}'
9  }
10}
11try {
12  const response = await axois.get(
13    '${s}${$}',
14    config
15  )
16  console.log(response)
17} catch (error) {
18  // Handle error
19  console.log(error)
20}`.trim(),[W,s,$]),eb=(0,h.useMemo)(()=>`
21import requests
22try:
23  url = '${s}${$}'
24  headers = { 'X-API-KEY': '${W}' }
25  r = requests.get(url, headers=headers, timeout=0.1)
26  r.raise_for_status()
27  r.json()
28except:
29  # Handle errors
30  ...`.trim(),[W,s,$]),ey=(0,h.useMemo)(()=>`
31var client = new HttpClient();
32var request = new HttpRequestMessage(HttpMethod.Get, "${s}${$}");
33request.Headers.Add("X-API-KEY", "${W}");
34var response = await client.SendAsync(request);
35response.EnsureSuccessStatusCode();
36Console.WriteLine(await response.Content.ReadAsStringAsync());
37`.trim(),[W,s,$]),ev=(0,h.useMemo)(()=>JSON.stringify(v,void 0,2),[v]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"position-relative mt-3",children:[!W&&(0,a.jsxs)(u.Fc,{color:"warning",children:["inactive"===J&&(0,a.jsxs)("p",{className:"text-default",children:["Your subscription has been cancelled. If you wish to re-subscribe, see the ",(0,a.jsx)(N,{href:"/dashboard",children:"My A
37ccount"})," ","page."]}),"inactive"!==J&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"primary text-default",children:"Your account is not linked to an active subscription."}),(0,a.jsx)(N,{href:"/dashboard",children:(0,a.jsx)(u.$n,{children:"Purchase Subscription"})})]})]}),(0,a.jsx)("div",{className:"position-absolute right-2 mt-2",children:(0,a.jsxs)(N,{target:"_blank",href:"/features#help",children:[(0,a.jsx)(b.g,{icon:y.wRm,className:"mr-2"}),(0,a.jsx)("span",{className:"d-none d-md-inline",children:"Get help"})]})}),(0,a.jsxs)(f.t.Container,{backgroundColor:"$primary",defaultValue:"individual",children:[(0,a.jsxs)(f.t.List,{children:[(0,a.jsx)(f.t.Item,{value:"individual",className:"",children:"Individual"}),(0,a.jsx)(f.t.Item,{value:"multiple",className:"",children:"Multiple"})]}),(0,a.jsxs)(f.t.Panel,{value:"individual",children:[(0,a.jsxs)(u.lV,{onSubmit:ec,children:[(0,a.jsxs)(i.s,{children:[(0,a.jsxs)(u.gE,{children:[(0,a.jsxs)(u.JU,{for:"sortCode",children:["Sort\xa0code",(0,a.jsx)("p",{className:"d-none d-md-block small mb-0",children:"Must be 6 digits. Can include dashes."})]}),(0,a.jsx)(u.pd,{placeholder:"12-34-56",id:"sortCode",inputMode:"numeric",required:!0,invalid:!c,onChange:et})]}),(0,a.jsxs)(u.gE,{children:[(0,a.jsxs)(u.JU,{for:"accountNumber",children:["Account\xa0number",(0,a.jsx)("p",{className:"d-none d-md-block small mb-0",children:"Must be between 6 and 10 digits."})]}),(0,a.jsx)(u.pd,{placeholder:"12345678",id:"accountNumber",inputMode:"numeric",invalid:!d,onChange:es})]})]}),(0,a.jsx)(u.gE,{children:(0,a.jsxs)(u.$n,{color:"primary",type:"submit",id:"accButton",disabled:!W||r||!d||!c,children:[r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.aH,{decelerate:"true",textAlign:"center",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"Validating"})]}),!r&&(0,a.jsx)("span",{children:"Validate"})]})})]}),(0,a.jsxs)(u.lV,{onSubmit:ei,children:[(0,a.jsx)(i.s,{children:(0,a.jsxs)(u.gE,{children:[(0,a.jsxs)(u.JU,{for:"iban",children:["IBAN",(0,a.jsx)("p",{className:"d-none d-md-block small mb-0",children:"Can include optional spaces."})," "]}),(0,a.jsx)(u.pd,{placeholder:"GB 99 ABCD 000000 12345678",id:"iban",name:"iban",invalid:!m,onChange:ea,autoComplete:"iban",className:"iban-input"})]})}),(0,a.jsx)(u.gE,{children:(0,a.jsxs)(u.$n,{color:"primary",type:"submit",disabled:!W||r||!m,children:[r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.aH,{decelerate:"true",textAlign:"center",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"Validating"})]}),!r&&(0,a.jsx)("span",{children:"Validate"})]})})]}),(0,a.jsxs)(u.lV,{onSubmit:el,children:[(0,a.jsx)(i.s,{children:(0,a.jsxs)(u.gE,{children:[(0,a.jsxs)(u.JU,{for:"swiftCode",children:["SWIFT/BIC",(0,a.jsx)("p",{className:"d-none d-md-block small mb-0",children:"Can include optional spaces. Must be 8 or 11 digits long."})]}),(0,a.jsx)(u.pd,{placeholder:"HLFXGB21 D70",id:"swiftCode",name:"swiftCode",invalid:!x,onChange:er,autoComplete:"swift"})]})}),(0,a.jsx)(u.gE,{children:(0,a.jsxs)(u.$n,{color:"primary",type:"submit",disabled:!W||r||!x,children:[r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.aH,{decelerate:"true",textAlign:"center",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"Validating"})]}),!r&&(0,a.jsx)("span",{children:"Validate"})]})})]})]}),(0,a.jsxs)(f.t.Panel,{value:"multiple",children:[(0,a.jsxs)(u.lV,{onSubmit:ed,children:[(0,a.jsx)(i.s,{children:(0,a.jsxs)(u.gE,{children:[(0,a.jsxs)(u.JU,{for:"multi",children:["Multiple Accounts",(0,a.jsx)("p",{className:"small",children:"Enter each account on a new line, separating sort code and account number with a comma"})]}),(0,a.jsx)(u.pd,{placeholder:"12-34-56,12345678",id:"multi",name:"multi",innerRef:X,type:"textarea",className:"multiline-input"})]})}),(0,a.jsx)(i.s,{children:(0,a.jsx)(u.gE,{children:(0,a.jsxs)(u.JU,{children:["Data Type",(0,a.jsxs)(I.n,{id:"dataTYpe",n
37ame:"dataType",defaultValue:"standard",direction:"column",children:[(0,a.jsx)(A.s,{value:"standard",children:"Sort code & account number"}),(0,a.jsx)(A.s,{value:"sortcode",children:"Sort code only"}),(0,a.jsx)(A.s,{value:"iban",children:"IBAN"}),(0,a.jsx)(A.s,{value:"bic",children:"BIC"})]})]})})}),(0,a.jsx)(u.gE,{children:(0,a.jsxs)(u.$n,{color:"primary",type:"submit",disabled:!W||r,children:[r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.aH,{decelerate:"true",textAlign:"center",width:"20px",height:"20px"}),(0,a.jsx)("span",{children:"Validating"})]}),!r&&(0,a.jsx)("span",{children:"Validate"})]})})]}),(0,a.jsxs)("div",{className:"p-3 text-center multiline-drop-area",children:[(0,a.jsx)(b.g,{icon:y.cbP,className:"mr-2"}),"Drop file here or click to choose file",(0,a.jsx)("p",{children:"Max file size 1MB. TXT and CSV only."}),(0,a.jsx)("div",{className:Z?"droparea dragging ml--3":"droparea ml--3",onDrop:ep,onDragEnter:eh,onDragLeave:em,children:(0,a.jsx)("input",{type:"file",id:"upload",accept:".txt,.csv",onChange:ex,onClick:e=>{e.target.value=null},onDragEnter:eh,onDragLeave:em})})]}),(0,a.jsx)(u.ke,{value:F,hidden:!r})]})]})]}),Y&&(0,a.jsx)(u.Fc,{color:"warning",className:"text-default",children:Y}),(0,a.jsx)("div",{id:"result",children:(0,a.jsxs)(f.t.Container,{defaultValue:"result",hidden:!v&&!k,className:"mt-3",children:[(0,a.jsxs)(f.t.List,{children:[(0,a.jsx)(f.t.Item,{value:"result",children:"Result"}),(0,a.jsx)(f.t.Item,{value:"request",disabled:!v,children:"API Request Examples"}),(0,a.jsx)(f.t.Item,{value:"response",disabled:!v,children:"API Response Body"})]}),(0,a.jsxs)(f.t.Panel,{value:"result",children:[(0,a.jsx)("div",{className:"m-3",hidden:!v,children:(0,a.jsx)(P,{accountResult:v})}),(0,a.jsx)("div",{className:"m-3",hidden:!k,children:k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.n.Container,{type:"multiple",children:k.map((e,t)=>{if("fulfilled"===e.status){let s="";switch(V){case"standard":case"sortcode":case"iban":s=e.value.DerivedIban??e.value.BranchData.Info.SortCode;break;case"bic":s=`${e.value.BranchData.Info.BicField1}${e.value.BranchData.Info.BicField2}`}return(0,a.jsxs)(C.n.Item,{value:`${e.value.DerivedIban}-${t}`,backgroundColor:"background.success",children:[(0,a.jsxs)(C.n.Trigger,{children:[E(`Valid: ${s}`,!0),(0,a.jsx)(C.n.Icon,{})]}),(0,a.jsx)(C.n.Content,{children:(0,a.jsx)(P,{accountResult:e.value})})]},e.value.DerivedIban??t)}if("rejected"===e.status&&"ERR_NETWORK"===e.reason.code)return(0,a.jsx)(C.n.Item,{value:`${z[t].sortCode}${z[t].accountNumber}-${t}`,backgroundColor:"background.warning",disabled:!0,children:(0,a.jsx)(C.n.Trigger,{children:E("Too many requests. Daily trial limit or request rate limit reached. Please try later.",!1)})},e.id);let s=z[t].error?z[t].error:z[t].iban?z[t].iban:z[t].bic?z[t].bic:`${z[t].sortCode} ${z[t].accountNumber??""}`;return(0,a.jsx)(C.n.Item,{value:`${z[t].sortCode}${z[t].accountNumber}-${t}`,backgroundColor:"background.warning",disabled:!0,children:(0,a.jsx)(C.n.Trigger,{children:E(`Invalid account: ${s}`,!1)})},e.id)})}),(0,a.jsxs)(i.s,{gap:4,children:[(0,a.jsxs)(u.$n,{onClick:eo,className:"mt-2",color:"secondary",disabled:Q,title:Q?"Download available on paid plans":"Download results as CSV",children:[(0,a.jsx)(b.g,{icon:y.cbP,className:"mr-2"}),"Download CSV"]}),Q&&(0,a.jsx)("p",{className:"mt-3 small",children:"Upgrade to paid plan to download results."})]})]})})]}),(0,a.jsxs)(f.t.Panel,{value:"request",children:[(0,a.jsxs)("div",{className:"m-2",children:[(0,a.jsx)("h5",{children:"Curl"}),(0,a.jsx)(B.default,{language:"css",code:eg})]}),(0,a.jsxs)("div",{className:"m-2",children:[(0,a.jsx)("h5",{children:"NodeJS (ES6 using Axios)"}),(0,a.jsx)(B.default,{language:"js",code:ej})]}),(0,a.jsxs)("div",{className:"m-2",children:[(0,a.jsx)("h5",{children:"Python (using Requests)"}),(0,a.jsx)(B.default,{language:"python",code:eb})]}),(0,a.jsxs)("div",{className:"m-2",children:[(0,a.jsx)("h5",{children:"C#"}),(0,a.jsx)(B.default,{language:"clike",code:ey})]})]}),(0,a.jsx)(f.t.Panel,{value:"response",children:(0,a.jsx)("div",{className:"m-2",children:(0,a.jsx)(B.default,{language:"json",code:ev})})})]})})]})};G.propTypes={product:c.array.isRequired,endpointUrl:c.string.isRequired};var $=s(84902),_=s(16516),z=s(89099);let q=e=>{let{canonical:t}=e,[s,c]=(0,h.useState)(!0),[j,b]=(0,h.useState)([]),{user:y,authStatus:v,signOut:f}=(0,r.A)(e=>[e.authStatus,e.user]),[S,I]=(0,_.A)("REGISTERED",0),A=(0,z.useRouter)();(0,h.useEffect)(()=>l.YZ.listen("auth",e=>{let{payload:t}=e;(0,m.f0)("user_event",{category:t.event,user:t.data,message:t.message||""})}),[]),(0,h.useEffect)(()=>{let e=async()=>{c(!0);try{let e=await (0,d.T)();if(e){let{"custom:apiKeyId":t,sub:s}=e;
37if(t)try{let e=(0,o.Jt)({apiName:"customer",path:`/${s}`}),t=await e.response,a=await t.body.json();b(a)}catch(e){console.log(e),b([])}else b([]),A.push("/dashboard")}else b([])}catch(e){console.log("Session error:",e),f();return}c(!1)};"configuring"!==v&&("authenticated"===v&&y?(e(),I(1)):"unauthenticated"===v&&f())},[y,v,A,f]);let C=new Date(2024,7,18,12,0,0),N=(0,x.KO)("tools","Mintly Bank Account Tools",new Date(2024,7,18,3,0,0),C);return(0,a.jsxs)(g.A,{children:[(0,a.jsx)(x.Ay,{json:N}),(0,a.jsx)(p.A,{title:"Mintly Tools",canonical:t,noindex:!0,description:"Use our web tools to check sort codes, bank account numbers, IBAN and SWIFT"}),(0,a.jsx)(n.k,{initialState:S?"signIn":"signUp",className:"my-4 section",formFields:$.Ay,components:$.dK,services:$.$p,children:()=>(0,a.jsx)("section",{className:"section-xl",children:(0,a.jsx)(u.mc,{children:(0,a.jsx)(u.Zp,{className:"card-profile shadow",children:(0,a.jsxs)("div",{className:"col-12",children:[s&&(0,a.jsxs)(i.s,{className:"section justify-content-center mt-6 mb-6 align-items-center",gap:8,children:[(0,a.jsx)(u.y$,{color:"primary",children:"\xa0"}),(0,a.jsx)("span",{children:"Preparing tools..."})]}),!s&&(0,a.jsx)(G,{product:j,endpointUrl:"https://api.mintly.uk/bankAccount/v1"})]})})})})})]})},F=q;q.propTypes={canonical:c.string.isRequired}},16516:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(14232);let r=(e,t)=>{let[s,r]=(0,a.useState)(t),n=(0,a.useRef)(t);return n.current=t,(0,a.useEffect)(()=>{try{let t=window.localStorage.getItem(e);t?r(JSON.parse(t)):window.localStorage.setItem(e,JSON.stringify(n.current))}catch(e){console.error("Error reading from localStorage:",e)}},[e]),[s,t=>{try{let a;a="function"==typeof t?t(s):t,window.localStorage.setItem(e,JSON.stringify(a)),r(a)}catch(e){console.log(e)}}]}},20382:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools",function(){return s(12117)}])},25524:(e,t,s)=>{"use strict";s.d(t,{Xw:()=>v,jL:()=>f,qr:()=>y,uc:()=>b});var a=s(98238);let r={productId:"price_1RP24SEKGdrtMZm4ykiFsnx0",maxTeamSize:1},n={productId:"price_1NdavAEKGdrtMZm4uiyCUi44",maxTeamSize:5},i={productId:"price_1ROxHsEKGdrtMZm4ZOCakVtz",maxTeamSize:15},c={productId:"price_1NdavAEKGdrtMZm4VIQQHl7l",maxTeamSize:2},l={productId:"price_1NeME2EKGdrtMZm4UYNVaBL0",maxTeamSize:15},d=[{productId:"price_1PBbELEKGdrtMZm4Qfm4CE2B",maxTeamSize:15},{productId:"price_1PRWolEKGdrtMZm4uKlDUtGi",maxTeamSize:1e4}],o={productId:"price_1RP2bvEKGdrtMZm4JAqMs2MJ",maxTeamSize:1},u={productId:"price_1Nda5lEKGdrtMZm4BTCaMKPE",maxTeamSize:5},h={productId:"price_1ROwyzEKGdrtMZm44BTFkOQn",maxTeamSize:15},m={productId:"price_1Nda5lEKGdrtMZm4r4mjIAcl",maxTeamSize:2},p={productId:"price_1Nda7eEKGdrtMZm4BbxkWD6O",maxTeamSize:5},x=[{productId:"price_1PBehiEKGdrtMZm4pRFpP3GM",maxTeamSize:15},{productId:"price_1PRWsMEKGdrtMZm4v7gJHCgN",maxTeamSize:1e4},{productId:"price_1Qr36xEKGdrtMZm4iWggYWaN",maxTeamSize:1e5},{productId:"price_1SVwuZEKGdrtMZm43JXWwc5j",maxTeamSize:5},{productId:"price_1ROIPyEKGdrtMZm467CtsndN",maxTeamSize:5},{productId:"price_1Tl6eGEKGdrtMZm4DBjjTDty",maxTeamSize:15}],g=[{productId:"price_1MjNY0EKGdrtMZm4HgoFROPn",maxTeamSize:1},{productId:"price_1PjIhGEKGdrtMZm4sasPgTPz",maxTeamSize:1},{productId:"price_1MjNYrEKGdrtMZm495wnrCkM",maxTeamSize:10},{productId:"price_1MjNZUEKGdrtMZm4zxuuimn2",maxTeamSize:1},{productId:"price_1N0ob9EKGdrtMZm4X2BltheC",maxTeamSize:1},{productId:"price_1N0oa5EKGdrtMZm4Sz442uSo",maxTeamSize:1},{productId:"price_1N0oYbEKGdrtMZm4psD7cpxz",maxTeamSize:1},{productId:"price_1NdawVEKGdrtMZm496xWOMDd",maxTeamSize:15}],j=[{productId:"price_1MjNpOEKGdrtMZm4i3wt60Yv",maxTeamSize:1},{productId:"price_1Pi9zsEKGdrtMZm4UEt29z1c",maxTeamSize:1},{productId:"price_1MjNpVEKGdrtMZm4LgkEEWpc",maxTeamSize:1},{productId:"price_1MjNpYEKGdrtMZm4N4zVR5wj",maxTeamSize:1},{productId:"price_1N3JVAEKGdrtMZm4Y4JSoywG",maxTeamSize:1},{productId:"price_1N3JVGEKGdrtMZm4jOsUwLzw",maxTeamSize:1},{productId:"price_1N3JVKEKGdrtMZm4OYbqkfgp",maxTeamSize:1},{productId:"price_1Nda7eEKGdrtMZm4KtIVP7cA",maxTeamSize:15}],b=()=>"release",y=()=>{let e=b();return"staging"!==e&&e?"release"===e?[o,u,h,...x]:[]:[r,n,i,...d]},v=()=>{let e=b();return"staging"!==e&&e?"release"===e?j:[]:g},f=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];switch(e){case a.Gs:return"release"===b()?o:r;case a.dc:let s=b();return t?"release"===s?u:n:"release"===s?m:c;case a.C3:let d=b();return t?"release"===d?h:i:"release"===d?p:l;default:return}}},36776:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var a=s(37876),r=s(14232),n=s(70008),i=s(95062),c=s(49105);s(74726),s(65791),s(32271),s(83886),s(73974),s(44647),s(28628),s(81778),s(61087),s(29178);var l=s(96523),d=s(11041);s(17634);let o=e=>{let{code:t="",language:s="",showCopy:i=!0}=e;return(0,r.useEffect)(()=>{setTimeout(()=>n.highlightAll(),300)},[t,s]),(0,a.jsxs)(a.Fragment,{children:[i&&(0,a.jsxs)(c.$n,{size:"sm",className:"copy",onClick:()=>{navigator.clipboard.writeText(t||"")},children:[(0,a.jsx)(l.g,{icon:d.$3n,className:"mr-2"}),"Copy"]}),(0,a.jsx)("pre",{children:(0,a.jsx)("code",{className:`language-${s}`,children:t})})]})},u=o;
37o.propTypes={code:i.string,language:i.string,showCopy:i.bool},o.defaultProps={code:"",language:"",showCopy:!0}},84902:(e,t,s)=>{"use strict";s.d(t,{$p:()=>S,Ay:()=>I,dK:()=>f});var a=s(37876),r=s(14232),n=s(87444),i=s(1882),c=s(43687),l=s(58736),d=s(75684),o=s(63472),u=s(84626),h=s(52296),m=s(48230),p=s(25922),x=s(10199),g=s(76984),j=s(18847),b=s(49105);x.F.putVocabulariesForLanguage("en",{"Password must have at least 8 characters":"⚠️ Needs at least 8 characters","Password must have lower case letters":"⚠️ Needs a lowercase letter","Password must have upper case letters":"⚠️ Needs an uppercase letter","Password must have numbers":"⚠️ Needs a number","Password must have special characters":"⚠️ Needs a symbol (e.g. ! @ # $)","Your passwords must match":"⚠️ Passwords don't match — check and try again"});let y=j(()=>s.e(2361).then(s.bind(s,42361)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../components/WrappedReCAPTCHA")]},ssr:!1}),v=(0,r.forwardRef)((e,t)=>(0,a.jsx)(y,{...e,forwardRef:t}));v.displayName="ForwardedReCAPTCHA";let f={SignUp:{FormFields(){let{validationErrors:e}=(0,n.A)(),[t,s]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.k.SignUp.FormFields,{}),(0,a.jsxs)("span",{className:"small",children:["Please read Mintly's"," ",(0,a.jsx)(m,{href:"/terms",target:"_blank",children:"terms and conditions"})," ","and"," ",(0,a.jsx)(m,{href:"/privacy",target:"_blank",children:"privacy policy"}),"."]}),(0,a.jsx)(c.Y,{errorMessage:e["custom:acknowledgement"],hasError:!!e["custom:acknowledgement"],name:"custom:acknowledgement",value:"yes",label:"I have read and accept the terms and conditions and privacy policy",required:!0,defaultChecked:!1}),(0,a.jsx)(c.Y,{label:"By creating an account, you agree to receive email from us to help you use our tools and help integrate our API. If you do not want to re
37ceive these, please tick here",onChange:e=>{s(e.target.checked)},checked:t}),(0,a.jsx)("input",{type:"hidden",name:"custom:marketingOptOut",value:t?"yes":"no"})]})}},ConfirmSignUp:{Footer:()=>(0,a.jsxs)(b.Fc,{color:"info",className:"small text-default",children:["If you don't receive your confirmation code within a few minutes, please check your junk/spam folder. Alternatively, contact our support team:"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})},SignIn:{Footer(){let[e,t]=(0,r.useState)(""),[s,c]=(0,r.useState)(""),[m,x]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),[y,f]=(0,r.useState)(!1),{toSignIn:S}=(0,n.A)(),I=(0,r.useRef)(null),A=async()=>{try{let t;b(!0);try{t=await I.current.executeAsync(),I.current.reset()}catch(e){b(!1);return}let s=e?.split("@")[1].toLowerCase(),{body:a}=await (0,p.bE)({apiName:"identityProviders",path:`/provider/${encodeURI(s)}`,options:{body:{path:window.location.pathname,host:window.location.href,token:t},headers:{"x-api-key":"nBOlAL5Oyg86QZygsNpXr3GlaZgRvEYz5hfFEM5C"}}}).response,{token:r}=await a.json();if(r)try{f(!0);let{redirectUrl:e}=(0,g.s)(r);window.location.href=e}catch(e){console.log("Error decoding token",e,e.stack)}else S({username:e}),b(!1)}catch(e){c("Something went wrong, please contact [email protected]"),b(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.k.SignIn.Footer,{}),(0,a.jsx)("hr",{className:"amplify-divider amplify-divider--horizontal amplify-divider--small","data-label":"or"}),(0,a.jsxs)(l.s,{className:"pt-4",direction:"column",children:[(0,a.jsx)(d.J,{htmlFor:"custom:ssoEmail",children:"Sign In with SSO"}),(0,a.jsx)(o.p,{id:"custom:ssoEmail",placeholder:"[email protected]",type:"email",value:e,onChange:e=>{t(e.target.value),x(/\S+@\S+\.\S+/.test(e.target.value))},name:"custom:ssoEmail"}),(0,a.jsx)(v,{sitekey:"6LdaMtslAAAAALRiRFobSwj4k1IWNm4bO62pCKH0",ref:I,size:"invisible"}),(0,a.jsxs)(u.$,{type:"button",onClick:A,disabled:!m,children:[j&&!y&&(0,a.jsxs)(l.s,{children:[(0,a.jsx)(h.aH,{}),(0,a.jsx)("span",{children:"CHECKING..."})]}),j&&y&&(0,a.jsxs)(l.s,{children:[(0,a.jsx)(h.aH,{}),(0,a.jsx)("span",{children:"SIGNING IN..."})]}),!j&&(0,a.jsx)("span",{children:"CONTINUE"})]}),s&&(0,a.jsx)("p",{className:"small",style:{color:"red"},children:s})]})]})}}},S={validateCustomSignUp:async e=>e["custom:acknowledgement"]?{}:{"custom:acknowledgement":"You must accept the terms and conditions"}},I={signUp:{email:{placeholder:"[email protected]",isRequired:!0,label:"Work email"}},signIn:{username:{placeholder:"[email protected]",isRequired:!0,label:"Work email"}}}},98238:(e,t,s)=>{"use strict";s.d(t,{C3:()=>i,Gs:()=>r,NB:()=>c,Ps:()=>u,Sf:()=>o,Tq:()=>l,dc:()=>n,ju:()=>a,yh:()=>d});let a=5e4,r="starter",n="standardPlus",i="professional",c={[i]:{key:i,name:"Professional Plan",monthlyPrice:"\xa3157",annualPrice:"\xa32,120",oldAnnualPrice:"\xa32,544",description:"For those customers who need a high-level allocation of requests each month via our API or secure portal.",includedRequests:"25,000",includedUsers:"15 users",pricePerRequest:"0.8p",throttle:"1000",monthlyPriceGbp:157,includedRequestsCount:25e3,overagePence:.8,maxUsers:15,extraSeatGbp:2.5,maxRequests:5e4,selfServe:!0},[n]:{key:n,name:"Standard Plus Plan",monthlyPrice:"\xa396",annualPrice:"\xa3960",oldAnnualPrice:"\xa31,152",description:"Mid-volume and mid-throughput plan, ideal for smaller customers/startups.",includedRequests:"10,000",includedUsers:"5 users",pricePerRequest:"1.2p",throttle:"100",monthlyPriceGbp:96,includedRequestsCount:1e4,overagePence:1.2,maxUsers:5,extraSeatGbp:2.5,maxRequests:5e4,selfServe:!0},[r]:{key:r,name:"Starter Plan",monthlyPrice:"\xa337",annualPrice:"\xa3360",oldAnnualPrice:"\xa3432",description:"Basic plan that has limited quantity of checks. Suits very low volume users.",includedRequests:"250",includedUsers:"Single user",pricePerRequest:"5p",throttle:"10",monthlyPriceGbp:37,includedRequestsCount:250,overagePence:5,maxUsers:1,extraSeatGbp:2.5,maxSeats:5,maxRequests:5e4,selfServe:!0}},l={key:"eiscd",name:"EISCD Data File",annualPriceGbp:2069,selfServe:!1},d=52,o=12,u=[c[r],c[n],c[i],{key:"enterprise50k",name:"Enterprise 50k",description:"Volume pricing for teams running tens of thousands of checks a month.",monthlyPriceGbp:280,minRequests:a,includedRequestsCount:5e4,overagePence:.71,maxRequests:3e5,maxUsers:1/0,extraSeatGbp:null,selfServe:!1},{key:"enterprise100k",name:"Enterprise 100k",description:"Volume pricing for high-throughput users at around 100,000 checks a month.",monthlyPriceGbp:440,minRequests:a,includedRequestsCount:1e5,overagePence:.56,maxRequests:3e5,maxUsers:1/0,extraSeatGbp:null,selfServe:!1},{key:"enterprise200k",name:"Enterprise 200k",description:"Volume pricing for high-throughput users at around 200,000 checks a month.",monthlyPriceGbp:680,minRequests:a,includedRequestsCount:2e5,overagePence:.43,maxRequests:3e5,maxUsers:1/0,extraSeatGbp:null,selfServe:!1}
37,{key:"enterpriseCustom",name:"Enterprise",description:"Bespoke pricing for the highest volumes, with an SLA and a named contact.",monthlyPriceGbp:null,includedRequestsCount:1/0,overagePence:null,maxUsers:1/0,extraSeatGbp:null,selfServe:!1,quoteOnly:!0}]}},e=>{e.O(0,[7515,5922,2626,7042,636,6593,8792],()=>e(e.s=20382)),_N_E=e.O()}]);

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.