/*! For license information please see confirmation.min.js.LICENSE.txt */
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[8401],{65813:(e,t,n)=>{"use strict";n.d(t,{r5:()=>f,OR:()=>g,Zk:()=>w,_:()=>x,qq:()=>y,$X:()=>b,eH:()=>v,gU:()=>c,nP:()=>l,Sj:()=>h,lo:()=>d,vl:()=>s,of:()=>m});var r=n(87462),i=n(6293),a=n(9576);function s(e){return(0,a.createHigherOrderComponent)((t=>class extends i.Component{render(){return(0,i.createElement)(t,(0,r.Z)({},this.props,e))}}),"withProps")}var o=n(92819);function c(e,t,n={}){return(0,a.createHigherOrderComponent)((r=>class extends i.Component{constructor(){super(...arguments),this.debouncedPropInvoke=(0,o.debounce)(((...t)=>this.props[e](...t)),"function"==typeof t?t(this.props):t,n),this.handler=(e,...t)=>(e&&"function"==typeof e.persist&&e.persist(),this.debouncedPropInvoke(e,...t))}componentWillUnmount(){this.debouncedPropInvoke.cancel()}render(){const t={...this.props,[e]:this.handler};return(0,i.createElement)(r,t)}}),"withDebounceHandler")}function l(e,t){let n;return n=(0,o.isFunction)(t)?[{delay:e,cb:t}]:e,(0,a.createHigherOrderComponent)((e=>class extends i.Component{constructor(){super(...arguments),this.intervalIds=[]}componentDidMount(){for(const e of n)(t=>{this.intervalIds.push(setInterval((()=>t(this.props)),e.delay))})(e.cb)}componentWillUnmount(){this.intervalIds.forEach(clearInterval)}render(){return(0,i.createElement)(e,this.props)}}),"withInterval")}var u=n(4942);const m=(0,a.createHigherOrderComponent)((e=>{var t;return t=class extends i.Component{constructor(...e){super(...e),(0,u.Z)(this,"state",{width:1280}),(0,u.Z)(this,"mounted",!1),(0,u.Z)(this,"ref",null),(0,u.Z)(this,"onWindowResize",(()=>{if(!this.mounted)return;const e=(0,i.findDOMNode)(this);if(e instanceof window.HTMLElement){const t=e.offsetWidth;this.setState({width:t})}}))}componentDidMount(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),document.getElementById("collapse-button").addEventListener("click",this.onWindowResize),this.onWindowResize()}componentWillUnmount(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize),document.getElementById("collapse-button").removeEventListener("click",this.onWindowResize)}render(){const{measureBeforeMount:t,...n}=this.props;return t&&!this.mounted?(0,i.createElement)("div",{className:this.props.className,style:this.props.style}):(0,i.createElement)(e,(0,r.Z)({},n,{width:this.state.width+20}))}},(0,u.Z)(t,"defaultProps",{measureBeforeMount:!1}),t}),"withWidth"),d=(0,a.createHigherOrderComponent)((e=>class extends i.Component{constructor(){super(...arguments),(0,u.Z)(this,"state",{pressed:{shift:!1,ctrl:!1,meta:!1,alt:!1}}),(0,u.Z)(this,"mounted",!1),this.listener=this.listener.bind(this),this.onBlur=this.onBlur.bind(this)}componentDidMount(){this.mounted=!0,window.addEventListener("keydown",this.listener),window.addEventListener("keyup",this.listener),window.addEventListener("click",this.listener),window.addEventListener("blur",this.onBlur)}componentWillUnmount(){this.mounted=!1,window.removeEventListener("keydown",this.listener),window.removeEventListener("keyup",this.listener),window.removeEventListener("click",this.listener),window.removeEventListener("blur",this.onBlur)}listener(e){this.mounted&&this.setState({pressed:{shift:e.shiftKey,ctrl:e.ctrlKey,meta:e.metaKey,alt:e.altKey}})}onBlur(){this.setState({pressed:{shift:!1,ctrl:!1,meta:!1,alt:!1}})}render(){return(0,i.createElement)(e,(0,r.Z)({pressedModifierKeys:this.state.pressed},this.props))}}),"withPressedModifierKeys"),h=(0,a.createHigherOrderComponent)((e=>function({navigate:t,...n}){return(0,i.createElement)(e,(0,r.Z)({},n,{onClick:e=>{try{n.onClick&&n.onClick(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||n.target&&"_self"!==n.target||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),t())}}))}),"withNavigate"),p=new WeakMap;function v(e,t){(0,i.useLayoutEffect)((()=>{p.has(e)||(t(),p.set(e,!0))}),[])}function f(e,t=!0){const[n,r]=(0,i.useState)("idle"),[a,s]=(0,i.useState)(null),[o,c]=(0,i.useState)(null),l=(0,i.useCallback)(((...t)=>(r("pending"),c(null),e(...t).then((e=>{s(e),r("success")})).catch((e=>{c(e),s(null),r("error")})))),[e]);return(0,i.useEffect)((()=>{t&&l()}),[l,t]),{execute:l,status:n,value:a,error:o}}function g(e,t,n=window){const r=(0,i.useRef)();(0,i.useEffect)((()=>{r.current=t}),[t]),(0,i.useEffect)((()=>{if(!n||!n.addEventListener)return;const t=e=>r.current(e);return n.addEventListener(e,t),()=>n.removeEventListener(e,t)}),[e,n])}const E=["button","submit"];function w(e){const t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);const n=(0,i.useRef)(!1),r=(0,i.useRef)(),a=(0,i.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,i.useEffect)((()=>()=>a()),[]),(0,i.useEffect)((()=>{e||a()}),[e,a]);const s=(0,i.useCallback)((e=>{const{type:t,target:r}=e;(0,o.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,o.includes)(E,e.type)}return!1}(r)&&(n.current=!0)}),[]),c=(0,i.useCallback)((e=>{e.persist(),n.current||(r.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:a,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:c}}function x(e,t){const[n,r]=(0,i.useState)((()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}}));return[n,t=>{try{const i=t instanceof Function?t(n):t;r(i),window.localStorage.setItem(e,JSON.stringify(i))}catch(e){console.error(e)}}]}function y(e){const t=(0,i.useRef)(null),n=(0,i.useRef)(!1),r=(0,i.useRef)(e),a=(0,i.useRef)(e);return a.current=e,(0,i.useLayoutEffect)((()=>{e.forEach(((e,i)=>{const a=r.current[i];"function"==typeof e&&e!==a&&!1===n.current&&(a(null),e(t.current))})),r.current=e}),e),(0,i.useLayoutEffect)((()=>{n.current=!1})),(0,i.useCallback)((e=>{t.current=e,n.current=!0,(e?a.current:r.current).forEach((t=>{"function"==typeof t?t(e):t&&t.hasOwnProperty("current")&&(t.current=e)}))}),[])}function b(e=[]){const[t,n]=(0,i.useState)(e);return[t,(0,i.useCallback)((e=>n((t=>[...t,e]))),[]),(0,i.useCallback)((e=>n((t=>t.filter((t=>t!==e))))),[]),n]}n(48015),n(31600)},27153:(e,t,n)=>{"use strict";n.r(t);var r=n(6293),i=n(25993),a=n.n(i),s=n(95122),o=n(12614),c=n(87514),l=n.n(c),u=n(13173),m=n(52278),d=n(27231),h=n(52117),p=n(60976);const v=(0,h.Z)("div",{target:"e1vilazf6"})("position:relative;margin-top:",(({theme:{getSize:e}})=>e(.75)),";"),f=(0,h.Z)("div",{shouldForwardProp:e=>"hasError"!==e&&"isFront"!==e,target:"e1vilazf5"})("display:flex;justify-content:center;align-items:center;background-color:",(({hasError:e,isFront:t})=>e||t?"#f6f7f7":"#c3a2e8"),";height:120px;width:100%;border-radius:4px;position:relative;overflow:hidden;"),g=(0,h.Z)(p.pe,{target:"e1vilazf4"})({name:"xxhtuh",styles:"position:absolute;top:-35px;height:160%"}),E=(0,h.Z)(p.Ot,{target:"e1vilazf3"})({name:"xxhtuh",styles:"position:absolute;top:-35px;height:160%"}),w=(0,h.Z)(u.zx,{target:"e1vilazf2"})("position:absolute;top:",(({theme:{getSize:e}})=>e(-2.25)),";right:",(({theme:{getSize:e}})=>e(-.25)),";box-shadow:inset 0 0 0 1px transparent!important;& svg{fill:",(({theme:e})=>e.colors.text.normal),";}"),x=(0,h.Z)("div",{target:"e1vilazf1"})("display:flex;flex-direction:column;align-items:center;gap:",(({theme:{getSize:e}})=>e(1.5)),";"),y=(0,h.Z)(u.xv,{target:"e1vilazf0"})("font-size:",(({theme:{getSize:e}})=>e(.75)),";");function b({isFront:e,onDismiss:t,error:n,previous:i}){return(0,r.createElement)(v,null,n?(0,r.createElement)(x,null,(0,r.createElement)(f,{hasError:!0,isFront:e},(0,r.createElement)(E,null)),(0,r.createElement)(u.X6,{level:2,size:u.yH.LARGE,variant:u.rK.DARK,text:(0,s.__)("There was an error sending the confirmation email","it-l10n-ithemes-security-pro")}),(0,r.createElement)(y,{align:"center",variant:u.rK.MUTED,text:(0,s.__)("Please return to the previous screen and try again.","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.zx,{variant:"muted",icon:m.Z,onClick:i,text:(0,s.__)("Back to the previous screen","it-l10n-ithemes-security-pro")})):(0,r.createElement)(React.Fragment,null,(0,r.createElement)(w,{icon:d.Z,onClick:()=>t(!0)}),(0,r.createElement)(x,null,(0,r.createElement)(f,{isFront:e},(0,r.createElement)(g,null)),(0,r.createElement)(u.X6,{level:2,size:u.yH.LARGE,variant:u.rK.DARK,text:(0,s.__)("Email Sent","it-l10n-ithemes-security-pro")}),(0,r.createElement)(y,{align:"center",variant:u.rK.MUTED,text:(0,s.__)("A confirmation email was sent to the email on file. Click the link inside the confirmation email and you will be directed back here with proper access granted.","it-l10n-ithemes-security-pro")}))))}var z=n(64893),_=n(55024);const D=(0,h.Z)("div",{target:"en5rdic7"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(1.25)),";"),L=(0,h.Z)("div",{target:"en5rdic6"})({name:"1yjuko2",styles:"display:flex;justify-content:center;align-items:center;background-color:#c3a2e8;height:120px;width:100%;border-radius:4px;position:relative"}),M=(0,h.Z)(u.xv,{target:"en5rdic5"})("position:absolute;top:8px;left:8px;font-size:",(({theme:{getSize:e}})=>e(.625)),";padding:",(({theme:{getSize:e}})=>e(.25))," ",(({theme:{getSize:e}})=>e(.75)),";background:#d2b9ee;border-radius:40px;"),S=(0,h.Z)("div",{target:"en5rdic4"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";"),k=(0,h.Z)("a",{target:"en5rdic3"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:",(({theme:{getSize:e}})=>e(.75)),";display:flex;gap:",(({theme:{getSize:e}})=>e(1.5)),";align-items:center;border-radius:2px;text-decoration:none;&:hover{background:#e7e7e7;}"),I=(0,h.Z)("ul",{target:"en5rdic2"})("list-style-type:initial;margin:0 0 0 ",(({theme:{getSize:e}})=>e(1.25)),";"),K=(0,h.Z)("div",{target:"en5rdic1"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(1.25)),";margin-top:",(({theme:{getSize:e}})=>e(1.25)),";"),O=(0,h.Z)("div",{target:"en5rdic0"})({name:"10oqjps",styles:"display:flex;justify-content:space-between;& button{width:47%;}"});function Z({canManage:e=!0}){return(0,r.createElement)(D,null,(0,r.createElement)(L,null,e&&(0,r.createElement)(M,{variant:u.rK.MUTED,text:(0,s.__)("Trusted Devices","it-l10n-ithemes-security-pro")}),(0,r.createElement)(p.ro,null)),(0,r.createElement)(S,null,(0,r.createElement)(u.X6,{level:2,size:u.yH.LARGE,variant:u.rK.DARK,weight:u.fs.HEAVY,text:(0,s.__)("You are logged in on an unrecognized device","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,r.createInterpolateElement)((0,s.__)("You are signed in on an unknown device or in an unknown location. Since Trusted Devices is enabled on this site and this device has not already been approved you will have restricted access on this device. This device won’t be able to edit sensitive information or perform certain administrative tasks until it is confirmed.","it-l10n-ithemes-security-pro"),{b:(0,r.createElement)("strong",null)})})),(0,r.createElement)(k,{href:"https://go.solidwp.com/unrecognized-login-mode"},(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)('Learn more about Trusted Devices and unrecognized login mode ("limited access")',"it-l10n-ithemes-security-pro")}),(0,r.createElement)(z.Icon,{icon:_.Z,style:{fill:"#6817c5"}})),(0,r.createElement)(S,null,(0,r.createElement)(u.xv,{variant:u.rK.DARK,weight:u.fs.HEAVY,text:(0,s.__)("Restricted capabilities:","it-l10n-ithemes-security-pro")}),(0,r.createElement)(I,null,(0,r.createElement)("li",null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Install/delete plugins & themes","it-l10n-ithemes-security-pro")})),(0,r.createElement)("li",null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Activate/deactivate plugins & themes","it-l10n-ithemes-security-pro")})),(0,r.createElement)("li",null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Edit posts, pages, etc. created by other users","it-l10n-ithemes-security-pro")})),(0,r.createElement)("li",null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Change the author for posts, pages, etc.","it-l10n-ithemes-security-pro")})),(0,r.createElement)("li",null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Other capabilities, depending upon your site’s plugins and themes","it-l10n-ithemes-security-pro")})))),(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Send a confirmation email to approve or block this device or continue with limited access and capabilities.","it-l10n-ithemes-security-pro")}))}function C({sendEmail:e,onDismiss:t}){return(0,r.createElement)(K,null,(0,r.createElement)(O,null,(0,r.createElement)(u.zx,{variant:"muted",onClick:()=>t(!0),text:(0,s.__)("Continue with limited access","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.zx,{variant:"primary",onClick:e,text:(0,s.__)("Send confirmation email","it-l10n-ithemes-security-pro")})))}function N({canManage:e,onDismiss:t,sendEmail:n}){return(0,r.createElement)(React.Fragment,null,(0,r.createElement)(Z,{canManage:e}),(0,r.createElement)(C,{onDismiss:t,sendEmail:n}))}var T=n(20567),R=n(65813);const P=(0,h.Z)(z.Modal,{target:"ennwdmy0"})({name:"vavmm1",styles:"max-width:500px"});function U({canManage:e,userId:t}){const[n,i]=(0,r.useState)(!1),[a,c]=(0,r.useState)(0),m=(0,r.useCallback)((()=>{c(1)}),[]),d=(0,r.useCallback)((()=>{c(0)}),[]),h=(0,r.useCallback)((()=>l()({method:"POST",path:`/ithemes-security/v1/trusted-devices/${t}/current/notify`})),[t]),{status:p,execute:v,error:f}=(0,R.r5)(h,!1);return(0,r.useEffect)((()=>{"success"!==p&&"error"!==p||m()}),[p,m,f]),(0,r.createElement)(o.a,{theme:u.U1},!n&&(0,r.createElement)(P,{title:(0,s.__)("Trusted devices confirmation"),onRequestClose:()=>{},isDismissable:!1,__experimentalHideHeader:!0},0===a&&(0,r.createElement)(N,{canManage:e,onDismiss:i,sendEmail:v,next:m}),1===a&&(0,r.createElement)(b,{onDismiss:i,previous:d,error:f}),(0,r.createElement)(T.$J,{currentPage:a,numberOfPages:2,setCurrentPage:c,allowNavigation:!1})))}var A=n(82521);const H=(0,h.Z)("div",{target:"e1mcwzlh10"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),F=(0,h.Z)("div",{target:"e1mcwzlh9"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(1.25)),";padding:",(({theme:{getSize:e}})=>e(1)),";border:1px solid ",(({theme:e})=>e.colors.border.normal),";"),B=(0,h.Z)("div",{shouldForwardProp:e=>"map"!==e,target:"e1mcwzlh8"})("height:200px;background-image:",(({map:e})=>`url(${e})`),";background-size:contain;"),G=(0,h.Z)("div",{target:"e1mcwzlh7"})("display:grid;grid-template-columns:1fr 1fr;gap:",(({theme:{getSize:e}})=>e(.75)),";"),W=(0,h.Z)("div",{target:"e1mcwzlh6"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.25)),";"),V=(0,h.Z)("div",{target:"e1mcwzlh5"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.75)),";margin-bottom:",(({theme:{getSize:e}})=>e(1.5)),";"),Y=(0,h.Z)(u.xv,{target:"e1mcwzlh4"})("font-size:",(({theme:{getSize:e}})=>e(.625)),";line-height:",(({theme:{getSize:e}})=>e(1)),";padding:",(({theme:{getSize:e}})=>`${e(.25)} ${e(.5)}`),";border-radius:40px;background-color:#F3EDFA!important;color:",(({theme:e})=>e.colors.text.muted),"!important;"),$=(0,h.Z)("div",{target:"e1mcwzlh3"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(1.25)),";margin-top:",(({theme:{getSize:e}})=>e(1.25)),";"),j=(0,h.Z)("div",{target:"e1mcwzlh2"})("display:flex;gap:",(({theme:{getSize:e}})=>e(.25)),";& p{margin:0;line-height:",(({theme:{getSize:e}})=>e(1)),";color:",(({theme:e})=>e.colors.text.muted),";}& a{color:",(({theme:e})=>e.colors.text.accent),";}"),J=(0,h.Z)(z.Icon,{target:"e1mcwzlh1"})("width:",(({theme:{getSize:e}})=>e(2)),";"),q=(0,h.Z)("div",{target:"e1mcwzlh0"})({name:"10oqjps",styles:"display:flex;justify-content:space-between;& button{width:47%;}"});function X({canManage:e}){const t=(0,A.format)("M j, Y g:i a",new window.Date);return(0,r.createElement)(V,null,(0,r.createElement)(H,null,(0,r.createElement)(u.X6,{level:2,size:u.yH.LARGE,variant:u.rK.DARK,weight:u.fs.HEAVY,text:(0,s.__)("You are logged in on a new device","it-l10n-ithemes-security-pro")}),e&&(0,r.createElement)(Y,{text:(0,s.__)("Trusted Devices","it-l10n-ithemes-security-pro")})),(0,r.createElement)(u.xv,{variant:u.rK.MUTED,weight:u.fs.HEAVY,text:t}))}function Q({device:e,hasGeolocation:t,hasMap:n,isFront:i}){return(0,r.createElement)(F,null,n&&(0,r.createElement)(B,{map:e.maps.small}),i?(0,r.createElement)(te,{device:e,hasGeolocation:t}):(0,r.createElement)(ee,{device:e,hasGeolocation:t}))}function ee({device:e,hasGeolocation:t}){return(0,r.createElement)(G,null,t&&(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Location","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.xv,{variant:u.rK.DARK,weight:u.fs.HEAVY,text:e.location})),(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Browser","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.xv,{variant:u.rK.DARK,weight:u.fs.HEAVY,text:`${e.browser} (${e.browser_version})`})),(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("IP","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.xv,{variant:u.rK.DARK,weight:u.fs.HEAVY,text:e.ip})),(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("Platform","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.xv,{variant:u.rK.DARK,weight:u.fs.HEAVY,text:e.platform})))}function te({device:e,hasGeolocation:t}){return(0,r.createElement)(G,null,(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:e.ip}),t&&(0,r.createElement)(u.xv,{variant:u.rK.DARK,text:e.location})),(0,r.createElement)(W,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:e.platform}),(0,r.createElement)(u.xv,{variant:u.rK.DARK,text:`${e.browser} (${e.browser_version})`})))}var ne=n(65430);function re({canManage:e,sendEmail:t,onDismiss:n}){return(0,r.createElement)($,null,(0,r.createElement)(u.xv,{variant:u.rK.MUTED,text:(0,s.__)("You are logged in from an unrecognized device/device location. Confirm or ignore this device/device location below.","it-l10n-ithemes-security-pro")}),e&&(0,r.createElement)(j,null,(0,r.createElement)(J,{icon:ne.Z,fill:"#ffc518"}),(0,r.createElement)(u.xv,{as:"p"},(0,r.createInterpolateElement)((0,s.__)("If you don’t want to trust this device, you can continue to use your site with reduced permissions. Learn more about the Trusted Devices here.","it-l10n-ithemes-security-pro"),{a:(0,r.createElement)("a",{href:"https://go.solidwp.com/about-trusted-devices"})}))),(0,r.createElement)(q,null,(0,r.createElement)(u.zx,{variant:"muted",onClick:()=>n(!0),text:(0,s.__)("Continue with limited access","it-l10n-ithemes-security-pro")}),(0,r.createElement)(u.zx,{variant:"primary",onClick:t,text:(0,s.__)("Send confirmation email","it-l10n-ithemes-security-pro")})))}function ie({canManage:e,device:t,hasGeolocation:n,hasMap:i,isFront:a,onDismiss:s,sendEmail:o}){return(0,r.createElement)(React.Fragment,null,(0,r.createElement)(X,{canManage:e}),(0,r.createElement)(Q,{device:t,hasGeolocation:n,hasMap:i,isFront:a}),(0,r.createElement)(re,{canManage:e,isFront:a,onDismiss:s,sendEmail:o}))}function ae({canManage:e,device:t,userId:n,isFront:i}){const[a,o]=(0,R._)(`solidDeviceDismissed${t.id}`),[c,m]=(0,r.useState)(0),d=t.location,h=t.maps,p=(0,r.useCallback)((()=>{m(1)}),[]),v=(0,r.useCallback)((()=>{m(0)}),[]),f=(0,r.useCallback)((()=>l()({method:"POST",path:`/ithemes-security/v1/trusted-devices/${n}/current/notify`})),[n]),{status:g,execute:E,error:w}=(0,R.r5)(f,!1);return(0,r.useEffect)((()=>{"success"!==g&&"error"!==g||p()}),[g,p,w]),(0,r.createElement)(u.fC,{theme:u.U1},!a&&(0,r.createElement)(P,{title:(0,s.__)("Trusted devices confirmation"),onRequestClose:()=>{},isDismissable:!1,__experimentalHideHeader:!0},0===c&&(0,r.createElement)(ie,{canManage:e,device:t,hasGeolocation:d,hasMap:h,isFront:i,next:p,onDismiss:o,sendEmail:E}),1===c&&(0,r.createElement)(b,{isFront:i,onDismiss:o,previous:v,error:w}),(0,r.createElement)(T.$J,{currentPage:c,numberOfPages:2,setCurrentPage:m,allowNavigation:!1})))}n.p=window.itsecWebpackPublicPath,(0,s.setLocaleData)({"":{}},"ithemes-security-pro"),a()((()=>{const e=document.getElementById("itsec-confirmation-root"),t="1"===e.dataset.canManage,n=Number.parseInt(e.dataset.user,10),i="1"!==e.dataset.isAdmin;e&&(0,r.render)((0,r.createElement)(ae,{canManage:t,userId:n,device:JSON.parse(e.dataset.device),isFront:i}),document.getElementById("itsec-confirmation-root")),document.getElementById("wp-admin-bar-itsec-fingerprinting").addEventListener("click",(function(){const e=document.createElement("div");document.body.append(e),(0,r.render)((0,r.createElement)(U,{canManage:t,userId:n}),e)}))}))},52278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}))},55024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},27231:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}))},65430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),i=n(14776);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},87514:e=>{e.exports=function(){return this.wp.apiFetch}()},64893:e=>{e.exports=function(){return this.wp.components}()},9576:e=>{e.exports=function(){return this.wp.compose}()},48015:e=>{e.exports=function(){return this.wp.data}()},82521:e=>{e.exports=function(){return this.wp.date}()},25993:e=>{e.exports=function(){return this.wp.domReady}()},6293:e=>{e.exports=function(){return this.wp.element}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},14776:e=>{e.exports=function(){return this.wp.primitives}()},73470:e=>{e.exports=function(){return this.wp.url}()},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment}},e=>{e.O(0,[7271,3173,5307,5257,3627,976,1511,567],(()=>(27153,e(e.s=27153))));var t=e.O();((window.itsec=window.itsec||{}).fingerprinting=window.itsec.fingerprinting||{}).confirmation=t}]);