You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.6 MiB

!function(e){function t(i){if(s[i])return s[i].exports;var a=s[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var s={};t.m=e,t.c=s,t.i=function(e){return e},t.d=function(e,s,i){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=62)}([function(e,t,s){"use strict";e.exports=s(56)},function(e,t,s){"use strict";function i(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}i(),e.exports=s(50)},function(e,t,s){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var n=s(0),r=s.n(n),l=s(6),p=(s.n(l),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),c=function(){function e(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,s,i){return s&&e(t.prototype,s),i&&e(t,i),t}}(),d=function(e){function t(){var e,s,o,n;i(this,t);for(var r=arguments.length,l=Array(r),p=0;p<r;p++)l[p]=arguments[p];return s=o=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.ui={name:"Имя",category:"Категория:",versions:"Доступные версии",uses:" USE:",decription:"Описание:",site:"Сайт:",InstallButton:{text:"Установить"}},o.IntstallPackageParamms={NamePackage:o.props.PackageName.Name,Version:"",USE:[]},n=s,a(o,n)}return o(t,e),c(t,[{key:"addUse",value:function(e){if("#0F0"===document.getElementById(e).style.background||"rgb(0, 255, 0)"===document.getElementById(e).style.background){document.getElementById(e).style.background="#FFF";for(var t=0;t<this.IntstallPackageParamms.USE.length;t++)this.IntstallPackageParamms.USE[t]===e&&delete this.IntstallPackageParamms.USE[1]}else document.getElementById(e).style.background="#0F0",this.IntstallPackageParamms.USE[this.IntstallPackageParamms.USE.length+1]=e;console.log(this.IntstallPackageParamms)}},{key:"addVersion",value:function(e){console.log(void 0===e?"undefined":p(e)),""!==this.IntstallPackageParamms.Version?this.IntstallPackageParamms.Version!==e?(document.getElementById(this.IntstallPackageParamms.Version).style.background="#FFF",this.IntstallPackageParamms.Version=e,document.getElementById(e).style.background=document.getElementById(e).style.border.split("2px solid")[1]):(document.getElementById(this.IntstallPackageParamms.Version).style.background="#FFF",this.IntstallPackageParamms.Version=""):(this.IntstallPackageParamms.Version=e,document.getElementById(e).style.background=document.getElementById(e).style.border.split("2px solid")[1],console.log(this.IntstallPackageParamms))}},{key:"checkVersion",value:function(e){var t=this;return console.log(),""===e.split("[U]")[1]?r.a.createElement("span",{key:e,id:e.split("[U]")[0],style:{border:" 2px solid #0F0",marginLeft:"5px"},onClick:function(){return t.addVersion(e.split("[U]")[0])}},e.split("[U]")[0]):r.a.createElement("span",{key:e,id:e.split("[M]")[0],style:{border:"2px solid #F00",marginLeft:"5px"},onClick:function(){return t.addVersion(e.split("[M]")[0])}},e.split("[M]")[0])}},{key:"VuseInfo",value:
//# sourceMappingURL=main.fe665012.js.map