<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{b as l}from"./chunk-RNHOEMNM.js";import{Sa as p,a as n,r as u,u as c}from"./chunk-WXDDMW33.js";var v=(()=&gt;{let i=class i{constructor(){this._router=c(p),this._restService=c(l),this.createUrl=(t,r,e,o,s)=&gt;{let h=this._restService.createParamsUrl(n({page:r,pageSize:e,search:o},s));return t.startsWith("http")?`${t}${h}`:`/${t}${h}`},this.goTo=(t,r)=&gt;{this._router.navigate([`/${t}`],n({},r))},this.back=t=&gt;{let r=this._router.url.split("/");r.pop(),r.length&gt;0&amp;&amp;["new","edit","view"].includes(r[r.length-1])&amp;&amp;r.pop(),this._router.navigate(r,n({},t))},this.queryStringToJson=t=&gt;{let r=new URLSearchParams(t||""),e={};return r.forEach((o,s)=&gt;{e[s]?e[s]=Array.isArray(e[s])?[...e[s],o]:[e[s],o]:e[s]=o}),e}}get pageType(){let t=this._router.url.split("?")[0].split("/"),r=["new","edit","view"].includes(t[t.length-1])?t[t.length-1]:t[t.length-2];return["new","edit","view"].includes(r)?r:"view"}get queryParams(){return this._router.routerState.snapshot.root.queryParams}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"});let a=i;return a})();export{v as a};
</pre></body></html>