PageSourceSearch

https://app.veirahq.com/_next/static/chunks/9793.e2ef728e770b64c1.js

js veirahq.com collected 2026-10-07 11:30:00 UTC 2,473 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9793],{69793:function(e,t,r){r.d(t,{parseCorexPartyDat:function(){return i}});let n=new Set(["home currency","kshs","buy","exp","trd","trade debtors","trade creditors","expense creditors","anwar","nairobij","nairobiu","nyamira","nyanza","30 days","pharmacy/ chemist","category a","999"].map(e=>e.toLowerCase()));function s(e){let t=e.trim();return!!(!t||n.has(t.toLowerCase())||/^00-00-\d+$/.test(t)||/^-?\d{6,}$/.test(t)||/^-?\d{5,}[&$#!]/.test(t))}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=function(e,t){var r,n;let s=e.toLowerCase();if(s.includes("supp"))return"suppliers";if(s.includes("cust"))return"customers";let i=new TextDecoder("latin1").decode(t);return(null!==(r=i.match(/SUP\d{3}/g))&&void 0!==r?r:[]).length>(null!==(n=i.match(/CUS\d{4}/g))&&void 0!==n?n:[]).length?"suppliers":"customers"}(t,e),n=["suppliers"===r?["Supplier name","Code","Phone","Email","KRA PIN","Address"]:["Customer name","Code","Phone","Email","KRA PIN","Address"]],i=new Set,o="suppliers"===r?/^(SUP\d{3})/i:/^(CUS\d{4})/i;for(let t of function(e,t){let r=new TextDecoder("latin1").decode(e),n="suppliers"===t?/^SUP\d{3}/:/^CUS\d{4}/;return r.split("suppliers"===t?/(?=SUP\d{3})/:/(?=CUS\d{4})/).filter(e=>n.test(e))}(e,r)){let e=t.match(o);if(!e)continue;let r=e[1].toUpperCase();if(i.has(r))continue;let u=t.slice(e[1].length),l=[r,...function(e){let t=[],r="";for(let n=0;n<e.length;n++){let s=e[n];s>=32&&s<=126?r+=String.fromCharCode(s):(r.length>=3&&t.push(r.trim()),r="")}return r.length>=3&&t.push(r.trim()),t.filter(Boolean)}(Uint8Array.from(u,e=>255&e.charCodeAt(0)))],a=function(e,t){for(let r of e)if(!(r===t||s(r)||/^SUP\d{3}$/i.test(r)||/^CUS\d{4}$/i.test(r)||/^P\.?O\.?\s*BOX/i.test(r)||/@/.test(r)||/^(?:\+?254|0)[17]\d{8}$/.test(r)||/^[A-Z]\d{9}[A-Z]$/.test(r))&&!(r.length<3))return r.replace(/^[$#!(*-]+/,"").trim();return""}(l,r);a&&(i.add(r),n.push([a,r,function(e){let t=e.join(" ").match(/(?:\+?254|0)[17]\d{8}/);return t?t[0]:""}(l),function(e){let t=e.join(" ").match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i);return t?t[0]:""}(l),function(e){let t=e.join(" ").toUpperCase().match(/\b[A-Z]\d{9}[A-Z]\b/);return t?t[0]:""}(l),function(e,t){let r=[];for(let n of e)!(n===t||s(n))&&!(/[&$#!]/.test(n)&&/^-?\d/.test(n))&&(/^P\.?O\.?\s*BOX/i.test(n)||/ROAD|STREET|FLOOR|GODOWN|LANE/i.test(n))&&r.push(n);return r.slice(0,2).join(", ")}(l,a)]))}return n}}}]);

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.