@erpp/react-api-cronos-frontend 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3054 -930
- package/dist/index.d.ts +3054 -930
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +6 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=Object.create,a=Object.defineProperty,s=Object.defineProperties,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,t,s)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,h=(e,t)=>{for(var a in t||(t={}))n.call(t,a)&&d(e,a,t[a]);if(u)for(var a of u(t))l.call(t,a)&&d(e,a,t[a]);return e},p=(e,t)=>s(e,o(t)),f=(e,t,s,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of i(t))n.call(e,u)||u===s||a(e,u,{get:()=>t[u],enumerable:!(o=r(t,u))||o.enumerable});return e},F=(e,s,r)=>(r=null!=e?t(c(e)):{},f(!s&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)),g={};((e,t)=>{for(var s in t)a(e,s,{get:t[s],enumerable:!0})})(g,{APIFactory:()=>be,ApiClientContext:()=>y,createAPIAdeudo:()=>Oe,createAPICatColor:()=>Qe,createAPICatColorGrupo:()=>st,createAPICatGraficaGrupo:()=>ht,createAPICatRolGrupo:()=>Dt,createAPICatTema:()=>At,createAPIDashboardEstilo:()=>kt,createAPIDashboardGrafica:()=>Vt,createAPIDashboardGraficaElemento:()=>oa,createAPIDashboardGraficaElementoDetalle:()=>fa,createAPIDashboardGraficaElementoParametro:()=>ba,createAPIDashboardGraficaGrupo:()=>Pa,createAPIDashboardGraficaGrupoEstilo:()=>ja,createAPIDashboardRuta:()=>Xa,createAPIGrafica:()=>is,createAPIGraficaColor:()=>Fs,createAPIGraficaColorGrupo:()=>Us,createAPIGraficaColorGrupoAsignacion:()=>Es,createAPIGraficaColorGrupoTipoGrafica:()=>js,createAPIGraficaParametro:()=>Xs,createAPIGraficaParametroDefecto:()=>ir,createAPIGraficaParametroTipo:()=>Fr,createAPIRol:()=>Ur,createAPIRolDashboardRuta:()=>Er,createAPITipoGrafica:()=>jr,createAPIUsuario:()=>Xr,createAPIUsuarioDashboardAcceso:()=>io,createAPIUsuarioRol:()=>go,useCreateAdeudo:()=>yo,useCreateCatColor:()=>Lo,useCreateCatColorGrupo:()=>To,useCreateCatGraficaGrupo:()=>No,useCreateCatRolGrupo:()=>Qo,useCreateCatTema:()=>ti,useCreateDashboardEstilo:()=>ci,useCreateDashboardGrafica:()=>Fi,useCreateDashboardGraficaElemento:()=>mi,useCreateDashboardGraficaElementoDetalle:()=>Ai,useCreateDashboardGraficaElementoParametro:()=>Si,useCreateDashboardGraficaGrupo:()=>Hi,useCreateDashboardGraficaGrupoEstilo:()=>Xi,useCreateDashboardRuta:()=>ru,useCreateGrafica:()=>du,useCreateGraficaColor:()=>Iu,useCreateGraficaColorGrupo:()=>_u,useCreateGraficaColorGrupoAsignacion:()=>Pu,useCreateGraficaColorGrupoTipoGrafica:()=>Ou,useCreateGraficaParametro:()=>Ju,useCreateGraficaParametroDefecto:()=>Zu,useCreateGraficaParametroTipo:()=>ic,useCreateRol:()=>pc,useCreateRolDashboardRuta:()=>yc,useCreateTipoGrafica:()=>Lc,useCreateUsuario:()=>Tc,useCreateUsuarioDashboardAcceso:()=>Nc,useCreateUsuarioRol:()=>Qc,useDeleteAdeudo:()=>mo,useDeleteCatColor:()=>Bo,useDeleteCatColorGrupo:()=>vo,useDeleteCatGraficaGrupo:()=>qo,useDeleteCatRolGrupo:()=>Wo,useDeleteCatTema:()=>si,useDeleteDashboardEstilo:()=>li,useDeleteDashboardGrafica:()=>Ci,useDeleteDashboardGraficaElemento:()=>Ui,useDeleteDashboardGraficaElementoDetalle:()=>Pi,useDeleteDashboardGraficaElementoParametro:()=>Oi,useDeleteDashboardGraficaGrupo:()=>Ji,useDeleteDashboardGraficaGrupoEstilo:()=>Zi,useDeleteDashboardRuta:()=>iu,useDeleteGrafica:()=>pu,useDeleteGraficaColor:()=>yu,useDeleteGraficaColorGrupo:()=>Lu,useDeleteGraficaColorGrupoAsignacion:()=>Tu,useDeleteGraficaColorGrupoTipoGrafica:()=>Nu,useDeleteGraficaParametro:()=>Qu,useDeleteGraficaParametroDefecto:()=>tc,useDeleteGraficaParametroTipo:()=>cc,useDeleteRol:()=>Fc,useDeleteRolDashboardRuta:()=>mc,useDeleteTipoGrafica:()=>Bc,useDeleteUsuario:()=>vc,useDeleteUsuarioDashboardAcceso:()=>qc,useDeleteUsuarioRol:()=>Wc,useFetchByIdAdeudo:()=>Io,useFetchByIdCatColor:()=>_o,useFetchByIdCatColorGrupo:()=>Po,useFetchByIdCatGraficaGrupo:()=>Oo,useFetchByIdCatRolGrupo:()=>Jo,useFetchByIdCatTema:()=>Zo,useFetchByIdDashboardEstilo:()=>ii,useFetchByIdDashboardGrafica:()=>pi,useFetchByIdDashboardGraficaElemento:()=>yi,useFetchByIdDashboardGraficaElementoDetalle:()=>xi,useFetchByIdDashboardGraficaElementoParametro:()=>Ri,useFetchByIdDashboardGraficaGrupo:()=>ji,useFetchByIdDashboardGraficaGrupoEstilo:()=>Vi,useFetchByIdDashboardRuta:()=>au,useFetchByIdGrafica:()=>nu,useFetchByIdGraficaColor:()=>gu,useFetchByIdGraficaColorGrupo:()=>bu,useFetchByIdGraficaColorGrupoAsignacion:()=>Au,useFetchByIdGraficaColorGrupoTipoGrafica:()=>Su,useFetchByIdGraficaParametro:()=>Hu,useFetchByIdGraficaParametroDefecto:()=>Xu,useFetchByIdGraficaParametroTipo:()=>rc,useFetchByIdRol:()=>dc,useFetchByIdRolDashboardRuta:()=>Ic,useFetchByIdTipoGrafica:()=>_c,useFetchByIdUsuario:()=>Pc,useFetchByIdUsuarioDashboardAcceso:()=>Oc,useFetchByIdUsuarioRol:()=>Jc,useFetchListAdeudo:()=>Go,useFetchListCatColor:()=>wo,useFetchListCatColorGrupo:()=>Eo,useFetchListCatGraficaGrupo:()=>ko,useFetchListCatRolGrupo:()=>Ko,useFetchListCatTema:()=>ei,useFetchListDashboardEstilo:()=>ui,useFetchListDashboardGrafica:()=>fi,useFetchListDashboardGraficaElemento:()=>Di,useFetchListDashboardGraficaElementoDetalle:()=>Bi,useFetchListDashboardGraficaElementoParametro:()=>vi,useFetchListDashboardGraficaGrupo:()=>qi,useFetchListDashboardGraficaGrupoEstilo:()=>Wi,useFetchListDashboardRuta:()=>su,useFetchListGrafica:()=>lu,useFetchListGraficaColor:()=>Cu,useFetchListGraficaColorGrupo:()=>Uu,useFetchListGraficaColorGrupoAsignacion:()=>Mu,useFetchListGraficaColorGrupoTipoGrafica:()=>$u,useFetchListGraficaParametro:()=>zu,useFetchListGraficaParametroDefecto:()=>Yu,useFetchListGraficaParametroTipo:()=>oc,useFetchListRol:()=>hc,useFetchListRolDashboardRuta:()=>Gc,useFetchListTipoGrafica:()=>wc,useFetchListUsuario:()=>Ec,useFetchListUsuarioDashboardAcceso:()=>kc,useFetchListUsuarioRol:()=>Kc,useFilterMatchAdeudo:()=>bo,useFilterMatchCatColor:()=>Ao,useFilterMatchCatColorGrupo:()=>So,useFilterMatchCatGraficaGrupo:()=>Ho,useFilterMatchCatRolGrupo:()=>Xo,useFilterMatchCatTema:()=>ri,useFilterMatchDashboardEstilo:()=>di,useFilterMatchDashboardGrafica:()=>Ii,useFilterMatchDashboardGraficaElemento:()=>_i,useFilterMatchDashboardGraficaElementoDetalle:()=>Ei,useFilterMatchDashboardGraficaElementoParametro:()=>ki,useFilterMatchDashboardGraficaGrupo:()=>Ki,useFilterMatchDashboardGraficaGrupoEstilo:()=>eu,useFilterMatchDashboardRuta:()=>uu,useFilterMatchGrafica:()=>fu,useFilterMatchGraficaColor:()=>Du,useFilterMatchGraficaColorGrupo:()=>xu,useFilterMatchGraficaColorGrupoAsignacion:()=>Ru,useFilterMatchGraficaColorGrupoTipoGrafica:()=>ju,useFilterMatchGraficaParametro:()=>Vu,useFilterMatchGraficaParametroDefecto:()=>ac,useFilterMatchGraficaParametroTipo:()=>nc,useFilterMatchRol:()=>gc,useFilterMatchRolDashboardRuta:()=>bc,useFilterMatchTipoGrafica:()=>Ac,useFilterMatchUsuario:()=>Sc,useFilterMatchUsuarioDashboardAcceso:()=>Hc,useFilterMatchUsuarioRol:()=>Xc,useGetTreeDashboardGraficaElemento:()=>wi,useUpdateAdeudo:()=>Do,useUpdateCatColor:()=>xo,useUpdateCatColorGrupo:()=>Ro,useUpdateCatGraficaGrupo:()=>jo,useUpdateCatRolGrupo:()=>Vo,useUpdateCatTema:()=>ai,useUpdateDashboardEstilo:()=>ni,useUpdateDashboardGrafica:()=>gi,useUpdateDashboardGraficaElemento:()=>bi,useUpdateDashboardGraficaElementoDetalle:()=>Mi,useUpdateDashboardGraficaElementoParametro:()=>$i,useUpdateDashboardGraficaGrupo:()=>zi,useUpdateDashboardGraficaGrupoEstilo:()=>Yi,useUpdateDashboardRuta:()=>ou,useUpdateGrafica:()=>hu,useUpdateGraficaColor:()=>Gu,useUpdateGraficaColorGrupo:()=>wu,useUpdateGraficaColorGrupoAsignacion:()=>Eu,useUpdateGraficaColorGrupoTipoGrafica:()=>ku,useUpdateGraficaParametro:()=>Ku,useUpdateGraficaParametroDefecto:()=>ec,useUpdateGraficaParametroTipo:()=>uc,useUpdateRol:()=>fc,useUpdateRolDashboardRuta:()=>Dc,useUpdateTipoGrafica:()=>xc,useUpdateUsuario:()=>Rc,useUpdateUsuarioDashboardAcceso:()=>jc,useUpdateUsuarioRol:()=>Vc}),module.exports=(e=g,f(a({},"__esModule",{value:!0}),e));var C=F(require("axios")),I=class{constructor({urlBase:e,getTokenCallback:t}){this._baseURL="",this.createDefaultMethods=e=>({findByFilterMatch:(t={filter:"",pagination:{},orderBy:""})=>e.post("/filter-match",t),get:({id:t,params:a={},config:s={},where:r})=>t?e.get(`/${t}`,h({params:a},s)):e.get("/",h({params:p(h({},a),{where:JSON.stringify(r)})},s)),post:({data:t,config:a})=>e.post("/",t,a),put:({id:t,data:a={},config:s={}})=>t?e.put(`/${t}`,a,s):e.put("/",a,s),delete:({id:t,config:a={},where:s={}})=>t?e.delete(`/${t}`,a):e.delete("/",h({data:{where:s}},a))}),this.subpath=(e,t)=>{if(!e)throw new Error("API subpath must be defined");const a=C.default.create({baseURL:this.api.defaults.baseURL+e,headers:{"Content-Type":"application/json"}});a.interceptors.request.use(e=>(e.headers.Authorization=this.api.defaults.headers.Authorization,e),e=>Promise.reject(e)),a.interceptors.response.use(e=>e,e=>Promise.reject(e));const s=this.createDefaultMethods(a),r=t?t(s,a):{};return h(h({},s),r)},this._baseURL=e,this.getTokenCallback=t,this.api=C.default.create({baseURL:e,headers:{"Content-Type":"application/json"}}),this.api.interceptors.request.use(e=>(e.headers.Authorization=this.getTokenCallback?this.getTokenCallback():null,e),e=>Promise.reject(e)),this.api.interceptors.response.use(e=>e,e=>Promise.reject(e))}setBaseURL(e){this._baseURL=e,this.api&&(this.api.defaults.baseURL=e)}setGetTokenCallback(e){this.getTokenCallback=e,this.api.defaults.headers.Authorization=e?e():null}getAxiosInstance(){return this.api}},G=F(require("axios")),y=class{};y.baseUrl="https://api.ejemplo.com",y.token="TOKEN_GLOBAL_POR_DEFECTO";var D=class{constructor({endpoint:e,client:t}){this.client=G.default.create({baseURL:y.baseUrl,headers:{Authorization:`${y.token}`,Accept:"application/json"}}),this.endpoint=e,t&&(this.client=t)}getAxiosConfig(e){const t=h({},e);return(null==t?void 0:t.where)&&"object"==typeof t.where&&(t.where=JSON.stringify(t.where)),{baseURL:y.baseUrl,headers:{Authorization:`${y.token}`,Accept:"application/json"},params:t}}async getById({id:e,params:t}){try{return(await G.default.get(`${this.endpoint}/${e}`,this.getAxiosConfig(t))).data}catch(t){return console.error(`Error GET ${this.endpoint}/${e}:`,t.message),null}}async create({data:e,params:t}){try{return(await G.default.post(this.endpoint,e,this.getAxiosConfig(t))).data}catch(e){return console.error(`Error POST ${this.endpoint}:`,e.message),null}}async update({id:e,data:t,params:a}){try{return(await G.default.put(`${this.endpoint}/${e}`,t,this.getAxiosConfig(a))).data}catch(t){return console.error(`Error PUT ${this.endpoint}/${e}:`,t.message),null}}async query({params:e}){try{const t=`${this.endpoint}`;return(await G.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} con query:`,e.message),null}}async filterMatch({body:e,params:t}){try{const a=`${this.endpoint}/filter-match`;return(await G.default.post(a,e,this.getAxiosConfig(t))).data}catch(e){return console.error(`Error POST ${this.endpoint} filter-match:`,e.message),null}}findByFilterMatch(e){return this.client.post(`${this.endpoint}/filter-match`,e)}buildGETConfig({id:e,params:t,config:a={},where:s}){const r=h(h({},this.getAxiosConfig(t)),a);return e||s&&(r.params=p(h({},r.params),{where:JSON.stringify(s)})),r}get({id:e,params:t,config:a={},where:s}){const r=this.buildGETConfig({id:e,params:t,config:a,where:s});return e?this.client.get(`${this.endpoint}/${e}`,r):this.client.get(`${this.endpoint}`,r)}post({data:e,config:t={}}){return this.client.post(`${this.endpoint}`,e,h(h({},this.getAxiosConfig()),t))}put({id:e,data:t={},config:a={}}){return e?this.client.put(`${this.endpoint}/${e}`,t,h(h({},this.getAxiosConfig()),a)):this.client.put(`${this.endpoint}`,t,h(h({},this.getAxiosConfig()),a))}async delete({id:e,params:t,where:a={},config:s={}}){try{const r=h(h({},this.getAxiosConfig(t)),s);return e?await G.default.delete(`${this.endpoint}/${e}`,r):await G.default.delete(`${this.endpoint}`,p(h({},r),{data:{where:a}})),!0}catch(t){return console.error(`Error DELETE ${this.endpoint}/${e||""}:`,t.message),!1}}},m=class extends D{constructor(e){super({endpoint:"adeudo",client:null==e?void 0:e.axiosInstance})}},b=m,U=class extends D{constructor(e){super({endpoint:"dashboard_grafica_grupo",client:null==e?void 0:e.axiosInstance})}},_=U,w=class extends D{constructor(e){super({endpoint:"dashboard_grafica",client:null==e?void 0:e.axiosInstance})}},L=w,x=class extends D{constructor(e){super({endpoint:"dashboard_grafica_elemento",client:null==e?void 0:e.axiosInstance}),this.tree=async e=>{try{const t=this.buildGETConfig({params:e,where:{rol_id:e.rol_id}});return(await this.client.get(`${this.endpoint}/tree`,t)).data}catch(e){throw e}}}},B=x,A=class extends D{constructor(e){super({endpoint:"tipo_grafica",client:null==e?void 0:e.axiosInstance})}},M=A,P=class extends D{constructor(e){super({endpoint:"cat_color",client:null==e?void 0:e.axiosInstance})}},E=P,T=class extends D{constructor(e){super({endpoint:"cat_color_grupo",client:null==e?void 0:e.axiosInstance})}},R=T,v=class extends D{constructor(e){super({endpoint:"cat_tema",client:null==e?void 0:e.axiosInstance})}},S=v,$=class extends D{constructor(e){super({endpoint:"grafica",client:null==e?void 0:e.axiosInstance})}},O=$,k=class extends D{constructor(e){super({endpoint:"grafica_color",client:null==e?void 0:e.axiosInstance})}},N=k,j=class extends D{constructor(e){super({endpoint:"grafica_color_grupo",client:null==e?void 0:e.axiosInstance})}},q=j,H=class extends D{constructor(e){super({endpoint:"grafica_color_grupo_asignacion",client:null==e?void 0:e.axiosInstance})}},z=H,J=class extends D{constructor(e){super({endpoint:"grafica_color_grupo_tipo_grafica",client:null==e?void 0:e.axiosInstance})}},K=J,Q=class extends D{constructor(e){super({endpoint:"rol",client:null==e?void 0:e.axiosInstance})}},V=Q,W=class extends D{constructor(e){super({endpoint:"usuario",client:null==e?void 0:e.axiosInstance})}},X=W,Y=class extends D{constructor(e){super({endpoint:"cat_grafica_grupo",client:null==e?void 0:e.axiosInstance})}},Z=Y,ee=class extends D{constructor(e){super({endpoint:"cat_rol_grupo",client:null==e?void 0:e.axiosInstance})}},te=ee,ae=F(require("axios")),se=class{constructor({endpoint:e,client:t}){this.client=ae.default.create({baseURL:y.baseUrl,headers:{Authorization:`${y.token}`,Accept:"application/json"}}),this.endpoint=e,t&&(this.client=t)}getAxiosConfig(e){return{baseURL:y.baseUrl,headers:{Authorization:`${y.token}`,Accept:"application/json"},params:e}}},re=class extends se{async getById({id:e,params:t}){try{return(await ae.default.get(`${this.endpoint}/${e}`,this.getAxiosConfig(t))).data}catch(t){return console.error(`Error GET ${this.endpoint}/${e}:`,t.message),null}}async getAll({params:e}){try{const t=`${this.endpoint}`;return(await ae.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} all:`,e.message),null}}get({id:e,params:t,config:a={},where:s}){const r=h(h({},this.getAxiosConfig(t)),a);return e?this.client.get(`${this.endpoint}/${e}`,r):(s&&(r.params=p(h({},r.params),{where:JSON.stringify(s)})),this.client.get(`${this.endpoint}`,r))}async query({params:e}){try{const t=`${this.endpoint}`;return(await ae.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} con query:`,e.message),null}}},oe=class extends D{constructor(e){super({endpoint:"dashboard_ruta",client:null==e?void 0:e.axiosInstance})}get usuario(){const e=`${this.endpoint}/usuario`;return new class extends re{constructor(t){super({endpoint:e,client:t})}}(this.client)}},ie=oe,ue=class extends D{constructor(e){super({endpoint:"usuario_dashboard_acceso",client:null==e?void 0:e.axiosInstance})}},ce=ue,ne=class extends D{constructor(e){super({endpoint:"dashboard_grafica_elemento_parametro",client:null==e?void 0:e.axiosInstance})}},le=ne,de=class extends D{constructor(e){super({endpoint:"dashboard_grafica_elemento_detalle",client:null==e?void 0:e.axiosInstance})}},he=de,pe=class extends D{constructor(e){super({endpoint:"usuario_rol",client:null==e?void 0:e.axiosInstance})}},fe=pe,Fe=class extends D{constructor(e){super({endpoint:"rol_dashboard_ruta",client:null==e?void 0:e.axiosInstance})}},ge=Fe,Ce=class extends D{constructor(e){super({endpoint:"grafica_parametro",client:null==e?void 0:e.axiosInstance})}},Ie=Ce,Ge=class extends D{constructor(e){super({endpoint:"grafica_parametro_tipo",client:null==e?void 0:e.axiosInstance})}},ye=Ge,De=class extends D{constructor(e){super({endpoint:"grafica_parametro_defecto",client:null==e?void 0:e.axiosInstance})}},me=De,be=class{constructor({urlBase:e,getTokenCallback:t}){this.urlBase=e,this.getTokenCallback=t;const a=new I({urlBase:e,getTokenCallback:t}).getAxiosInstance();this.axiosInstance=a,this.adeudo=new m({axiosInstance:a}),this.dashboard_grafica_grupo=new U({axiosInstance:a}),this.dashboard_grafica=new w({axiosInstance:a}),this.dashboard_grafica_elemento=new x({axiosInstance:a}),this.tipo_grafica=new A({axiosInstance:a}),this.cat_color=new P({axiosInstance:a}),this.cat_color_grupo=new T({axiosInstance:a}),this.cat_tema=new v({axiosInstance:a}),this.grafica=new $({axiosInstance:a}),this.grafica_color=new k({axiosInstance:a}),this.grafica_color_grupo=new j({axiosInstance:a}),this.grafica_color_grupo_asignacion=new H({axiosInstance:a}),this.grafica_color_grupo_tipo_grafica=new J({axiosInstance:a}),this.rol=new Q({axiosInstance:a}),this.usuario=new W({axiosInstance:a}),this.cat_grafica_grupo=new Y({axiosInstance:a}),this.cat_rol_grupo=new ee({axiosInstance:a}),this.dashboard_ruta=new oe({axiosInstance:a}),this.usuario_dashboard_acceso=new ue({axiosInstance:a}),this.dashboard_grafica_elemento_parametro=new ne({axiosInstance:a}),this.dashboard_grafica_elemento_detalle=new de({axiosInstance:a}),this.usuario_rol=new pe({axiosInstance:a}),this.rol_dashboard_ruta=new Fe({axiosInstance:a}),this.grafica_parametro=new Ce({axiosInstance:a}),this.grafica_parametro_tipo=new Ge({axiosInstance:a}),this.grafica_parametro_defecto=new De({axiosInstance:a})}getAvailableAPIs(){return Object.entries(this).filter(([e,t])=>"object"==typeof t&&null!==t&&"get"in t).map(([e])=>e)}},Ue=require("react"),_e=F(require("fs")),we=new class{constructor(){this.handler=null}setHandler(e){this.handler=e}log(e,t){if(this.handler)this.handler(e,t);else if("undefined"!=typeof window&&window.localStorage){const a=JSON.parse(localStorage.getItem("api_error_logs")||"[]");a.push({error:(null==e?void 0:e.message)||String(e),context:t,date:(new Date).toISOString()}),localStorage.setItem("api_error_logs",JSON.stringify(a))}else{const a=`[${(new Date).toISOString()}] ${t||"API"}: ${(null==e?void 0:e.message)||String(e)}\n`;_e.default.appendFileSync("api_error_logs.txt",a)}}},Le=require("react");function xe(e,t){switch(t.type){case"FETCH_START":return p(h({},e),{isFetching:!0});case"FETCH_SUCCESS":return p(h({},e),{data:t.payload,error:null,isFetching:!1,isLoading:!1});case"FETCH_ERROR":return p(h({},e),{error:t.payload,isFetching:!1,isLoading:!1});case"PATCH_PAGINATION_SILENT":return p(h({},e),{pagination:h(h({},e.pagination),t.payload)});default:return e}}var Be=e=>(t,a)=>function(e,t,a){var s,r,o;const[i,u]=(0,Le.useReducer)(xe,function(e){var t,a,s,r,o,i;return{data:null,error:null,isFetching:!1,isLoading:!0,pagination:{limit:null!=(a=null==(t=e.params)?void 0:t.limit)?a:10,page:null!=(r=null==(s=e.params)?void 0:s.page)?r:1,orderBy:null!=(i=null==(o=e.params)?void 0:o.orderBy)?i:""}}}(t)),{data:c,error:n,isFetching:l,isLoading:d,pagination:f}=i,F=(0,Le.useRef)(!1);(0,Le.useEffect)(()=>{var e,a,s,r,o,i;u({type:"PATCH_PAGINATION_SILENT",payload:{limit:null!=(a=null==(e=t.params)?void 0:e.limit)?a:10,page:null!=(r=null==(s=t.params)?void 0:s.page)?r:1,orderBy:null!=(i=null==(o=t.params)?void 0:o.orderBy)?i:""}})},[null==(s=t.params)?void 0:s.limit,null==(r=t.params)?void 0:r.page,null==(o=t.params)?void 0:o.orderBy]);const g=(0,Le.useCallback)(async t=>{u({type:"FETCH_START"});try{const a=await e.query(t);if(!a)throw new Error("No data returned from API");return u({type:"FETCH_SUCCESS",payload:a}),a}catch(e){u({type:"FETCH_ERROR",payload:e}),we.log(e,"useFetchList")}},[e]),C=(0,Le.useCallback)(async()=>{await g(t)},[g,t]);(0,Le.useEffect)(()=>{(null==a?void 0:a.fetchOnMount)&&(F.current||(F.current=!0,C()))},[C,null==a?void 0:a.fetchOnMount]);const I=(0,Le.useCallback)(async e=>{e<1||(await g({params:p(h({},t.params),{page:e,limit:f.limit})}),u({type:"PATCH_PAGINATION_SILENT",payload:{page:e}}))},[f.limit,t.params,g]),G=(0,Le.useCallback)(async e=>{await g({params:p(h({},t.params),{page:1,limit:e})}),u({type:"PATCH_PAGINATION_SILENT",payload:{limit:e,page:1}})},[t.params,g]),y=(0,Le.useCallback)(()=>{var e;I((null!=(e=f.page)?e:0)+1)},[I,f.page]),D=(0,Le.useCallback)(()=>{var e;const t=(null!=(e=f.page)?e:1)-1;t<1||I(t)},[I,f.page]),m=(0,Le.useCallback)(async({page:e,limit:a,orderBy:s})=>{await g({params:p(h({},t.params),{page:e,limit:a,orderBy:s})}),u({type:"PATCH_PAGINATION_SILENT",payload:{page:e,limit:a,orderBy:s}})},[t.params,g]);return{data:c,error:n,isFetching:l,isLoading:d,pagination:f,refetch:C,fetchPage:I,fetchNextPage:y,fetchPreviousPage:D,fetchLimit:G,fetchPagination:m}}(e,t,a);function Ae(e){return function(e){return{useFetchById:function(t){const[a,s]=(0,Ue.useState)(null),[r,o]=(0,Ue.useState)(null),[i,u]=(0,Ue.useState)(!1),[c,n]=(0,Ue.useState)(!0);return{data:a,error:r,isFetching:i,isLoading:c,refetch:(0,Ue.useCallback)(async()=>{u(!0);try{const a=await e.getById(t);s(a),o(null)}catch(e){o(e),we.log(e,"useFetchById")}finally{u(!1),n(!1)}},[JSON.stringify(t)])}},useFetchList:Be(e),useCreate:function(){const[t,a]=(0,Ue.useState)(!1),[s,r]=(0,Ue.useState)(null),[o,i]=(0,Ue.useState)(null);return{mutate:(0,Ue.useCallback)(async t=>{a(!0);try{const a=await e.create(t);return i(a),r(null),a}catch(e){throw r(e),we.log(e,"useCreate"),e}finally{a(!1)}},[]),isLoading:t,error:s,data:o}},useUpdate:function(){const[t,a]=(0,Ue.useState)(!1),[s,r]=(0,Ue.useState)(null),[o,i]=(0,Ue.useState)(null);return{mutate:(0,Ue.useCallback)(async t=>{a(!0);try{const a=await e.update(t);return i(a),r(null),a}catch(e){throw r(e),we.log(e,"useUpdate"),e}finally{a(!1)}},[]),isLoading:t,error:s,data:o}},useDelete:function(){const[t,a]=(0,Ue.useState)(!1),[s,r]=(0,Ue.useState)(null),[o,i]=(0,Ue.useState)(!1);return{mutate:(0,Ue.useCallback)(async t=>{a(!0);try{const a=await e.delete(t);return i(a),r(null),a}catch(e){throw r(e),we.log(e,"useDelete"),e}finally{a(!1)}},[]),isLoading:t,error:s,success:o}},useFilterMatch:function(t){const[a,s]=(0,Ue.useState)(null),[r,o]=(0,Ue.useState)(null),[i,u]=(0,Ue.useState)(!1),[c,n]=(0,Ue.useState)(!0);return{data:a,error:r,isFetching:i,isLoading:c,refetch:(0,Ue.useCallback)(async()=>{u(!0);try{const a=await e.filterMatch(t);s(a),o(null)}catch(e){o(e),we.log(e,"useFilterMatch")}finally{u(!1),n(!1)}},[JSON.stringify(t)])}}}}(e)}var Me=e=>({}),Pe=()=>{const e=new b,t=Ae(e),a=Me(e);return h(h({},t),a)},{useFetchById:Ee,useFetchList:Te,useCreate:Re,useUpdate:ve,useDelete:Se,useFilterMatch:$e}=Pe(),Oe=Pe,ke=e=>({}),Ne=()=>{const e=new E,t=Ae(e),a=ke(e);return h(h({},t),a)},{useFetchById:je,useFetchList:qe,useCreate:He,useUpdate:ze,useDelete:Je,useFilterMatch:Ke}=Ne(),Qe=Ne,Ve=e=>({}),We=()=>{const e=new R,t=Ae(e),a=Ve(e);return h(h({},t),a)},{useFetchById:Xe,useFetchList:Ye,useCreate:Ze,useUpdate:et,useDelete:tt,useFilterMatch:at}=We(),st=We,rt=e=>({}),ot=()=>{const e=new Z,t=Ae(e),a=rt(e);return h(h({},t),a)},{useFetchById:it,useFetchList:ut,useCreate:ct,useUpdate:nt,useDelete:lt,useFilterMatch:dt}=ot(),ht=ot,pt=e=>({}),ft=()=>{const e=new te,t=Ae(e),a=pt(e);return h(h({},t),a)},{useFetchById:Ft,useFetchList:gt,useCreate:Ct,useUpdate:It,useDelete:Gt,useFilterMatch:yt}=ft(),Dt=ft,mt=e=>({}),bt=()=>{const e=new S,t=Ae(e),a=mt(e);return h(h({},t),a)},{useFetchById:Ut,useFetchList:_t,useCreate:wt,useUpdate:Lt,useDelete:xt,useFilterMatch:Bt}=bt(),At=bt,Mt=class extends D{constructor(e){super({endpoint:"dashboard_estilo",client:null==e?void 0:e.axiosInstance})}},Pt=e=>({}),Et=()=>{const e=new Mt,t=Ae(e),a=Pt(e);return h(h({},t),a)},{useFetchById:Tt,useFetchList:Rt,useCreate:vt,useUpdate:St,useDelete:$t,useFilterMatch:Ot}=Et(),kt=Et,Nt=e=>({}),jt=()=>{const e=new L,t=Ae(e),a=Nt(e);return h(h({},t),a)},{useFetchById:qt,useFetchList:Ht,useCreate:zt,useUpdate:Jt,useDelete:Kt,useFilterMatch:Qt}=jt(),Vt=jt,Wt=require("react"),Xt=e=>({useGetTree:()=>{const[t,a]=(0,Wt.useState)(null),[s,r]=(0,Wt.useState)(null),[o,i]=(0,Wt.useState)(!1);return{data:t,error:s,isFetching:o,fetchData:(0,Wt.useCallback)(async t=>{i(!0);try{const s=await e.tree(t);a(s),r(null)}catch(e){r(e),console.error("Error fetching dashboardGraficaElemento tree:",e)}finally{i(!1)}},[])}}}),Yt=()=>{const e=new B,t=Ae(e),a=Xt(e);return h(h({},t),a)},{useFetchById:Zt,useFetchList:ea,useCreate:ta,useUpdate:aa,useDelete:sa,useFilterMatch:ra}=Yt(),oa=Yt,ia=e=>({}),ua=()=>{const e=new he,t=Ae(e),a=ia(e);return h(h({},t),a)},{useFetchById:ca,useFetchList:na,useCreate:la,useUpdate:da,useDelete:ha,useFilterMatch:pa}=ua(),fa=ua,Fa=e=>({}),ga=()=>{const e=new le,t=Ae(e),a=Fa(e);return h(h({},t),a)},{useFetchById:Ca,useFetchList:Ia,useCreate:Ga,useUpdate:ya,useDelete:Da,useFilterMatch:ma}=ga(),ba=ga,Ua=e=>({}),_a=()=>{const e=new _,t=Ae(e),a=Ua(e);return h(h({},t),a)},{useFetchById:wa,useFetchList:La,useCreate:xa,useUpdate:Ba,useDelete:Aa,useFilterMatch:Ma}=_a(),Pa=_a,Ea=class extends D{constructor(e){super({endpoint:"dashboard_grafica_grupo_estilo",client:null==e?void 0:e.axiosInstance})}},Ta=e=>({}),Ra=()=>{const e=new Ea,t=Ae(e),a=Ta(e);return h(h({},t),a)},{useFetchById:va,useFetchList:Sa,useCreate:$a,useUpdate:Oa,useDelete:ka,useFilterMatch:Na}=Ra(),ja=Ra,qa=e=>({}),Ha=()=>{const e=new ie,t=Ae(e),a=qa(e);return h(h({},t),a)},{useFetchById:za,useFetchList:Ja,useCreate:Ka,useUpdate:Qa,useDelete:Va,useFilterMatch:Wa}=Ha(),Xa=Ha,Ya=e=>({}),Za=()=>{const e=new O,t=Ae(e),a=Ya(e);return h(h({},t),a)},{useFetchById:es,useFetchList:ts,useCreate:as,useUpdate:ss,useDelete:rs,useFilterMatch:os}=Za(),is=Za,us=e=>({}),cs=()=>{const e=new N,t=Ae(e),a=us(e);return h(h({},t),a)},{useFetchById:ns,useFetchList:ls,useCreate:ds,useUpdate:hs,useDelete:ps,useFilterMatch:fs}=cs(),Fs=cs,gs=e=>({}),Cs=()=>{const e=new q,t=Ae(e),a=gs(e);return h(h({},t),a)},{useFetchById:Is,useFetchList:Gs,useCreate:ys,useUpdate:Ds,useDelete:ms,useFilterMatch:bs}=Cs(),Us=Cs,_s=e=>({}),ws=()=>{const e=new z,t=Ae(e),a=_s(e);return h(h({},t),a)},{useFetchById:Ls,useFetchList:xs,useCreate:Bs,useUpdate:As,useDelete:Ms,useFilterMatch:Ps}=ws(),Es=ws,Ts=e=>({}),Rs=()=>{const e=new K,t=Ae(e),a=Ts(e);return h(h({},t),a)},{useFetchById:vs,useFetchList:Ss,useCreate:$s,useUpdate:Os,useDelete:ks,useFilterMatch:Ns}=Rs(),js=Rs,qs=e=>({}),Hs=()=>{const e=new Ie,t=Ae(e),a=qs(e);return h(h({},t),a)},{useFetchById:zs,useFetchList:Js,useCreate:Ks,useUpdate:Qs,useDelete:Vs,useFilterMatch:Ws}=Hs(),Xs=Hs,Ys=e=>({}),Zs=()=>{const e=new me,t=Ae(e),a=Ys(e);return h(h({},t),a)},{useFetchById:er,useFetchList:tr,useCreate:ar,useUpdate:sr,useDelete:rr,useFilterMatch:or}=Zs(),ir=Zs,ur=e=>({}),cr=()=>{const e=new ye,t=Ae(e),a=ur(e);return h(h({},t),a)},{useFetchById:nr,useFetchList:lr,useCreate:dr,useUpdate:hr,useDelete:pr,useFilterMatch:fr}=cr(),Fr=cr,gr=e=>({}),Cr=()=>{const e=new V,t=Ae(e),a=gr(e);return h(h({},t),a)},{useFetchById:Ir,useFetchList:Gr,useCreate:yr,useUpdate:Dr,useDelete:mr,useFilterMatch:br}=Cr(),Ur=Cr,_r=e=>({}),wr=()=>{const e=new ge,t=Ae(e),a=_r(e);return h(h({},t),a)},{useFetchById:Lr,useFetchList:xr,useCreate:Br,useUpdate:Ar,useDelete:Mr,useFilterMatch:Pr}=wr(),Er=wr,Tr=e=>({}),Rr=()=>{const e=new M,t=Ae(e),a=Tr(e);return h(h({},t),a)},{useFetchById:vr,useFetchList:Sr,useCreate:$r,useUpdate:Or,useDelete:kr,useFilterMatch:Nr}=Rr(),jr=Rr,qr=e=>({}),Hr=()=>{const e=new X,t=Ae(e),a=qr(e);return h(h({},t),a)},{useFetchById:zr,useFetchList:Jr,useCreate:Kr,useUpdate:Qr,useDelete:Vr,useFilterMatch:Wr}=Hr(),Xr=Hr,Yr=e=>({}),Zr=()=>{const e=new ce,t=Ae(e),a=Yr(e);return h(h({},t),a)},{useFetchById:eo,useFetchList:to,useCreate:ao,useUpdate:so,useDelete:ro,useFilterMatch:oo}=Zr(),io=Zr,uo=e=>({}),co=()=>{const e=new fe,t=Ae(e),a=uo(e);return h(h({},t),a)},{useFetchById:no,useFetchList:lo,useCreate:ho,useUpdate:po,useDelete:fo,useFilterMatch:Fo}=co(),go=co,Co=Oe(),Io=Co.useFetchById,Go=Co.useFetchList,yo=Co.useCreate,Do=Co.useUpdate,mo=Co.useDelete,bo=Co.useFilterMatch,Uo=Qe(),_o=Uo.useFetchById,wo=Uo.useFetchList,Lo=Uo.useCreate,xo=Uo.useUpdate,Bo=Uo.useDelete,Ao=Uo.useFilterMatch,Mo=st(),Po=Mo.useFetchById,Eo=Mo.useFetchList,To=Mo.useCreate,Ro=Mo.useUpdate,vo=Mo.useDelete,So=Mo.useFilterMatch,$o=ht(),Oo=$o.useFetchById,ko=$o.useFetchList,No=$o.useCreate,jo=$o.useUpdate,qo=$o.useDelete,Ho=$o.useFilterMatch,zo=Dt(),Jo=zo.useFetchById,Ko=zo.useFetchList,Qo=zo.useCreate,Vo=zo.useUpdate,Wo=zo.useDelete,Xo=zo.useFilterMatch,Yo=At(),Zo=Yo.useFetchById,ei=Yo.useFetchList,ti=Yo.useCreate,ai=Yo.useUpdate,si=Yo.useDelete,ri=Yo.useFilterMatch,oi=kt(),ii=oi.useFetchById,ui=oi.useFetchList,ci=oi.useCreate,ni=oi.useUpdate,li=oi.useDelete,di=oi.useFilterMatch,hi=Vt(),pi=hi.useFetchById,fi=hi.useFetchList,Fi=hi.useCreate,gi=hi.useUpdate,Ci=hi.useDelete,Ii=hi.useFilterMatch,Gi=oa(),yi=Gi.useFetchById,Di=Gi.useFetchList,mi=Gi.useCreate,bi=Gi.useUpdate,Ui=Gi.useDelete,_i=Gi.useFilterMatch,wi=Gi.useGetTree,Li=fa(),xi=Li.useFetchById,Bi=Li.useFetchList,Ai=Li.useCreate,Mi=Li.useUpdate,Pi=Li.useDelete,Ei=Li.useFilterMatch,Ti=ba(),Ri=Ti.useFetchById,vi=Ti.useFetchList,Si=Ti.useCreate,$i=Ti.useUpdate,Oi=Ti.useDelete,ki=Ti.useFilterMatch,Ni=Pa(),ji=Ni.useFetchById,qi=Ni.useFetchList,Hi=Ni.useCreate,zi=Ni.useUpdate,Ji=Ni.useDelete,Ki=Ni.useFilterMatch,Qi=ja(),Vi=Qi.useFetchById,Wi=Qi.useFetchList,Xi=Qi.useCreate,Yi=Qi.useUpdate,Zi=Qi.useDelete,eu=Qi.useFilterMatch,tu=Xa(),au=tu.useFetchById,su=tu.useFetchList,ru=tu.useCreate,ou=tu.useUpdate,iu=tu.useDelete,uu=tu.useFilterMatch,cu=is(),nu=cu.useFetchById,lu=cu.useFetchList,du=cu.useCreate,hu=cu.useUpdate,pu=cu.useDelete,fu=cu.useFilterMatch,Fu=Fs(),gu=Fu.useFetchById,Cu=Fu.useFetchList,Iu=Fu.useCreate,Gu=Fu.useUpdate,yu=Fu.useDelete,Du=Fu.useFilterMatch,mu=Us(),bu=mu.useFetchById,Uu=mu.useFetchList,_u=mu.useCreate,wu=mu.useUpdate,Lu=mu.useDelete,xu=mu.useFilterMatch,Bu=Es(),Au=Bu.useFetchById,Mu=Bu.useFetchList,Pu=Bu.useCreate,Eu=Bu.useUpdate,Tu=Bu.useDelete,Ru=Bu.useFilterMatch,vu=js(),Su=vu.useFetchById,$u=vu.useFetchList,Ou=vu.useCreate,ku=vu.useUpdate,Nu=vu.useDelete,ju=vu.useFilterMatch,qu=Xs(),Hu=qu.useFetchById,zu=qu.useFetchList,Ju=qu.useCreate,Ku=qu.useUpdate,Qu=qu.useDelete,Vu=qu.useFilterMatch,Wu=ir(),Xu=Wu.useFetchById,Yu=Wu.useFetchList,Zu=Wu.useCreate,ec=Wu.useUpdate,tc=Wu.useDelete,ac=Wu.useFilterMatch,sc=Fr(),rc=sc.useFetchById,oc=sc.useFetchList,ic=sc.useCreate,uc=sc.useUpdate,cc=sc.useDelete,nc=sc.useFilterMatch,lc=Ur(),dc=lc.useFetchById,hc=lc.useFetchList,pc=lc.useCreate,fc=lc.useUpdate,Fc=lc.useDelete,gc=lc.useFilterMatch,Cc=Er(),Ic=Cc.useFetchById,Gc=Cc.useFetchList,yc=Cc.useCreate,Dc=Cc.useUpdate,mc=Cc.useDelete,bc=Cc.useFilterMatch,Uc=jr(),_c=Uc.useFetchById,wc=Uc.useFetchList,Lc=Uc.useCreate,xc=Uc.useUpdate,Bc=Uc.useDelete,Ac=Uc.useFilterMatch,Mc=Xr(),Pc=Mc.useFetchById,Ec=Mc.useFetchList,Tc=Mc.useCreate,Rc=Mc.useUpdate,vc=Mc.useDelete,Sc=Mc.useFilterMatch,$c=io(),Oc=$c.useFetchById,kc=$c.useFetchList,Nc=$c.useCreate,jc=$c.useUpdate,qc=$c.useDelete,Hc=$c.useFilterMatch,zc=go(),Jc=zc.useFetchById,Kc=zc.useFetchList,Qc=zc.useCreate,Vc=zc.useUpdate,Wc=zc.useDelete,Xc=zc.useFilterMatch;//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var e,t=Object.create,s=Object.defineProperty,a=Object.defineProperties,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,t,a)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,h=(e,t)=>{for(var s in t||(t={}))u.call(t,s)&&d(e,s,t[s]);if(i)for(var s of i(t))l.call(t,s)&&d(e,s,t[s]);return e},p=(e,t)=>a(e,o(t)),f=(e,t,a,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of n(t))u.call(e,i)||i===a||s(e,i,{get:()=>t[i],enumerable:!(o=r(t,i))||o.enumerable});return e},I=(e,a,r)=>(r=null!=e?t(c(e)):{},f(!a&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),F={};((e,t)=>{for(var a in t)s(e,a,{get:t[a],enumerable:!0})})(F,{APIFactory:()=>xt,ApiClientContext:()=>m,createAPIAdeudo:()=>Tt,createAPICatColor:()=>qt,createAPICatColorGrupo:()=>Yt,createAPICatGraficaGrupo:()=>is,createAPICatRolGrupo:()=>Fs,createAPICatTema:()=>bs,createAPIDashboardEstilo:()=>Ts,createAPIDashboardGrafica:()=>qs,createAPIDashboardGraficaElemento:()=>Zs,createAPIDashboardGraficaElementoDetalle:()=>ca,createAPIDashboardGraficaElementoEstilo:()=>ga,createAPIDashboardGraficaElementoParametro:()=>wa,createAPIDashboardGraficaGrupo:()=>Ea,createAPIDashboardGraficaGrupoEstilo:()=>za,createAPIDashboardRuta:()=>Za,createAPIGrafica:()=>cr,createAPIGraficaColor:()=>gr,createAPIGraficaColorGrupo:()=>wr,createAPIGraficaColorGrupoAsignacion:()=>Er,createAPIGraficaColorGrupoTipoGrafica:()=>zr,createAPIGraficaParametro:()=>Zr,createAPIGraficaParametroDefecto:()=>co,createAPIGraficaParametroTipo:()=>xo,createAPIRol:()=>Uo,createAPIRolDashboardRuta:()=>Ro,createAPITipoGrafica:()=>Ho,createAPIUsuario:()=>en,createAPIUsuarioDashboardAcceso:()=>ln,createAPIUsuarioRol:()=>Cn,useCreateAdeudo:()=>yn,useCreateCatColor:()=>Ln,useCreateCatColorGrupo:()=>Sn,useCreateCatGraficaGrupo:()=>zn,useCreateCatRolGrupo:()=>Xn,useCreateCatTema:()=>ri,useCreateDashboardEstilo:()=>di,useCreateDashboardGrafica:()=>xi,useCreateDashboardGraficaElemento:()=>bi,useCreateDashboardGraficaElementoDetalle:()=>Bi,useCreateDashboardGraficaElementoEstilo:()=>ki,useCreateDashboardGraficaElementoParametro:()=>Ki,useCreateDashboardGraficaGrupo:()=>ec,useCreateDashboardGraficaGrupoEstilo:()=>ic,useCreateDashboardRuta:()=>fc,useCreateGrafica:()=>Gc,useCreateGraficaColor:()=>Pc,useCreateGraficaColorGrupo:()=>Ec,useCreateGraficaColorGrupoAsignacion:()=>jc,useCreateGraficaColorGrupoTipoGrafica:()=>Vc,useCreateGraficaParametro:()=>su,useCreateGraficaParametroDefecto:()=>uu,useCreateGraficaParametroTipo:()=>Fu,useCreateRol:()=>yu,useCreateRolDashboardRuta:()=>Lu,useCreateTipoGrafica:()=>Su,useCreateUsuario:()=>zu,useCreateUsuarioDashboardAcceso:()=>Xu,useCreateUsuarioRol:()=>rl,useDeleteAdeudo:()=>bn,useDeleteCatColor:()=>vn,useDeleteCatColorGrupo:()=>On,useDeleteCatGraficaGrupo:()=>Jn,useDeleteCatRolGrupo:()=>Zn,useDeleteCatTema:()=>ni,useDeleteDashboardEstilo:()=>pi,useDeleteDashboardGrafica:()=>mi,useDeleteDashboardGraficaElemento:()=>Ui,useDeleteDashboardGraficaElementoDetalle:()=>Ei,useDeleteDashboardGraficaElementoEstilo:()=>ji,useDeleteDashboardGraficaElementoParametro:()=>Vi,useDeleteDashboardGraficaGrupo:()=>sc,useDeleteDashboardGraficaGrupoEstilo:()=>uc,useDeleteDashboardRuta:()=>Fc,useDeleteGrafica:()=>yc,useDeleteGraficaColor:()=>Lc,useDeleteGraficaColorGrupo:()=>Sc,useDeleteGraficaColorGrupoAsignacion:()=>zc,useDeleteGraficaColorGrupoTipoGrafica:()=>Xc,useDeleteGraficaParametro:()=>ru,useDeleteGraficaParametroDefecto:()=>du,useDeleteGraficaParametroTipo:()=>xu,useDeleteRol:()=>bu,useDeleteRolDashboardRuta:()=>vu,useDeleteTipoGrafica:()=>Ou,useDeleteUsuario:()=>Ju,useDeleteUsuarioDashboardAcceso:()=>Zu,useDeleteUsuarioRol:()=>nl,useFetchByIdAdeudo:()=>Gn,useFetchByIdCatColor:()=>Pn,useFetchByIdCatColorGrupo:()=>En,useFetchByIdCatGraficaGrupo:()=>jn,useFetchByIdCatRolGrupo:()=>Vn,useFetchByIdCatTema:()=>si,useFetchByIdDashboardEstilo:()=>ui,useFetchByIdDashboardGrafica:()=>Fi,useFetchByIdDashboardGraficaElemento:()=>yi,useFetchByIdDashboardGraficaElementoDetalle:()=>Mi,useFetchByIdDashboardGraficaElementoEstilo:()=>$i,useFetchByIdDashboardGraficaElementoParametro:()=>Hi,useFetchByIdDashboardGraficaGrupo:()=>Yi,useFetchByIdDashboardGraficaGrupoEstilo:()=>oc,useFetchByIdDashboardRuta:()=>hc,useFetchByIdGrafica:()=>Cc,useFetchByIdGraficaColor:()=>wc,useFetchByIdGraficaColorGrupo:()=>Bc,useFetchByIdGraficaColorGrupoAsignacion:()=>kc,useFetchByIdGraficaColorGrupoTipoGrafica:()=>Kc,useFetchByIdGraficaParametro:()=>eu,useFetchByIdGraficaParametroDefecto:()=>iu,useFetchByIdGraficaParametroTipo:()=>fu,useFetchByIdRol:()=>Gu,useFetchByIdRolDashboardRuta:()=>Pu,useFetchByIdTipoGrafica:()=>Eu,useFetchByIdUsuario:()=>ju,useFetchByIdUsuarioDashboardAcceso:()=>Vu,useFetchByIdUsuarioRol:()=>sl,useFetchListAdeudo:()=>_n,useFetchListCatColor:()=>An,useFetchListCatColorGrupo:()=>Rn,useFetchListCatGraficaGrupo:()=>qn,useFetchListCatRolGrupo:()=>Wn,useFetchListCatTema:()=>ai,useFetchListDashboardEstilo:()=>li,useFetchListDashboardGrafica:()=>gi,useFetchListDashboardGraficaElemento:()=>Di,useFetchListDashboardGraficaElementoDetalle:()=>vi,useFetchListDashboardGraficaElementoEstilo:()=>Oi,useFetchListDashboardGraficaElementoParametro:()=>Ji,useFetchListDashboardGraficaGrupo:()=>Zi,useFetchListDashboardGraficaGrupoEstilo:()=>nc,useFetchListDashboardRuta:()=>pc,useFetchListGrafica:()=>mc,useFetchListGraficaColor:()=>Uc,useFetchListGraficaColorGrupo:()=>Tc,useFetchListGraficaColorGrupoAsignacion:()=>Nc,useFetchListGraficaColorGrupoTipoGrafica:()=>Qc,useFetchListGraficaParametro:()=>tu,useFetchListGraficaParametroDefecto:()=>cu,useFetchListGraficaParametroTipo:()=>Iu,useFetchListRol:()=>_u,useFetchListRolDashboardRuta:()=>Au,useFetchListTipoGrafica:()=>Ru,useFetchListUsuario:()=>qu,useFetchListUsuarioDashboardAcceso:()=>Wu,useFetchListUsuarioRol:()=>al,useFilterMatchAdeudo:()=>wn,useFilterMatchCatColor:()=>Bn,useFilterMatchCatColorGrupo:()=>kn,useFilterMatchCatGraficaGrupo:()=>Kn,useFilterMatchCatRolGrupo:()=>ei,useFilterMatchCatTema:()=>ii,useFilterMatchDashboardEstilo:()=>fi,useFilterMatchDashboardGrafica:()=>Gi,useFilterMatchDashboardGraficaElemento:()=>Pi,useFilterMatchDashboardGraficaElementoDetalle:()=>Ri,useFilterMatchDashboardGraficaElementoEstilo:()=>qi,useFilterMatchDashboardGraficaElementoParametro:()=>Wi,useFilterMatchDashboardGraficaGrupo:()=>ac,useFilterMatchDashboardGraficaGrupoEstilo:()=>lc,useFilterMatchDashboardRuta:()=>gc,useFilterMatchGrafica:()=>Dc,useFilterMatchGraficaColor:()=>Mc,useFilterMatchGraficaColorGrupo:()=>$c,useFilterMatchGraficaColorGrupoAsignacion:()=>Hc,useFilterMatchGraficaColorGrupoTipoGrafica:()=>Yc,useFilterMatchGraficaParametro:()=>ou,useFilterMatchGraficaParametroDefecto:()=>hu,useFilterMatchGraficaParametroTipo:()=>Cu,useFilterMatchRol:()=>wu,useFilterMatchRolDashboardRuta:()=>Bu,useFilterMatchTipoGrafica:()=>ku,useFilterMatchUsuario:()=>Ku,useFilterMatchUsuarioDashboardAcceso:()=>el,useFilterMatchUsuarioRol:()=>il,useGetTreeDashboardGraficaElemento:()=>Ai,useUpdateAdeudo:()=>Dn,useUpdateCatColor:()=>Mn,useUpdateCatColorGrupo:()=>$n,useUpdateCatGraficaGrupo:()=>Hn,useUpdateCatRolGrupo:()=>Yn,useUpdateCatTema:()=>oi,useUpdateDashboardEstilo:()=>hi,useUpdateDashboardGrafica:()=>Ci,useUpdateDashboardGraficaElemento:()=>wi,useUpdateDashboardGraficaElementoDetalle:()=>Ti,useUpdateDashboardGraficaElementoEstilo:()=>Ni,useUpdateDashboardGraficaElementoParametro:()=>Qi,useUpdateDashboardGraficaGrupo:()=>tc,useUpdateDashboardGraficaGrupoEstilo:()=>cc,useUpdateDashboardRuta:()=>Ic,useUpdateGrafica:()=>_c,useUpdateGraficaColor:()=>Ac,useUpdateGraficaColorGrupo:()=>Rc,useUpdateGraficaColorGrupoAsignacion:()=>qc,useUpdateGraficaColorGrupoTipoGrafica:()=>Wc,useUpdateGraficaParametro:()=>au,useUpdateGraficaParametroDefecto:()=>lu,useUpdateGraficaParametroTipo:()=>gu,useUpdateRol:()=>Du,useUpdateRolDashboardRuta:()=>Mu,useUpdateTipoGrafica:()=>$u,useUpdateUsuario:()=>Hu,useUpdateUsuarioDashboardAcceso:()=>Yu,useUpdateUsuarioRol:()=>ol}),module.exports=(e=F,f(s({},"__esModule",{value:!0}),e));var g=I(require("axios")),x=class{constructor({urlBase:e,getTokenCallback:t}){this._baseURL="",this.createDefaultMethods=e=>({findByFilterMatch:(t={filter:"",pagination:{},orderBy:""})=>e.post("/filter-match",t),get:({id:t,params:s={},config:a={},where:r})=>t?e.get(`/${t}`,h({params:s},a)):e.get("/",h({params:p(h({},s),{where:JSON.stringify(r)})},a)),post:({data:t,config:s})=>e.post("/",t,s),put:({id:t,data:s={},config:a={}})=>t?e.put(`/${t}`,s,a):e.put("/",s,a),delete:({id:t,config:s={},where:a={}})=>t?e.delete(`/${t}`,s):e.delete("/",h({data:{where:a}},s))}),this.subpath=(e,t)=>{if(!e)throw new Error("API subpath must be defined");const s=g.default.create({baseURL:this.api.defaults.baseURL+e,headers:{"Content-Type":"application/json"}});s.interceptors.request.use(e=>(e.headers.Authorization=this.api.defaults.headers.Authorization,e),e=>Promise.reject(e)),s.interceptors.response.use(e=>e,e=>Promise.reject(e));const a=this.createDefaultMethods(s),r=t?t(a,s):{};return h(h({},a),r)},this._baseURL=e,this.getTokenCallback=t,this.api=g.default.create({baseURL:e,headers:{"Content-Type":"application/json"}}),this.api.interceptors.request.use(e=>(e.headers.Authorization=this.getTokenCallback?this.getTokenCallback():null,e),e=>Promise.reject(e)),this.api.interceptors.response.use(e=>e,e=>Promise.reject(e))}setBaseURL(e){this._baseURL=e,this.api&&(this.api.defaults.baseURL=e)}setGetTokenCallback(e){this.getTokenCallback=e,this.api.defaults.headers.Authorization=e?e():null}getAxiosInstance(){return this.api}},C=I(require("axios")),m=class{};m.baseUrl="https://api.ejemplo.com",m.token="TOKEN_GLOBAL_POR_DEFECTO";var G=class{constructor({endpoint:e,client:t}){this.client=C.default.create({baseURL:m.baseUrl,headers:{Authorization:`${m.token}`,Accept:"application/json"}}),this.endpoint=e,t&&(this.client=t)}getAxiosConfig(e){const t=h({},e);return(null==t?void 0:t.where)&&"object"==typeof t.where&&(t.where=JSON.stringify(t.where)),{baseURL:m.baseUrl,headers:{Authorization:`${m.token}`,Accept:"application/json"},params:t}}async getById({id:e,params:t}){try{return(await C.default.get(`${this.endpoint}/${e}`,this.getAxiosConfig(t))).data}catch(t){return console.error(`Error GET ${this.endpoint}/${e}:`,t.message),null}}async create({data:e,params:t}){try{return(await C.default.post(this.endpoint,e,this.getAxiosConfig(t))).data}catch(e){return console.error(`Error POST ${this.endpoint}:`,e.message),null}}async update({id:e,data:t,params:s}){try{return(await C.default.put(`${this.endpoint}/${e}`,t,this.getAxiosConfig(s))).data}catch(t){return console.error(`Error PUT ${this.endpoint}/${e}:`,t.message),null}}async query({params:e}){try{const t=`${this.endpoint}`;return(await C.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} con query:`,e.message),null}}async filterMatch({body:e,params:t}){try{const s=`${this.endpoint}/filter-match`;return(await C.default.post(s,e,this.getAxiosConfig(t))).data}catch(e){return console.error(`Error POST ${this.endpoint} filter-match:`,e.message),null}}findByFilterMatch(e){return this.client.post(`${this.endpoint}/filter-match`,e)}buildGETConfig({id:e,params:t,config:s={},where:a}){const r=h(h({},this.getAxiosConfig(t)),s);return e||a&&(r.params=p(h({},r.params),{where:JSON.stringify(a)})),r}get({id:e,params:t,config:s={},where:a}){const r=this.buildGETConfig({id:e,params:t,config:s,where:a});return e?this.client.get(`${this.endpoint}/${e}`,r):this.client.get(`${this.endpoint}`,r)}post({data:e,config:t={}}){return this.client.post(`${this.endpoint}`,e,h(h({},this.getAxiosConfig()),t))}put({id:e,data:t={},config:s={}}){return e?this.client.put(`${this.endpoint}/${e}`,t,h(h({},this.getAxiosConfig()),s)):this.client.put(`${this.endpoint}`,t,h(h({},this.getAxiosConfig()),s))}async delete({id:e,params:t,where:s={},config:a={}}){try{const r=h(h({},this.getAxiosConfig(t)),a);return e?await C.default.delete(`${this.endpoint}/${e}`,r):await C.default.delete(`${this.endpoint}`,p(h({},r),{data:{where:s}})),!0}catch(t){return console.error(`Error DELETE ${this.endpoint}/${e||""}:`,t.message),!1}}},_=class extends G{constructor(e){super({endpoint:"adeudo",client:null==e?void 0:e.axiosInstance})}},y=_,D=class extends G{constructor(e){super({endpoint:"AdeudoPagoResumenMensual",client:null==e?void 0:e.axiosInstance})}},b=class extends G{constructor(e){super({endpoint:"AdeudoResumenMensual",client:null==e?void 0:e.axiosInstance})}},w=class extends G{constructor(e){super({endpoint:"AdeudoResumenTipoSuelo",client:null==e?void 0:e.axiosInstance})}},U=class extends G{constructor(e){super({endpoint:"AdeudoResumenTipoSueloResumen",client:null==e?void 0:e.axiosInstance})}},P=class extends G{constructor(e){super({endpoint:"AdeudosPorPlazaResumen",client:null==e?void 0:e.axiosInstance})}},A=class extends G{constructor(e){super({endpoint:"AdeudoTipoSueloResumenMensual",client:null==e?void 0:e.axiosInstance})}},L=class extends G{constructor(e){super({endpoint:"cat_accion",client:null==e?void 0:e.axiosInstance})}},M=class extends G{constructor(e){super({endpoint:"cat_color",client:null==e?void 0:e.axiosInstance})}},v=M,B=class extends G{constructor(e){super({endpoint:"cat_color_grupo",client:null==e?void 0:e.axiosInstance})}},T=B,E=class extends G{constructor(e){super({endpoint:"cat_concepto_pago",client:null==e?void 0:e.axiosInstance})}},R=class extends G{constructor(e){super({endpoint:"cat_entidad",client:null==e?void 0:e.axiosInstance})}},S=class extends G{constructor(e){super({endpoint:"cat_fecha_agrupacion",client:null==e?void 0:e.axiosInstance})}},$=class extends G{constructor(e){super({endpoint:"cat_grafica_grupo",client:null==e?void 0:e.axiosInstance})}},O=$,k=class extends G{constructor(e){super({endpoint:"cat_plaza",client:null==e?void 0:e.axiosInstance})}},N=class extends G{constructor(e){super({endpoint:"cat_rol_grupo",client:null==e?void 0:e.axiosInstance})}},j=N,q=class extends G{constructor(e){super({endpoint:"cat_tema",client:null==e?void 0:e.axiosInstance})}},z=q,H=class extends G{constructor(e){super({endpoint:"cat_tipo_parametro",client:null==e?void 0:e.axiosInstance})}},J=class extends G{constructor(e){super({endpoint:"cat_tipo_servicio",client:null==e?void 0:e.axiosInstance})}},K=class extends G{constructor(e){super({endpoint:"cat_tipo_suelo",client:null==e?void 0:e.axiosInstance})}},Q=class extends G{constructor(e){super({endpoint:"cat_tipo_tarifa",client:null==e?void 0:e.axiosInstance})}},V=class extends G{constructor(e){super({endpoint:"contribuyente",client:null==e?void 0:e.axiosInstance})}},W=class extends G{constructor(e){super({endpoint:"contribuyente_domicilio",client:null==e?void 0:e.axiosInstance})}},X=class extends G{constructor(e){super({endpoint:"CuentasConAltosMontosResumen",client:null==e?void 0:e.axiosInstance})}},Y=class extends G{constructor(e){super({endpoint:"dashboard_estilo",client:null==e?void 0:e.axiosInstance})}},Z=Y,ee=class extends G{constructor(e){super({endpoint:"dashboard_grafica",client:null==e?void 0:e.axiosInstance})}},te=ee,se=class extends G{constructor(e){super({endpoint:"dashboard_grafica_elemento",client:null==e?void 0:e.axiosInstance}),this.tree=async e=>{try{const t=this.buildGETConfig({params:e,where:{rol_id:e.rol_id}});return(await this.client.get(`${this.endpoint}/tree`,t)).data}catch(e){throw e}}}},ae=se,re=class extends G{constructor(e){super({endpoint:"dashboard_grafica_elemento_detalle",client:null==e?void 0:e.axiosInstance})}},oe=re,ne=class extends G{constructor(e){super({endpoint:"dashboard_grafica_elemento_estilo",client:null==e?void 0:e.axiosInstance})}},ie=ne,ce=class extends G{constructor(e){super({endpoint:"dashboard_grafica_elemento_parametro",client:null==e?void 0:e.axiosInstance})}},ue=ce,le=class extends G{constructor(e){super({endpoint:"dashboard_grafica_grupo",client:null==e?void 0:e.axiosInstance})}},de=le,he=class extends G{constructor(e){super({endpoint:"dashboard_grafica_grupo_estilo",client:null==e?void 0:e.axiosInstance})}},pe=he,fe=class extends G{constructor(e){super({endpoint:"dashboard_grafica_grupo_rol",client:null==e?void 0:e.axiosInstance})}},Ie=I(require("axios")),Fe=class{constructor({endpoint:e,client:t}){this.client=Ie.default.create({baseURL:m.baseUrl,headers:{Authorization:`${m.token}`,Accept:"application/json"}}),this.endpoint=e,t&&(this.client=t)}getAxiosConfig(e){return{baseURL:m.baseUrl,headers:{Authorization:`${m.token}`,Accept:"application/json"},params:e}}},ge=class extends Fe{async getById({id:e,params:t}){try{return(await Ie.default.get(`${this.endpoint}/${e}`,this.getAxiosConfig(t))).data}catch(t){return console.error(`Error GET ${this.endpoint}/${e}:`,t.message),null}}async getAll({params:e}){try{const t=`${this.endpoint}`;return(await Ie.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} all:`,e.message),null}}get({id:e,params:t,config:s={},where:a}){const r=h(h({},this.getAxiosConfig(t)),s);return e?this.client.get(`${this.endpoint}/${e}`,r):(a&&(r.params=p(h({},r.params),{where:JSON.stringify(a)})),this.client.get(`${this.endpoint}`,r))}async query({params:e}){try{const t=`${this.endpoint}`;return(await Ie.default.get(t,this.getAxiosConfig(e))).data}catch(e){return console.error(`Error GET ${this.endpoint} con query:`,e.message),null}}},xe=class extends G{constructor(e){super({endpoint:"dashboard_ruta",client:null==e?void 0:e.axiosInstance})}get usuario(){const e=`${this.endpoint}/usuario`;return new class extends ge{constructor(t){super({endpoint:e,client:t})}}(this.client)}},Ce=xe,me=class extends G{constructor(e){super({endpoint:"grafica",client:null==e?void 0:e.axiosInstance})}},Ge=me,_e=class extends G{constructor(e){super({endpoint:"grafica_agrupacion",client:null==e?void 0:e.axiosInstance})}},ye=class extends G{constructor(e){super({endpoint:"grafica_color",client:null==e?void 0:e.axiosInstance})}},De=ye,be=class extends G{constructor(e){super({endpoint:"grafica_color_grupo",client:null==e?void 0:e.axiosInstance})}},we=be,Ue=class extends G{constructor(e){super({endpoint:"grafica_color_grupo_asignacion",client:null==e?void 0:e.axiosInstance})}},Pe=Ue,Ae=class extends G{constructor(e){super({endpoint:"grafica_color_grupo_tipo_grafica",client:null==e?void 0:e.axiosInstance})}},Le=Ae,Me=class extends G{constructor(e){super({endpoint:"grafica_filtro",client:null==e?void 0:e.axiosInstance})}},ve=class extends G{constructor(e){super({endpoint:"grafica_parametro",client:null==e?void 0:e.axiosInstance})}},Be=ve,Te=class extends G{constructor(e){super({endpoint:"grafica_parametro_defecto",client:null==e?void 0:e.axiosInstance})}},Ee=Te,Re=class extends G{constructor(e){super({endpoint:"grafica_parametro_tipo",client:null==e?void 0:e.axiosInstance})}},Se=Re,$e=class extends G{constructor(e){super({endpoint:"grafica_por_grupo",client:null==e?void 0:e.axiosInstance})}},Oe=class extends G{constructor(e){super({endpoint:"grupo_usuario",client:null==e?void 0:e.axiosInstance})}},ke=class extends G{constructor(e){super({endpoint:"JobAuditLog",client:null==e?void 0:e.axiosInstance})}},Ne=class extends G{constructor(e){super({endpoint:"modulo",client:null==e?void 0:e.axiosInstance})}},je=class extends G{constructor(e){super({endpoint:"pagos",client:null==e?void 0:e.axiosInstance})}},qe=class extends G{constructor(e){super({endpoint:"PagosPorColoniasResumen",client:null==e?void 0:e.axiosInstance})}},ze=class extends G{constructor(e){super({endpoint:"PagosPorColoniasResumenMensual",client:null==e?void 0:e.axiosInstance})}},He=class extends G{constructor(e){super({endpoint:"PagosPorTipoServicioMensual",client:null==e?void 0:e.axiosInstance})}},Je=class extends G{constructor(e){super({endpoint:"PagosPorTipoServicioResumen",client:null==e?void 0:e.axiosInstance})}},Ke=class extends G{constructor(e){super({endpoint:"PagosPorTipoTarifaResumen",client:null==e?void 0:e.axiosInstance})}},Qe=class extends G{constructor(e){super({endpoint:"PagosPorTipoTarifaResumenMensual",client:null==e?void 0:e.axiosInstance})}},Ve=class extends G{constructor(e){super({endpoint:"PagosResumenMensual",client:null==e?void 0:e.axiosInstance})}},We=class extends G{constructor(e){super({endpoint:"permiso_accion_entidad",client:null==e?void 0:e.axiosInstance})}},Xe=class extends G{constructor(e){super({endpoint:"permiso_modulo",client:null==e?void 0:e.axiosInstance})}},Ye=class extends G{constructor(e){super({endpoint:"permiso_submodulo",client:null==e?void 0:e.axiosInstance})}},Ze=class extends G{constructor(e){super({endpoint:"plazas",client:null==e?void 0:e.axiosInstance})}},et=class extends G{constructor(e){super({endpoint:"rol",client:null==e?void 0:e.axiosInstance})}},tt=et,st=class extends G{constructor(e){super({endpoint:"rol_dashboard_ruta",client:null==e?void 0:e.axiosInstance})}},at=st,rt=class extends G{constructor(e){super({endpoint:"rol_grafica",client:null==e?void 0:e.axiosInstance})}},ot=class extends G{constructor(e){super({endpoint:"submodulo",client:null==e?void 0:e.axiosInstance})}},nt=class extends G{constructor(e){super({endpoint:"tipo_grafica",client:null==e?void 0:e.axiosInstance})}},it=nt,ct=class extends G{constructor(e){super({endpoint:"tipo_rol",client:null==e?void 0:e.axiosInstance})}},ut=class extends G{constructor(e){super({endpoint:"usuario",client:null==e?void 0:e.axiosInstance})}},lt=ut,dt=class extends G{constructor(e){super({endpoint:"usuario_dashboard_acceso",client:null==e?void 0:e.axiosInstance})}},ht=dt,pt=class extends G{constructor(e){super({endpoint:"usuario_grafica",client:null==e?void 0:e.axiosInstance})}},ft=class extends G{constructor(e){super({endpoint:"usuario_grafica_excluida",client:null==e?void 0:e.axiosInstance})}},It=class extends G{constructor(e){super({endpoint:"usuario_rol",client:null==e?void 0:e.axiosInstance})}},Ft=It,gt=class extends G{constructor(e){super({endpoint:"usuario_rol_eliminacion_log",client:null==e?void 0:e.axiosInstance})}},xt=class{constructor({urlBase:e,getTokenCallback:t}){this.urlBase=e,this.getTokenCallback=t;const s=new x({urlBase:e,getTokenCallback:t}).getAxiosInstance();this.axiosInstance=s,this.adeudo=new _({axiosInstance:s}),this.AdeudoPagoResumenMensual=new D({axiosInstance:s}),this.AdeudoResumenMensual=new b({axiosInstance:s}),this.AdeudoResumenTipoSuelo=new w({axiosInstance:s}),this.AdeudoResumenTipoSueloResumen=new U({axiosInstance:s}),this.AdeudosPorPlazaResumen=new P({axiosInstance:s}),this.AdeudoTipoSueloResumenMensual=new A({axiosInstance:s}),this.cat_accion=new L({axiosInstance:s}),this.cat_color=new M({axiosInstance:s}),this.cat_color_grupo=new B({axiosInstance:s}),this.cat_concepto_pago=new E({axiosInstance:s}),this.cat_entidad=new R({axiosInstance:s}),this.cat_fecha_agrupacion=new S({axiosInstance:s}),this.cat_grafica_grupo=new $({axiosInstance:s}),this.cat_plaza=new k({axiosInstance:s}),this.cat_rol_grupo=new N({axiosInstance:s}),this.cat_tema=new q({axiosInstance:s}),this.cat_tipo_parametro=new H({axiosInstance:s}),this.cat_tipo_servicio=new J({axiosInstance:s}),this.cat_tipo_suelo=new K({axiosInstance:s}),this.cat_tipo_tarifa=new Q({axiosInstance:s}),this.contribuyente=new V({axiosInstance:s}),this.contribuyente_domicilio=new W({axiosInstance:s}),this.CuentasConAltosMontosResumen=new X({axiosInstance:s}),this.dashboard_estilo=new Y({axiosInstance:s}),this.dashboard_grafica=new ee({axiosInstance:s}),this.dashboard_grafica_elemento=new se({axiosInstance:s}),this.dashboard_grafica_elemento_detalle=new re({axiosInstance:s}),this.dashboard_grafica_elemento_estilo=new ne({axiosInstance:s}),this.dashboard_grafica_elemento_parametro=new ce({axiosInstance:s}),this.dashboard_grafica_grupo=new le({axiosInstance:s}),this.dashboard_grafica_grupo_estilo=new he({axiosInstance:s}),this.dashboard_grafica_grupo_rol=new fe({axiosInstance:s}),this.dashboard_ruta=new xe({axiosInstance:s}),this.grafica=new me({axiosInstance:s}),this.grafica_agrupacion=new _e({axiosInstance:s}),this.grafica_color=new ye({axiosInstance:s}),this.grafica_color_grupo=new be({axiosInstance:s}),this.grafica_color_grupo_asignacion=new Ue({axiosInstance:s}),this.grafica_color_grupo_tipo_grafica=new Ae({axiosInstance:s}),this.grafica_filtro=new Me({axiosInstance:s}),this.grafica_parametro=new ve({axiosInstance:s}),this.grafica_parametro_defecto=new Te({axiosInstance:s}),this.grafica_parametro_tipo=new Re({axiosInstance:s}),this.grafica_por_grupo=new $e({axiosInstance:s}),this.grupo_usuario=new Oe({axiosInstance:s}),this.JobAuditLog=new ke({axiosInstance:s}),this.modulo=new Ne({axiosInstance:s}),this.pagos=new je({axiosInstance:s}),this.PagosPorColoniasResumen=new qe({axiosInstance:s}),this.PagosPorColoniasResumenMensual=new ze({axiosInstance:s}),this.PagosPorTipoServicioMensual=new He({axiosInstance:s}),this.PagosPorTipoServicioResumen=new Je({axiosInstance:s}),this.PagosPorTipoTarifaResumen=new Ke({axiosInstance:s}),this.PagosPorTipoTarifaResumenMensual=new Qe({axiosInstance:s}),this.PagosResumenMensual=new Ve({axiosInstance:s}),this.permiso_accion_entidad=new We({axiosInstance:s}),this.permiso_modulo=new Xe({axiosInstance:s}),this.permiso_submodulo=new Ye({axiosInstance:s}),this.plazas=new Ze({axiosInstance:s}),this.rol=new et({axiosInstance:s}),this.rol_dashboard_ruta=new st({axiosInstance:s}),this.rol_grafica=new rt({axiosInstance:s}),this.submodulo=new ot({axiosInstance:s}),this.tipo_grafica=new nt({axiosInstance:s}),this.tipo_rol=new ct({axiosInstance:s}),this.usuario=new ut({axiosInstance:s}),this.usuario_dashboard_acceso=new dt({axiosInstance:s}),this.usuario_grafica=new pt({axiosInstance:s}),this.usuario_grafica_excluida=new ft({axiosInstance:s}),this.usuario_rol=new It({axiosInstance:s}),this.usuario_rol_eliminacion_log=new gt({axiosInstance:s})}getAvailableAPIs(){return Object.entries(this).filter(([e,t])=>"object"==typeof t&&null!==t&&"get"in t).map(([e])=>e)}},Ct=require("react"),mt=I(require("fs")),Gt=new class{constructor(){this.handler=null}setHandler(e){this.handler=e}log(e,t){if(this.handler)this.handler(e,t);else if("undefined"!=typeof window&&window.localStorage){const s=JSON.parse(localStorage.getItem("api_error_logs")||"[]");s.push({error:(null==e?void 0:e.message)||String(e),context:t,date:(new Date).toISOString()}),localStorage.setItem("api_error_logs",JSON.stringify(s))}else{const s=`[${(new Date).toISOString()}] ${t||"API"}: ${(null==e?void 0:e.message)||String(e)}\n`;mt.default.appendFileSync("api_error_logs.txt",s)}}},_t=require("react");function yt(e,t){switch(t.type){case"FETCH_START":return p(h({},e),{isFetching:!0});case"FETCH_SUCCESS":return p(h({},e),{data:t.payload,error:null,isFetching:!1,isLoading:!1});case"FETCH_ERROR":return p(h({},e),{error:t.payload,isFetching:!1,isLoading:!1});case"PATCH_PAGINATION_SILENT":return p(h({},e),{pagination:h(h({},e.pagination),t.payload)});default:return e}}var Dt=e=>(t,s)=>function(e,t,s){var a,r,o;const[n,i]=(0,_t.useReducer)(yt,function(e){var t,s,a,r,o,n;return{data:null,error:null,isFetching:!1,isLoading:!0,pagination:{limit:null!=(s=null==(t=e.params)?void 0:t.limit)?s:10,page:null!=(r=null==(a=e.params)?void 0:a.page)?r:1,orderBy:null!=(n=null==(o=e.params)?void 0:o.orderBy)?n:""}}}(t)),{data:c,error:u,isFetching:l,isLoading:d,pagination:f}=n,I=(0,_t.useRef)(!1);(0,_t.useEffect)(()=>{var e,s,a,r,o,n;i({type:"PATCH_PAGINATION_SILENT",payload:{limit:null!=(s=null==(e=t.params)?void 0:e.limit)?s:10,page:null!=(r=null==(a=t.params)?void 0:a.page)?r:1,orderBy:null!=(n=null==(o=t.params)?void 0:o.orderBy)?n:""}})},[null==(a=t.params)?void 0:a.limit,null==(r=t.params)?void 0:r.page,null==(o=t.params)?void 0:o.orderBy]);const F=(0,_t.useCallback)(async t=>{i({type:"FETCH_START"});try{const s=await e.query(t);if(!s)throw new Error("No data returned from API");return i({type:"FETCH_SUCCESS",payload:s}),s}catch(e){i({type:"FETCH_ERROR",payload:e}),Gt.log(e,"useFetchList")}},[e]),g=(0,_t.useCallback)(async()=>{await F(t)},[F,t]);(0,_t.useEffect)(()=>{(null==s?void 0:s.fetchOnMount)&&(I.current||(I.current=!0,g()))},[g,null==s?void 0:s.fetchOnMount]);const x=(0,_t.useCallback)(async e=>{e<1||(await F({params:p(h({},t.params),{page:e,limit:f.limit})}),i({type:"PATCH_PAGINATION_SILENT",payload:{page:e}}))},[f.limit,t.params,F]),C=(0,_t.useCallback)(async e=>{await F({params:p(h({},t.params),{page:1,limit:e})}),i({type:"PATCH_PAGINATION_SILENT",payload:{limit:e,page:1}})},[t.params,F]),m=(0,_t.useCallback)(()=>{var e;x((null!=(e=f.page)?e:0)+1)},[x,f.page]),G=(0,_t.useCallback)(()=>{var e;const t=(null!=(e=f.page)?e:1)-1;t<1||x(t)},[x,f.page]),_=(0,_t.useCallback)(async({page:e,limit:s,orderBy:a})=>{await F({params:p(h({},t.params),{page:e,limit:s,orderBy:a})}),i({type:"PATCH_PAGINATION_SILENT",payload:{page:e,limit:s,orderBy:a}})},[t.params,F]);return{data:c,error:u,isFetching:l,isLoading:d,pagination:f,refetch:g,fetchPage:x,fetchNextPage:m,fetchPreviousPage:G,fetchLimit:C,fetchPagination:_}}(e,t,s);function bt(e){return function(e){return{useFetchById:function(t){const[s,a]=(0,Ct.useState)(null),[r,o]=(0,Ct.useState)(null),[n,i]=(0,Ct.useState)(!1),[c,u]=(0,Ct.useState)(!0);return{data:s,error:r,isFetching:n,isLoading:c,refetch:(0,Ct.useCallback)(async()=>{i(!0);try{const s=await e.getById(t);a(s),o(null)}catch(e){o(e),Gt.log(e,"useFetchById")}finally{i(!1),u(!1)}},[JSON.stringify(t)])}},useFetchList:Dt(e),useCreate:function(){const[t,s]=(0,Ct.useState)(!1),[a,r]=(0,Ct.useState)(null),[o,n]=(0,Ct.useState)(null);return{mutate:(0,Ct.useCallback)(async t=>{s(!0);try{const s=await e.create(t);return n(s),r(null),s}catch(e){throw r(e),Gt.log(e,"useCreate"),e}finally{s(!1)}},[]),isLoading:t,error:a,data:o}},useUpdate:function(){const[t,s]=(0,Ct.useState)(!1),[a,r]=(0,Ct.useState)(null),[o,n]=(0,Ct.useState)(null);return{mutate:(0,Ct.useCallback)(async t=>{s(!0);try{const s=await e.update(t);return n(s),r(null),s}catch(e){throw r(e),Gt.log(e,"useUpdate"),e}finally{s(!1)}},[]),isLoading:t,error:a,data:o}},useDelete:function(){const[t,s]=(0,Ct.useState)(!1),[a,r]=(0,Ct.useState)(null),[o,n]=(0,Ct.useState)(!1);return{mutate:(0,Ct.useCallback)(async t=>{s(!0);try{const s=await e.delete(t);return n(s),r(null),s}catch(e){throw r(e),Gt.log(e,"useDelete"),e}finally{s(!1)}},[]),isLoading:t,error:a,success:o}},useFilterMatch:function(t){const[s,a]=(0,Ct.useState)(null),[r,o]=(0,Ct.useState)(null),[n,i]=(0,Ct.useState)(!1),[c,u]=(0,Ct.useState)(!0);return{data:s,error:r,isFetching:n,isLoading:c,refetch:(0,Ct.useCallback)(async()=>{i(!0);try{const s=await e.filterMatch(t);a(s),o(null)}catch(e){o(e),Gt.log(e,"useFilterMatch")}finally{i(!1),u(!1)}},[JSON.stringify(t)])}}}}(e)}var wt=e=>({}),Ut=()=>{const e=new y,t=bt(e),s=wt(e);return h(h({},t),s)},{useFetchById:Pt,useFetchList:At,useCreate:Lt,useUpdate:Mt,useDelete:vt,useFilterMatch:Bt}=Ut(),Tt=Ut,Et=e=>({}),Rt=()=>{const e=new v,t=bt(e),s=Et(e);return h(h({},t),s)},{useFetchById:St,useFetchList:$t,useCreate:Ot,useUpdate:kt,useDelete:Nt,useFilterMatch:jt}=Rt(),qt=Rt,zt=e=>({}),Ht=()=>{const e=new T,t=bt(e),s=zt(e);return h(h({},t),s)},{useFetchById:Jt,useFetchList:Kt,useCreate:Qt,useUpdate:Vt,useDelete:Wt,useFilterMatch:Xt}=Ht(),Yt=Ht,Zt=e=>({}),es=()=>{const e=new O,t=bt(e),s=Zt(e);return h(h({},t),s)},{useFetchById:ts,useFetchList:ss,useCreate:as,useUpdate:rs,useDelete:os,useFilterMatch:ns}=es(),is=es,cs=e=>({}),us=()=>{const e=new j,t=bt(e),s=cs(e);return h(h({},t),s)},{useFetchById:ls,useFetchList:ds,useCreate:hs,useUpdate:ps,useDelete:fs,useFilterMatch:Is}=us(),Fs=us,gs=e=>({}),xs=()=>{const e=new z,t=bt(e),s=gs(e);return h(h({},t),s)},{useFetchById:Cs,useFetchList:ms,useCreate:Gs,useUpdate:_s,useDelete:ys,useFilterMatch:Ds}=xs(),bs=xs,ws=e=>({}),Us=()=>{const e=new Z,t=bt(e),s=ws(e);return h(h({},t),s)},{useFetchById:Ps,useFetchList:As,useCreate:Ls,useUpdate:Ms,useDelete:vs,useFilterMatch:Bs}=Us(),Ts=Us,Es=e=>({}),Rs=()=>{const e=new te,t=bt(e),s=Es(e);return h(h({},t),s)},{useFetchById:Ss,useFetchList:$s,useCreate:Os,useUpdate:ks,useDelete:Ns,useFilterMatch:js}=Rs(),qs=Rs,zs=require("react"),Hs=e=>({useGetTree:()=>{const[t,s]=(0,zs.useState)(null),[a,r]=(0,zs.useState)(null),[o,n]=(0,zs.useState)(!1);return{data:t,error:a,isFetching:o,fetchData:(0,zs.useCallback)(async t=>{n(!0);try{const a=await e.tree(t);s(a),r(null)}catch(e){r(e),console.error("Error fetching dashboardGraficaElemento tree:",e)}finally{n(!1)}},[])}}}),Js=()=>{const e=new ae,t=bt(e),s=Hs(e);return h(h({},t),s)},{useFetchById:Ks,useFetchList:Qs,useCreate:Vs,useUpdate:Ws,useDelete:Xs,useFilterMatch:Ys}=Js(),Zs=Js,ea=e=>({}),ta=()=>{const e=new oe,t=bt(e),s=ea(e);return h(h({},t),s)},{useFetchById:sa,useFetchList:aa,useCreate:ra,useUpdate:oa,useDelete:na,useFilterMatch:ia}=ta(),ca=ta,ua=e=>({}),la=()=>{const e=new ie,t=bt(e),s=ua(e);return h(h({},t),s)},{useFetchById:da,useFetchList:ha,useCreate:pa,useUpdate:fa,useDelete:Ia,useFilterMatch:Fa}=la(),ga=la,xa=e=>({}),Ca=()=>{const e=new ue,t=bt(e),s=xa(e);return h(h({},t),s)},{useFetchById:ma,useFetchList:Ga,useCreate:_a,useUpdate:ya,useDelete:Da,useFilterMatch:ba}=Ca(),wa=Ca,Ua=e=>({}),Pa=()=>{const e=new de,t=bt(e),s=Ua(e);return h(h({},t),s)},{useFetchById:Aa,useFetchList:La,useCreate:Ma,useUpdate:va,useDelete:Ba,useFilterMatch:Ta}=Pa(),Ea=Pa,Ra=e=>({}),Sa=()=>{const e=new pe,t=bt(e),s=Ra(e);return h(h({},t),s)},{useFetchById:$a,useFetchList:Oa,useCreate:ka,useUpdate:Na,useDelete:ja,useFilterMatch:qa}=Sa(),za=Sa,Ha=e=>({}),Ja=()=>{const e=new Ce,t=bt(e),s=Ha(e);return h(h({},t),s)},{useFetchById:Ka,useFetchList:Qa,useCreate:Va,useUpdate:Wa,useDelete:Xa,useFilterMatch:Ya}=Ja(),Za=Ja,er=e=>({}),tr=()=>{const e=new Ge,t=bt(e),s=er(e);return h(h({},t),s)},{useFetchById:sr,useFetchList:ar,useCreate:rr,useUpdate:or,useDelete:nr,useFilterMatch:ir}=tr(),cr=tr,ur=e=>({}),lr=()=>{const e=new De,t=bt(e),s=ur(e);return h(h({},t),s)},{useFetchById:dr,useFetchList:hr,useCreate:pr,useUpdate:fr,useDelete:Ir,useFilterMatch:Fr}=lr(),gr=lr,xr=e=>({}),Cr=()=>{const e=new we,t=bt(e),s=xr(e);return h(h({},t),s)},{useFetchById:mr,useFetchList:Gr,useCreate:_r,useUpdate:yr,useDelete:Dr,useFilterMatch:br}=Cr(),wr=Cr,Ur=e=>({}),Pr=()=>{const e=new Pe,t=bt(e),s=Ur(e);return h(h({},t),s)},{useFetchById:Ar,useFetchList:Lr,useCreate:Mr,useUpdate:vr,useDelete:Br,useFilterMatch:Tr}=Pr(),Er=Pr,Rr=e=>({}),Sr=()=>{const e=new Le,t=bt(e),s=Rr(e);return h(h({},t),s)},{useFetchById:$r,useFetchList:Or,useCreate:kr,useUpdate:Nr,useDelete:jr,useFilterMatch:qr}=Sr(),zr=Sr,Hr=e=>({}),Jr=()=>{const e=new Be,t=bt(e),s=Hr(e);return h(h({},t),s)},{useFetchById:Kr,useFetchList:Qr,useCreate:Vr,useUpdate:Wr,useDelete:Xr,useFilterMatch:Yr}=Jr(),Zr=Jr,eo=e=>({}),to=()=>{const e=new Ee,t=bt(e),s=eo(e);return h(h({},t),s)},{useFetchById:so,useFetchList:ao,useCreate:ro,useUpdate:oo,useDelete:no,useFilterMatch:io}=to(),co=to,uo=e=>({}),lo=()=>{const e=new Se,t=bt(e),s=uo(e);return h(h({},t),s)},{useFetchById:ho,useFetchList:po,useCreate:fo,useUpdate:Io,useDelete:Fo,useFilterMatch:go}=lo(),xo=lo,Co=e=>({}),mo=()=>{const e=new tt,t=bt(e),s=Co(e);return h(h({},t),s)},{useFetchById:Go,useFetchList:_o,useCreate:yo,useUpdate:Do,useDelete:bo,useFilterMatch:wo}=mo(),Uo=mo,Po=e=>({}),Ao=()=>{const e=new at,t=bt(e),s=Po(e);return h(h({},t),s)},{useFetchById:Lo,useFetchList:Mo,useCreate:vo,useUpdate:Bo,useDelete:To,useFilterMatch:Eo}=Ao(),Ro=Ao,So=e=>({}),$o=()=>{const e=new it,t=bt(e),s=So(e);return h(h({},t),s)},{useFetchById:Oo,useFetchList:ko,useCreate:No,useUpdate:jo,useDelete:qo,useFilterMatch:zo}=$o(),Ho=$o,Jo=e=>({}),Ko=()=>{const e=new lt,t=bt(e),s=Jo(e);return h(h({},t),s)},{useFetchById:Qo,useFetchList:Vo,useCreate:Wo,useUpdate:Xo,useDelete:Yo,useFilterMatch:Zo}=Ko(),en=Ko,tn=e=>({}),sn=()=>{const e=new ht,t=bt(e),s=tn(e);return h(h({},t),s)},{useFetchById:an,useFetchList:rn,useCreate:on,useUpdate:nn,useDelete:cn,useFilterMatch:un}=sn(),ln=sn,dn=e=>({}),hn=()=>{const e=new Ft,t=bt(e),s=dn(e);return h(h({},t),s)},{useFetchById:pn,useFetchList:fn,useCreate:In,useUpdate:Fn,useDelete:gn,useFilterMatch:xn}=hn(),Cn=hn,mn=Tt(),Gn=mn.useFetchById,_n=mn.useFetchList,yn=mn.useCreate,Dn=mn.useUpdate,bn=mn.useDelete,wn=mn.useFilterMatch,Un=qt(),Pn=Un.useFetchById,An=Un.useFetchList,Ln=Un.useCreate,Mn=Un.useUpdate,vn=Un.useDelete,Bn=Un.useFilterMatch,Tn=Yt(),En=Tn.useFetchById,Rn=Tn.useFetchList,Sn=Tn.useCreate,$n=Tn.useUpdate,On=Tn.useDelete,kn=Tn.useFilterMatch,Nn=is(),jn=Nn.useFetchById,qn=Nn.useFetchList,zn=Nn.useCreate,Hn=Nn.useUpdate,Jn=Nn.useDelete,Kn=Nn.useFilterMatch,Qn=Fs(),Vn=Qn.useFetchById,Wn=Qn.useFetchList,Xn=Qn.useCreate,Yn=Qn.useUpdate,Zn=Qn.useDelete,ei=Qn.useFilterMatch,ti=bs(),si=ti.useFetchById,ai=ti.useFetchList,ri=ti.useCreate,oi=ti.useUpdate,ni=ti.useDelete,ii=ti.useFilterMatch,ci=Ts(),ui=ci.useFetchById,li=ci.useFetchList,di=ci.useCreate,hi=ci.useUpdate,pi=ci.useDelete,fi=ci.useFilterMatch,Ii=qs(),Fi=Ii.useFetchById,gi=Ii.useFetchList,xi=Ii.useCreate,Ci=Ii.useUpdate,mi=Ii.useDelete,Gi=Ii.useFilterMatch,_i=Zs(),yi=_i.useFetchById,Di=_i.useFetchList,bi=_i.useCreate,wi=_i.useUpdate,Ui=_i.useDelete,Pi=_i.useFilterMatch,Ai=_i.useGetTree,Li=ca(),Mi=Li.useFetchById,vi=Li.useFetchList,Bi=Li.useCreate,Ti=Li.useUpdate,Ei=Li.useDelete,Ri=Li.useFilterMatch,Si=ga(),$i=Si.useFetchById,Oi=Si.useFetchList,ki=Si.useCreate,Ni=Si.useUpdate,ji=Si.useDelete,qi=Si.useFilterMatch,zi=wa(),Hi=zi.useFetchById,Ji=zi.useFetchList,Ki=zi.useCreate,Qi=zi.useUpdate,Vi=zi.useDelete,Wi=zi.useFilterMatch,Xi=Ea(),Yi=Xi.useFetchById,Zi=Xi.useFetchList,ec=Xi.useCreate,tc=Xi.useUpdate,sc=Xi.useDelete,ac=Xi.useFilterMatch,rc=za(),oc=rc.useFetchById,nc=rc.useFetchList,ic=rc.useCreate,cc=rc.useUpdate,uc=rc.useDelete,lc=rc.useFilterMatch,dc=Za(),hc=dc.useFetchById,pc=dc.useFetchList,fc=dc.useCreate,Ic=dc.useUpdate,Fc=dc.useDelete,gc=dc.useFilterMatch,xc=cr(),Cc=xc.useFetchById,mc=xc.useFetchList,Gc=xc.useCreate,_c=xc.useUpdate,yc=xc.useDelete,Dc=xc.useFilterMatch,bc=gr(),wc=bc.useFetchById,Uc=bc.useFetchList,Pc=bc.useCreate,Ac=bc.useUpdate,Lc=bc.useDelete,Mc=bc.useFilterMatch,vc=wr(),Bc=vc.useFetchById,Tc=vc.useFetchList,Ec=vc.useCreate,Rc=vc.useUpdate,Sc=vc.useDelete,$c=vc.useFilterMatch,Oc=Er(),kc=Oc.useFetchById,Nc=Oc.useFetchList,jc=Oc.useCreate,qc=Oc.useUpdate,zc=Oc.useDelete,Hc=Oc.useFilterMatch,Jc=zr(),Kc=Jc.useFetchById,Qc=Jc.useFetchList,Vc=Jc.useCreate,Wc=Jc.useUpdate,Xc=Jc.useDelete,Yc=Jc.useFilterMatch,Zc=Zr(),eu=Zc.useFetchById,tu=Zc.useFetchList,su=Zc.useCreate,au=Zc.useUpdate,ru=Zc.useDelete,ou=Zc.useFilterMatch,nu=co(),iu=nu.useFetchById,cu=nu.useFetchList,uu=nu.useCreate,lu=nu.useUpdate,du=nu.useDelete,hu=nu.useFilterMatch,pu=xo(),fu=pu.useFetchById,Iu=pu.useFetchList,Fu=pu.useCreate,gu=pu.useUpdate,xu=pu.useDelete,Cu=pu.useFilterMatch,mu=Uo(),Gu=mu.useFetchById,_u=mu.useFetchList,yu=mu.useCreate,Du=mu.useUpdate,bu=mu.useDelete,wu=mu.useFilterMatch,Uu=Ro(),Pu=Uu.useFetchById,Au=Uu.useFetchList,Lu=Uu.useCreate,Mu=Uu.useUpdate,vu=Uu.useDelete,Bu=Uu.useFilterMatch,Tu=Ho(),Eu=Tu.useFetchById,Ru=Tu.useFetchList,Su=Tu.useCreate,$u=Tu.useUpdate,Ou=Tu.useDelete,ku=Tu.useFilterMatch,Nu=en(),ju=Nu.useFetchById,qu=Nu.useFetchList,zu=Nu.useCreate,Hu=Nu.useUpdate,Ju=Nu.useDelete,Ku=Nu.useFilterMatch,Qu=ln(),Vu=Qu.useFetchById,Wu=Qu.useFetchList,Xu=Qu.useCreate,Yu=Qu.useUpdate,Zu=Qu.useDelete,el=Qu.useFilterMatch,tl=Cn(),sl=tl.useFetchById,al=tl.useFetchList,rl=tl.useCreate,ol=tl.useUpdate,nl=tl.useDelete,il=tl.useFilterMatch;//# sourceMappingURL=index.js.map
|