(this["webpackJsonpsat-id-password"]=this["webpackJsonpsat-id-password"]||[]).push([[0],{42:function(e,a,t){e.exports=t(59)},47:function(e,a,t){},48:function(e,a,t){},59:function(e,a,t){"use strict";t.r(a);var r=t(0),n=t.n(r),o=t(27),i=t.n(o),c=(t(47),t(31)),l=t(4),d=(t(48),t(11)),s=t(22),p=t(1),u=t(5),b=t(70),m=t(6),g=t.n(m),x={primary:{basic:"#09212D",main:"#062B3D",second:"#062B3D",aux:"#C1D7ED",dark:"#03101A"},secondary:{basic:"#062B3D",main:"#0C7D41",second:"#3c763d",aux:"#0EDB6E",darkAux:"#1EBD68"},third:{basic:"#64480C",main:"#B38E5D",second:"#B38E5D",aux:"#FDBA28",darkAux:"#BD850D"},auxiliary:{basic:"#9D2449",main:"#9D2449",second:"#72555E",aux:"#FDBA28",darkAux:"#5E1124"},lights:{passed:{main:"#0EDB6E",aux:"#1EBD68"},failed:{main:"#9D2449",aux:"#5E1124"},runtimeError:{main:"#FF7B16",aux:"#D76813"},exceedsRam:{main:"#4A86E8",aux:"#3E72C6"},exceedsTime:{main:"#FF00FF",aux:"#B900B9"},compileOrInterpretError:{main:"#410F62",aux:"#3B0E59"},partial:{main:"#FDBA28",aux:"#BD850D"},unAttempted:{main:"#FFFFFF",aux:"#062B3D"}}},h={main:"#FFFFFF",light:"#F8EAE1"},y={light:"#808080",main:"#E0E0E0",dark:"#605E5E",darkLight:"rgb(216, 216, 216)",aux:"#D8D8D8",darkAux:"#6c6c6c",lightAux:"#CECECE",secondary:"#4F4F4F"},f={main:"#000000",light:"rgba(0,0,0,0.13)",dark:"#02070b",darkAux:"#3E3E3E"},O={typography:{fontFamily:'"Montserrat", sans-serif',textPalette:{primary_light:{color:y.light},primary_main:{color:x.primary.main},primary_secondary:{color:h.main},primary_disabled:{color:y.main},secondary_light:{color:y.light},secondary_main:{color:h.main},secondary_secondary:{color:x.primary.second},secondary_auxiliary:{color:x.secondary.aux},secondary_disabled:{color:x.secondary.second},secondary_basic:{color:x.secondary.basic},third_light:{color:y.light},third_main:{color:x.third.main},third_secondary:{color:x.auxiliary.main},third_auxiliary:{color:x.secondary.main},third_disabled:{color:y.main}},fontSizeStyle:{title:"1.5rem",subtitle:"1.2rem",subtitle2:"1rem",body:"0.875rem",body2:"0.75rem"},fontStyle:{light:{fontWeight:100},regular:{fontWeight:"normal"},medium:{fontWeight:400},chubby:{fontWeight:500},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},justify:{textAlign:"justify"}}}},E={root:{fontFamily:O.typography.fontFamily,padding:"5px 15px",margin:"5px 10px",border:"1px solid transparent",borderRadius:"5px",minHeight:24,width:"auto",fontSize:"0.825",cursor:"pointer",background:y.main,overflow:"hidden","&::-moz-focus-inner":{borderStyle:"none"}},primary:{borderColor:h.main,backgroundColor:x.primary.main,color:h.main,border:"1px solid ".concat(h.main),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px","& span":{color:h.main}},"&:hover":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",outline:"none"},"&:active":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)"},"&:focus":{outline:"none",boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)"},"&:disabled":{opacity:.5}},secondary:{borderColor:x.secondary.main,backgroundColor:x.secondary.main,color:h.main,border:"1px solid ".concat(x.secondary.main),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{color:h.main}},"&:hover":{backgroundColor:x.secondary.second,boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{backgroundColor:x.secondary.second,"& span":{}}},"&:active":{backgroundColor:x.secondary.second,boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{backgroundColor:x.secondary.second,"& span":{}}},"&:focus":{outline:"none",backgroundColor:x.secondary.second,boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)"},"&:disabled":{opacity:.5}},third:{borderColor:x.auxiliary.main,backgroundColor:x.auxiliary.main,color:h.main,border:"1px solid ".concat(x.auxiliary.main),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{color:h.main}},"&:hover":{backgroundColor:x.auxiliary.second,boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{backgroundColor:x.auxiliary.second,"& span":{}}},"&:active":{backgroundColor:x.auxiliary.second,boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{backgroundColor:x.auxiliary.second,"& span":{}}},"&:focus":{outline:"none",backgroundColor:x.auxiliary.second,boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)"},"&:disabled":{opacity:.5}},round:{padding:"0",borderRadius:"100%",margin:"2px","& div":{padding:"1px 11px !important"}},light:{borderColor:"transparent",backgroundColor:"transparent",color:"inherit",border:"1px solid transparent",padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{}},"&:hover":{border:"1px solid ".concat(h.main),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:active":{border:"1px solid ".concat(h.main),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:focus":{border:"1px solid ".concat(h.main),boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)","& div":{"& span":{}}},"&:disabled":{opacity:.5}},auxiliary:{borderColor:"none",backgroundColor:"transparent",color:h.main,boxShadow:"none",border:"none",padding:"0",margin:"auto 5px","& div":{padding:"5px 15px",margin:"0",border:"none",backgroundColor:"transparent",borderRadius:"5px",boxShadow:"none","& span":{color:h.main}},"&:hover":{"& div":{boxShadow:"none","& span":{textDecoration:"underline"}}},"&:active":{},"&:focus":{outline:"none"},"&:disabled":{opacity:.5}},darkAux:{borderColor:y.darkAux,backgroundColor:y.darkAux,color:h.main,border:"1px solid ".concat(y.darkAux),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{color:h.main}},"&:hover":{backgroundColor:y.darkAux,boxShadow:"none","& div":{backgroundColor:y.darkAux,"& span":{}}},"&:active":{backgroundColor:y.darkAux,boxShadow:"none","& div":{backgroundColor:y.darkAux,"& span":{}}},"&:focus":{outline:"none",backgroundColor:y.darkAux,boxShadow:"none"},"&:disabled":{opacity:.5}},primaryAux:{borderColor:h.main,backgroundColor:x.primary.main,color:x.secondary.aux,border:"1px solid ".concat(x.primary.main),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px","& span":{color:x.secondary.aux}},"&:hover":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",borderColor:x.secondary.aux,outline:"none"},"&:active":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",borderColor:x.secondary.aux},"&:focus":{outline:"none",boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)",borderColor:x.secondary.aux},"&:disabled":{opacity:.5}},thirdAux:{borderColor:h.main,backgroundColor:x.auxiliary.main,color:h.main,border:"1px solid ".concat(x.auxiliary.main),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px","& span":{color:h.main}},"&:hover":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",borderColor:h.main,outline:"none"},"&:active":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",borderColor:h.main},"&:focus":{outline:"none",boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)",borderColor:h.main},"&:disabled":{opacity:.5}},lightAux:{backgroundColor:h.main,color:f.darkAux,border:"1px solid ".concat(y.lightAux),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{color:f.darkAux}},"&:hover":{border:"1px solid ".concat(y.lightAux),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:active":{border:"1px solid ".concat(y.lightAux),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:focus":{border:"1px solid ".concat(y.lightAux),boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)","& div":{"& span":{}}},"&:disabled":{opacity:.5}},warning:{backgroundColor:x.third.aux,color:x.third.basic,border:"1px solid ".concat(x.third.aux),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px",boxShadow:"none","& span":{color:x.third.basic}},"&:hover":{border:"1px solid ".concat(x.third.aux),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:active":{border:"1px solid ".concat(x.third.aux),boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)","& div":{"& span":{}}},"&:focus":{border:"1px solid ".concat(x.third.aux),boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)","& div":{"& span":{}}},"&:disabled":{opacity:.5}},full:{width:"100%"},fullBorder:{width:"calc(100% - 15px)"},textLeft:{textAlign:"left"},centre:{display:"block",margin:"0 auto"},basic:{borderColor:x.secondary.basic,backgroundColor:x.secondary.basic,color:x.primary.main,border:"1px solid ".concat(x.secondary.basic),padding:"0","& div":{padding:"5px 15px",margin:"0",border:"none",borderRadius:"5px","& span":{color:x.primary.main}},"&:hover":{borderColor:x.primary.main,outline:"none"},"&:active":{boxShadow:"0px 3px 5px 1px rgba(0,0, 0, 0.65)",borderColor:x.primary.main},"&:focus":{outline:"none",boxShadow:"0 0 0 0.2rem rgba(108,117,125,0.65)",borderColor:x.primary.main},"&:disabled":{opacity:.5}},iconButton:{padding:2,margin:0,background:"transparent",border:"1px solid ".concat(y.lightAux),"& div":{"& span":{}},"&:hover":{outline:"none",background:x.primary.main,color:h.main},"&:active":{},"&:focus":{outline:"none"},"&:disabled":{opacity:.5}}},j=t(3),v={h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},label:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.chubby),{},{fontSize:O.typography.fontSizeStyle.subtitle2,lineHeight:"1.3125",padding:"10px 0",marginRight:"10px"}),title:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.chubby),{},{fontSize:O.typography.fontSizeStyle.title,lineHeight:"1.3125"}),big:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.regular),{},{fontSize:O.typography.fontSizeStyle.title,lineHeight:"1.3125"}),subtitle:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.medium),{},{fontSize:O.typography.fontSizeStyle.subtitle,lineHeight:"1.5em"}),subtitle2:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.medium),{},{fontSize:O.typography.fontSizeStyle.subtitle2,lineHeight:"1.5em"}),body:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.regular),{},{fontSize:O.typography.fontSizeStyle.body,lineHeight:"1.71429em"}),body2:Object(j.a)(Object(j.a)({fontFamily:O.typography.fontFamily},O.typography.fontStyle.medium),{},{fontSize:O.typography.fontSizeStyle.body2,lineHeight:"1.46429em"})},C=O.typography,k=C.textPalette,S=void 0===k?{}:k,w=C.fontStyle,A=void 0===w?{}:w,_=Object(j.a)(Object(j.a)({root:Object(j.a)(Object(j.a)({},O.typography.textPalette.primary_main),{},{fontSize:O.typography.fontSizeStyle.main,margin:"0",display:"block",color:f.main,"& span":{display:"initial"}}),h1:v.h1,h2:v.h2,h3:v.h3,h4:v.h4,h5:v.h5,h6:v.h6,label:v.label,title:v.title,big:v.big,subtitle:v.subtitle,subtitle2:v.subtitle2,body:v.body,body2:v.body2},S),{},{center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"},bold:Object(j.a)({},A.bold),subline:{borderBottom:"2px solid"},labelFor:{marginRight:15},underline:{textDecoration:"underline"},light:Object(j.a)({},A.regular),italic:Object(j.a)({},A.italic),justify:Object(j.a)({},A.justify),markdown:{"& h1":{color:x.secondary.aux},"& h4":{color:x.secondary.aux,marginTop:"10px",marginBottom:"10px"},"& table":{background:"transparent",borderColor:h.main,borderStyle:"solid",borderWidth:"1px",minWidth:"50%",margin:"0 auto","& thead":{"& tr":{borderTop:"1px solid ".concat(h.main),background:"transparent !important",color:x.secondary.aux}},"& tr":{"&:nth-child(odd)":{background:x.primary.basic}},"& th":{padding:"5px 15px",minWidth:"5rem",textAlign:"center",verticalAlign:"middle"},"& td":{padding:"5px 15px",minWidth:"5rem",textAlign:"left",verticalAlign:"middle"}}},vertical:{WebkitTransform:"rotate(-90deg)",MozTransform:"rotate(-90deg)",OTransform:"rotate(-90deg)",MsTransform:"rotate(-90deg)",transform:"rotate(-90deg)",whiteSpace:"nowrap",display:"block",bottom:"0"}}),P={root:{background:"transparent",width:"calc( 100% - 20px)",display:"block"},primary:{background:x.primary.main},secondary:{background:x.secondary.main},auxiliary:{background:x.auxiliary.main},dark:{background:f.dark},warning:{background:x.third.aux,color:"".concat(x.third.basic," !important")},error:{background:x.auxiliary.main},card:{background:f.light,padding:"0px !important",minHeight:"12rem",borderRadius:"0.5em","-webkit-box-shadow":"2px 3px 4px 0px rgba(79,79,79,0.68)","-moz-box-shadow":"2px 3px 4px 0px rgba(79,79,79,0.68)","box-shadow":"2px 3px 4px 0px rgba(79,79,79,0.68)"},shadow:{"-web-kit-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-moz-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-o-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-ms-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)"},clean:{background:h.main},container:{padding:"10px",margin:"15px auto"},content:{borderRadius:"0.3em"},full:{paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,width:"100%"},center:{textAlign:"center"},left:{textAlign:"left"},right:{textAlign:"right"},modal:{},lineLeft:{borderLeft:"3px solid ".concat(x.secondary.aux),padding:"0px 0px 0px 15px"},darkAux:{background:f.main},selectable:{cursor:"pointer","&:hover":{background:y.aux}},selectableShadow:{cursor:"pointer","&:hover":{background:y.aux,"-web-kit-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-moz-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-o-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","-ms-box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)","box-shadow":"0px 1px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12)"}},containerFull:{padding:"10px",margin:"0px auto",width:"100%",height:"100%"},window:{borderStyle:"ridge",borderColor:h.main,borderWidth:"10px"},tab:{cursor:"pointer",border:"1px solid transparent",borderRadius:"0.5em 0.5em 0 0",borderBottom:"none",width:"unset",minWidth:80,padding:"0px 15px 0px 15px","&:hover":{border:"1px solid ".concat(x.primary.main),borderBottom:"none",background:"transparent"}},tabActive:{border:"1px solid ".concat(x.primary.main),borderBottom:"none",background:"transparent"},passed:{background:x.lights.passed.main,borderColor:x.lights.passed.aux},failed:{background:x.lights.failed.main,borderColor:x.lights.failed.aux},runtimeError:{background:x.lights.runtimeError.main,borderColor:x.lights.runtimeError.aux},exceedsRam:{background:x.lights.exceedsRam.main,borderColor:x.lights.exceedsRam.aux},exceedsTime:{background:x.lights.exceedsTime.main,borderColor:x.lights.exceedsTime.aux},compileOrInterpretError:{background:x.lights.compileOrInterpretError.main,borderColor:x.lights.compileOrInterpretError.aux},partial:{background:x.lights.partial.main,borderColor:x.lights.partial.aux},unAttempted:{background:x.lights.unAttempted.main,borderColor:x.lights.unAttempted.aux}},R={root:{fontFamily:O.typography.fontFamily,fontSize:O.typography.fontSizeStyle.body,margin:"5px 10px",minHeight:16,width:"auto",background:h.main},primary:{background:x.primary.second},secondary:{background:x.primary.second},light:{background:"transparent",border:"none",borderBottom:"1px solid ".concat(h.main),margin:"0px 0px 10px 0px",color:x.secondary.basic}},F=(O.typography.fontFamily,O.typography.fontSizeStyle.body,x.primary.second,x.primary.second,O.typography.fontFamily,O.typography.fontSizeStyle.body,x.primary.second,x.primary.second,O.typography.fontFamily,O.typography.fontFamily,x.primary.main,x.primary.main,{root:{fontFamily:O.typography.fontFamily,fontSize:"0.825",display:"flex",zIndex:"1100",boxSizing:"border-box",flexShrink:"0",flexDirection:"column",bottom:0,left:"auto",right:"0",position:"fixed",width:"100%",minHeight:"64px",padding:"15px",borderTop:"1px solid #FFFFFF"},light:{background:y.aux},clean:{background:h.main}}),T={root:{fontFamily:O.typography.fontFamily,padding:"0 px",margin:"0px",border:"1px solid transparent",borderRadius:"5px",width:"minContent",cursor:"pointer",background:"transaparent","&.active":{background:h.main},"& img":{width:"7em",margin:"0 auto"}},primary:{borderColor:h.main},full:{width:"100%"}},N=(O.typography.fontFamily,O.typography.fontFamily,O.typography.fontSizeStyle.body,x.primary.second,x.primary.second,O.typography.fontFamily,O.typography.fontSizeStyle.body,x.primary.second,x.primary.second,O.typography.fontFamily,O.typography.fontSizeStyle.body,{root:{display:"grid",backgroundColor:"transparent",border:0,margin:0,padding:0,color:"inherit"},primary:{backgroundColor:x.primary.dark},secondary:{},light:{backgroundColor:f.light},center:{justifyContent:"center",alignContent:"center",height:"100%",width:"100%"},centerContent:{justifyItems:"center",alignItems:"center"},full:{justifyContent:"stretch",alignContent:"stretch",height:"100%",width:"100%"}}),D={root:{backgroundColor:"transparent",border:0,margin:0,padding:0,color:"inherit"},primary:{backgroundColor:x.primary.main},primaryDark:{backgroundColor:x.primary.dark},secondary:{backgroundColor:y.darkLight},light:{backgroundColor:f.light},center:{justifySelf:"center",alignSelf:"center"},stretch:{justifySelf:"stretch",alignSelf:"center"},full:{justifySelf:"stretch",alignSelf:"stretch"},alignEnd:{alignSelf:"end"},top:{justifySelf:"stretch",alignSelf:"start"},aux:{backgroundColor:x.auxiliary.main}},L=(x.primary.basic,x.primary.main,x.secondary.main,x.auxiliary.main,"1px solid ".concat(y.secondary),x.primary.main,x.primary.aux,x.secondary.basic,x.secondary.darkAux,x.secondary.aux,x.secondary.darkAux,x.third.aux,x.third.darkAux,x.auxiliary.main,x.auxiliary.darkAux,x.lights.passed.main,x.lights.passed.aux,x.lights.failed.main,x.lights.failed.aux,x.lights.runtimeError.main,x.lights.runtimeError.aux,x.lights.exceedsRam.main,x.lights.exceedsRam.aux,x.lights.exceedsTime.main,x.lights.exceedsTime.aux,x.lights.compileOrInterpretError.main,x.lights.compileOrInterpretError.aux,x.lights.partial.main,x.lights.partial.aux,x.lights.unAttempted.main,x.lights.unAttempted.aux,"1px solid ".concat(y.light),"".concat(x.primary.main," !important "),x.secondary.main,n.a.forwardRef((function(e,a){var t,r="button",o=e.classes,i=e.className,c=e.primary,l=e.secondary,d=e.auxiliary,s=e.darkAux,b=e.third,m=e.centre,x=e.disabled,h=e.light,y=e.full,f=e.fullBorder,O=e.round,E=e.textLeft,j=e.primaryAux,v=e.thirdAux,C=e.lightAux,k=e.basic,S=e.warning,w=e.iconButton,A=Object(u.a)(e,["classes","className","primary","secondary","auxiliary","darkAux","third","centre","disabled","light","full","fullBorder","round","textLeft","primaryAux","thirdAux","lightAux","basic","warning","iconButton"]);return"button"===r&&A.href&&(r="a"),n.a.createElement(r,Object.assign({className:g()(o.root,i,(t={},Object(p.a)(t,o.primary,c),Object(p.a)(t,o.secondary,l),Object(p.a)(t,o.centre,m),Object(p.a)(t,o.full,y),Object(p.a)(t,o.fullBorder,f),Object(p.a)(t,o.light,h),Object(p.a)(t,o.third,b),Object(p.a)(t,o.round,O),Object(p.a)(t,o.textLeft,E),Object(p.a)(t,o.auxiliary,d),Object(p.a)(t,o.darkAux,s),Object(p.a)(t,o.primaryAux,j),Object(p.a)(t,o.thirdAux,v),Object(p.a)(t,o.lightAux,C),Object(p.a)(t,o.basic,k),Object(p.a)(t,o.warning,S),Object(p.a)(t,o.iconButton,w),t)),"aria-hidden":!0,ref:a,disabled:!0===x},A),n.a.createElement("div",null,e.children))}))),I=Object(b.a)(E,{name:"WalkButton"})(L),B={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",label:"label",title:"span",subtitle:"span",subtitle2:"span",main:"span",body:"p",body2:"p",link:"a"},W=n.a.forwardRef((function(e,a){var t,r,o=e.classes,i=e.className,c=e.variantComponent,l=void 0===c?"main":c,d=e.textPaletteMain,s=void 0===d?"primary":d,b=e.textPaletteVariant,m=void 0===b?"body":b,x=e.textComponents,h=void 0===x?B:x,y=e.component,f=e.paragraph,O=void 0!==f&&f,E=e.label,j=e.title,v=e.big,C=e.subtitle,k=e.subtitle2,S=e.body,w=e.body2,A=e.textAlign,_=e.bold,P=e.light,R=e.subline,F=e.underline,T=e.labelFor,N=e.italic,D=e.justify,L=e.markdown,I=e.vertical,W=Object(u.a)(e,["classes","className","variantComponent","textPaletteMain","textPaletteVariant","textComponents","component","paragraph","label","title","big","subtitle","subtitle2","body","body2","textAlign","bold","light","subline","underline","labelFor","italic","justify","markdown","vertical"]),z=y||(O?"p":h[l]||h[l])||"span";return n.a.createElement(z,Object.assign({className:g()(o.root,(t={},Object(p.a)(t,o[l],"inherit"!==l),Object(p.a)(t,o["".concat(s,"_").concat(m)],!0),t),(r={},Object(p.a)(r,o.justify,D),Object(p.a)(r,o.italic,N),Object(p.a)(r,o.bold,_),Object(p.a)(r,o.label,E),Object(p.a)(r,o.title,j),Object(p.a)(r,o.big,v),Object(p.a)(r,o.subtitle,C),Object(p.a)(r,o.subtitle2,k),Object(p.a)(r,o.body,S),Object(p.a)(r,o.body2,w),Object(p.a)(r,o[A],A),Object(p.a)(r,o.subline,!0===R),Object(p.a)(r,o.labelFor,T),Object(p.a)(r,o.underline,F),Object(p.a)(r,o.light,P),Object(p.a)(r,o.markdown,L),Object(p.a)(r,o.vertical,I),r),i),ref:a},W))})),z=Object(b.a)(_,{name:"WalkText"})(W),H=n.a.forwardRef((function(e,a){var t,r=e.children,o=e.classes,i=e.primary,c=e.secondary,l=e.auxiliary,d=e.dark,s=e.card,b=e.clean,m=e.overflow,x=e.shadow,h=e.container,y=e.style,f=e.align,O=e.full,E=e.content,v=e.lineLeft,C=e.darkAux,k=e.warning,S=e.error,w=e.selectable,A=e.containerFull,_=e.className,P=e.selectableShadow,R=e.window,F=e.tab,T=e.tabActive,N=e.passed,D=e.failed,L=e.runtimeError,I=e.exceedsRam,B=e.exceedsTime,W=e.compileOrInterpretError,z=e.partial,H=e.unAttempted,U=Object(u.a)(e,["children","classes","primary","secondary","auxiliary","dark","card","clean","overflow","shadow","container","style","align","full","content","lineLeft","darkAux","warning","error","selectable","containerFull","className","selectableShadow","window","tab","tabActive","passed","failed","runtimeError","exceedsRam","exceedsTime","compileOrInterpretError","partial","unAttempted"]);return n.a.createElement("div",Object.assign({className:g()(o.root,(t={},Object(p.a)(t,o.shadow,x),Object(p.a)(t,o.container,h),Object(p.a)(t,o.primary,i),Object(p.a)(t,o.secondary,c),Object(p.a)(t,o.auxiliary,l),Object(p.a)(t,o.dark,d),Object(p.a)(t,o.clean,b),Object(p.a)(t,o[f],f),Object(p.a)(t,o.full,O),Object(p.a)(t,o.content,E),Object(p.a)(t,o.card,s),Object(p.a)(t,o.lineLeft,v),Object(p.a)(t,o.darkAux,C),Object(p.a)(t,o.warning,k),Object(p.a)(t,o.error,S),Object(p.a)(t,o.selectable,w),Object(p.a)(t,o.containerFull,A),Object(p.a)(t,o.selectableShadow,P),Object(p.a)(t,o.window,R),Object(p.a)(t,o.tab,F),Object(p.a)(t,o.tabActive,T),Object(p.a)(t,o.passed,N),Object(p.a)(t,o.failed,D),Object(p.a)(t,o.runtimeError,L),Object(p.a)(t,o.exceedsRam,I),Object(p.a)(t,o.exceedsTime,B),Object(p.a)(t,o.compileOrInterpretError,W),Object(p.a)(t,o.partial,z),Object(p.a)(t,o.unAttempted,H),t),_),style:Object.assign({overflow:m},Object(j.a)({},y)),"aria-hidden":!0,ref:a},U),r&&r)}));H.defaultProps={overflor:"auto",shadow:!1,container:!0,style:{},align:"left",tab:!1,tabActive:!1};var U=Object(b.a)(P,{name:"WalkPaper"})(H),V=n.a.forwardRef((function(e,a){var t,r=e.classes,o=e.className,i=e.primary,c=e.secondary,l=e.light,d=Object(u.a)(e,["classes","className","primary","secondary","light"]);return n.a.createElement("input",Object.assign({className:g()(r.root,o,(t={},Object(p.a)(t,r.primary,i),Object(p.a)(t,r.secondary,c),Object(p.a)(t,r.light,l),t)),"aria-hidden":!0,ref:a},d))})),M=Object(b.a)(R,{name:"WalkInput"})(V),K=t(67),q=n.a.forwardRef((function(e,a){var t,r=e.classes,o=e.className,i=e.light,c=e.component,l=void 0===c?"div":c,d=e.columns,s=e.templateColums,b=e.templateRows,m=e.gapColumn,x=e.gapRow,h=e.center,y=e.centerContent,f=e.primary,O=e.full,E=Object(u.a)(e,["classes","className","light","component","columns","templateColums","templateRows","gapColumn","gapRow","center","centerContent","primary","full"]),j=l,v=Object(K.a)({root:{gridTemplateColumns:0===s.length?"repeat(".concat(d,",").concat(100/d,"%)"):s.reduce((function(e,a){return e.concat(a).concat(" ")}),""),gridTemplateRows:b.length>0?b.reduce((function(e,a){return e.concat(a).concat(" ")}),""):"auto",columnGap:m,rowGap:x}})();return n.a.createElement(j,Object.assign({className:g()(r.root,o,v.root,(t={},Object(p.a)(t,r.light,i),Object(p.a)(t,r.center,h),Object(p.a)(t,r.centerContent,y),Object(p.a)(t,r.full,O),Object(p.a)(t,r.primary,f),t)),"aria-hidden":!0},E),e.children&&e.children)}));q.defaultProps={columns:12,templateColums:[],templateRows:[],gapColumn:"15px",gapRow:"15px",center:!1,centerContent:!1,full:!1};var G=Object(b.a)(N,{name:"WalkGridContainer"})(q),J=n.a.forwardRef((function(e,a){var t,r=e.classes,o=e.className,i=e.light,c=e.gridColumn,l=e.gridRow,d=e.columnStart,s=e.columnEnd,b=e.center,m=e.stretch,x=e.start,h=e.full,y=e.alignEnd,f=e.primary,O=e.primaryDark,E=e.secondary,j=e.component,v=void 0===j?"div":j,C=e.aux,k=Object(u.a)(e,["classes","className","light","gridColumn","gridRow","columnStart","columnEnd","center","stretch","start","full","alignEnd","primary","primaryDark","secondary","component","aux"]),S=v,w=Object(K.a)({root:{gridColumn:c,gridRow:l},columnStart:{gridColumnStart:d},columnEnd:{gridColumnEnd:s}})();return n.a.createElement(S,Object.assign({className:g()(r.root,w.root,o,(t={},Object(p.a)(t,r.light,i),Object(p.a)(t,r.center,b),Object(p.a)(t,r.stretch,m),Object(p.a)(t,r.full,h),Object(p.a)(t,r.primary,f),Object(p.a)(t,r.primaryDark,O),Object(p.a)(t,r.secondary,E),Object(p.a)(t,r.alignEnd,y),Object(p.a)(t,r.start,x),Object(p.a)(t,w.columnStart,void 0!==d),Object(p.a)(t,w.columnEnd,void 0!==s),Object(p.a)(t,r.aux,C),t)),"aria-hidden":!0},k),e.children&&e.children)}));J.defaultProps={classes:{},gridColumn:"auto",gridRow:"auto",center:!1,stretch:!1,full:!1,primary:!1,secondary:!1,primaryDark:!1,alignEnd:!1,start:!1,aux:!1};var Q=Object(b.a)(D,{name:"WalkGridItem"})(J),Z=n.a.forwardRef((function(e,a){var t,r=e.classes,o=e.className,i=e.light,c=e.clean,l=Object(u.a)(e,["classes","className","light","clean"]);return n.a.createElement("footer",Object.assign({className:g()(r.root,o,(t={},Object(p.a)(t,r.light,i),Object(p.a)(t,r.clean,c),t)),"aria-hidden":!0},l),e.children)})),$=Object(b.a)(F,{name:"WalkFooter"})(Z),X=n.a.forwardRef((function(e,a){var t,r=e.classes,o=e.className,i=e.primary,c=e.secondary,l=e.centre,d=e.disabled,s=e.full,b=e.src,m=e.alt,x=Object(u.a)(e,["classes","className","primary","secondary","centre","disabled","full","src","alt"]);return n.a.createElement("div",Object.assign({className:g()(r.root,o,(t={},Object(p.a)(t,r.primary,i),Object(p.a)(t,r.secondary,c),Object(p.a)(t,r.centre,l),Object(p.a)(t,r.full,s),t)),"aria-hidden":!0,ref:a,disabled:d},x),n.a.createElement("img",{alt:m,src:b}))})),Y=Object(b.a)(T,{name:"WalkImageButton"})(X),ee=function(e){var a=e.label,t=e.multiline,r=e.cols,o=e.rows,i=e.pathOk,c=e.pathNoOk,l=e.stateInput,d=Object(u.a)(e,["label","multiline","cols","rows","pathOk","pathNoOk","stateInput"]);return n.a.createElement(G,{templateColums:["calc(100% - 1.5rem )","calc(1.5rem + 15px)"],templateRows:["100%"],gapColumn:"0",gapRow:"0",full:!0},n.a.createElement(Q,{stretch:!0},n.a.createElement(z,{textPaletteMain:"secondary",textPaletteVariant:"main",style:{display:"grid"},bold:!0,body:!0},a&&a,!0===t?n.a.createElement("textarea",Object.assign({style:{resize:"none",overflow:"auto",borderRadius:"0.5em",background:y.main,boxShadow:"inset 2px 3px 4px 0px ".concat(y.dark),padding:"5px 15px"},type:"text",cols:r,rows:o},d)):n.a.createElement(M,d))),l>0&&n.a.createElement(Q,{center:!0},n.a.createElement("img",{style:{width:"1.5rem",height:"1.5rem",paddingLeft:5},alt:"".concat(1===l?"Ok":"Wrong"),src:"".concat(1===l?i:c)})))};ee.defaultProps={multiline:!1,cols:5,rows:3,pathOk:"",pathNoOk:"",stateInput:0};var ae=ee,te=function(e){var a=e.alertInfo,t=e.children,r=e.isError,o=e.align,i=e.fullContent,c=e.className,l=e.classes;return n.a.createElement(U,{container:!0,auxiliary:!r,primary:r,overflow:"auto",clean:!0,className:g()(c,Object(p.a)({},l.fullContent,i))},n.a.createElement(z,{textAlign:o,variantComponent:"body",textPaletteMain:"third",textPaletteVariant:"secondary",subtitle2:!0},a&&a,t&&t))};te.defaultProps={alertInfo:"",isError:!1,align:"center",fullContent:!1};var re=Object(b.a)({fullContent:{margin:"0 auto",width:"100%"}},{name:"WalkAlert"})(te),ne=function(){var e=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_BASENAME||"",a=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_URL_API_VERSION||"";return"".concat("https://exchanger.sat.gob.mx").concat(e).concat(a)}(),oe={root:ne,exchange:{redeem:"".concat(ne,"/redeem"),request:"".concat(ne,"/request")},captcha:{resource:"".concat("https://captcha.sat.gob.mx","/get_captcha")}},ie=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_BASENAME&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_BASENAME.length>0?Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_BASENAME:"",ce={root:"/:token",entry:"/entry",generate:"/generate",_403:"/not-valid",_404:"/lost",success:"/success",halfSuccess:"/halfsuccess",images:"".concat(ie,"/images")},le="FETCH_CAPTCHA",de="REQUEST_GENERATE",se=t(69),pe=t(26),ue=t.n(pe),be=t(33),me=function(){localStorage.removeItem("user")},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:localStorage;return e.getItem("user")};function xe(){var e=ge();return e?{Authorization:"Token "+e}:{}}var he=function(){var e=Object(be.a)(ue.a.mark((function e(a){var t,r=arguments;return ue.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",fetch(a,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},!0===t?{}:xe())}).then((function(e){try{return e.ok?e.json():e.json().then((function(a){return Promise.reject(Object.assign(a,{codeError:e.status}))}),(function(a){return Promise.reject(e)}))}catch(a){return Promise.reject(e)}})));case 2:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),ye=function(){var e=Object(be.a)(ue.a.mark((function e(a,t){var r,n,o=arguments;return ue.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]&&o[2],e.next=3,fetch(a,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},!0===r?{}:xe()),body:JSON.stringify(t)});case 3:if(n=e.sent,e.prev=4,!n.ok){e.next=9;break}return e.abrupt("return",n.json());case 9:return e.abrupt("return",n.json().then((function(e){return Promise.reject(Object.assign(e,{codeError:n.status}))}),(function(e){return Promise.reject(n)})));case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(4),e.abrupt("return",Promise.reject(n));case 15:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(a,t){return e.apply(this,arguments)}}(),fe={fetchCaptcha:Object(se.a)(le,(function(e){return he(oe.captcha.resource,!0).then((function(e){return{error:!1,msg:"",payload:e}}),(function(e){return void 0===e.error?{error:!0,msg:"No fue posible obtener la imagen captcha. Verifica que tengas conexi\xf3n a internet."}:{error:!0,msg:"No fue posible procesar la solicitud.",payload:e}}))})),fetchRedeem:Object(se.a)(le,(function(e){return ye(oe.exchange.redeem,e,!0).then((function(e){return console.log("reedem",e),{error:!1,msg:"",payload:e}}),(function(e){return void 0===e.error?{error:!0,msg:"No fue posible establecer la comunicaci\xf3n. Verifica que tengas conexi\xf3n a internet."}:{error:!0,msg:"No fue posible procesar la solicitud.",payload:e}}))})),requestGenerate:Object(se.a)(de,(function(e){return ye(oe.exchange.request,e,!0).then((function(e){return console.log("request",e),{error:!1,msg:"",payload:e}}),(function(e){return void 0===e.error?{error:!0,msg:"No fue posible finalizar la petici\xf3n. Verifica que tengas conexi\xf3n a internet."}:{error:!0,msg:"No fue posible procesar la solicitud.",payload:e}}))}))},Oe=function(){return function(e){return new Promise((function(a,t){e(fe.fetchCaptcha()).then((function(e){var r=e.payload;r&&!0===r.error?t(r.error):a(r.payload)}),(function(e){t(e)})).finally((function(){}))}))}},Ee=function(e){return function(a){return new Promise((function(t,r){a(fe.fetchRedeem({url_token:e})).then((function(e){var a=e.payload;console.log(a),a&&!0===a.error?r(a.error):a.payload.hasOwnProperty("status")&&"failed"===a.payload.status?r({error:!1,msg:"",payload:a.payload}):t(a.payload)}),(function(e){r(e)})).finally((function(){}))}))}},je=function(e,a,t,r,n,o){return function(i){return new Promise((function(c,l){i(fe.requestGenerate({csrf_token:e,password:t,rfc:a,folio:r,id:n,text:o})).then((function(e){var a=e.payload;a&&!0===a.error?l(a.error):a.payload.hasOwnProperty("status")&&"failed"===a.payload.status?l({error:!1,msg:"",payload:a.payload}):c(a.payload)}),(function(e){l(e)})).finally((function(){}))}))}},ve=Object(s.b)(null,(function(e){return{fetchCaptcha:function(){return e(Oe())},requestGenerate:function(a,t,r,n,o,i){return e(je(a,t,r,n,o,i))}}}))((function(e){var a=e.fetchCaptcha,t=e.requestGenerate,o=e.history,i=Object(r.useState)(""),c=Object(d.a)(i,2),l=c[0],s=c[1],p=Object(r.useState)(""),u=Object(d.a)(p,2),b=u[0],m=u[1],g=Object(r.useState)(""),x=Object(d.a)(g,2),y=x[0],f=x[1],O=Object(r.useState)(""),E=Object(d.a)(O,2),j=E[0],v=E[1],C=Object(r.useState)(""),k=Object(d.a)(C,2),S=k[0],w=k[1],A=Object(r.useState)(),_=Object(d.a)(A,2),P=_[0],R=_[1],F=Object(r.useState)({}),T=Object(d.a)(F,2),N=T[0],D=T[1],L=Object(r.useState)(0),B=Object(d.a)(L,2),W=B[0],H=B[1],V=Object(r.useState)(0),M=Object(d.a)(V,2),K=M[0],q=M[1],J=Object(r.useState)(0),Z=Object(d.a)(J,2),$=Z[0],X=Z[1],ee=Object(r.useState)(0),te=Object(d.a)(ee,2),ne=te[0],oe=te[1],ie=function(){a().then((function(e){D(e)}),(function(e){console.error(e)}))},le=function(e){var a=e.match(/([A-Z,a-z,0-9])+/gm),t=!0;return(null!==a&&a.length>1||null!==a&&a[0]!==e)&&(t=!1),!1===t&&alert("La contrase\xf1a s\xf3lo puede contener n\xfameros y letras"),t};return Object(r.useEffect)((function(){m(b)}),[b]),Object(r.useEffect)((function(){0===Object.keys(N).length&&ie()}),[N]),Object(r.useEffect)((function(){y.length>0?8===y.length&&!0===le(y)?H(1):H(2):H(0)}),[y]),Object(r.useEffect)((function(){y.length>0&&j.length>0?q(y===j?1:2):q(0)}),[y,j]),Object(r.useEffect)((function(){b.length>0?13===b.length?X(1):X(2):X(0)}),[b]),Object(r.useEffect)((function(){l.length>0?oe(1):oe(0)}),[l]),n.a.createElement(n.a.Fragment,null,P&&P.length>0&&n.a.createElement(re,{align:"left",alertInfo:P}),n.a.createElement(G,{templateColums:["auto"],templateRows:["100%"],gapColumn:"0",gapRow:"0",full:!0},n.a.createElement(Q,{center:!0},n.a.createElement("div",{className:"row",style:{margin:0}},n.a.createElement("div",{className:"col-md-12"},n.a.createElement(ae,{style:{color:"#FFFFFF"},light:!0,label:"Folio del tr\xe1mite:",value:l,name:"folio",onChange:function(e){e.target.value.length<14&&s(e.target.value)},pathOk:"".concat(ce.images,"/ok.png"),pathNoOk:"".concat(ce.images,"/wrong.png"),stateInput:ne}),n.a.createElement(ae,{style:{color:"#FFFFFF"},light:!0,label:"RFC:",value:b,name:"user",onChange:function(e){e.target.value.length<14&&m(e.target.value.toUpperCase())},pathOk:"".concat(ce.images,"/ok.png"),pathNoOk:"".concat(ce.images,"/wrong.png"),stateInput:$}),n.a.createElement(ae,{label:"Nueva contrase\xf1a de 8 caracteres:",style:{color:"#FFFFFF"},light:!0,type:"password",value:y,name:"pass",onChange:function(e){e.target.value.length<9&&le(e.target.value)&&f(e.target.value)},pathOk:"".concat(ce.images,"/ok.png"),pathNoOk:"".concat(ce.images,"/wrong.png"),stateInput:W}),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",body:!0,bold:!0,textAlign:"left"},"(Solamente n\xfameros y letras)"),n.a.createElement(ae,{label:"Confirma la nueva contrase\xf1a:",style:{color:"#FFFFFF"},light:!0,type:"password",value:j,name:"pass",onChange:function(e){e.target.value.length<9&&le(e.target.value)&&v(e.target.value)},pathOk:"".concat(ce.images,"/ok.png"),pathNoOk:"".concat(ce.images,"/wrong.png"),stateInput:K}),n.a.createElement(U,{align:"center"},n.a.createElement("img",{alt:"captcha",style:{backgroundColor:h.main},src:"data:image/png;base64, ".concat(N.img)}),n.a.createElement(Y,{className:"class-replay",style:{marginLeft:2,marginRight:2},onClick:ie,primary:!0,alt:"captc",src:"".concat(ce.images,"/replay.svg")}),n.a.createElement("br",null),n.a.createElement(ae,{label:"Escribe el texto de la imagen",style:{color:"#FFFFFF",textAlign:"center"},light:!0,type:"text",value:S,name:"captcha",onChange:function(e){e.target.value.length<14&&w(e.target.value.toUpperCase())}})),n.a.createElement(U,{align:"center"},n.a.createElement(I,{centre:!0,onClick:function(e){var a=[];if(0===l.length&&(a.push("Debes ingresar el folio del tr\xe1mite generado"),a.push(n.a.createElement("br",null))),b.length<13&&(a.push("Ingresa los 13 caracteres del RFC"),a.push(n.a.createElement("br",null))),b.length<13&&(a.push("Ingresa los 13 caracteres del RFC"),a.push(n.a.createElement("br",null))),8!==y.length?(a.push("La contrase\xf1a debe ser de 8 caracteres y s\xf3lo puede contener n\xfameros y letras."),a.push(n.a.createElement("br",null))):y!==j&&(a.push("Las contrase\xf1as no coincides."),a.push(n.a.createElement("br",null))),0===S.length&&(a.push("Ingresa el texto que se muestra en la imagen (captcha)."),a.push(n.a.createElement("br",null))),0===a.length){var r=ge();t(r,b,y,l,N.id,S).then((function(e){switch(e.status){case"wrong":ie(),w(""),D({}),R(["No fue posible procesar la solicitud.",n.a.createElement("br",null)]);break;case"wrong_captcha":ie(),w(""),D({}),R(["El captcha no fue resuelto correctamente. Int\xe9ntalo de nuevo.",n.a.createElement("br",null)]);break;case"failed":ie(),w(""),D({}),R(["La informaci\xf3n enviada no es correcta. Int\xe9ntalo de nuevo.",n.a.createElement("br",null)]);break;case"success":me(),o.replace(ce.success);break;case"connection_error":ie(),w(""),D({}),R(["El servicio no est\xe1 disponible.",n.a.createElement("br",null)]);break;case"captcha_connection_error":ie(),w(""),D({}),R(["El servicio Captcha no est\xe1 disponible.",n.a.createElement("br",null)]);break;case"chiikul_failed":ie(),w(""),D({}),R(["Hubo un error al asignar tu contrase\xf1a. Int\xe9ntalo m\xe1s tarde.",n.a.createElement("br",null)]);break;case"half_good":me(),o.replace(ce.halfSuccess);break;default:ie(),w(""),D({}),R(["Error en el servicio.",n.a.createElement("br",null)])}}),(function(e){ie(),w(""),D({}),R(["Los datos son incorrectos, int\xe9ntalo de nuevo.",n.a.createElement("br",null)])}))}else R(a)}},n.a.createElement(z,{body:!0,bold:!0},"ENVIAR"))))))))})),Ce=t(20),ke=t(21),Se=t(24),we=t(23),Ae=(r.Component,function(){return n.a.createElement(U,null,n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center"},"La liga de acceso ha caducado o no es valida."))}),_e=function(){return n.a.createElement("div",null,n.a.createElement(U,null,n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center"},"No sabemos que haces pero no deber\xedas estar aqu\xed.")))},Pe=function(e){Object(Se.a)(t,e);var a=Object(we.a)(t);function t(){return Object(Ce.a)(this,t),a.apply(this,arguments)}return Object(ke.a)(t,[{key:"componentDidMount",value:function(){var e=this,a=function(e){e=e.replace("[[]","\\[").replace("[]]","\\]");var a=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null===a?"":decodeURIComponent(a[1].replace(/\+/g," "))}("tkn");a?this.props.fetchRedeem(a).then((function(a){var t;t=a.csrf_token,localStorage.setItem("user",t),e.props.history.replace(ce.generate)}),(function(a){e.props.history.replace(ce._403)})):this.props.history.replace(ce._403)}},{key:"render",value:function(){return n.a.createElement("div",null)}}]),t}(r.Component),Re=Object(s.b)(null,(function(e){return{fetchRedeem:function(a){return e(Ee(a))}}}))(Pe),Fe=function(e){return n.a.createElement("div",null,n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center"},"\xa1Felicidades! Tu contrase\xf1a ha sido generada correctamente."))},Te=function(e){return n.a.createElement("div",null,n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center"},"\xa1Felicidades! Tu contrase\xf1a ha sido actualizada con \xe9xito."),n.a.createElement("br",null),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"Para confirmar tus datos de contacto, ingresa el correo electr\xf3nico relacionado a tu RFC. Te sugerimos hacerlo dentro de las pr\xf3ximas 72 horas."),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"Entra al sitio:"),n.a.createElement(I,{auxiliary:!0,href:"https://www.sat.gob.mx/tramites/71646/actualiza-el-correo-electronico-relacionado-con-tu-contrasena"},n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,textAlign:"center"},"https://www.sat.gob.mx/tramites/71646/actualiza-el-correo-electronico-relacionado-con-tu-contrasena")),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"Ingresa:"),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"1) Tu RFC;"),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"2) La contrase\xf1a que acabas de crear y"),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"3) El CAPTCHA."),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center",style:{paddingLeft:"5%",paddingRight:"5%"}},"Aparecer\xe1 la opci\xf3n para escribir tu correo. \xa1Listo!"))},Ne=function(e){Object(Se.a)(t,e);var a=Object(we.a)(t);function t(){return Object(Ce.a)(this,t),a.apply(this,arguments)}return Object(ke.a)(t,[{key:"render",value:function(){return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"row",style:{margin:0,height:"inherit"}},n.a.createElement(U,{auxiliary:!0,overflow:"auto",full:!0,container:!1,className:"col-md-10",style:{height:"inherit"}},n.a.createElement(G,{templateColums:["auto"],templateRows:["30%","auto","150px"],gapColumn:"0",gapRow:"0",full:!0},n.a.createElement(Q,{alignEnd:!0,center:!0},n.a.createElement("img",{alt:"walksat",className:"img-logo",src:"".concat(ce.images,"/sat_id.svg")}),n.a.createElement(z,{textPaletteMain:"primary",textPaletteVariant:"secondary",subtitle:!0,bold:!0,textAlign:"center"},"Generaci\xf3n de nueva contrase\xf1a")),n.a.createElement(Q,{center:!0},this.props.children&&this.props.children),n.a.createElement(Q,{alignEnd:!0},n.a.createElement($,{style:{position:"initial"},clean:!0},n.a.createElement("div",{className:"row",style:{display:"inline-flex"}},n.a.createElement("div",{className:"footer-img",style:{textAlign:"right",width:"50%"}},n.a.createElement("img",{alt:"shcp",className:"img-sat-footer-shcp",src:"".concat(ce.images,"/shcp.svg")})),n.a.createElement("div",{className:"footer-img",style:{textAlign:"left",width:"50%"}},n.a.createElement("img",{alt:"shcp",className:"img-sat-footer-sat",src:"".concat(ce.images,"/sat.svg")})))))))))}}]),t}(r.Component),De=function(e){var a=e.component,t=Object(u.a)(e,["component"]);return n.a.createElement(l.b,Object.assign({},t,{render:function(e){return!0===function(){var e=void 0;try{e=ge(localStorage)}catch(a){}return void 0!==e&&null!==e}()?n.a.createElement(a,e):n.a.createElement(l.a,{to:{pathname:ce._404,state:{from:e.location}}})}}))};var Le=function(){return n.a.createElement(Ne,null,n.a.createElement(c.a,{basename:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_API:"https://exchanger.sat.gob.mx",REACT_APP_URL_CAPTCHA:"https://captcha.sat.gob.mx"}).REACT_APP_BASENAME||"/"},n.a.createElement(l.d,null,n.a.createElement(l.b,{exact:!0,path:ce.entry,component:Re}),n.a.createElement(De,{exact:!0,path:ce.generate,component:ve}),n.a.createElement(l.b,{exact:!0,path:ce._403,component:Ae}),n.a.createElement(l.b,{exact:!0,path:ce.success,component:Fe}),n.a.createElement(l.b,{exact:!0,path:ce.halfSuccess,component:Te}),n.a.createElement(l.b,{path:"*",component:_e}))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Ie=t(16),Be=t(39),We=t(40),ze=t.n(We),He=t(68),Ue=Object(He.a)({},{token:"",scrf:""}),Ve=Object(Ie.c)({app:Ue}),Me=Object(Ie.d)(Ve,{},Object(Ie.a)(Be.a,ze.a));i.a.render(n.a.createElement(n.a.StrictMode,null,n.a.createElement(s.a,{store:Me},n.a.createElement(Le,null))),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[42,1,2]]]);