1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2409],{45203:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/massive_signature/activate-location",function(){return s(58059)}])},40230:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var i=s(85893),n=s(24896),o=s(96727),a=s(40110),r=s(95858),l=s(92365),c=s(52857),d=s(30055),x=s(96788),u=s(77527),m=s(88196);let p=(0,u.ZP)(m.Z)(e=>{let{theme:t}=e;return{".MuiDialog-paper":{background:"light"===t.palette.mode?"#FFFFF":"linear-gradient(to bottom, #131C2D 0%, #0C0C15 100%)",boxShadow:"none",borderRadius:"5px",border:"light"===t.palette.mode?"1px solid #E9EDF0":"1px solid #252635",minWidth:"280px",marginTop:"60px"},"& .custom-modal__title":{background:"#F6F8FA","& .MuiDialogTitle-root":{fontSize:"18px",fontWeight:600,lineHeight:"29px"}},"& .custom-modal__subtitle":{fontSize:14,lineHeight:"20px"},"& .custom-modal__content":{display:"flex",flexDirection:"column",width:"100%",overflowX:"hidden"},"& .custom-modal__actions":{display:"flex",alignItem:"center",gap:"10px",paddingInline:"15px",borderTop:"light"===t.palette.mode?"":"1px solid #252635"}}});var g=s(13631),h=function(e){let{open:t,onClose:s,content:u,titleIcon:m,title:h,text:f,children:j,headerActions:v,actions:b,subtitle:Z,...w}=e;return(0,i.jsxs)(p,{open:t,onClose:s,className:"custom-modal","aria-labelledby":"custom-modal__title","aria-describedby":"custom-modal__description",...w,children:[(0,i.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",className:"custom-modal__title",sx:{height:Z?"84px":"72px",background:"#F6F8FA",borderBottom:"1px solid #E9E9E9",padding:"24px 20px"},children:[(0,i.jsxs)(d.Z,{direction:"row",alignItems:"center",spacing:"15px",sx:{pr:6},children:[m&&m,(0,i.jsxs)(d.Z,{children:[h&&(0,i.jsx)(g.Z,{title:h,children:(0,i.jsx)(l.Z,{sx:{padding:0},children:h})}),Z&&(0,i.jsx)(x.Z,{className:"custom-modal__subtitle",children:Z})]})]}),v,(0,i.jsx)(c.Z,{"aria-label":"close",onClick:s,sx:{p:"4.5px",ml:2},children:(0,i.jsx)(n.b,{size:24,color:"#000000"})})]}),(0,i.jsxs)(a.Z,{className:"custom-modal__content",children:[f&&(0,i.jsx)(r.Z,{children:f}),j]}),b&&(0,i.jsx)(o.Z,{className:"custom-modal__actions",sx:{height:"70px",borderTop:"1px solid #E9E9E9"},children:b})]})}},16199:function(e,t,s){"use strict";var i=s(85893),n=s(98266),o=s(91920),a=s(7002),r=s(29976),l=s(67421),c=s(36609),d=s(67294),x=s(4336),u=s(10980),m=s(21640),p=s(52857),g=s(15972),h=s(5059),f=s(93454),j=s(75527),v=s(30055),b=s(96788),Z=s(34079),w=s(13631);let _=[{name:"Espa\xf1ol",lang:"es",icon:"/assets/langFlags/es.svg"},{name:"English",lang:"en",icon:"/assets/langFlags/en.svg"},{name:"Portugu\xeas",lang:"pt",icon:"/assets/langFlags/pt.svg"}];t.Z=function(e){let{showLabel:t=!0}=e,{t:s}=(0,l.$G)(),{language:y,setLanguage:F}=(0,Z.z)(),[C,E]=(0,d.useState)(!1),z=(0,d.useRef)(null),L=()=>{E(e=>!e)},k=e=>{z.current&&z.current.contains(e.target)||E(!1)},S=(e,t)=>{c.ZP.changeLanguage(e),F(e),k(t)};function D(e){"Tab"===e.key?(e.preventDefault(),E(!1)):"Escape"===e.key&&E(!1)}let W=(0,d.useRef)(C);(0,d.useEffect)(()=>{if(!0===W.current&&!1===C){var e;null===(e=z.current)||void 0===e||e.focus()}W.current=C},[C]);let I=_.find(e=>e.lang===y);return(0,i.jsxs)(v.Z,{direction:"row",spacing:2,children:[(0,i.jsx)(w.Z,{title:s("components.appbar.tooltips.language"),children:t?(0,i.jsxs)(x.Z,{ref:z,onClick:L,sx:{color:"text.primary",textTransform:"none",gap:"12px",py:"4px",px:"8px",minWidth:"auto",minHeight:"28px",height:"28px",borderRadius:"15px","&:hover":{background:"#F6F8FA",boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.20)"}},children:[(0,i.jsx)(n.n,{size:20}),(0,i.jsx)(b.Z,{sx:{fontSize:14},children:null==I?void 0:I.name}),C?(0,i.jsx)(o.y,{size:18}):(0,i.jsx)(a.V,{size:18})]}):(0,i.jsx)(p.Z,{sx:{color:"text.primary",width:"32px",height:"32px",padding:"6px"},ref:z,onClick:L,children:(0,i.jsx)(n.n,{size:20})})}),(0,i.jsx)(j.Z,{open:C,anchorEl:z.current,role:void 0,placement:"top-end",transition:!0,disablePortal:!0,style:{zIndex:1300},children:e=>{let{TransitionProps:t,placement:s}=e;return(0,i.jsx)(m.Z,{...t,style:{transformOrigin:"right top"},children:(0,i.jsx)(f.Z,{sx:{width:"140px",boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.15)"},children:(0,i.jsx)(u.d,{onClickAway:k,children:(0,i.jsx)(h.Z,{autoFocusItem:C,id:"composition-menu","aria-labelledby":"
1composition-button",onKeyDown:D,children:_.map(e=>(0,i.jsxs)(g.Z,{onClick:t=>S(e.lang,t),sx:{display:"flex",justifyContent:"space-between",fontSize:14,"&:hover":{bgcolor:"#F5F9FF"}},children:[e.name,e.lang===y&&(0,i.jsx)(r.n,{size:20,color:"#24DE9C"})]},e.lang))})})})})}})]})}},52716:function(e,t,s){"use strict";var i=s(85893),n=s(67294),o=s(11163),a=s(52261),r=s(96788);s(25675);var l=s(34079);s(38614),t.Z=function(e){let{children:t}=e,s=(0,o.useRouter)(),{getSigningCompleted:c,resetSigningFlow:d,getBatchId:x,getSelectedDocuments:u,getShowingEfirmaSuccess:m}=(0,l.z)(),p=c(),g=m();x(),u(),(0,n.useEffect)(()=>{let e=["/massive_signature/selfie","/massive_signature/activate-location","/massive_signature/signature-method"].includes(s.pathname),t="/massive_signature/signature-method"===s.pathname&&g;e&&p&&!t&&(s.replace("/massive_signature?tab=processed"),window.history.replaceState(null,"","/massive_signature?tab=processed"))},[s.pathname,p,g,s]),(0,n.useEffect)(()=>{if(p){let e=e=>{let t=window.location.pathname,i="/massive_signature/signature-method"===t&&g;["/massive_signature/selfie","/massive_signature/activate-location","/massive_signature/signature-method"].includes(t)&&!i&&(e.preventDefault(),window.history.pushState(null,"","/massive_signature?tab=processed"),s.replace("/massive_signature?tab=processed"))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}},[p,g,s]);let h=["/massive_signature/selfie","/massive_signature/activate-location","/massive_signature/signature-method"].includes(s.pathname),f="/massive_signature/signature-method"===s.pathname&&g;return h&&p&&!f?(setTimeout(()=>{s.replace("/massive_signature?tab=processed")},0),(0,i.jsx)(a.Z,{maxWidth:!1,sx:{display:"flex",flexDirection:"column",minHeight:"100dvh",justifyContent:"center",alignItems:"center",backgroundColor:"#FFFFFF"},children:(0,i.jsx)(r.Z,{sx:{fontSize:16,color:"#767699"},children:"Redirigiendo..."})})):(0,i.jsx)(i.Fragment,{children:t})}},58059:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return Z}});var i=s(85893),n=s(11163),o=s(67294),a=s(52261),r=s(96788),l=s(4336),c=s(83490),d=s(30055),x=s(25675),u=s.n(x),m=s(67421),p=s(16199),g=s(38614),h=s(40230),f=function(e){let{isModalOpen:t,onClose:s}=e,{t:n}=(0,m.$G)();return(0,i.jsx)(h.Z,{open:t,onClose:s,fullWidth:!0,maxWidth:"sm",title:n("pages.activeLocation.modal.title"),subtitle:n("pages.activeLocation.modal.howTo"),actions:(0,i.jsx)(d.Z,{direction:"row",justifyContent:"end",spacing:2,children:(0,i.jsx)(l.Z,{variant:"contained",disableElevation:!0,size:"medium",sx:{fontWeight:"500",fontSize:"16px",lineHeight:"20px",textTransform:"none",minWidth:200},onClick:s,children:n("pages.activeLocation.modal.button")})}),children:(0,i.jsxs)(d.Z,{sx:{py:3},children:[(0,i.jsx)(r.Z,{sx:{fontSize:16,fontWeight:500},children:n("pages.activeLocation.modal.instruction")}),(0,i.jsxs)(d.Z,{sx:{flexDirection:"row",mt:4,mb:2,gap:2},children:[(0,i.jsx)(u(),{src:"/assets/icons/gear.svg",width:34,height:32,alt:"gear icon"}),(0,i.jsxs)(r.Z,{sx:{color:"#767699"},children:[(0,i.jsx)(c.Z,{component:"span",sx:{fontWeight:500,color:"text.primary"},children:n("pages.activeLocation.modal.windows.os")}),n("pages.activeLocation.modal.windows.path")]})]}),(0,i.jsxs)(d.Z,{sx:{flexDirection:"row",my:3,gap:2},children:[(0,i.jsx)(u(),{src:"/assets/icons/mac-gear.svg",width:34,height:32,alt:"mac gear icon"}),(0,i.jsxs)(r.Z,{sx:{color:"#767699"},children:[(0,i.jsx)(c.Z,{component:"span",sx:{fontWeight:500,color:"text.primary"},children:n("pages.activeLocation.modal.mac.os")}),n("pages.activeLocation.modal.mac.path")]})]})]})})},j=function(){let e=(0,n.useRouter)(),{t,i18n:s}=(0,m.$G)(),[x,h]=(0,o.useState)(!1),j="en"===s.language?"/assets/images/faceId/permissions-en.svg":"/assets/images/faceId/permissions-es.svg";return(0,i.jsxs)(a.Z,{maxWidth:!1,sx:{display:"flex",flexDirection:"column",pb:{xs:10,sm:0},pt:2},children:[(0,i.jsxs)(d.Z,{sx:{pb:5,maxWidth:350,mx:"auto"},children:[(0,i.jsx)(d.Z,{alignItems:"flex-end",sx:{position:"absolute",right:15,top:15},children:(0,i.jsx)(p.Z,{})}),(0,i.jsxs)(d.Z,{textAlign:"center",justifyContent:"center",sx:{mt:4},children:[(0,i.jsx)(c.Z,{textAlign:"center",children:(0,i.jsx)(u(),{src:"/assets/images/img-location.svg",width:113,height:75,alt:"location"})}),(0,i.jsx)(r.Z,{sx:{fontWeight:600,fontSize:18,mb:4,mt:1,mx:"auto"},children:t("pages.activeLocation.title")})]}),(0,i.jsxs)(d.Z,{sx:{alignItems:"center",flexDirection:"column",mt:1},children:[(0,i.jsx)(u(),{priority:!0,src:j,width:252,height:137,alt:"permissions"}),(0,i.jsxs)(d.Z,{mb:1,mt:3,children:[(0,i.jsx)(r.Z,{fontWeight:"bold",children:t("pages.activeLocation.steps.two.title")}),(0,i.jsx)(r.Z,{fontSize:14,children:t("pages.activeLocation.steps.two.text")})]})]}),(0,i.jsx)(d.Z,{sx:{position:{xs:"fixed",sm:"relative"},bottom:0,left:0,width:"100%",background:"#fff",p:{xs:2,sm:0},mt:{xs:0,sm:3},boxShadow:{xs:"0 -5px 10px #0000000a",sm:"none"}},children:(0,i.jsx)(l.Z,{variant:"contained",sx:{fontSize:"16px",mt:{xs:0,sm:2},order:{xs:2,sm:1},flexGrow:1,width:"100%"},type:"button",size:"large",onClick:function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){console.log("Location permission granted"),console.log("Latitude: "+t.coords.latitude),console.log("Longitude: "+t.coords.longitude),e.push("/massive_signature/signature-method")},function(t){console.error("Location permission denied:",t),e.push("/massive_signature/signature-method")},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0}):(console.warn("Geolocation is not supported by this browser"),e.push("/massive_signature/signature-method"))},children:t("common.continue")})}),(0,i.jsxs)(d.Z,{direction:"column",children:[(0,i.jsxs)(d.Z,{sx:{flexDirection:"row",mb:0,gap:1.5,mt:{xs:4,sm:2}},children:[(0,i.jsx)(u(),{src:"/assets/icons/shield.svg",width:25,height:25,alt:"shield"}),(0,i.jsx)(r.Z,{sx:{fontSize:14,color:"text.secondary"},children:t("pages.activeLocation.instructions.warning")})]}),(0,i.jsx)(d.Z,{sx:{flexDirection:"row",mb:0,gap:1.5,mt:2,cursor:"pointer"},onClick:function(){h(!0)},children:(0,i.jsx)(r.Z,{sx:{fontSize:14,color:"primary.main",textDecoration:"underline"},children:t("pages.activeLocation.steps.one.text")})})]})]}),(0,i.jsx)(g.Z,{}),(0,i.jsx)(f,{isModalOpen:x,onClose:function(){h(!1)}})]})},v=s(52716);function b(){return(0,i.jsx)(v.Z,{children:(0,i.jsx)(j,{})})}b.getLayout=e=>e;var Z=b}},function(e){e.O(0,[2908,3907,9951,2888,9774,179],function(){return e(e.s=45203)}),_N_E=e.O()}]);
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.