"use strict";!function(e){ko.applyBindings(new function(){var i=this;i.users=ko.observableArray(),i.query=ko.observable(""),i.edit=function(e){var i=encodeURIComponent(e.uname);window.location="../../admin/users/edit?uname="+i},i.accounts=ko.computed((function(){var e=i.query().toLowerCase();return e?ko.utils.arrayFilter(i.users(),(function(i){return i.fullname.toLowerCase().indexOf(e)>=0})):i.users()})),e.getJSON("../../admin/users/list",(function(n){e.map(n,(function(e,i){e.image=e.image?"../../uploads/"+e.image:"../../img/avatar.png",e.imuri=null,/Skype/i.test(e.imtype)&&(e.imuri="skype:"+e.imname+"?call"),/iMessage/i.test(e.imtype)&&(e.imuri="imessage:"+e.imname),/GTalk/i.test(e.imtype)&&(e.imuri="gtalk:chat?jid="+e.imname)})),i.users(n)})).fail(MMONIT.error.json)})}(jQuery);