1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9535],{23190:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/linkeddevice",function(){return n(40257)}])},40257:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return u}});var r=n(85893),a=n(67294),s=n(9473),t=n(96293),c=n(11163),l=n(64660);function o(e,i){(null==i||i>e.length)&&(i=e.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=e[n];return r}function d(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,i){if(!e)return;if("string"===typeof e)return o(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,i)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(){var e=(0,c.useRouter)(),i=(0,s.I0)(),n=(0,s.v9)((function(e){var i;return null===e||void 0===e||null===(i=e.login)||void 0===i?void 0:i.profileData})),o=(0,s.v9)((function(e){var i;return null===e||void 0===e||null===(i=e.login)||void 0===i?void 0:i.loginData})),u=localStorage.getItem("deviceId"),v=d((null===n||void 0===n?void 0:n.devices)||[]).sort((function(e,i){return e.deviceId===u&&i.deviceId!==u?-1:i.deviceId===u&&e.deviceId!==u?1:new Date(i.lastLogin).getTime()-new Date(e.lastLogin).getTime()})),f=function(){try{(0,l._)(!0),o&&i((0,t.sj)(e,o,"LoggedinDevices"))}catch(n){console.log(n)}finally{(0,l._)(!1)}};return(0,a.useEffect)((function(){f()}),[]),(0,r.jsx)("main",{className:"page__main profile-page",children:(0,r.jsxs)("div",{className:"container container--wide",children:[(0,r.jsx)("header",{className:"profile-head",children:(0,r.jsxs)("div",{className:"page-head__row",children:[(0,r.jsx)("button",{type:"button",className:"page-back icon-btn icon-btn--filled","aria-label":"Back to dashboard",onClick:function(){return e.push("/dashboard")},children:(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m14.5 5-7 7 7 7"})})}),(0,r.jsxs)("div",{className:"profile-head__copy",children:[(0,r.jsx)("h1",{children:"Logged in devices"}),(0,r.jsx)("p",{children:"Manage and secure your account sessions"})]})]})}),(0,r.jsx)("article",{className:"card profile-card",children:(0,r.jsxs)("div",{className:"profile-devices",children:[(0,r.jsx)("button",{type:"button",className:"profile-devices__refresh",onClick:f,title:"Refresh","aria-label":"Refresh devices",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M20 11a8 8 0 1 0-2.34 5.66M20 11h-5M20 11v5"})})}),(0,r.jsxs)("div",{className:"profile-devices__list custom-scroll",children:[v.map((function(e){return(0,r.jsx)("div",{className:"profile-devices__item",children:(0,r.jsxs)("div",{className:"profile-devices__body",children:[(0,r.jsxs)("div",{className:"profile-devices__head",children:[(0,r.jsx)("h6",{className:"profile-devices__name",children:e.deviceName}),e.deviceId===u?(0,r.jsx)("span",{className:"profile-devices__badge is-current",children:"Current device"}):(0,r.jsx)("span",{className:"profile-devices__badge",children:"Other device"})]}),(0,r.jsxs)("p",{className:"profile-devices__meta",children:[e.os," \u2022 ",e.browser]}),(0,r.jsxs)("p",{className:"profile-devices__last",children:["Last active:"," ",(0,r.jsx)("span",{children:new Date(e.lastLogin).toLocaleString()})]})]})},e.deviceId)})),0===v.length&&(0,r.jsx)("p",{className:"profile-devices__empty",children:"No active devices found"})]})]})})]})})}}},function(e){e.O(0,[9774,2888,179],(function(){return i=23190,e(e.s=i);var i}));var i=e.O();_N_E=i}]);
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.