1import{$c as R,_c as I,ad as S,ed as N,ga as O,ia as C,ja as f}from"./chunk-MPIHQT3N.js";var E=class extends R{encodeKey(e){return e=super.encodeKey(e),e.replace(/\+/gi,"%2B")}encodeValue(e){return e=super.encodeValue(e),e.replace(/\+/gi,"%2B")}};var P=new C("basePath");var d=class{constructor(e={}){this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials}selectHeaderContentType(e){if(e.length==0)return;let t=e.find(r=>this.isJsonMime(r));return t===void 0?e[0]:t}selectHeaderAccept(e){if(e.length==0)return;let t=e.find(r=>this.isJsonMime(r));return t===void 0?e[0]:t}isJsonMime(e){let t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!=null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}};var w=(()=>{class p{constructor(t,r,n){this.httpClient=t,this.basePath="",this.defaultHeaders=new I,this.configuration=new d,r&&(this.basePath=r),n&&(this.configuration=n,this.basePath=r||n.basePath||this.basePath)}canConsumeForm(t){let r="multipart/form-data";for(let n of t)if(r===n)return!0;return!1}getPersonalData(t="body",r=!1){let n=this.defaultHeaders,l=["application/json"],a=this.configuration.selectHeaderAccept(l);a!=null&&(n=n.set("Accept",a));let c=[];return this.httpClient.request("get",`${this.basePath}/personalData`,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:r})}subscribe(t,r,n,l="body",a=!1){if(t==null)throw new Error("Required parameter pesels was null or undefined when calling subscribe.");let c=new S({encoder:new E});t&&t.forEach(h=>{c=c.append("pesels",h)});let o=this.defaultHeaders;n!=null&&(o=o.set("correlationId",String(n)));let s=["application/json"],i=this.configuration.selectHeaderAccept(s);i!=null&&(o=o.set("Accept",i));let A=["application/json"],u=this.configuration.selectHeaderContentType(A);return u!=null&&(o=o.set("Content-Type",u)),this.httpClient.request("post",`${this.basePath}/subscribe`,{body:r,params:c,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:a})}verifyIfIsAlive(t,r,n,l,a,c="body",o=!1){if(t==null)throw new Error("Required parameter name was null or undefined when calling verifyIfIsAlive.");if(r==null)throw new Error("Required parameter surname was null or undefined when calling verifyIfIsAlive.");if(n==null)throw new Error("Required parameter pesel was null or undefined when calling verifyIfIsAlive.");let s=new S({encoder:new E});t!=null&&(s=s.set("name",t)),r!=null&&(s=s.set("surname",r)),n!=null&&(s=s.set("pesel",n));let i=this.defaultHeaders;a!=null&&(i=i.set("correlationId",String(a)));let A=["application/json"],u=this.configuration.selectHeaderAccept(A);u!=null&&(i=i.set("Accept",u));let h=["application/json"],m=this.configuration.selectHeaderContentType(h);return m!=null&&(i=i.set("Content-Type",m)),this.httpClient.request("post",`${this.basePath}/verify`,{body:l,params:s,withCredentials:this.configuration.withCredentials,headers:i,observe:c,reportProgress:o})}static{this.\u0275fac=function(r){return new(r||p)(f(N),f(P,8),f(d,8))}}static{this.\u0275prov=O({token:p,factory:p.\u0275fac})}}return p})();export{w as a};
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.