/** * skills-service-manager - Skills Services Manager * @version v4.0.6 * @license Copyright (c) 2017, Jibo, Inc. All rights reserved. * All use of the Jibo SDK is subject to the Jibo SDK End User License Agreement (EULA) * distributed herewith. If you did not receive a copy of the EULA, you may view a * copy at https://developers.jibo.com/license. */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.index=e()}}(function(){return function e(t,r,n){function o(l,d){if(!r[l]){if(!t[l]){var s="function"==typeof require&&require;if(!d&&s)return s(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var a=r[l]={exports:{}};t[l][0].call(a.exports,function(e){var r=t[l][1][e];return o(r?r:e)},a,a.exports,e,t,r,n)}return r[l].exports}for(var i="function"==typeof require&&require,l=0;l0;this.sendMockCodes(o)},moveLeft:function(){for(var e=document.getElementById("right"),t=0;t0;this.sendMockCodes(o)},moveAllRight:function(){for(var e=document.getElementById("left");e.childNodes.length>0;)document.getElementById("right").appendChild(e.firstChild.cloneNode(!0)),e.removeChild(e.firstChild);var t=$("#right").children().sort(this.sortById);$("#right").html(t),this.selectError();var r=t.length>0;this.sendMockCodes(r)},moveAllLeft:function(){for(var e=document.getElementById("right");e.childNodes.length>0;)document.getElementById("left").appendChild(e.firstChild.cloneNode(!0)),e.removeChild(e.firstChild);var t=$("#left").children().sort(this.sortById);$("#left").html(t),this.selectError();var r=e.childNodes.length>0;this.sendMockCodes(r)},render:function(){var e=[];this._errorKeys.sort();for(var t=0;t>",onClick:this.moveAllRight}),React.createElement("input",{type:"button",value:">",onClick:this.moveRight})),React.createElement("td",null,React.createElement("text",null,"Active Errors"),React.createElement("br",null),React.createElement("select",{multiple:"multiple",id:"right",style:{height:500,width:300},onChange:this.selectError}))))),React.createElement("div",{id:"error-info"},this._selectedErrorInfos));return n},selectError:function(){this._selectedErrorInfos=[];var e=$("#error-info");e.innerHTML="",this.displayErrorInfoForSelectedElements(document.getElementById("left")),this.displayErrorInfoForSelectedElements(document.getElementById("right")),this._selectedErrorInfos.sort(this.sortById)},displayErrorInfoForSelectedElements:function(e){for(var t=0;t