{"version":3,"sources":["https:\/\/immet-dist.spbstu.ru\/theme\/mooc\/amd\/src\/skintool.js"],"names":["define","$","Ajax","setLiveColor","color","getContnet","search","html","length","append"],"mappings":"AAcA,aAEAA,OAAO,CAAC,SAAU,aAAc,SAAUC,EAAGC,GAiI3C,MAAO,CACLC,aAvFF,SAAsBC,EAAOC,GACP,iBAATD,IAA2C,GAAtBA,EAAME,OAAO,OAC3CF,EAAQ,IAAMA,GAGhB,IAAIG,EAAO,2NAAuOH,EAAQ,2NAAiPA,EAAQ,+NAAqPA,EAAQ,eAEhvB,GAAkB,GAAdC,EACF,OAAOE,EAGqB,GAA1BN,EAAE,cAAcO,QAClBP,EAAE,QAAQQ,OAAO,kCAGnBR,EAAE,cAAcM,KAAKA","sourcesContent":["\/\/ This file is part of Moodle - http:\/\/moodle.org\/\n\/\/\n\/\/ Moodle is free software: you can redistribute it and\/or modify\n\/\/ it under the terms of the GNU General Public License as published by\n\/\/ the Free Software Foundation, either version 3 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ Moodle is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\/\/ GNU General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU General Public License\n\/\/ along with Moodle. If not, see .\n\"use strict\";\ndefine([\n 'jquery',\n 'core\/ajax'\n], function(\n $,\n Ajax,\n) {\n const DEFAULTHEX = '62a8ea';\n let colorhex;\n const COLORTOHEX = [\n {color: 'primary', hex: '62a8ea'},\n {color: 'brown', hex: '8d6658'},\n {color: 'cyan', hex: '57c7d4'},\n {color: 'green', hex: '46be8a'},\n {color: 'grey', hex: '757575'},\n {color: 'indigo', hex: '677ae4'},\n {color: 'orange', hex: 'f2a654'},\n {color: 'pink', hex: 'f96197'},\n {color: 'purple', hex: '926dde'},\n {color: 'red', hex: 'f96868'},\n {color: 'teal', hex: '3aa99e'}\n ];\n\n \/**\n * Set live color to element having primary color\n * @param {String} color Color hex\n * @param {Boolean} getContnet Get content instead of putting in script\n *\/\n function setLiveColor(color, getContnet) {\n if (typeof color == 'String' && color.search('#') == -1) {\n color = '#' + color;\n }\n var html = '.navbar-brand, .nav-inverse, #page-footer, .bg-primary, .btn-primary, .td.today, .form-submit, ' +\n '.page-aside-switch, table.dataTable thead th, table.dataTable tfoot th, .page-item.active .page-link {' +\n ' background-color: ' + color + ' !important;' +\n '}' +\n '.btn-primary, .nav-tabs .nav-link.active, .checkbox-custom input[type=checkbox]:checked+label::before, ' +\n '.radio-custom input[type=radio]:checked+label::before, .page-item.active .page-link {' +\n ' border-color: ' + color + ' !important;' +\n '}' +\n '.text-primary, .nav-tabs .nav-link.active, .nav-tabs .nav-link.active .fa, [data-region=\"drawer\"]:not(.dark) ' +\n '.list-group-item.active, [data-region=\"drawer\"]:not(.dark) .list-group-item.active .icon {' +\n ' color: ' + color + ' !important' +\n '}';\n\n if (getContnet == true) {\n return html;\n }\n if ($('#livecolor').length == 0) {\n $('body').append('