adpro-react 0.0.23-rc.17 → 0.0.23-rc.18

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.
@@ -646,7 +646,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
646
646
  `:null,ib=typeof Ka!="string"?V2`
647
647
  animation: ${Ka} 1.4s ease-in-out infinite;
648
648
  `:null,lb=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${at(n)}`],svg:["svg"],circle:["circle",`circle${at(r)}`,o&&"circleDisableShrink"]};return Dr(a,ob,t)},sb=At("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${at(r.color)}`]]}})(Pr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ab||{animation:`${Ya} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),cb=At("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ub=At("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${at(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Pr(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ib||{animation:`${Ka} 1.4s ease-in-out infinite`}}]}))),x6=L.forwardRef(function(t,r){const n=$r({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:C="indeterminate",...g}=n,b={...n,color:a,disableShrink:i,size:l,thickness:u,value:f,variant:C},h=lb(b),d={},v={},O={};if(C==="determinate"){const w=2*Math.PI*((Tr-u)/2);d.strokeDasharray=w.toFixed(3),O["aria-valuenow"]=Math.round(f),d.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return T.jsx(sb,{className:Ct(h.root,o),style:{width:l,height:l,...v,...c},ownerState:b,ref:r,role:"progressbar",...O,...g,children:T.jsx(cb,{className:h.svg,ownerState:b,viewBox:`${Tr/2} ${Tr/2} ${Tr} ${Tr}`,children:T.jsx(ub,{className:h.circle,style:d,ownerState:b,cx:Tr,cy:Tr,r:(Tr-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(x6.propTypes={classes:x.object,className:x.string,color:x.oneOfType([x.oneOf(["inherit","primary","secondary","error","info","success","warning"]),x.string]),disableShrink:A2(x.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:x.oneOfType([x.number,x.string]),style:x.object,sx:x.oneOfType([x.arrayOf(x.oneOfType([x.func,x.object,x.bool])),x.func,x.object]),thickness:x.number,value:x.number,variant:x.oneOf(["determinate","indeterminate"])});function db(e){return Cr("MuiIconButton",e)}const v0=Lr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),pb=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",r&&"disabled",n!=="default"&&`color${at(n)}`,o&&`edge${at(o)}`,`size${at(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Dr(l,db,t)},fb=At(v6,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${at(r.color)}`],r.edge&&t[`edge${at(r.edge)}`],t[`size${at(r.size)}`]]}})(Pr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:u1(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Pr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(qa()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(qa()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:u1((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${v0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${v0.loading}`]:{color:"transparent"}}))),mb=At("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),O6=L.forwardRef(function(t,r){const n=$r({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium",id:C,loading:g=null,loadingIndicator:b,...h}=n,d=Y7(C),v=b??T.jsx(x6,{"aria-labelledby":d,color:"inherit",size:16}),O={...n,edge:o,color:l,disabled:c,disableFocusRipple:u,loading:g,loadingIndicator:v,size:f},w=pb(O);return T.jsxs(fb,{id:g?d:C,className:Ct(w.root,i),centerRipple:!0,focusRipple:!u,disabled:c||g,ref:r,...h,ownerState:O,children:[typeof g=="boolean"&&T.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:T.jsx(mb,{className:w.loadingIndicator,ownerState:O,children:g&&v})}),a]})});process.env.NODE_ENV!=="production"&&(O6.propTypes={children:A2(x.node,e=>L.Children.toArray(e.children).some(r=>L.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
649
- `)):null),classes:x.object,className:x.string,color:x.oneOfType([x.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),x.string]),disabled:x.bool,disableFocusRipple:x.bool,disableRipple:x.bool,edge:x.oneOf(["end","start",!1]),id:x.string,loading:x.bool,loadingIndicator:x.node,size:x.oneOfType([x.oneOf(["small","medium","large"]),x.string]),sx:x.oneOfType([x.arrayOf(x.oneOfType([x.func,x.object,x.bool])),x.func,x.object])});function Cb(e){const{messageInfo:t}=zi();return T.jsx(le.Slide,{...e,direction:(t==null?void 0:t.snackTransitionDirection)??"up",mountOnEnter:!0,unmountOnExit:!0})}function x0(e,t){const r=t?{sx:{height:"1.25rem",width:"1.25rem"},fontSize:"medium"}:{fontSize:"medium"};switch(e){case"success":return T.jsx(Js,{sx:{color:mt.palette.success.main,...r.sx},fontSize:r.fontSize});case"warning":return T.jsx(r9,{sx:{color:mt.palette.warning.main,...r.sx},fontSize:r.fontSize});case"error":return T.jsx(e9,{sx:{color:mt.palette.error.main,...r.sx},fontSize:r.fontSize});default:return T.jsx(t9,{sx:{color:mt.palette.info.main,...r.sx},fontSize:r.fontSize})}}function O0(e){switch(e){case"success":return mt.palette.success[50];case"warning":return mt.palette.warning[50];case"error":return mt.palette.error[50];default:return mt.palette.info[50]}}function hb(e){switch(e){case"warning":return"warning";case"error":return"error";case"success":return"success";default:return"info"}}function E0(e,t,r,n){return T.jsxs(T.Fragment,{children:[typeof e=="string"?T.jsx(le.Typography,{variant:r,color:mt.palette.text.primary,children:e}):e,t!==""&&(typeof t=="string"?T.jsx(le.Typography,{variant:n,color:mt.palette.text.primary,children:t}):t)]})}const gb=()=>{const{open:e,messageInfo:t,close:r,onExited:n}=zi(),o=(c,u)=>{r()},[a,i]=p.useState(5e3),l=5e3;return p.useEffect(()=>{let c;if(e&&t&&t.type!=="snack"){const u=Date.now();c=setInterval(()=>{const f=Date.now()-u,C=Math.max(100-f/l*100,0);i(C),C<=0&&clearInterval(c)},100)}else i(100);return()=>clearInterval(c)},[e,t]),T.jsx(T.Fragment,{children:t&&(t.type==="snack"?T.jsx(Wa,{anchorOrigin:t.snackAnchorOrigin??{horizontal:"center",vertical:"bottom"},open:e,autoHideDuration:3e3,onClose:o,slotProps:{transition:{onExited:n}},slots:{transition:Cb},message:t&&T.jsxs(le.Stack,{direction:"row",alignItems:"flex-start",gap:2,children:[x0(t.severity,!0),T.jsx(le.Stack,{direction:"column",spacing:.5,mt:.2,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",children:E0(t.title,t.subtitle,"body2","body2")})]}),sx:{"& .MuiPaper-root":{backgroundColor:O0(t.severity),padding:"0.38rem 1rem",display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbar-root":{zIndex:"999999 !important"},"& .MuiSnackbarContent-message":{padding:"0"}}},t?t.key:void 0):T.jsx(Wa,{anchorOrigin:{horizontal:"right",vertical:"top"},open:e,autoHideDuration:5e3,onClose:o,slotProps:{transition:{onExited:n}},message:t&&T.jsxs(le.Box,{alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[T.jsxs(le.Stack,{direction:"row",alignItems:"center",gap:"0.75rem",padding:"0.75rem",alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[T.jsx(le.Box,{display:"flex",alignItems:"center",justifyContent:"center",width:"2.25rem",height:"2.25rem",borderRadius:"50%",bgcolor:t.severity==="warning"?mt.palette.warning[100]:t.severity==="error"?mt.palette.error[100]:t.severity==="success"?mt.palette.success[100]:mt.palette.info[100],children:x0(t.severity,!1)}),T.jsx(le.Divider,{orientation:"vertical",flexItem:!0}),T.jsx(le.Stack,{direction:"column",spacing:.5,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",flex:1,children:E0(t.title,t.subtitle,"subtitle2","body2")}),T.jsx(le.Box,{display:"flex",alignItems:"flex-start",justifyContent:"center",alignSelf:"stretch",pt:t.subtitle===""?1:0,children:T.jsx(O6,{onClick:o,size:"small",sx:{height:"1.375rem",width:"1.375rem"},children:T.jsx(Xs,{sx:{color:mt.palette.action.active,height:"1rem",width:"1rem"},fontSize:"small"})})})]}),T.jsx(le.LinearProgress,{variant:"determinate",value:a,color:hb(t.severity),sx:{flex:1}})]}),sx:{zIndex:"99999 !important","& .MuiPaper-root":{backgroundColor:O0(t.severity),padding:0,display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbarContent-message":{minWidth:"288px !important",padding:"0",alignSelf:"stretch",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flex:1}}},t?t.key:void 0))})},E6={id:"ID",Usuario:"Usuario",FechaHora:"Fecha y hora",Antes:"Anterior",Despues:"Actual",Origen:"Origen Cambio",Comentario:"Comentario",TipoAfectacion:"Tipo de afectación"},S0=e=>Symbol.iterator in e,L0=e=>"entries"in e,w0=(e,t)=>{const r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(const[o,a]of r)if(!Object.is(a,n.get(o)))return!1;return!0},bb=(e,t)=>{const r=e[Symbol.iterator](),n=t[Symbol.iterator]();let o=r.next(),a=n.next();for(;!o.done&&!a.done;){if(!Object.is(o.value,a.value))return!1;o=r.next(),a=n.next()}return!!o.done&&!!a.done};function yb(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:!S0(e)||!S0(t)?w0({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)}):L0(e)&&L0(t)?w0(e,t):bb(e,t)}function pt(e){const t=p.useRef(void 0);return r=>{const n=e(r);return yb(t.current,n)?t.current:t.current=n}}const vb=(e,t)=>({id:-1,open:!1,title:"",subtitle:"",serviceUsuario:{request:"",type:{key:"",label:""}},fullScreen:!1,fullWidth:!1,filterName:"",onClose:()=>e(r=>({...r,open:!1})),show:({id:r,open:n,serviceUsuario:o,title:a,subtitle:i,fullScreen:l,fullWidth:c,filterName:u})=>e({id:r,open:n,serviceUsuario:o,title:a,subtitle:i,fullScreen:l||!1,fullWidth:c||!1,filterName:u||""}),data:{},expanded:!1,date:[Ut().subtract(1,"month"),Ut()],usuario:null,isLoading:!1,apiFetch:null,setApiFetch:r=>e(n=>({...n,apiFetch:r})),setDate:r=>e(n=>({...n,date:r})),setUsuario:r=>e(n=>({...n,usuario:r})),setExpanded:r=>e(n=>({...n,expanded:r})),fetchAuditoria:async()=>{try{e({data:{},isLoading:!0});const{date:r,usuario:n,id:o,apiFetch:a,serviceUsuario:i}=t();if(!a){console.error("No existe función apiFetch en el store. Usa setApiFetch para configurarla."),e({isLoading:!1});return}const l=n&&n[i.type.key]!==void 0?Number(n[i.type.key]):-1,c=await a(o,r,l);e({data:c,isLoading:!1})}catch(r){console.error(r),e({data:{},isLoading:!1})}}}),T0={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Qa=new Map,Y1=e=>{const t=Qa.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([r,n])=>[r,n.getState()])):{}},xb=(e,t,r)=>{if(e===void 0)return{type:"untracked",connection:t.connect(r)};const n=Qa.get(r.name);if(n)return{type:"tracked",store:e,...n};const o={connection:t.connect(r),stores:{}};return Qa.set(r.name,o),{type:"tracked",store:e,...o}},Ob=(e,t={})=>(r,n,o)=>{const{enabled:a,anonymousActionType:i,store:l,...c}=t;let u;try{u=(a??(T0?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(r,n,o);const{connection:f,...C}=xb(l,u,c);let g=!0;o.setState=(d,v,O)=>{const w=r(d,v);if(!g)return w;const E=O===void 0?{type:i||"anonymous"}:typeof O=="string"?{type:O}:O;return l===void 0?(f==null||f.send(E,n()),w):(f==null||f.send({...E,type:`${l}/${E.type}`},{...Y1(c.name),[l]:o.getState()}),w)};const b=(...d)=>{const v=g;g=!1,r(...d),g=v},h=e(o.setState,n,o);if(C.type==="untracked"?f==null||f.init(h):(C.stores[C.store]=o,f==null||f.init(Object.fromEntries(Object.entries(C.stores).map(([d,v])=>[d,d===C.store?h:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let d=!1;const v=o.dispatch;o.dispatch=(...O)=>{(T0?"production":void 0)!=="production"&&O[0].type==="__setState"&&!d&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),d=!0),v(...O)}}return f.subscribe(d=>{var v;switch(d.type){case"ACTION":if(typeof d.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Jo(d.payload,O=>{if(O.type==="__setState"){if(l===void 0){b(O.state);return}Object.keys(O.state).length!==1&&console.error(`
649
+ `)):null),classes:x.object,className:x.string,color:x.oneOfType([x.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),x.string]),disabled:x.bool,disableFocusRipple:x.bool,disableRipple:x.bool,edge:x.oneOf(["end","start",!1]),id:x.string,loading:x.bool,loadingIndicator:x.node,size:x.oneOfType([x.oneOf(["small","medium","large"]),x.string]),sx:x.oneOfType([x.arrayOf(x.oneOfType([x.func,x.object,x.bool])),x.func,x.object])});function Cb(e){const{messageInfo:t}=zi();return T.jsx(le.Slide,{...e,direction:(t==null?void 0:t.snackTransitionDirection)??"up",mountOnEnter:!0,unmountOnExit:!0})}function x0(e,t){const r=t?{sx:{height:"1.25rem",width:"1.25rem"},fontSize:"medium"}:{fontSize:"medium"};switch(e){case"success":return T.jsx(Js,{sx:{color:mt.palette.success.main,...r.sx},fontSize:r.fontSize});case"warning":return T.jsx(r9,{sx:{color:mt.palette.warning.main,...r.sx},fontSize:r.fontSize});case"error":return T.jsx(e9,{sx:{color:mt.palette.error.main,...r.sx},fontSize:r.fontSize});default:return T.jsx(t9,{sx:{color:mt.palette.info.main,...r.sx},fontSize:r.fontSize})}}function O0(e){switch(e){case"success":return mt.palette.success[50];case"warning":return mt.palette.warning[50];case"error":return mt.palette.error[50];default:return mt.palette.info[50]}}function hb(e){switch(e){case"warning":return"warning";case"error":return"error";case"success":return"success";default:return"info"}}function E0(e,t,r,n){return T.jsxs(T.Fragment,{children:[typeof e=="string"?T.jsx(le.Typography,{variant:r,color:mt.palette.text.primary,children:e}):e,t!==""&&(typeof t=="string"?T.jsx(le.Typography,{variant:n,color:mt.palette.text.primary,children:t}):t)]})}const gb=()=>{const{open:e,messageInfo:t,close:r,onExited:n}=zi(),o=(c,u)=>{r()},[a,i]=p.useState(5e3),l=5e3;return p.useEffect(()=>{let c;if(e&&t&&t.type!=="snack"){const u=Date.now();c=setInterval(()=>{const f=Date.now()-u,C=Math.max(100-f/l*100,0);i(C),C<=0&&clearInterval(c)},100)}else i(100);return()=>clearInterval(c)},[e,t]),T.jsx(T.Fragment,{children:t&&(t.type==="snack"?T.jsx(Wa,{anchorOrigin:t.snackAnchorOrigin??{horizontal:"center",vertical:"bottom"},open:e,autoHideDuration:3e3,onClose:o,slotProps:{transition:{onExited:n}},slots:{transition:Cb},message:t&&T.jsxs(le.Stack,{direction:"row",alignItems:"flex-start",gap:2,children:[x0(t.severity,!0),T.jsx(le.Stack,{direction:"column",spacing:.5,mt:.2,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",children:E0(t.title,t.subtitle,"body2","body2")})]}),sx:{"& .MuiPaper-root":{backgroundColor:O0(t.severity),padding:"0.38rem 1rem",display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbar-root":{zIndex:"999999 !important"},"& .MuiSnackbarContent-message":{padding:"0"}}},t?t.key:void 0):T.jsx(Wa,{anchorOrigin:{horizontal:"right",vertical:"top"},open:e,autoHideDuration:5e3,onClose:o,slotProps:{transition:{onExited:n}},message:t&&T.jsxs(le.Box,{alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[T.jsxs(le.Stack,{direction:"row",alignItems:"center",gap:"0.75rem",padding:"0.75rem",alignSelf:"stretch",sx:{minWidth:"288px !important",flex:1},children:[T.jsx(le.Box,{display:"flex",alignItems:"center",justifyContent:"center",width:"2.25rem",height:"2.25rem",borderRadius:"50%",bgcolor:t.severity==="warning"?mt.palette.warning[100]:t.severity==="error"?mt.palette.error[100]:t.severity==="success"?mt.palette.success[100]:mt.palette.info[100],children:x0(t.severity,!1)}),T.jsx(le.Divider,{orientation:"vertical",flexItem:!0}),T.jsx(le.Stack,{direction:"column",spacing:.5,justifyContent:"center",alignItems:"flex-start",alignSelf:"stretch",flex:1,children:E0(t.title,t.subtitle,"subtitle2","body2")}),T.jsx(le.Box,{display:"flex",alignItems:"flex-start",justifyContent:"center",alignSelf:"stretch",pt:t.subtitle===""?1:0,children:T.jsx(O6,{onClick:o,size:"small",sx:{height:"1.375rem",width:"1.375rem"},children:T.jsx(Xs,{sx:{color:mt.palette.action.active,height:"1rem",width:"1rem"},fontSize:"small"})})})]}),T.jsx(le.LinearProgress,{variant:"determinate",value:a,color:hb(t.severity),sx:{flex:1}})]}),sx:{zIndex:"99999 !important","& .MuiSnackbar-root":{zIndex:"999999 !important"},"& .MuiPaper-root":{backgroundColor:O0(t.severity),padding:0,display:"flex",alignItems:"center",alignSelf:"stretch"},"& .MuiSnackbarContent-message":{minWidth:"288px !important",padding:"0",alignSelf:"stretch",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flex:1}}},t?t.key:void 0))})},E6={id:"ID",Usuario:"Usuario",FechaHora:"Fecha y hora",Antes:"Anterior",Despues:"Actual",Origen:"Origen Cambio",Comentario:"Comentario",TipoAfectacion:"Tipo de afectación"},S0=e=>Symbol.iterator in e,L0=e=>"entries"in e,w0=(e,t)=>{const r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(const[o,a]of r)if(!Object.is(a,n.get(o)))return!1;return!0},bb=(e,t)=>{const r=e[Symbol.iterator](),n=t[Symbol.iterator]();let o=r.next(),a=n.next();for(;!o.done&&!a.done;){if(!Object.is(o.value,a.value))return!1;o=r.next(),a=n.next()}return!!o.done&&!!a.done};function yb(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:!S0(e)||!S0(t)?w0({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)}):L0(e)&&L0(t)?w0(e,t):bb(e,t)}function pt(e){const t=p.useRef(void 0);return r=>{const n=e(r);return yb(t.current,n)?t.current:t.current=n}}const vb=(e,t)=>({id:-1,open:!1,title:"",subtitle:"",serviceUsuario:{request:"",type:{key:"",label:""}},fullScreen:!1,fullWidth:!1,filterName:"",onClose:()=>e(r=>({...r,open:!1})),show:({id:r,open:n,serviceUsuario:o,title:a,subtitle:i,fullScreen:l,fullWidth:c,filterName:u})=>e({id:r,open:n,serviceUsuario:o,title:a,subtitle:i,fullScreen:l||!1,fullWidth:c||!1,filterName:u||""}),data:{},expanded:!1,date:[Ut().subtract(1,"month"),Ut()],usuario:null,isLoading:!1,apiFetch:null,setApiFetch:r=>e(n=>({...n,apiFetch:r})),setDate:r=>e(n=>({...n,date:r})),setUsuario:r=>e(n=>({...n,usuario:r})),setExpanded:r=>e(n=>({...n,expanded:r})),fetchAuditoria:async()=>{try{e({data:{},isLoading:!0});const{date:r,usuario:n,id:o,apiFetch:a,serviceUsuario:i}=t();if(!a){console.error("No existe función apiFetch en el store. Usa setApiFetch para configurarla."),e({isLoading:!1});return}const l=n&&n[i.type.key]!==void 0?Number(n[i.type.key]):-1,c=await a(o,r,l);e({data:c,isLoading:!1})}catch(r){console.error(r),e({data:{},isLoading:!1})}}}),T0={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Qa=new Map,Y1=e=>{const t=Qa.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([r,n])=>[r,n.getState()])):{}},xb=(e,t,r)=>{if(e===void 0)return{type:"untracked",connection:t.connect(r)};const n=Qa.get(r.name);if(n)return{type:"tracked",store:e,...n};const o={connection:t.connect(r),stores:{}};return Qa.set(r.name,o),{type:"tracked",store:e,...o}},Ob=(e,t={})=>(r,n,o)=>{const{enabled:a,anonymousActionType:i,store:l,...c}=t;let u;try{u=(a??(T0?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(r,n,o);const{connection:f,...C}=xb(l,u,c);let g=!0;o.setState=(d,v,O)=>{const w=r(d,v);if(!g)return w;const E=O===void 0?{type:i||"anonymous"}:typeof O=="string"?{type:O}:O;return l===void 0?(f==null||f.send(E,n()),w):(f==null||f.send({...E,type:`${l}/${E.type}`},{...Y1(c.name),[l]:o.getState()}),w)};const b=(...d)=>{const v=g;g=!1,r(...d),g=v},h=e(o.setState,n,o);if(C.type==="untracked"?f==null||f.init(h):(C.stores[C.store]=o,f==null||f.init(Object.fromEntries(Object.entries(C.stores).map(([d,v])=>[d,d===C.store?h:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let d=!1;const v=o.dispatch;o.dispatch=(...O)=>{(T0?"production":void 0)!=="production"&&O[0].type==="__setState"&&!d&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),d=!0),v(...O)}}return f.subscribe(d=>{var v;switch(d.type){case"ACTION":if(typeof d.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Jo(d.payload,O=>{if(O.type==="__setState"){if(l===void 0){b(O.state);return}Object.keys(O.state).length!==1&&console.error(`
650
650
  [zustand devtools middleware] Unsupported __setState action format.
651
651
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
652
652
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
@@ -30660,6 +30660,9 @@ const Yx = () => {
30660
30660
  ] }),
30661
30661
  sx: {
30662
30662
  zIndex: "99999 !important",
30663
+ "& .MuiSnackbar-root": {
30664
+ zIndex: "999999 !important"
30665
+ },
30663
30666
  "& .MuiPaper-root": {
30664
30667
  backgroundColor: F0(t.severity),
30665
30668
  padding: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/ToastNotificationADPRO/view/NotificationADPRO.tsx"],"names":[],"mappings":"AAwFA,eAAO,MAAM,iBAAiB,+CA4L7B,CAAC"}
1
+ {"version":3,"file":"NotificationADPRO.d.ts","sourceRoot":"","sources":["../../../../src/components/ToastNotificationADPRO/view/NotificationADPRO.tsx"],"names":[],"mappings":"AAwFA,eAAO,MAAM,iBAAiB,+CA+L7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adpro-react",
3
- "version": "0.0.23-rc.17",
3
+ "version": "0.0.23-rc.18",
4
4
  "author": "Joel Mateo Robles Atuesta",
5
5
  "main": "dist/adpro-react.cjs.js",
6
6
  "module": "dist/adpro-react.es.js",