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