(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[4361],{79216:(e,t,r)=>{"use strict";r.r(t);var n=r(6293),i=r(25993),a=r.n(i),o=r(95122),c=r(64893),s=r(48015),l=r(25703),m=r(13173),d=r(31600),u=r(52117);const p=(0,u.Z)("div",{target:"e1qy5p3f2"})("display:flex;flex-direction:column;padding:",(({theme:{getSize:e}})=>e(1)),";gap:",(({theme:{getSize:e}})=>e(.5)),";"),g=(0,u.Z)(m.xv,{target:"e1qy5p3f1"})("padding-bottom:",(({theme:{getSize:e}})=>e(1)),";border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";"),h=(0,u.Z)("div",{target:"e1qy5p3f0"})("display:flex;flex-direction:column;margin:0 ",(({theme:{getSize:e}})=>e(1))," ",(({theme:{getSize:e}})=>e(1)),";");var v=r(82521),x=r(63708);const E=(0,u.Z)("div",{target:"e1xv6bun1"})("display:grid;grid-template-columns:1fr 1fr;gap:",(({theme:{getSize:e}})=>e(.75)),";border:1px solid #e7e7e7;padding:",(({theme:{getSize:e}})=>e(1)),";"),f=(0,u.Z)("div",{target:"e1xv6bun0"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.25)),";");function w({device:e}){return(0,n.createElement)(E,null,(0,n.createElement)(f,null,(0,n.createElement)(m.xv,{variant:m.rK.MUTED,text:e.platform}),(0,n.createElement)(m.xv,{variant:m.rK.DARK,text:`${e.browser} (${e.browser_version})`})),(0,n.createElement)(f,null,(0,n.createElement)(m.xv,{variant:m.rK.MUTED,text:e.ip}),e?.location&&(0,n.createElement)(m.xv,{variant:m.rK.DARK,text:e.location})))}const y=(0,u.Z)("div",{target:"e10u8qfm3"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";margin:0 ",(({theme:{getSize:e}})=>e(1))," ",(({theme:{getSize:e}})=>e(.5))," ",(({theme:{getSize:e}})=>e(1)),";border:1px solid ",(({theme:e})=>e.colors.border.normal),";"),b=(0,u.Z)("div",{target:"e10u8qfm2"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.25)),";padding:",(({theme:{getSize:e}})=>e(.75)),";border-left:4px solid #d63638;"),_=(0,u.Z)("div",{target:"e10u8qfm1"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(.5)),";margin:",(({theme:{getSize:e}})=>e(.5))," ",(({theme:{getSize:e}})=>e(.75)),";"),z=(0,u.Z)(m.zx,{target:"e10u8qfm0"})("text-decoration:none!important;margin:",(({theme:{getSize:e}})=>e(-.5))," ",(({theme:{getSize:e}})=>e(.75))," ",(({theme:{getSize:e}})=>e(.5)),"!important;");function D({device:e,viewDeviceDetails:t}){return(0,n.createElement)(y,null,(0,n.createElement)(b,null,(0,n.createElement)(m.xv,{variant:m.rK.DARK,weight:m.fs.HEAVY,text:(0,o.__)("Unrecognized login to your account","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{variant:m.rK.MUTED,text:(0,o.__)("Do you recognize this login?","it-l10n-ithemes-security-pro")})),(0,n.createElement)(_,null,(0,n.createElement)(m.xv,{text:(0,v.dateI18n)("M. j, Y g:i A",e.created_at)}),(0,n.createElement)(w,{device:e})),(0,n.createElement)(z,{icon:x.Z,iconPosition:"right",variant:"link",onClick:()=>{t(e)},text:(0,o.__)("View device details","it-l10n-ithemes-security-pro")}))}function I({userId:e,viewDeviceDetails:t}){const{query:r}=(0,s.useDispatch)(d.trustedDevicesStore);(0,n.useEffect)((()=>{r("alerts",e,{status:["pending","pending-auto-approve"],_fields:["id","status","uses","created_at","last_seen","approved_at","location","ip","browser","browser_version","platform","maps","_links"]})}),[r,e]);const{devices:i,isQuerying:a}=(0,s.useSelect)((e=>({devices:e(d.trustedDevicesStore).getQueryResults("alerts"),isQuerying:e(d.trustedDevicesStore).isQuerying("alerts")})),[]);return(0,n.createElement)(m.Tg,{className:"itsec-fingerprinting-alerts-panel",variant:m.h1.PRIMARY},(0,n.createElement)(p,null,(0,n.createElement)(m.xv,{variant:m.rK.ACCENT,weight:m.fs.HEAVY,text:(0,o.__)("Urgent Login Alert")}),(0,n.createElement)(g,{variant:m.rK.MUTED,text:(0,o.__)("Important notice(s) about an unrecognized device login","it-l10n-ithemes-security-pro")})),!a&&i.length>0&&i.map((e=>(0,n.createElement)(D,{key:e.id,device:e,viewDeviceDetails:t}))),!a&&0===i.length&&(0,n.createElement)(h,null,(0,n.createElement)(m.qX,{text:(0,o.__)("Keep up the good work! There are no unrecognized logins at this time.","it-l10n-ithemes-security-pro")})))}var N=r(65430),S=r(11984);const Z=(0,u.Z)(c.Modal,{target:"ec6q6c915"})(".components-modal__header .components-modal__header-heading{font-size:1rem;line-height:1.5rem;color:",(({theme:e})=>e.colors.text.dark),";}"),k=(0,u.Z)("div",{target:"ec6q6c914"})({name:"1hcxa3x",styles:"display:flex;flex-direction:column;gap:1.25rem;width:480px"}),L=(0,u.Z)("div",{shouldForwardProp:e=>"map"!==e,target:"ec6q6c913"})("height:200px;background-image:",(({map:e})=>`url(${e})`),";background-size:contain;"),q=(0,u.Z)("div",{target:"ec6q6c912"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),O=(0,u.Z)("div",{target:"ec6q6c911"})("display:grid;grid-template-columns:1fr 1fr;grid-template-areas:",(({hasGeolocation:e})=>e?'"location browser" "ip platform"':'"location browser" "platform ."'),";gap:0.75rem 1.25rem;border:1px solid ",(({theme:e})=>e.colors.border.normal),";padding:1rem;"),K=(0,u.Z)("div",{target:"ec6q6c910"})({name:"1sn7lv5",styles:"display:flex;flex-direction:column;gap:0.25rem 0"}),A=(0,u.Z)(m.xv,{target:"ec6q6c99"})({name:"hra6zc",styles:"font-size:0.75rem"}),R=(0,u.Z)(K,{target:"ec6q6c98"})({name:"hd4b1j",styles:"grid-area:location"}),M=(0,u.Z)(K,{target:"ec6q6c97"})({name:"syhiot",styles:"grid-area:ip"}),C=(0,u.Z)(K,{target:"ec6q6c96"})({name:"obt2r0",styles:"grid-area:platform"}),U=(0,u.Z)(K,{target:"ec6q6c95"})({name:"7kk37q",styles:"grid-area:browser"}),P=(0,u.Z)("div",{target:"ec6q6c94"})("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),";}"),T=(0,u.Z)(S.Z,{target:"ec6q6c93"})("width:",(({theme:{getSize:e}})=>e(2)),";"),V=(0,u.Z)("div",{target:"ec6q6c92"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>e(1)),";"),H=(0,u.Z)("div",{target:"ec6q6c91"})("display:flex;gap:",(({theme:{getSize:e}})=>e(.75)),";& button{width:50%;}"),F=(0,u.Z)(m.zx,{target:"ec6q6c90"})({name:"a87kab",styles:"box-shadow:none!important;&:hover{box-shadow:inset 0 0 0 1px #545454!important;}"});function Y({device:e,hasGeolocation:t}){return(0,n.createElement)(O,{hasGeolocation:t},(0,n.createElement)(R,null,(0,n.createElement)(A,{variant:m.rK.MUTED,text:e.location?(0,o.__)("Location","it-l10n-ithemes-security-pro"):(0,o.__)("IP","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{variant:m.rK.DARK,weight:m.fs.HEAVY,text:e.location?e.location:e.ip})),(0,n.createElement)(U,null,(0,n.createElement)(A,{variant:m.rK.MUTED,text:(0,o.__)("Browser","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{variant:m.rK.DARK,weight:m.fs.HEAVY,text:(0,o.sprintf)((0,o.__)("%1$s (%2$s)","it-l10n-ithemes-security-pro"),e.browser,e.browser_version)})),t&&(0,n.createElement)(M,null,(0,n.createElement)(A,{variant:m.rK.MUTED,text:(0,o.__)("IP","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{variant:m.rK.DARK,weight:m.fs.HEAVY,text:e.ip})),(0,n.createElement)(C,null,(0,n.createElement)(A,{variant:m.rK.MUTED,text:(0,o.__)("Platform","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{variant:m.rK.DARK,weight:m.fs.HEAVY,text:e.platform})))}function B({device:e,updateDevice:t}){return(0,n.createElement)(V,null,(0,n.createElement)(H,null,(0,n.createElement)(m.zx,{variant:"secondary",isDestructive:!0,onClick:()=>t(e,"denied"),text:(0,o.__)("No, secure account","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.zx,{variant:"secondary",onClick:()=>t(e,"approved"),text:(0,o.__)("Yes, it was me","it-l10n-ithemes-security-pro")})),(0,n.createElement)(F,{variant:"muted",onClick:()=>t(e,"ignored"),text:(0,o.__)("Ignore","it-l10n-ithemes-security-pro")}))}function G({device:e,onClose:t,updateDevice:r,usesRestrict:i}){const a=e.location,c=e.maps;return(0,n.createElement)(Z,{title:(0,o.__)("We noticed an unrecognized login on another device. Do you recognize this login?"),onRequestClose:t},(0,n.createElement)(k,null,c&&(0,n.createElement)(L,{map:e.maps.small}),(0,n.createElement)(q,null,(0,n.createElement)(m.xv,{size:m.yH.LARGE,variant:m.rK.DARK,weight:m.fs.HEAVY,text:a?(0,o.sprintf)((0,o.__)("Unrecognized login near %s","it-l10n-ithemes-security-pro"),e.location):(0,o.__)("Unrecognized login","it-l10n-ithemes-security-pro")}),(0,n.createElement)(m.xv,{text:(0,v.dateI18n)("M. j, Y g:i a",e.created_at)})),(0,n.createElement)(Y,{device:e,hasGeolocation:a}),(0,n.createElement)(m.xv,{variant:m.rK.MUTED,text:(0,o.__)("Confirm whether or not you recognize this device.","it-l10n-ithemes-security-pro")}),(0,n.createElement)(P,null,(0,n.createElement)(T,{icon:N.Z,fill:"#ffc518"}),i?(0,n.createElement)(m.xv,{as:"p"},(0,n.createInterpolateElement)((0,o.__)("If you choose to ignore this notice the device will continue to have access to your account. Learn more about the Trusted Device here.","it-l10n-ithemes-security-pro"),{a:(0,n.createElement)("a",{href:"https://go.solidwp.com/about-trusted-devices",style:{display:"inline-block"}})})):(0,n.createElement)(m.xv,{as:"p"},(0,n.createInterpolateElement)((0,o.__)("If you choose to ignore this notice the device will continue to have access to your account but with limited capabilities and restricted access. Learn more about the Trusted Device here.","it-l10n-ithemes-security-pro"),{a:(0,n.createElement)("a",{href:"https://go.solidwp.com/about-trusted-devices",style:{display:"inline-block"}})}))),(0,n.createElement)(B,{device:e,updateDevice:r})))}const Q=(0,u.Z)(c.SnackbarList,{target:"e19rbbx01"})({name:"xx8zkt",styles:"position:absolute;top:10px;body>&{top:40px;left:20px;}"}),$=(0,u.Z)("span",{target:"e19rbbx00"})({name:"9gxvqt",styles:"display:flex;gap:4px;align-items:center"}),j=()=>(0,n.createElement)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)("path",{d:"M8.01302 13.8333C10.9585 13.8333 13.3464 11.4455 13.3464 8.49996C13.3464 5.55444 10.9585 3.16663 8.01302 3.16663C5.0675 3.16663 2.67969 5.55444 2.67969 8.49996C2.67969 11.4455 5.0675 13.8333 8.01302 13.8333Z",fill:"#D63638",stroke:"#D63638"}),(0,n.createElement)("path",{d:"M8.68099 5.16663H7.34766V9.16663H8.68099V5.16663Z",fill:"#FBF9FF"}),(0,n.createElement)("path",{d:"M8.68099 10.5H7.34766V11.8333H8.68099V10.5Z",fill:"#FBF9FF"}));function W({noticesEl:e,userId:t,blockedUrl:r,usesRestrict:i,showNotice:a}){const[u,p]=(0,n.useState)(!1),[g,h]=(0,n.useState)(null),{createNotice:v}=(0,s.useDispatch)(l.store),{saveItem:x,refreshQuery:E}=(0,s.useDispatch)(d.trustedDevicesStore),{snackbarNotices:f}=(0,s.useSelect)((e=>({snackbarNotices:e(l.store).getNotices("ithemes-security-device-alerts")})),[]),{removeNotice:w}=(0,s.useDispatch)(l.store);return(0,n.createElement)(m.fC,{theme:m.U1},(0,n.createElement)(c.Button,{className:"ab-item ab-empty-item",onClick:()=>p(!u),"aria-expanded":u},(0,n.createElement)($,null,(0,o.__)("Login Alerts","it-l10n-ithemes-security-pro"),a&&(0,n.createElement)(c.Icon,{icon:j}))),u&&(0,n.createElement)(c.Popover,{noArrow:!0,expandOnMobile:!0,focusOnMount:"container",position:"bottom center",headerTitle:(0,o.__)("Login Alerts","it-l10n-ithemes-security-pro"),onClose:()=>p(!1),onFocusOutside:()=>p(!1)},(0,n.createElement)(I,{onClose:()=>p(!1),viewDeviceDetails:e=>{h(e),p(!1)},userId:t})),g&&(0,n.createElement)(G,{device:g,onClose:()=>h(null),updateDevice:(e,t)=>{x({...e,status:{raw:t}}),"ignored"===t&&v("success",(0,o.__)("Device ignored","it-l10n-ithemes-security-pro"),{type:"snackbar",context:"ithemes-security-device-alerts"}),"approved"===t&&v("success",(0,o.__)("Device approved","it-l10n-ithemes-security-pro"),{type:"snackbar",context:"ithemes-security-device-alerts"}),"denied"===t&&(window.location=r),h(null),p(!1),E("alerts")},usesRestrict:i}),(0,n.createPortal)((0,n.createElement)(Q,{notices:f,onRemove:e=>w(e,"ithemes-security")}),e))}function J({portalEl:e,noticesEl:t,userId:r,blockedUrl:i,usesRestrict:a,showNotice:o}){return(0,n.createElement)(c.SlotFillProvider,null,(0,n.createPortal)((0,n.createElement)(c.Popover.Slot,null),e),(0,n.createElement)(W,{noticesEl:t,userId:r,blockedUrl:i,usesRestrict:a,showNotice:o}))}r.p=window.itsecWebpackPublicPath,(0,o.setLocaleData)({"":{}},"ithemes-security-pro"),a()((()=>{var e;const t=document.getElementById("wp-admin-bar-itsec_fingerprinting_login_alerts"),r=document.getElementById("itsec-fingerprinting-alerts-root"),i=null!==(e=document.getElementById("wpbody"))&&void 0!==e?e:document.body;t&&r&&(0,n.render)((0,n.createElement)(J,{portalEl:r,noticesEl:i,userId:Number.parseInt(r.dataset.user,10),blockedUrl:r.dataset.resetUrl,usesRestrict:r.dataset.usesRestrict,showNotice:"1"===r.dataset.showNotice}),t)}))},11984:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(6293);const i=function({icon:e,size:t=24,...r}){return(0,n.cloneElement)(e,{width:t,height:t,...r})}},63708:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(6293),i=r(14776);const a=(0,n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(i.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}))},65430:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(6293),i=r(14776);const a=(0,n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.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}()},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}()},25703:e=>{e.exports=function(){return this.wp.notices}()},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}},e=>{e.O(0,[3173],(()=>(79216,e(e.s=79216))));var t=e.O();((window.itsec=window.itsec||{}).fingerprinting=window.itsec.fingerprinting||{}).alerts=t}]);