PageSourceSearch

https://codecombat.com/javascripts/chunks/lowUsageUsersAdmin-1d2017d23247d0827a5e.bundle.js

js codecombat.com collected 2026-10-01 08:39:35 UTC 30,229 bytes, 3 lines download raw bytes

1/*! For license information please see lowUsageUsersAdmin-1d2017d23247d0827a5e.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunkcodecombat=self.webpackChunkcodecombat||[]).push([[1222],{843772:t=>{function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var n=window.moment;t.exports={isMarkedDone:function(t){var o,a=function(t){if(Array.isArray(t))return r(t)}(o=t.actions||[])||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||e(o)||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.")}();a.reverse();var i,s=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=e(t))){n&&(t=n);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}(a);try{for(s.s();!(i=s.n()).done;){var c=i.value;if("undo-done"===c.name)return!1;if("done"===c.name)return n(c.date).isAfter(n().subtract(1,"month"))}}catch(t){s.e(t)}finally{s.f()}return!1}}},106741:(t,e,r)=>{Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var n,o=(n=r(42348))&&n.__esModule?n:{default:n};e.Z={name:"DataComponent",components:{DataItemComponent:o.default},props:{users:{type:Array,default:function(){return[]}}}}},830761:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var o=r(760185);function a(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(){s=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),s=new U(n||[]);return a(i,"_invoke",{value:C(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v="suspendedStart",y="executing",p="completed",m={};function g(){}function w(){}function _(){}var b={};f(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(A([])));k&&k!==r&&o.call(k,c)&&(b=k);var S=_.prototype=g.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(a,i,s,c){var u=d(t[a],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=v;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=p,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,378 bytes, line 2
2(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=d(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=_,a(S,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},L(D.prototype),f(D.prototype,u,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new D(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(S),f(S,l,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function c(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}
2e.Z={name:"DataDetailsComponent",props:{user:{type:Object,default:function(){}}},data:function(){return{loading:!1,cocoData:null,ozData:null}},watch:{showDetails:function(t){t&&this.fetchDetails()}},created:function(){this.fetchDetails()},methods:{fetchDetails:function(){var t,e=this;return(t=s().mark((function t(){var r,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(r=[]).push((0,o.getLowUsageData)(e.user.userId)),r.push((0,o.getLowUsageData)(e.user.userId,{callOz:!0})),t.next=6,Promise.allSettled(r);case 6:"fulfilled"===(n=t.sent)[0].status?e.cocoData=n[0].value.data:noty({text:"Failed to load Coco data",type:"error",layout:"center",timeout:3e3}),"fulfilled"===n[1].status?e.ozData=n[1].value.data:noty({text:"Failed to load Oz data",type:"error",layout:"center",timeout:3e3}),e.loading=!1;case 10:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){c(a,n,o,i,s,"next",t)}function s(t){c(a,n,o,i,s,"throw",t)}i(void 0)}))})()},formatData:function(t){var e,r,n,o,s=[];if(!t)return s;for(var c=0,u=Object.entries(t);c<u.length;c++){var l=(e=u[c],r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,r)||a(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],h=l[1];["lastLicenseApplied","lastVisitedSite","lastClickedToolkit","lastClickedCourseGuide"].includes(f)?s.push({key:f,value:h?new Date(h).toDateString():"-"}):s.push({key:f,value:h||"-"})}return[].concat(s,function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(t)||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.")}()}((o=[],null!=(n=this.user.licenseInfo)&&n.startDate&&o.push({key:"License Start Date",value:new Date(n.startDate).toDateString()}),null!=n&&n.endDate&&o.push({key:"License End Date",value:new Date(n.endDate).toDateString()}),o)))}}}},129702:(t,e,r)=>{Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var n,o=r(843772),a=(n=r(284962))&&n.__esModule?n:{default:n};e.Z={name:"DataItemComponent",components:{DataDetailsComponent:a.default},props:{user:{type:Object,default:function(){}},index:{type:Number,default:0}},data:function(){return{showDetails:!1,loading:!1}},methods:{dateString:function(t){return new Date(t).toLocaleString()},licensesString:function(t){return"".concat(null==t?void 0:t.redeemers," / ").concat(null==t?void 0:t.maxRedeemers)},isUserMarkedDone:function(t){return(0,o.isMarkedDone)(t)},foundOnString:function(t){var e=t.logs,r=e[e.length-1];return this.dateString(r.date)}}}},167075:(t,e)=>{Object.defineProperty(e,"X",{value:!0}),e.Z=void 0,e.Z={name:"FilterComponent",data:function(){return{search:"",showDone:!1,showSorted:!1}},watch:{showDone:function(t,e){t!==e&&this.$emit("show-done",t)},showSorted:function(t,e){t!==e&&this.$emit("show-sort",t)}},methods:{onUserSearch:function(){this.$emit("user-search",this.search)}}}},516098:(t,e,r)=>{Object.defineProperty(e,"X",{value:!0}),e.Z=void 0;var n=s(r(721784)),o=s(r(573143)),a=r(420629),i=r(843772);function s(t){return t&&t.__esModule?t:{default:t}}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),s=new U(n||[]);return o(i,"_invoke",{value:C(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v="suspendedStart",y="executing",p="completed",m={};function g(){}function w(){}function _(){}var b={};f(b,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(A([])));k&&k!==r&&n.call(k,i)&&(b=k);var S=_.prototype=g.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(o,a,i,s){var u=d(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function C(e,r,n){var o=v;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===p){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=p,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,793 bytes, line 2
2(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=d(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(c(e)+" is not iterable")}return w.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},L(D.prototype),f(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new D(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(S),f(S,l,"Generator"),f(S,i,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function l(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?h(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.Z={name:"MainDashboardView",components:{DataComponent:n.default,FilterComponent:o.default},data:function(){return{showDone:!1,showSorted:!1,search:""}},computed:d(d({},(0,a.mapGetters)({lowUsageUsers:"lowUsageUsers/getLowUsageUsers"})),{},{filteredLowUsageUsers:function(){var t,e=this,r=function(t){if(Array.isArray(t))return f(t)}(t=this.lowUsageUsers)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||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.")}();return this.showSorted&&r.sort((function(t,e){return e.licenseInfo.maxRedeemers-t.licenseInfo.maxRedeemers})),r=this.showDone?r.filter((function(t){return(0,i.isMarkedDone)(t)})):r.filter((function(t){return!(0,i.isMarkedDone)(t)})),this.search&&(r=this.search.includes("@")?r.filter((function(t){return t.email===e.search})):r.filter((function(t){return t.userId===e.search}))),r}}),created:function(){var t,e=this;return(t=u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchLowUsageUsers();case 2:console.log("low-usage-users",e.lowUsageUsers);case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){l(a,n,o,i,s,"next",t)}function s(t){l(a,n,o,i,s,"throw",t)}i(void 0)}))})()},methods:d(d({},(0,a.mapActions)({fetchLowUsageUsers:"lowUsageUsers/fetchLowUsageUsers",addAction:"lowUsageUsers/addActionToUser"})),{},{onShowDone:function(t){this.showDone=t},onShowSorted:function(t){this.showSorted=t},onUserSearch:function(t){this.search=t},onMarkDone:function(t){var e=this.lowUsageUsers.find((function(e){return e.userId===t}))._id;this.addAction({lowUsageUserId:e,action:"done"})},onUndoDone:function(t){var e=this.lowUsageUsers.find((function(e){return e.userId===t}))._id;this.addAction({lowUsageUserId:e,action:"undo-done"})}})}},17112:(t,e)=>{e.xk=e.sY=void 0,e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data"},[t._m(0),t._v(" "),t._l(t.users,(function(r,n){return e("div",{key:r._id,staticClass:"data-element"},[e("data-item-component",{attrs:{user:r,index:n},on:{"mark-done":function(e){return t.$emit("mark-done",r.userId)},"undo-done":function(e){return t.$emit("undo-done",r.userId)}}}
2)],1)}))],2)},e.xk=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"data__headers"},[e("div",{staticClass:"header"},[t._v("\n      Last Found on\n    ")]),t._v(" "),e("div",{staticClass:"header header__mid"},[t._v("\n      User\n    ")]),t._v(" "),e("div",{staticClass:"header header__criteria"},[t._v("\n      Criterias\n    ")]),t._v(" "),e("div",{staticClass:"header"},[t._v("\n      Licenses "),e("p",{staticClass:"header__sub"},[t._v("\n        (used / available)\n      ")])]),t._v(" "),e("div",{staticClass:"header"},[t._v("\n      Location\n    ")]),t._v(" "),e("div",{staticClass:"header header__small"},[t._v("\n      Mark\n    ")]),t._v(" "),e("div",{staticClass:"header header__small"},[t._v("\n      Actions\n    ")])])}]},608445:(t,e)=>{e.xk=e.sY=void 0,e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"details"},[t.loading?e("div",{staticClass:"loading"},[t._v("\n    Loading...\n  ")]):e("div",{staticClass:"details__data"},[e("div",{staticClass:"coco"},[e("h2",{staticClass:"coco__heading"},[t._v("\n        Coco\n      ")]),t._v(" "),t._l(t.formatData(t.cocoData),(function(r){return e("div",{key:r.key,staticClass:"item"},[e("div",{staticClass:"item__key"},[t._v("\n          "+t._s(r.key)+":\n        ")]),t._v(" "),e("div",{staticClass:"item__value"},[t._v("\n          "+t._s(r.value)+"\n        ")])])}))],2),t._v(" "),e("div",{staticClass:"oz"},[e("h2",{staticClass:"oz__heading"},[t._v("\n        Oz\n      ")]),t._v(" "),t._l(t.formatData(t.ozData),(function(r){return e("div",{key:r.key,staticClass:"item"},[e("div",{staticClass:"item__key"},[t._v("\n          "+t._s(r.key)+":\n        ")]),t._v(" "),e("div",{staticClass:"item__value"},[t._v("\n          "+t._s(r.value)+"\n        ")])])}))],2)])])},e.xk=[]},227037:(t,e)=>{e.xk=e.sY=void 0,e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"data-item"},[e("div",{staticClass:"item"},[e("div",{staticClass:"item__date"},[t._v("\n      "+t._s(t.index+1)+".  "+t._s(t.foundOnString(t.user))+"\n    ")]),t._v(" "),e("div",{staticClass:"item__user item__mid"},[t._v("\n      "+t._s(t.user.email||t.user.userId)+"\n    ")]),t._v(" "),e("div",{staticClass:"item__criterias"},[t._v("\n      "+t._s(t.user.criterias.join(", "))+"\n    ")]),t._v(" "),e("div",{staticClass:"item__licenses"},[t._v("\n      "+t._s(t.licensesString(t.user.licenseInfo))+"\n    ")]),t._v(" "),e("div",{staticClass:"item__location"},[t._v("\n      "+t._s(t.user.country)+" - "+t._s(t.user.state)+"\n    ")]),t._v(" "),e("div",{staticClass:"item__done item__small"},[t.isUserMarkedDone(t.user)?e("button",{staticClass:"btn btn-warning",on:{click:function(e){return t.$emit("undo-done",t.user.userId)}}},[t._v("\n        Undo done\n      ")]):e("button",{staticClass:"btn btn-success",on:{click:function(e){return t.$emit("mark-done",t.user.userId)}}},[t._v("\n        Mark done\n      ")])]),t._v(" "),e("button",{staticClass:"item__actions btn btn-primary item__small",on:{click:function(e){t.showDetails=!t.showDetails}}},[t._v("\n      "+t._s(t.showDetails?"Hide":"Details")+"\n    ")])]),t._v(" "),t.showDetails?e("data-details-component",{attrs:{user:t.user}}):t._e()],1)},e.xk=[]},99646:(t,e)=>{e.xk=e.sY=void 0,e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"filters"},[e("div",{staticClass:"filter"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"filter__user form-control",attrs:{type:"text",placeholder:"User email/id"},domProps:{value:t.search},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onUserSearch.apply(null,arguments)},input:function(e){e.target.composing||(t.search=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"filter"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.showDone,expression:"showDone"}],staticClass:"filter__done",attrs:{id:"filter-done",type:"checkbox"},domProps:{checked:Array.isArray(t.showDone)?t._i(t.showDone,null)>-1:t.showDone},on:{change:function(e){var r=t.showDone,n=e.target,o=!!n.checked;if(Array.isArray(r)){var a=t._i(r,null);n.checked?a<0&&(t.showDone=r.concat([null])):a>-1&&(t.showDone=r.slice(0,a).concat(r.slice(a+1)))}else t.showDone=o}}}),t._v(" "),e("label",{attrs:{for:"filter-done"}},[t._v("Marked as done")])]),t._v(" "),e("div",{staticClass:"filter"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.showSorted,expression:"showSorted"}],staticClass:"filter__done",attrs:{id:"filter-sort",type:"checkbox"},domProps:{checked:Array.isArray(t.showSorted)?t._i(t.showSorted,null)>-1:t.showSorted},on:{change:function(e){var r=t.showSorted,n=e.target,o=!!n.checked;if(Array.isArray(r)){var a=t._i(r,null);n.checked?a<0&&(t.showSorted=r.concat([null])):a>-1&&(t.showSorted=r.slice(0,a).concat(r.slice(a+1)))}else t.showSorted=o}}}),t._v(" "),e("label",{attrs:{for:"filter-sort"}},[t._v("Sort by licenses")])])])},e.xk=[]},577834:(t,e)=>{e.xk=e.sY=void 0,e.sY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"low-usage"},[e("h1",{staticClass:"low-usage__title"},[t._v("\n    Low Usage Users\n  ")]),t._v(" "),e("filter-component",{on:{"show-done":t.onShowDone,"user-search":t.onUserSearch,"show-sort":t.onShowSorted}}),t._v(" "),e("div",{staticClass:"count"},[t._v("\n    "+t._s(t.filteredLowUsageUsers.length)+" users found\n  ")]),t._v(" "),e("data-component",{attrs:{users:t.filteredLowUsageUsers},on:{"mark-done":t.onMarkDone,"undo-done":t.onUndoDone}})],1)},e.xk=[]},721784:(t,e,r)=>{r.r(e),r.d(e,{__esModule:()=>
2o.X,default:()=>i});var n=r(17112),o=r(106741);const a=o.Z,i=(0,r(551900).Z)(a,n.sY,n.xk,!1,null,"7d3c0c8d",null).exports},284962:(t,e,r)=>{r.r(e),r.d(e,{__esModule:()=>o.X,default:()=>i});var n=r(608445),o=r(830761);const a=o.Z,i=(0,r(551900).Z)(a,n.sY,n.xk,!1,null,"b5eb837a",null).exports},42348:(t,e,r)=>{r.r(e),r.d(e,{__esModule:()=>o.X,default:()=>i});var n=r(227037),o=r(129702);const a=o.Z,i=(0,r(551900).Z)(a,n.sY,n.xk,!1,null,"2574383d",null).exports},573143:(t,e,r)=>{r.r(e),r.d(e,{__esModule:()=>o.X,default:()=>i});var n=r(99646),o=r(167075);const a=o.Z,i=(0,r(551900).Z)(a,n.sY,n.xk,!1,null,"5248ae19",null).exports},162532:(t,e,r)=>{r.r(e),r.d(e,{__esModule:()=>o.X,default:()=>i});var n=r(577834),o=r(516098);const a=o.Z,i=(0,r(551900).Z)(a,n.sY,n.xk,!1,null,"a6fa14fe",null).exports}}]);
3//# sourceMappingURL=lowUsageUsersAdmin-1d2017d23247d0827a5e.bundle.js.map

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.