PageSourceSearch

https://3dstisk.cz/_astro/vat.BoazweqE.js

js 3dstisk.cz collected 2026-10-08 00:11:32 UTC 2,679 bytes, 1 lines download raw bytes

1import{E as L}from"./short-links.ukLu_KiZ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"a321547fce95e3a230bc69a5ef05ac2d68833387"};var e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="0f0211af-af4a-4107-a9b3-043ca08c4684",n._sentryDebugIdIdentifier="sentry-dbid-0f0211af-af4a-4107-a9b3-043ca08c4684")}catch{}})();const p=.21,P=1+p,S={AT:"AT",BE:"BE",BG:"BG",CY:"CY",CZ:"CZ",DE:"DE",DK:"DK",EE:"EE",ES:"ES",FI:"FI",FR:"FR",GR:"EL",HR:"HR",HU:"HU",IE:"IE",IT:"IT",LT:"LT",LU:"LU",LV:"LV",MT:"MT",NL:"NL",PL:"PL",PT:"PT",RO:"RO",SE:"SE",SI:"SI",SK:"SK"},R={AT:{min:9,max:9},BE:{min:10,max:10},BG:{min:9,max:10},CY:{min:9,max:9},CZ:{min:8,max:10},DE:{min:9,max:9},DK:{min:8,max:8},EE:{min:9,max:9},EL:{min:9,max:9},ES:{min:9,max:9},FI:{min:8,max:8},FR:{min:11,max:11},HR:{min:11,max:11},HU:{min:8,max:8},IE:{min:8,max:9},IT:{min:11,max:11},LT:{min:9,max:12},LU:{min:8,max:8},LV:{min:11,max:11},MT:{min:8,max:8},NL:{min:12,max:12},PL:{min:10,max:10},PT:{min:9,max:9},RO:{min:2,max:10},SE:{min:12,max:12},SI:{min:8,max:8},SK:{min:10,max:10}},a={empty:"empty",missingPrefix:"missing-prefix",invalidFormat:"invalid-format",countryMismatch:"country-mismatch",nonEuCountry:"non-eu-country",sameCountry:"same-country",eligible:"eligible"};function _(n){return n?n.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/[^A-Za-z0-9]/g,"").toUpperCase():""}function E(n){if(!n)return null;const e=n.trim().toUpperCase();return S[e]??null}function b(n){if(!n||n.length<2)return null;const e=n.slice(0,2);return/^[A-Z]{2}$/.test(e)?e:null}function A(n,e){if(!n)return!1;const r=R[n];return r?e>=r.min&&e<=r.max:e>=2&&e<=12}function U(n,e,r="CZ"){const m=n?.trim()??"",c=_(m),l=e?.trim().toUpperCase()??"",o=r.trim().toUpperCase(),s=E(l),t=b(c),u=t?c.slice(2):null,x=u?.length??0,f=t!==null,y=/\d/.test(u??""),d=s!==null&&t===s,C=L.includes(l)||l===o,T=t!==null&&(L.includes(Object.entries(S).find(([,V])=>V===t)?.[0]??t)||t===E(o)),g=s!==null&&s===E(o),I=f&&y&&A(t,x)&&/^[A-Z0-9]+$/.test(u??"");let i;return m?f?!C||!T?i=a.nonEuCountry:d?I?g?i=a.sameCountry:i=a.eligible:i=a.invalidFormat:i=a.countryMismatch:i=a.missingPrefix:i=a.empty,{rawValue:m,normalizedVatId:c,billingCountry:l,sellerCountry:o,expectedVatPrefix:s,vatPrefix:t,vatNumber:u,hasValue:m!=="",hasCountryPrefix:f,hasDigitInBody:y,bodyLength:x,matchesBillingCountry:d,isEuBillingCountry:C,isEuVatCountry:T,isSameCountryAsSeller:g,isFormatLikelyValid:I,canValidateViaVies:i===a.eligible,canUseForReverseCharge:i===a.eligible,status:i}}export{P as S,a as V,U as a,S as b,_ as 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.