PageSourceSearch

https://infonacional.uy/static/js/6323.27c4b148.chunk.js

js infonacional.uy collected 2026-09-25 09:54:40 UTC 19,147 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknacional_backoffice_frontend=self.webpackChunknacional_backoffice_frontend||[]).push([[6323,7391],{6323(e,n,a){a.r(n),a.d(n,{default:()=>E});var t=a(5043),i=a(5492),o=a(9073),c=a(8354),r=a(3427),l=a(5444),d=a(4400),s=a(3942),u=a(647),h=a(5512),g=a(1957),m=a(2624),p=a(6144),b=a(6399),v=a(3927),f=a(1966),S=a(7407),y=a(8617),k=a(5337),x=a(6149),A=a(5187),I=a(579);const{Title:w,Text:C}=v.A,z=[{value:"superadmin",label:"Super Admin"},{value:"editor",label:"Editor"},{value:"reader",label:"Lector"}],j=e=>"superadmin"===e?(0,I.jsx)(b.A,{color:"gold",children:"Super Admin"}):"editor"===e?(0,I.jsx)(b.A,{color:"blue",children:"Editor"}):(0,I.jsx)(b.A,{color:"green",children:"Lector"}),E=()=>{const[e,n]=(0,t.useState)([]),[a,v]=(0,t.useState)(!1),[E,M]=(0,t.useState)(!1),[q,O]=(0,t.useState)(null),[N]=r.A.useForm(),{user:P,loginRequired:U,refreshLoginRequired:H}=(0,A.A)(),[T,B]=(0,t.useState)(U),[W,L]=(0,t.useState)(!1),[R,D]=(0,t.useState)(!1),X=async()=>{v(!0);try{const e=await x.Ay.get("/usuarios");n(e.data)}catch(e){d.Ay.error("Error al cargar usuarios")}finally{v(!1)}};(0,t.useEffect)(()=>{X(),(async()=>{try{var e;const n=await x.Ay.get("/parametros/requireLogin");B("1"===(null===(e=n.data)||void 0===e?void 0:e.ParametroValor)),L(!0)}catch(a){var n;404===(null===(n=a.response)||void 0===n?void 0:n.status)&&(B(!1),L(!1))}})()},[]);const F=[{title:"Usuario",dataIndex:"UsuarioUsername",key:"username"},{title:"Rol",dataIndex:"UsuarioRol",key:"rol",render:j},{title:"Estado",dataIndex:"UsuarioActivo",key:"activo",render:e=>(0,I.jsx)(b.A,{color:e?"green":"red",children:e?"Activo":"Inactivo"})},{title:"Acciones",key:"actions",render:(e,n)=>(0,I.jsxs)(g.A,{children:[(0,I.jsx)(i.Ay,{size:"small",icon:(0,I.jsx)(S.A,{}),onClick:()=>(e=>{O(e),N.setFieldsValue({username:e.UsuarioUsername,rol:e.UsuarioRol,activo:1===e.UsuarioActivo}),M(!0)})(n)}),(0,I.jsx)(u.A,{title:"\xbfEliminar este usuario?",onConfirm:()=>(async e=>{try{await x.Ay.delete("/usuarios/".concat(e)),d.Ay.success("Usuario eliminado"),X()}catch(t){var n,a;d.Ay.error((null===(n=t.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.error)||"Error al eliminar")}})(n.UsuarioId),okText:"S\xed",cancelText:"No",disabled:n.UsuarioId===(null===P||void 0===P?void 0:P.userId),children:(0,I.jsx)(i.Ay,{size:"small",danger:!0,icon:(0,I.jsx)(f.A,{}),disabled:n.UsuarioId===(null===P||void 0===P?void 0:P.userId)})})]})}];return(0,I.jsxs)("div",{children:[(0,I.jsx)(w,{level:3,style:{marginBottom:24},children:"Seguridad"}),(0,I.jsx)(o.A,{title:"Configuraci\xf3n de acceso",style:{marginBottom:24},children:(0,I.jsxs)(g.A,{align:"center",children:[(0,I.jsx)(m.A,{checked:T,onChange:async e=>{D(!0);try{W?await x.Ay.put("/parametros/requireLogin",{ParametroValor:e?"1":"0"}):(await x.Ay.post("/parametros",{ParametroId:"requireLogin",ParametroValor:e?"1":"0"}),L(!0)),B(e),H(),d.Ay.success(e?"Inicio de sesi\xf3n requerido activado":"Inicio de sesi\xf3n requerido desactivado")}catch(n){d.Ay.error("Error al guardar par\xe1metro")}finally{D(!1)}},loading:R}),(0,I.jsxs)("div",{children:[(0,I.jsx)(C,{strong:!0,children:"Requerir inicio de sesi\xf3n para lectura"}),(0,I.jsx)("br",{}),(0,I.jsx)(C,{type:"secondary",style:{fontSize:12},children:"Si est\xe1 activo, cualquier p\xe1gina del sitio requiere autenticaci\xf3n. Si est\xe1 inactivo, solo las operaciones de edici\xf3n requieren login."})]})]})}),(0,I.jsx)(c.A,{}),(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[(0,I.jsx)(w,{level:4,style:{margin:0},children:"Usuarios"}),(0,I.jsx)(i.Ay,{type:"primary",icon:(0,I.jsx)(k.A,{}),onClick:()=>{O(null),N.resetFields(),M(!0)},style:{backgroundColor:"#003087"},children:"Nuevo Usuario"})]}),(0,I.jsx)(p.A,{columns:F,dataSource:e,rowKey:"UsuarioId",loading:a,pagination:!1}),(0,I.jsx)(s.A,{title:q?"Editar Usuario":"Nuevo Usuario",open:E,onCancel:()=>M(!1),onOk:()=>N.submit(),okText:"Guardar",cancelText:"Cancelar",children:(0,I.jsxs)(r.A,{form:N,layout:"vertical",onFinish:async e=>{try{if(q){const n={rol:e.rol,activo:e.activo};e.username!==q.UsuarioUsername&&(n.username=e.username),e.password&&(n.password=e.password),await x.Ay.put("/usuarios/".concat(q.UsuarioId),n),d.Ay.success("Usuario actualizado")}else await x.Ay.post("/usuarios",{username:e.username,password:e.password,rol:e.rol}),d.Ay.success("Usuario creado");M(!1),X()}catch(t){var n,a;d.Ay.error((null===(n=t.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.error)||"Error al guardar")}},children:[(0,I.jsx)(r.A.Item,{name:"username",label:"Usuario",rules:[{required:!0,message:"Requerido"}],children:(0,I.jsx)(l.A,{prefix:(0,I.jsx)(y.A,{})})}),(0,I.jsx)(r.A.Item,{name:"password",label:q?"Nueva contrase\xf1a (dejar vac\xedo para no camb
1iar)":"Contrase\xf1a",rules:q?[]:[{required:!0,message:"Requerido"},{min:6,message:"M\xednimo 6 caracteres"}],children:(0,I.jsx)(l.A.Password,{})}),(0,I.jsx)(r.A.Item,{name:"rol",label:"Rol",rules:[{required:!0,message:"Requerido"}],children:(0,I.jsx)(h.A,{options:z})}),q&&(0,I.jsx)(r.A.Item,{name:"activo",label:"Activo",valuePropName:"checked",children:(0,I.jsx)(m.A,{})})]})})]})}},8354(e,n,a){a.d(n,{A:()=>v});var t=a(5043),i=a(8139),o=a.n(i),c=a(5296),r=a(9122),l=a(3944),d=a(4414),s=a(8855),u=a(8446);const h=e=>{const{componentCls:n}=e;return{[n]:{"&-horizontal":{["&".concat(n)]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},g=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:a,colorSplit:t,lineWidth:i,textPaddingInline:o,orientationMargin:c,verticalMarginInline:r}=e;return{[n]:Object.assign(Object.assign({},(0,d.dF)(e)),{borderBlockStart:"".concat((0,l.zA)(i)," solid ").concat(t),"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:r,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:"".concat((0,l.zA)(i)," solid ").concat(t)},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:"".concat((0,l.zA)(e.marginLG)," 0")},["&-horizontal".concat(n,"-with-text")]:{display:"flex",alignItems:"center",margin:"".concat((0,l.zA)(e.dividerHorizontalWithTextGutterMargin)," 0"),color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 ".concat(t),"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:"".concat((0,l.zA)(i)," solid transparent"),borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},["&-horizontal".concat(n,"-with-text-start")]:{"&::before":{width:"calc(".concat(c," * 100%)")},"&::after":{width:"calc(100% - ".concat(c," * 100%)")}},["&-horizontal".concat(n,"-with-text-end")]:{"&::before":{width:"calc(100% - ".concat(c," * 100%)")},"&::after":{width:"calc(".concat(c," * 100%)")}},["".concat(n,"-inner-text")]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:t,borderStyle:"dashed",borderWidth:"".concat((0,l.zA)(i)," 0 0")},["&-horizontal".concat(n,"-with-text").concat(n,"-dashed")]:{"&::before, &::after":{borderStyle:"dashed none none"}},["&-vertical".concat(n,"-dashed")]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:t,borderStyle:"dotted",borderWidth:"".concat((0,l.zA)(i)," 0 0")},["&-horizontal".concat(n,"-with-text").concat(n,"-dotted")]:{"&::before, &::after":{borderStyle:"dotted none none"}},["&-vertical".concat(n,"-dotted")]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},["&-plain".concat(n,"-with-text")]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},["&-horizontal".concat(n,"-with-text-start").concat(n,"-no-default-orientation-margin-start")]:{"&::before":{width:0},"&::after":{width:"100%"},["".concat(n,"-inner-text")]:{paddingInlineStart:a}},["&-horizontal".concat(n,"-with-text-end").concat(n,"-no-default-orientation-margin-end")]:{"&::before":{width:"100%"},"&::after":{width:0},["".concat(n,"-inner-text")]:{paddingInlineEnd:a}}})}},m=(0,s.OF)("Divider",e=>{const n=(0,u.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[g(n),h(n)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var p=function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a};const b={small:"sm",middle:"md"};const v=e=>{const{getPrefixCls:n,direction:a,className:i,style:l}=(0,c.TP)("divider"),{prefixCls:d,type:s="horizontal",orientation:u="center",orientationMargin:h,className:g,rootClassName:v,children:f,dashed:S,variant:y="solid",plain:k,style:x,size:A}=e,I=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=n("divider",d),[C,z,j]=m(w),E=(0,r.A)(A),M=b[E],q=!!f,O=t.useMemo(()=>"left"===u?"rtl"===a?"end":"start":"right"===u?"rtl"===a?"start":"end":u,[a,u]),N="start"===O&&null!=h,P="end"===O&&null!=h,U=o()(w,i,z,j,"".concat(w,"-").concat(s),{["".concat(w,"-with-text")]:q,["".concat(w,"-with-text-").concat(O)]:q,["".concat(w,"-dashed")]:!!S,["".concat(w,"-").concat(y)]:"solid"!==y,["".concat(w,"-plain")]:!!k,["".concat(w,"-rtl")]:"rtl"===a,["".concat(w,"-no-default-orientation-margin-start")]:N,["".concat(w,"-no-default-orientation-margin-end")]:P,["".concat(w,"-").concat(M)]:!!M},g,v),H=t.useMemo(()=>"number"===typeof h?h:/^\d+$/.test(h)?Number(h):h,[h]),T={marginInlineStart:N?H:void 0,marginInlineEnd:P?H:void 0};return C(t.createElement("div",Object.assign({className:U,style:Object.assign(Object.assign({},l),x)},I,{role:"separator"}),f&&"vertical"!==s&&t.createElement("span",{className:"".concat(w,"-inner-text"),style:T},f)))}},2624(e,n,a){a.d(n,{A:()=>P});var t=a(5043),i=a(164),o=a(8139),c=a.n(o),r=a(8168),l=a(4467),d=a(5544),s=a(3986
1),u=a(8678),h=a(5001),g=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m=t.forwardRef(function(e,n){var a,i=e.prefixCls,o=void 0===i?"rc-switch":i,m=e.className,p=e.checked,b=e.defaultChecked,v=e.disabled,f=e.loadingIcon,S=e.checkedChildren,y=e.unCheckedChildren,k=e.onClick,x=e.onChange,A=e.onKeyDown,I=(0,s.A)(e,g),w=(0,u.A)(!1,{value:p,defaultValue:b}),C=(0,d.A)(w,2),z=C[0],j=C[1];function E(e,n){var a=z;return v||(j(a=e),null===x||void 0===x||x(a,n)),a}var M=c()(o,m,(a={},(0,l.A)(a,"".concat(o,"-checked"),z),(0,l.A)(a,"".concat(o,"-disabled"),v),a));return t.createElement("button",(0,r.A)({},I,{type:"button",role:"switch","aria-checked":z,disabled:v,className:M,ref:n,onKeyDown:function(e){e.which===h.A.LEFT?E(!1,e):e.which===h.A.RIGHT&&E(!0,e),null===A||void 0===A||A(e)},onClick:function(e){var n=E(!z,e);null===k||void 0===k||k(n,e)}}),f,t.createElement("span",{className:"".concat(o,"-inner")},t.createElement("span",{className:"".concat(o,"-inner-checked")},S),t.createElement("span",{className:"".concat(o,"-inner-unchecked")},y)))});m.displayName="Switch";const p=m;var b=a(2366),v=a(5296),f=a(8440),S=a(9122),y=a(3944),k=a(1857),x=a(4414),A=a(8855),I=a(8446);const w=e=>{const{componentCls:n,trackHeightSM:a,trackPadding:t,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:c,handleSizeSM:r,calc:l}=e,d="".concat(n,"-inner"),s=(0,y.zA)(l(r).add(l(t).mul(2)).equal()),u=(0,y.zA)(l(c).mul(2).equal());return{[n]:{["&".concat(n,"-small")]:{minWidth:i,height:a,lineHeight:(0,y.zA)(a),["".concat(n,"-inner")]:{paddingInlineStart:c,paddingInlineEnd:o,["".concat(d,"-checked, ").concat(d,"-unchecked")]:{minHeight:a},["".concat(d,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(s," - ").concat(u,")"),marginInlineEnd:"calc(100% - ".concat(s," + ").concat(u,")")},["".concat(d,"-unchecked")]:{marginTop:l(a).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["".concat(n,"-handle")]:{width:r,height:r},["".concat(n,"-loading-icon")]:{top:l(l(r).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},["&".concat(n,"-checked")]:{["".concat(n,"-inner")]:{paddingInlineStart:o,paddingInlineEnd:c,["".concat(d,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(d,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(s," + ").concat(u,")"),marginInlineEnd:"calc(-100% + ".concat(s," - ").concat(u,")")}},["".concat(n,"-handle")]:{insetInlineStart:"calc(100% - ".concat((0,y.zA)(l(r).add(t).equal()),")")}},["&:not(".concat(n,"-disabled):active")]:{["&:not(".concat(n,"-checked) ").concat(d)]:{["".concat(d,"-unchecked")]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},["&".concat(n,"-checked ").concat(d)]:{["".concat(d,"-checked")]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},C=e=>{const{componentCls:n,handleSize:a,calc:t}=e;return{[n]:{["".concat(n,"-loading-icon").concat(e.iconCls)]:{position:"relative",top:t(t(a).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},["&".concat(n,"-checked ").concat(n,"-loading-icon")]:{color:e.switchColor}}}},z=e=>{const{componentCls:n,trackPadding:a,handleBg:t,handleShadow:i,handleSize:o,calc:c}=e,r="".concat(n,"-handle");return{[n]:{[r]:{position:"absolute",top:a,insetInlineStart:a,width:o,height:o,transition:"all ".concat(e.switchDuration," ease-in-out"),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:t,borderRadius:c(o).div(2).equal(),boxShadow:i,transition:"all ".concat(e.switchDuration," ease-in-out"),content:'""'}},["&".concat(n,"-checked ").concat(r)]:{insetInlineStart:"calc(100% - ".concat((0,y.zA)(c(o).add(a).equal()),")")},["&:not(".concat(n,"-disabled):active")]:{["".concat(r,"::before")]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},["&".concat(n,"-checked ").concat(r,"::before")]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},j=e=>{const{componentCls:n,trackHeight:a,trackPadding:t,innerMinMargin:i,innerMaxMargin:o,handleSize:c,calc:r}=e,l="".concat(n,"-inner"),d=(0,y.zA)(r(c).add(r(t).mul(2)).equal()),s=(0,y.zA)(r(o).mul(2).equal());return{[n]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:"padding-inline-start ".concat(e.switchDuration," ease-in-out, padding-inline-end ").concat(e.switchDuration," ease-in-out"),["".concat(l,"-checked, ").concat(l,"-unchecked")]:{dis
1play:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:"margin-inline-start ".concat(e.switchDuration," ease-in-out, margin-inline-end ").concat(e.switchDuration," ease-in-out"),pointerEvents:"none",minHeight:a},["".concat(l,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(d," - ").concat(s,")"),marginInlineEnd:"calc(100% - ".concat(d," + ").concat(s,")")},["".concat(l,"-unchecked")]:{marginTop:r(a).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&".concat(n,"-checked ").concat(l)]:{paddingInlineStart:i,paddingInlineEnd:o,["".concat(l,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(l,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(d," + ").concat(s,")"),marginInlineEnd:"calc(-100% + ".concat(d," - ").concat(s,")")}},["&:not(".concat(n,"-disabled):active")]:{["&:not(".concat(n,"-checked) ").concat(l)]:{["".concat(l,"-unchecked")]:{marginInlineStart:r(t).mul(2).equal(),marginInlineEnd:r(t).mul(-1).mul(2).equal()}},["&".concat(n,"-checked ").concat(l)]:{["".concat(l,"-checked")]:{marginInlineStart:r(t).mul(-1).mul(2).equal(),marginInlineEnd:r(t).mul(2).equal()}}}}}},E=e=>{const{componentCls:n,trackHeight:a,trackMinWidth:t}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.dF)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:t,height:a,lineHeight:(0,y.zA)(a),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),userSelect:"none",["&:hover:not(".concat(n,"-disabled)")]:{background:e.colorTextTertiary}}),(0,x.K8)(e)),{["&".concat(n,"-checked")]:{background:e.switchColor,["&:hover:not(".concat(n,"-disabled)")]:{background:e.colorPrimaryHover}},["&".concat(n,"-loading, &").concat(n,"-disabled")]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&".concat(n,"-rtl")]:{direction:"rtl"}})}},M=(0,A.OF)("Switch",e=>{const n=(0,I.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, ".concat(e.opacityLoading,")"),switchHandleActiveInset:"-30%"});return[E(n),j(n),z(n),C(n),w(n)]},e=>{const{fontSize:n,lineHeight:a,controlHeight:t,colorWhite:i}=e,o=n*a,c=t/2,r=o-4,l=c-4;return{trackHeight:o,trackHeightSM:c,trackMinWidth:2*r+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:i,handleSize:r,handleSizeSM:l,handleShadow:"0 2px 4px 0 ".concat(new k.Y("#00230b").setA(.2).toRgbString()),innerMinMargin:r/2,innerMaxMargin:r+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}});var q=function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a};const O=t.forwardRef((e,n)=>{const{prefixCls:a,size:o,disabled:r,loading:l,className:d,rootClassName:s,style:h,checked:g,value:m,defaultChecked:y,defaultValue:k,onChange:x}=e,A=q(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[I,w]=(0,u.A)(!1,{value:null!==g&&void 0!==g?g:m,defaultValue:null!==y&&void 0!==y?y:k}),{getPrefixCls:C,direction:z,switch:j}=t.useContext(v.QO),E=t.useContext(f.A),O=(null!==r&&void 0!==r?r:E)||l,N=C("switch",a),P=t.createElement("div",{className:"".concat(N,"-handle")},l&&t.createElement(i.A,{className:"".concat(N,"-loading-icon")})),[U,H,T]=M(N),B=(0,S.A)(o),W=c()(null===j||void 0===j?void 0:j.className,{["".concat(N,"-small")]:"small"===B,["".concat(N,"-loading")]:l,["".concat(N,"-rtl")]:"rtl"===z},d,s,H,T),L=Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),h);return U(t.createElement(b.A,{component:"Switch",disabled:O},t.createElement(p,Object.assign({},A,{checked:I,onChange:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];w(n[0]),null===x||void 0===x||x.apply(void 0,n)},prefixCls:N,className:W,style:L,disabled:O,ref:n,loadingIcon:P}))))}),N=O;N.__ANT_SWITCH=!0;const P=N}}]);
2//# sourceMappingURL=6323.27c4b148.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.