2020-06-10 16:16:33 +02:00
|
|
|
module.exports =
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {};
|
|
|
|
/******/
|
|
|
|
/******/ // The require function
|
|
|
|
/******/ function __webpack_require__(moduleId) {
|
|
|
|
/******/
|
|
|
|
/******/ // Check if module is in cache
|
|
|
|
/******/ if(installedModules[moduleId]) {
|
|
|
|
/******/ return installedModules[moduleId].exports;
|
|
|
|
/******/ }
|
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
|
/******/ var module = installedModules[moduleId] = {
|
|
|
|
/******/ i: moduleId,
|
|
|
|
/******/ l: false,
|
|
|
|
/******/ exports: {}
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Execute the module function
|
|
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
|
|
/******/
|
|
|
|
/******/ // Flag the module as loaded
|
|
|
|
/******/ module.l = true;
|
|
|
|
/******/
|
|
|
|
/******/ // Return the exports of the module
|
|
|
|
/******/ return module.exports;
|
|
|
|
/******/ }
|
|
|
|
/******/
|
|
|
|
/******/
|
|
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
|
|
/******/ __webpack_require__.m = modules;
|
|
|
|
/******/
|
|
|
|
/******/ // expose the module cache
|
|
|
|
/******/ __webpack_require__.c = installedModules;
|
|
|
|
/******/
|
|
|
|
/******/ // define getter function for harmony exports
|
|
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
|
|
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
|
|
/******/ }
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // define __esModule on exports
|
|
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
/******/ }
|
|
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // create a fake namespace object
|
|
|
|
/******/ // mode & 1: value is a module id, require it
|
|
|
|
/******/ // mode & 2: merge all properties of value into the ns
|
|
|
|
/******/ // mode & 4: return value when already ns object
|
|
|
|
/******/ // mode & 8|1: behave like require
|
|
|
|
/******/ __webpack_require__.t = function(value, mode) {
|
|
|
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
|
|
/******/ if(mode & 8) return value;
|
|
|
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
|
|
/******/ var ns = Object.create(null);
|
|
|
|
/******/ __webpack_require__.r(ns);
|
|
|
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
|
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
|
|
/******/ return ns;
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
|
|
/******/ __webpack_require__.n = function(module) {
|
|
|
|
/******/ var getter = module && module.__esModule ?
|
|
|
|
/******/ function getDefault() { return module['default']; } :
|
|
|
|
/******/ function getModuleExports() { return module; };
|
|
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
|
|
/******/ return getter;
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
|
|
/******/
|
|
|
|
/******/ // __webpack_public_path__
|
|
|
|
/******/ __webpack_require__.p = "";
|
|
|
|
/******/
|
|
|
|
/******/
|
|
|
|
/******/ // Load entry module and return exports
|
|
|
|
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
|
|
|
/******/ })
|
|
|
|
/************************************************************************/
|
|
|
|
/******/ ({
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/alias/react-dom.ts":
|
|
|
|
/*!********************************!*\
|
|
|
|
!*** ./src/alias/react-dom.ts ***!
|
|
|
|
\********************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
module.exports = window["Reac" + "tDOM"];
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/components.ts":
|
|
|
|
/*!**************************************!*\
|
|
|
|
!*** ./src/components/components.ts ***!
|
|
|
|
\**************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const Button_1 = __webpack_require__(/*! ./inputs/Button */ "./src/components/inputs/Button.tsx");
|
|
|
|
const Switch_1 = __webpack_require__(/*! ./inputs/Switch */ "./src/components/inputs/Switch.tsx");
|
|
|
|
const RadioGroup_1 = __webpack_require__(/*! ./inputs/RadioGroup */ "./src/components/inputs/RadioGroup.tsx");
|
|
|
|
const TextArea_1 = __webpack_require__(/*! ./inputs/TextArea */ "./src/components/inputs/TextArea.tsx");
|
|
|
|
const TextInput_1 = __webpack_require__(/*! ./inputs/TextInput */ "./src/components/inputs/TextInput.tsx");
|
|
|
|
const Dropdown_1 = __webpack_require__(/*! ./inputs/Dropdown */ "./src/components/inputs/Dropdown.tsx");
|
|
|
|
const Title_1 = __webpack_require__(/*! ./general/Title */ "./src/components/general/Title.tsx");
|
|
|
|
const SettingsTitle_1 = __webpack_require__(/*! ./general/SettingsTitle */ "./src/components/general/SettingsTitle.tsx");
|
2020-06-26 21:05:09 +02:00
|
|
|
const Tabs_1 = __webpack_require__(/*! ./general/Tabs */ "./src/components/general/Tabs.tsx");
|
|
|
|
const SettingSubTitle_1 = __webpack_require__(/*! ./general/SettingSubTitle */ "./src/components/general/SettingSubTitle.tsx");
|
|
|
|
const CodeBlock_1 = __webpack_require__(/*! ./general/CodeBlock */ "./src/components/general/CodeBlock.tsx");
|
2020-06-16 15:51:21 +02:00
|
|
|
exports.default = {
|
|
|
|
inputs: {
|
|
|
|
Button: Button_1.default,
|
|
|
|
Switch: Switch_1.default,
|
|
|
|
Choices: RadioGroup_1.default,
|
|
|
|
RadioGroup: RadioGroup_1.default,
|
|
|
|
TextArea: TextArea_1.default,
|
|
|
|
TextInput: TextInput_1.default,
|
|
|
|
Dropdown: Dropdown_1.default
|
|
|
|
},
|
|
|
|
general: {
|
|
|
|
Title: Title_1.default,
|
2020-06-26 21:05:09 +02:00
|
|
|
SettingsTitle: SettingsTitle_1.default,
|
|
|
|
SettingSubTitle: SettingSubTitle_1.default,
|
|
|
|
Tabs: Tabs_1.default,
|
|
|
|
CodeBlock: CodeBlock_1.default
|
2020-06-16 15:51:21 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-06-26 21:05:09 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/general/CodeBlock.tsx":
|
|
|
|
/*!**********************************************!*\
|
|
|
|
!*** ./src/components/general/CodeBlock.tsx ***!
|
|
|
|
\**********************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
let CodeBlockModules;
|
|
|
|
class CodeBlock extends React.Component {
|
|
|
|
get modules() {
|
|
|
|
return CodeBlockModules || (CodeBlockModules = [
|
|
|
|
WebpackLoader_1.default.find(e => e.markup),
|
|
|
|
WebpackLoader_1.default.find(e => e.messageContent),
|
|
|
|
WebpackLoader_1.default.find(e => e.scrollbarGhostHairline),
|
|
|
|
WebpackLoader_1.default.find(e => e.highlight),
|
|
|
|
WebpackLoader_1.default.find(e => e.marginBottom8)
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [messageModule1, messageModule2, scrollbarModule1, hightlightJS, marginModule1] = this.modules;
|
|
|
|
const code = this.props.language === "plaintext" ? React.createElement("code", { className: `${scrollbarModule1.scrollbarGhostHairline} hljs` }, this.props.content) : React.createElement("code", { className: `${scrollbarModule1.scrollbarGhostHairline} hljs`, dangerouslySetInnerHTML: { __html: hightlightJS.highlight(this.props.language, this.props.content).value } });
|
|
|
|
return (React.createElement("div", { className: `${messageModule1.markup} ${messageModule2.messageContent}` },
|
|
|
|
React.createElement("pre", null, code),
|
|
|
|
React.createElement("div", { className: marginModule1.marginBottom8 })));
|
|
|
|
}
|
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
content: "console.log(\"Exemple code\")"
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
language: "js"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
language: "plaintext"
|
|
|
|
},
|
|
|
|
...CodeBlock.prototype.modules[3].listLanguages().filter(e => e !== "js").map(e => ({ language: e }))
|
|
|
|
]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = CodeBlock;
|
|
|
|
CodeBlock.defaultProps = {
|
|
|
|
language: "plaintext",
|
|
|
|
content: ""
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/general/SettingSubTitle.tsx":
|
|
|
|
/*!****************************************************!*\
|
|
|
|
!*** ./src/components/general/SettingSubTitle.tsx ***!
|
|
|
|
\****************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
let TitleModules;
|
|
|
|
class SettingSubTitle extends React.Component {
|
|
|
|
get modules() {
|
|
|
|
return TitleModules || (TitleModules = [
|
|
|
|
WebpackLoader_1.default.find(e => typeof e.marginTop60 === "string"),
|
|
|
|
WebpackLoader_1.default.findByUniqueProperties(["h5"]),
|
|
|
|
window.Lightcord.Api.WebpackLoader.findByUniqueProperties(["size14"]),
|
|
|
|
window.Lightcord.Api.WebpackLoader.findByUniqueProperties(["colorStandard"])
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [marginModule, titleModule, sizeModule, colorModule] = this.modules;
|
|
|
|
let props = this.props;
|
|
|
|
let className = `${colorModule.colorStandard} ${sizeModule.size14} ${titleModule.h5} ${marginModule.marginBottom4}`;
|
|
|
|
if (props.className)
|
|
|
|
className = +" " + props.className;
|
|
|
|
return React.createElement("h5", { className }, props.children);
|
|
|
|
}
|
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
children: "Exemple title"
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = SettingSubTitle;
|
|
|
|
SettingSubTitle.defaultProps = {
|
|
|
|
children: [],
|
|
|
|
className: ""
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
|
|
|
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/general/SettingsTitle.tsx":
|
|
|
|
/*!**************************************************!*\
|
|
|
|
!*** ./src/components/general/SettingsTitle.tsx ***!
|
|
|
|
\**************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
const Title_1 = __webpack_require__(/*! ./Title */ "./src/components/general/Title.tsx");
|
|
|
|
let TitleModules;
|
|
|
|
class SettingsTitle extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return TitleModules || (TitleModules = [
|
|
|
|
WebpackLoader_1.default.find(e => typeof e.marginTop60 === "string")
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [marginModule] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
2020-06-16 15:51:21 +02:00
|
|
|
let className = `${marginModule.marginTop60} ${marginModule.marginBottom20}`;
|
|
|
|
if (props.className)
|
|
|
|
className = +" " + props.className;
|
|
|
|
return React.createElement(Title_1.default, { className }, props.children);
|
|
|
|
}
|
2020-06-26 21:05:09 +02:00
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
children: "Exemple title"
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
2020-06-16 15:51:21 +02:00
|
|
|
}
|
|
|
|
exports.default = SettingsTitle;
|
2020-06-26 21:05:09 +02:00
|
|
|
SettingsTitle.defaultProps = {
|
|
|
|
children: [""],
|
|
|
|
className: ""
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/general/Tabs.tsx":
|
|
|
|
/*!*****************************************!*\
|
|
|
|
!*** ./src/components/general/Tabs.tsx ***!
|
|
|
|
\*****************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
exports.Tab = void 0;
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
const Title_1 = __webpack_require__(/*! ./Title */ "./src/components/general/Title.tsx");
|
|
|
|
class Tabs extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.tabsElements = [];
|
|
|
|
this.state = {
|
|
|
|
active: this.props.active || null
|
|
|
|
};
|
|
|
|
}
|
|
|
|
get tabs() {
|
|
|
|
return this.props.tabs || [];
|
|
|
|
}
|
|
|
|
changeTab(tab) {
|
|
|
|
if (tab === this.state.active)
|
|
|
|
return;
|
|
|
|
if (this.props.onChange)
|
|
|
|
this.props.onChange(tab);
|
|
|
|
this.setState({
|
|
|
|
active: tab
|
|
|
|
});
|
|
|
|
this.tabsElements.forEach(e => e.setActive(tab === e.props.id));
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
return (React.createElement("div", { className: "lc-tabWrapper" },
|
|
|
|
React.createElement("div", { className: "lc-tabnav", style: { flex: "0 1 auto" } }, this.tabs.map(tab => {
|
|
|
|
return React.createElement(Tab, { TabContainer: this, title: tab.label, id: tab.id, key: btoa(tab.label + ":" + tab.id) });
|
|
|
|
})),
|
|
|
|
React.createElement("div", { className: "lc-tab" }, this.props.children)));
|
|
|
|
}
|
|
|
|
isActive(tab) {
|
|
|
|
return this.state.active === tab;
|
|
|
|
}
|
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
children: (React.createElement("div", { style: { marginTop: "20px", marginBottom: "20px" } },
|
|
|
|
React.createElement("div", { style: {
|
|
|
|
backgroundColor: "var(--background-primary)",
|
|
|
|
padding: "30px 30px",
|
|
|
|
borderRadius: "8px"
|
|
|
|
}, className: "lc-tab-box-shadow" },
|
|
|
|
React.createElement(Title_1.default, null, "Preview tabs"))))
|
|
|
|
}
|
|
|
|
], [
|
|
|
|
{
|
|
|
|
tabs: [
|
|
|
|
{
|
|
|
|
label: "Active tab",
|
|
|
|
id: "1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Unactive tab",
|
|
|
|
id: "2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
], [
|
|
|
|
{
|
|
|
|
active: "1"
|
|
|
|
}
|
|
|
|
], [
|
|
|
|
{
|
|
|
|
onChange: (tabId) => { }
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = Tabs;
|
|
|
|
Tabs.defaultProps = {
|
|
|
|
children: null,
|
|
|
|
tabs: { label: "No tabs was passed to <Tabs>.", id: "none" },
|
|
|
|
active: null,
|
|
|
|
onChange: noop_1.default
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
|
|
|
class Tab extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
active: props.TabContainer.isActive(props.id)
|
|
|
|
};
|
|
|
|
this.props.TabContainer.tabsElements.push(this);
|
|
|
|
}
|
|
|
|
setActive(isActive) {
|
|
|
|
this.setState({
|
|
|
|
active: !!isActive
|
|
|
|
});
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let className = `lc-navItem`;
|
|
|
|
if (this.state.active) {
|
|
|
|
className += ` lc-navItemActive`;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
className += ` lc-navItemInactive`;
|
|
|
|
}
|
|
|
|
return (React.createElement("div", { className: className, onClick: () => {
|
|
|
|
this.props.TabContainer.changeTab(this.props.id);
|
|
|
|
} }, this.props.title));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.Tab = Tab;
|
2020-06-16 15:51:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/general/Title.tsx":
|
|
|
|
/*!******************************************!*\
|
|
|
|
!*** ./src/components/general/Title.tsx ***!
|
|
|
|
\******************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
let TitleModules;
|
|
|
|
class Title extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return TitleModules || (TitleModules = [
|
|
|
|
WebpackLoader_1.default.find(e => typeof e.colorStandard === "string"),
|
|
|
|
WebpackLoader_1.default.find(e => typeof e.size32 === "string"),
|
|
|
|
WebpackLoader_1.default.find(e => typeof e.h2 === "string")
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [colorModule, sizeModule, titleModule] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
2020-06-16 15:51:21 +02:00
|
|
|
let className = `${colorModule.colorStandard} ${sizeModule.size14} ${titleModule.h2} ${titleModule.defaultColor} ${titleModule.defaultMarginh2}`;
|
|
|
|
if (props.className)
|
|
|
|
className += " " + props.className;
|
2020-06-26 21:05:09 +02:00
|
|
|
return React.createElement("h2", { className }, props.children);
|
|
|
|
}
|
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([
|
|
|
|
{
|
|
|
|
children: "Exemple title"
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
2020-06-16 15:51:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = Title;
|
2020-06-26 21:05:09 +02:00
|
|
|
Title.defaultProps = {
|
|
|
|
children: null,
|
|
|
|
className: null
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-16 15:51:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/components/inputs/Button.tsx":
|
|
|
|
/*!******************************************!*\
|
|
|
|
!*** ./src/components/inputs/Button.tsx ***!
|
|
|
|
\******************************************/
|
2020-06-10 16:16:33 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
2020-06-14 19:23:40 +02:00
|
|
|
let ButtonModules;
|
2020-06-10 16:16:33 +02:00
|
|
|
class Button extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
hover: false
|
|
|
|
};
|
2020-06-10 16:16:33 +02:00
|
|
|
}
|
2020-06-14 19:23:40 +02:00
|
|
|
get modules() {
|
|
|
|
return ButtonModules || (ButtonModules = [
|
|
|
|
WebpackLoader_1.default.findByUniqueProperties(["_horizontal"]),
|
|
|
|
WebpackLoader_1.default.findByUniqueProperties(["colorTransparent"]),
|
|
|
|
WebpackLoader_1.default.findByUniqueProperties(["buttonWrapper"]),
|
|
|
|
WebpackLoader_1.default.findByUniqueProperties(["ButtonColors"]),
|
|
|
|
]);
|
|
|
|
}
|
2020-06-10 16:16:33 +02:00
|
|
|
render() {
|
2020-06-14 19:23:40 +02:00
|
|
|
let [flexModule, euhModule1, buttonModule, colorsModule,] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = {};
|
|
|
|
if (this.props) {
|
|
|
|
if ("color" in this.props) {
|
|
|
|
props.color = this.props.color;
|
|
|
|
}
|
|
|
|
if ("children" in this.props) {
|
|
|
|
props.children = this.props.children;
|
|
|
|
}
|
|
|
|
if ("onClick" in this.props) {
|
|
|
|
props.onClick = this.props.onClick;
|
|
|
|
}
|
|
|
|
if ("wrapper" in this.props) {
|
|
|
|
props.wrapper = !!this.props.wrapper;
|
|
|
|
}
|
|
|
|
if ("look" in this.props) {
|
|
|
|
props.look = this.props.look;
|
|
|
|
}
|
|
|
|
if ("size" in this.props) {
|
|
|
|
props.size = this.props.size;
|
|
|
|
}
|
|
|
|
if ("hoverColor" in this.props) {
|
|
|
|
props.hoverColor = this.props.hoverColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (props.color) {
|
|
|
|
props.color = props.color.toLowerCase();
|
|
|
|
if (!Button.Colors.includes(props.color)) {
|
|
|
|
props.color = Button.Colors[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
props.color = Button.Colors[0];
|
|
|
|
}
|
|
|
|
if (props.look) {
|
|
|
|
props.look = props.look.toLowerCase();
|
|
|
|
if (!Button.Looks.includes(props.look)) {
|
|
|
|
props.look = Button.Looks[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
props.look = Button.Looks[0];
|
|
|
|
}
|
|
|
|
if (props.size) {
|
|
|
|
props.size = props.size.toLowerCase();
|
|
|
|
if (!Button.Sizes.includes(props.size)) {
|
|
|
|
props.size = Button.Sizes[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
props.size = Button.Sizes[0];
|
|
|
|
}
|
|
|
|
if (props.hoverColor) {
|
|
|
|
props.hoverColor = props.hoverColor.toLowerCase();
|
|
|
|
if (!Button.HoverColors.includes(props.hoverColor)) {
|
|
|
|
props.hoverColor = Button.HoverColors[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
props.hoverColor = Button.HoverColors[0];
|
|
|
|
}
|
|
|
|
let buttonSize = props.size ? colorsModule.ButtonSizes[props.size.toUpperCase()] || "" : "";
|
|
|
|
if (buttonSize)
|
|
|
|
buttonSize = " " + buttonSize;
|
|
|
|
let hoverColor = props.hoverColor ? colorsModule.ButtonHovers[props.hoverColor.toUpperCase()] || "" : "";
|
|
|
|
if (hoverColor)
|
|
|
|
hoverColor = " " + hoverColor;
|
|
|
|
props.onClick = typeof props.onClick === "function" ? props.onClick : () => { };
|
|
|
|
if (typeof props.wrapper !== "boolean")
|
|
|
|
props.wrapper = true;
|
|
|
|
let hover = this.state.hover ? euhModule1.hasHover : "";
|
|
|
|
if (hover)
|
|
|
|
hover = " " + hover;
|
|
|
|
let button = React.createElement("button", { type: "button", className: `${flexModule.flexChild} ${euhModule1.button} ${colorsModule.ButtonLooks[props.look.toUpperCase()]} ${colorsModule.ButtonColors[props.color.toUpperCase()]}${buttonSize}${hoverColor}${hover} ${euhModule1.grow}`, style: { flex: "0 1 auto" }, onClick: this.props.onClick, onMouseEnter: (ev) => {
|
|
|
|
if (!hoverColor)
|
|
|
|
return;
|
|
|
|
this.setState({ hover: true });
|
|
|
|
}, onMouseLeave: (ev) => {
|
|
|
|
if (!hoverColor)
|
|
|
|
return;
|
|
|
|
this.setState({ hover: false });
|
|
|
|
} },
|
|
|
|
React.createElement("div", { className: euhModule1.contents }, props.children));
|
|
|
|
if (props.wrapper) {
|
|
|
|
return React.createElement("div", { className: buttonModule.buttonWrapper }, button);
|
|
|
|
}
|
|
|
|
return button;
|
2020-06-10 16:16:33 +02:00
|
|
|
}
|
2020-06-16 15:51:21 +02:00
|
|
|
static get AllPreviews() {
|
2020-06-26 21:05:09 +02:00
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
let colors = [];
|
|
|
|
for (let color of Button.Colors) {
|
|
|
|
colors.push({
|
|
|
|
color: color
|
|
|
|
});
|
|
|
|
}
|
|
|
|
AllPreviews.push(colors);
|
|
|
|
let looks = [];
|
|
|
|
for (let look of Button.Looks) {
|
|
|
|
looks.push({
|
|
|
|
look: look
|
|
|
|
});
|
|
|
|
}
|
|
|
|
AllPreviews.push(looks);
|
|
|
|
let sizes = [];
|
|
|
|
for (let size of Button.Sizes) {
|
|
|
|
sizes.push({
|
|
|
|
size: size
|
|
|
|
});
|
|
|
|
}
|
|
|
|
AllPreviews.push(sizes);
|
|
|
|
let hovers = [];
|
|
|
|
for (let hover of Button.HoverColors) {
|
|
|
|
hovers.push({
|
|
|
|
hoverColor: hover
|
|
|
|
});
|
|
|
|
}
|
|
|
|
AllPreviews.push(hovers);
|
|
|
|
AllPreviews.push([{ children: "Test Button" }]);
|
|
|
|
AllPreviews.push([{ onClick: () => { } }]);
|
|
|
|
AllPreviews.push([{ wrapper: false }]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
2020-06-16 15:51:21 +02:00
|
|
|
}
|
2020-06-10 16:16:33 +02:00
|
|
|
}
|
|
|
|
exports.default = Button;
|
2020-06-26 21:05:09 +02:00
|
|
|
Button.Colors = ["brand", "grey", "red", "green", "yellow", "primary", "link", "white", "black", "transparent"];
|
|
|
|
Button.Looks = ["filled", "inverted", "outlined", "ghost", "link", "blank"];
|
|
|
|
Button.Sizes = ["small", "medium", "large", "xlarge", "min", "max", "icon", "none"];
|
|
|
|
Button.HoverColors = ["default", ...Button.Colors];
|
|
|
|
let AllPreviews;
|
2020-06-10 16:16:33 +02:00
|
|
|
|
|
|
|
|
2020-06-14 23:41:49 +02:00
|
|
|
/***/ }),
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/components/inputs/Dropdown.tsx":
|
|
|
|
/*!********************************************!*\
|
|
|
|
!*** ./src/components/inputs/Dropdown.tsx ***!
|
|
|
|
\********************************************/
|
2020-06-14 23:41:49 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
let DropdownModules;
|
|
|
|
class Dropdown extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.onChange = this.onChange.bind(this);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
value: props.value || null
|
|
|
|
};
|
2020-06-14 23:41:49 +02:00
|
|
|
}
|
|
|
|
onChange(value) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onChange(value);
|
2020-06-14 23:41:49 +02:00
|
|
|
this.setState({
|
|
|
|
value: value
|
|
|
|
});
|
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return DropdownModules || (DropdownModules = [
|
|
|
|
WebpackLoader_1.default.find(e => e.default && e.default.displayName === "SelectTempWrapper").default
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [DropdownComponent] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
|
|
|
let returnValue = React.createElement(DropdownComponent, Object.assign({}, props, { onChange: this.onChange, value: this.state.value }));
|
|
|
|
return returnValue;
|
2020-06-14 23:41:49 +02:00
|
|
|
}
|
|
|
|
get value() {
|
|
|
|
return this.state.value;
|
|
|
|
}
|
2020-06-26 21:05:09 +02:00
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([{
|
|
|
|
error: null
|
|
|
|
}, {
|
|
|
|
error: "An error occured"
|
|
|
|
}], [{
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
value: "option1",
|
|
|
|
label: "Option 1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "option2",
|
|
|
|
label: "Option 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "option3",
|
|
|
|
label: "Option 3"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}], [{
|
|
|
|
value: "option1"
|
|
|
|
}], [{
|
|
|
|
disabled: false
|
|
|
|
}, {
|
|
|
|
disabled: true
|
|
|
|
}], [{
|
|
|
|
searchable: true
|
|
|
|
}, {
|
|
|
|
searchable: false
|
|
|
|
}], [{
|
|
|
|
clearable: true
|
|
|
|
}, {
|
|
|
|
clearable: false
|
|
|
|
}], [{
|
|
|
|
isMulti: false
|
|
|
|
}, {
|
|
|
|
isMulti: true
|
|
|
|
}]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
2020-06-14 23:41:49 +02:00
|
|
|
}
|
|
|
|
exports.default = Dropdown;
|
2020-06-26 21:05:09 +02:00
|
|
|
Dropdown.defaultProps = {
|
|
|
|
className: null,
|
|
|
|
error: null,
|
|
|
|
options: [{
|
|
|
|
value: "none",
|
|
|
|
"label": "No options - No options was passed to Dropdown. If you meant to put an empty dropdown, input an empty array."
|
|
|
|
}],
|
|
|
|
valueRenderer: null,
|
|
|
|
multiValueRenderer: null,
|
|
|
|
optionRenderer: null,
|
|
|
|
onChange: noop_1.default,
|
|
|
|
value: null,
|
|
|
|
disabled: false,
|
|
|
|
searchable: false,
|
|
|
|
clearable: false,
|
|
|
|
styleOverrides: null,
|
|
|
|
lightThemeColorOverrides: null,
|
|
|
|
darkThemeColorOverrides: null,
|
|
|
|
isMulti: false
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-14 23:41:49 +02:00
|
|
|
|
|
|
|
|
2020-06-14 19:23:40 +02:00
|
|
|
/***/ }),
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/components/inputs/RadioGroup.tsx":
|
|
|
|
/*!**********************************************!*\
|
|
|
|
!*** ./src/components/inputs/RadioGroup.tsx ***!
|
|
|
|
\**********************************************/
|
2020-06-14 19:23:40 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
let RadioGroupModule;
|
|
|
|
class RadioGroup extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.onChange = this.onChange.bind(this);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
value: props.value
|
|
|
|
};
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
onChange(ev) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onChange(ev.value);
|
2020-06-14 19:23:40 +02:00
|
|
|
this.setState({
|
|
|
|
value: ev.value
|
|
|
|
});
|
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return RadioGroupModule || (RadioGroupModule = [
|
|
|
|
WebpackLoader_1.default.find(e => e.default && e.default.displayName === "RadioGroup").default
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [RadioGroupComponent] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
|
|
|
return React.createElement(RadioGroupComponent, { options: props.options, onChange: this.onChange, value: this.state.value, disabled: props.disabled, size: RadioGroupComponent.Sizes[props.size.toUpperCase()], itemType: RadioGroupComponent.ItemTypes[props.itemType.toUpperCase()], infoClassName: props.infoClassName });
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
get value() {
|
|
|
|
return this.state.value;
|
|
|
|
}
|
2020-06-26 21:05:09 +02:00
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([{
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
value: "option1",
|
|
|
|
name: "Option 1",
|
|
|
|
desc: "description 1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "option2",
|
|
|
|
name: "Option 2",
|
|
|
|
desc: "description 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: "option3",
|
|
|
|
name: "Option 3",
|
|
|
|
desc: "description 3"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}], [{
|
|
|
|
value: "option1"
|
|
|
|
}], [{
|
|
|
|
disabled: false
|
|
|
|
}, {
|
|
|
|
disabled: true
|
|
|
|
}], [{
|
|
|
|
size: "medium"
|
|
|
|
}, {
|
|
|
|
size: "small"
|
|
|
|
}], [{
|
|
|
|
itemType: "bar"
|
|
|
|
}, {
|
|
|
|
itemType: "panel"
|
|
|
|
}]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
exports.default = RadioGroup;
|
2020-06-26 21:05:09 +02:00
|
|
|
RadioGroup.defaultProps = {
|
|
|
|
options: [{
|
|
|
|
value: "none",
|
|
|
|
name: "No options",
|
|
|
|
desc: "No options was passed to Choices. If you meant to display no options at all, please pass an empty array.",
|
|
|
|
color: "#f04747"
|
|
|
|
}],
|
|
|
|
value: null,
|
|
|
|
disabled: false,
|
|
|
|
size: "medium",
|
|
|
|
itemType: "bar",
|
|
|
|
infoClassName: null,
|
|
|
|
onChange: noop_1.default
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-14 19:23:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/components/inputs/Switch.tsx":
|
|
|
|
/*!******************************************!*\
|
|
|
|
!*** ./src/components/inputs/Switch.tsx ***!
|
|
|
|
\******************************************/
|
2020-06-14 19:23:40 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
let SwitchModules;
|
|
|
|
class Switch extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
value: props.value || false
|
|
|
|
};
|
2020-06-14 19:23:40 +02:00
|
|
|
this.onChange = this.onChange.bind(this);
|
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return SwitchModules || (SwitchModules = [
|
|
|
|
WebpackLoader_1.default.find(e => e.default && e.default.displayName === "Switch").default
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [SwitchComponent] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
2020-06-14 19:23:40 +02:00
|
|
|
return (React.createElement(SwitchComponent, { id: props.id, onChange: this.onChange, value: this.state.value || false, fill: props.fill, theme: SwitchComponent.Themes[props.theme.toUpperCase()], disabled: props.disabled, className: props.className, size: SwitchComponent.Sizes[props.size.toUpperCase()], style: props.style }));
|
|
|
|
}
|
|
|
|
onChange(value) {
|
|
|
|
this.props.onChange(!this.state.value);
|
|
|
|
this.setState({
|
|
|
|
value: !this.state.value
|
|
|
|
});
|
|
|
|
}
|
|
|
|
get value() {
|
|
|
|
return this.state.value;
|
|
|
|
}
|
2020-06-26 21:05:09 +02:00
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([{ onChange: (value) => { } }]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
value: false
|
|
|
|
}], [{
|
|
|
|
theme: "default"
|
|
|
|
}, {
|
|
|
|
theme: "clear"
|
|
|
|
}], [{
|
|
|
|
disabled: false
|
|
|
|
}, {
|
|
|
|
disabled: true
|
|
|
|
}], [{
|
|
|
|
id: "api-preview-switch"
|
|
|
|
}], [{
|
|
|
|
fill: null
|
|
|
|
}], [{
|
|
|
|
size: "default"
|
|
|
|
}, {
|
|
|
|
size: "mini"
|
|
|
|
}], [{
|
|
|
|
style: {}
|
|
|
|
}]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
exports.default = Switch;
|
2020-06-26 21:05:09 +02:00
|
|
|
Switch.defaultProps = {
|
|
|
|
id: null,
|
|
|
|
onChange: noop_1.default,
|
|
|
|
value: false,
|
|
|
|
fill: null,
|
|
|
|
theme: "default",
|
|
|
|
disabled: false,
|
|
|
|
className: null,
|
|
|
|
size: "default",
|
|
|
|
style: {}
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-14 19:23:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/components/inputs/TextArea.tsx":
|
|
|
|
/*!********************************************!*\
|
|
|
|
!*** ./src/components/inputs/TextArea.tsx ***!
|
|
|
|
\********************************************/
|
2020-06-14 19:23:40 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
let TextAreaModules;
|
|
|
|
class TextArea extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.onChange = this.onChange.bind(this);
|
|
|
|
this.onFocus = this.onFocus.bind(this);
|
|
|
|
this.onBlur = this.onBlur.bind(this);
|
|
|
|
this.onKeyDown = this.onKeyDown.bind(this);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
value: props.value || ""
|
|
|
|
};
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return TextAreaModules || (TextAreaModules = [
|
|
|
|
WebpackLoader_1.default.find(e => e.default && e.default.displayName === "TextArea").default
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
onChange(value, name) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onChange(value, name);
|
2020-06-14 19:23:40 +02:00
|
|
|
this.setState({
|
|
|
|
value
|
|
|
|
});
|
|
|
|
}
|
|
|
|
onFocus(ev, name) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onFocus(ev, name);
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
onBlur(ev, name) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onBlur(ev, name);
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
onKeyDown(ev) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onKeyDown(ev);
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [TextAreaComponent] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
|
|
|
return React.createElement(TextAreaComponent, Object.assign({}, props, { onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, value: this.state.value }));
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
get value() {
|
2020-06-26 21:05:09 +02:00
|
|
|
return this.state.value || "";
|
|
|
|
}
|
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([{
|
|
|
|
name: "api-preview-textarea"
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
disabled: false
|
|
|
|
}, {
|
|
|
|
disabled: true
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
placeholder: null
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
autoFocus: false
|
|
|
|
}, {
|
|
|
|
autoFocus: true
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
resizeable: false
|
|
|
|
}, {
|
|
|
|
resizeable: true
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
flex: false
|
|
|
|
}, {
|
|
|
|
flex: true
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
autosize: false
|
|
|
|
}, {
|
|
|
|
autosize: true
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
rows: 3
|
|
|
|
}, {
|
|
|
|
rows: 2
|
|
|
|
}, {
|
|
|
|
rows: 1
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
value: ""
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
error: null
|
|
|
|
}, {
|
|
|
|
error: "Example error"
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
maxLength: 100
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
className: ""
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
inputClassName: ""
|
|
|
|
}]);
|
|
|
|
AllPreviews.push([{
|
|
|
|
id: "api-preview-textarea"
|
|
|
|
}]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = TextArea;
|
2020-06-26 21:05:09 +02:00
|
|
|
TextArea.defaultProps = {
|
|
|
|
name: null,
|
|
|
|
disabled: false,
|
|
|
|
placeholder: null,
|
|
|
|
autoFocus: false,
|
|
|
|
resizeable: false,
|
|
|
|
flex: false,
|
|
|
|
autosize: false,
|
|
|
|
rows: 3,
|
|
|
|
value: "",
|
|
|
|
error: null,
|
|
|
|
maxLength: null,
|
|
|
|
className: null,
|
|
|
|
id: null,
|
|
|
|
onChange: noop_1.default,
|
|
|
|
onFocus: noop_1.default,
|
|
|
|
onBlur: noop_1.default,
|
|
|
|
onKeyDown: noop_1.default
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-14 19:23:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ "./src/components/inputs/TextInput.tsx":
|
|
|
|
/*!*********************************************!*\
|
|
|
|
!*** ./src/components/inputs/TextInput.tsx ***!
|
|
|
|
\*********************************************/
|
2020-06-14 19:23:40 +02:00
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ../../modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
const noop_1 = __webpack_require__(/*! ../../modules/noop */ "./src/modules/noop.ts");
|
|
|
|
let TextInputModules;
|
|
|
|
class TextInput extends React.PureComponent {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.onChange = this.onChange.bind(this);
|
|
|
|
this.onFocus = this.onFocus.bind(this);
|
|
|
|
this.onBlur = this.onBlur.bind(this);
|
2020-06-26 21:05:09 +02:00
|
|
|
this.state = {
|
|
|
|
value: props.value || ""
|
|
|
|
};
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
get modules() {
|
|
|
|
return TextInputModules || (TextInputModules = [
|
|
|
|
WebpackLoader_1.default.find(e => e.default && e.default.displayName === "TextInput").default
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
onChange(value, name) {
|
|
|
|
this.hasSet = false;
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onChange(value, name, this);
|
2020-06-14 19:23:40 +02:00
|
|
|
if (this.hasSet)
|
|
|
|
return; // prevent event if the onChange has changed the value.
|
|
|
|
this.setState({
|
|
|
|
value
|
|
|
|
});
|
|
|
|
this.forceUpdate();
|
|
|
|
}
|
|
|
|
onFocus(ev, name) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onFocus(ev, name, this);
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
onBlur(ev, name) {
|
2020-06-26 21:05:09 +02:00
|
|
|
this.props.onBlur(ev, name, this);
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
render() {
|
|
|
|
let [TextAreaComponent] = this.modules;
|
2020-06-26 21:05:09 +02:00
|
|
|
let props = this.props;
|
|
|
|
return React.createElement(TextAreaComponent, Object.assign({}, props, { onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, value: this.state.value }));
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
get value() {
|
2020-06-26 21:05:09 +02:00
|
|
|
return this.state.value || "";
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
setValue(value) {
|
|
|
|
this.setState({
|
|
|
|
value: value
|
|
|
|
});
|
|
|
|
this.forceUpdate();
|
|
|
|
this.hasSet = true;
|
|
|
|
}
|
2020-06-26 21:05:09 +02:00
|
|
|
static get AllPreviews() {
|
|
|
|
return AllPreviews || (() => {
|
|
|
|
AllPreviews = [];
|
|
|
|
AllPreviews.push([{
|
|
|
|
name: "api-preview-textinput"
|
|
|
|
}], [{
|
|
|
|
size: "default"
|
|
|
|
}, {
|
|
|
|
size: "mini"
|
|
|
|
}], [{
|
|
|
|
disabled: false
|
|
|
|
}, {
|
|
|
|
disabled: true
|
|
|
|
}], [{
|
|
|
|
placeholder: ""
|
|
|
|
}], [{
|
|
|
|
value: ""
|
|
|
|
}], [{
|
|
|
|
error: null
|
|
|
|
}, {
|
|
|
|
error: "Example error"
|
|
|
|
}], [{
|
|
|
|
maxLength: 999
|
|
|
|
}], [{
|
|
|
|
className: ""
|
|
|
|
}], [{
|
|
|
|
inputClassName: ""
|
|
|
|
}], [{
|
|
|
|
id: "api-preview-textinput"
|
|
|
|
}], [{
|
|
|
|
onChange: (value, name) => { }
|
|
|
|
}]);
|
|
|
|
return AllPreviews;
|
|
|
|
})();
|
|
|
|
}
|
2020-06-14 19:23:40 +02:00
|
|
|
}
|
|
|
|
exports.default = TextInput;
|
2020-06-26 21:05:09 +02:00
|
|
|
TextInput.defaultProps = {
|
|
|
|
name: "",
|
|
|
|
size: "default",
|
|
|
|
disabled: false,
|
|
|
|
placeholder: "",
|
|
|
|
value: "",
|
|
|
|
error: null,
|
|
|
|
maxLength: 999,
|
|
|
|
className: "",
|
|
|
|
inputClassName: "",
|
|
|
|
id: null,
|
|
|
|
onChange: noop_1.default,
|
|
|
|
onFocus: noop_1.default,
|
|
|
|
onBlur: noop_1.default
|
|
|
|
};
|
|
|
|
let AllPreviews;
|
2020-06-14 19:23:40 +02:00
|
|
|
|
|
|
|
|
2020-06-10 16:16:33 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/index.ts":
|
|
|
|
/*!**********************!*\
|
|
|
|
!*** ./src/index.ts ***!
|
|
|
|
\**********************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const WebpackLoader_1 = __webpack_require__(/*! ./modules/WebpackLoader */ "./src/modules/WebpackLoader.ts");
|
|
|
|
const components_1 = __webpack_require__(/*! ./components/components */ "./src/components/components.ts");
|
2020-06-14 19:23:40 +02:00
|
|
|
const uuid_1 = __webpack_require__(/*! ./modules/uuid */ "./src/modules/uuid.ts");
|
2020-06-16 15:51:21 +02:00
|
|
|
const Utils_1 = __webpack_require__(/*! ./modules/Utils */ "./src/modules/Utils.ts");
|
2020-06-10 16:16:33 +02:00
|
|
|
const LightcordApi = {
|
|
|
|
WebpackLoader: WebpackLoader_1.default,
|
2020-06-14 19:23:40 +02:00
|
|
|
Components: components_1.default,
|
2020-06-16 15:51:21 +02:00
|
|
|
uuid: uuid_1.default,
|
|
|
|
Utils: Utils_1.default
|
2020-06-10 16:16:33 +02:00
|
|
|
};
|
|
|
|
exports.default = LightcordApi;
|
|
|
|
Object.assign(window.Lightcord.Api, LightcordApi);
|
|
|
|
|
|
|
|
|
2020-06-16 15:51:21 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/modules/PluginUtilities.ts":
|
|
|
|
/*!****************************************!*\
|
|
|
|
!*** ./src/modules/PluginUtilities.ts ***!
|
|
|
|
\****************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const components_1 = __webpack_require__(/*! ../components/components */ "./src/components/components.ts");
|
|
|
|
const Utils_1 = __webpack_require__(/*! ./Utils */ "./src/modules/Utils.ts");
|
|
|
|
const uuid_1 = __webpack_require__(/*! ./uuid */ "./src/modules/uuid.ts");
|
|
|
|
const TextInput_1 = __webpack_require__(/*! ../components/inputs/TextInput */ "./src/components/inputs/TextInput.tsx");
|
|
|
|
exports.default = new class PluginUtilities {
|
|
|
|
constructor() { }
|
|
|
|
renderSettings(settings) {
|
|
|
|
let items = this.renderSettingsToReact(settings);
|
|
|
|
let elem = React.createElement("div", { key: uuid_1.default() }, items);
|
|
|
|
return Utils_1.default.ReactToHTMLElement(elem);
|
|
|
|
}
|
|
|
|
renderSettingsToReact(settings) {
|
|
|
|
let items = [];
|
|
|
|
settings.forEach(item => {
|
|
|
|
if (typeof item !== "object")
|
|
|
|
return items.push(item);
|
|
|
|
if (item.props && "children" in item.props) {
|
|
|
|
if (!Array.isArray(item.props.children))
|
|
|
|
item.props.children = [item.props.children];
|
|
|
|
item.props.children = this.renderSettingsToReact(item.props.children);
|
|
|
|
}
|
|
|
|
if (!item.props)
|
|
|
|
item.props = {};
|
|
|
|
item.props.key = uuid_1.default();
|
|
|
|
let component = Utils_1.default.getNestedProps(components_1.default, item.component);
|
|
|
|
if (!component) {
|
|
|
|
let warning = new TextInput_1.default({
|
|
|
|
value: `Warning: No component was found for: "${item.component}". Please correct your code.`,
|
|
|
|
disabled: true,
|
|
|
|
error: `Warning: No component was found for: "${item.component}". Please correct your code.`
|
|
|
|
}).render();
|
|
|
|
items.push(warning);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
items.push(React.createElement(component, Object.create(item.props)));
|
|
|
|
});
|
|
|
|
return items;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/modules/Utils.ts":
|
|
|
|
/*!******************************!*\
|
|
|
|
!*** ./src/modules/Utils.ts ***!
|
|
|
|
\******************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const ReactDOM = __webpack_require__(/*! react-dom */ "./src/alias/react-dom.ts");
|
|
|
|
const PluginUtilities_1 = __webpack_require__(/*! ./PluginUtilities */ "./src/modules/PluginUtilities.ts");
|
|
|
|
exports.default = new class Utils {
|
|
|
|
constructor() { }
|
|
|
|
ReactToHTMLElement(ReactElement) {
|
|
|
|
const element = document.createElement("div");
|
|
|
|
ReactDOM.render(ReactElement, element);
|
|
|
|
return element;
|
|
|
|
}
|
|
|
|
get PluginUtils() { return PluginUtilities_1.default; }
|
|
|
|
getNestedProps(obj, path) {
|
|
|
|
let segments = path.split(".");
|
|
|
|
for (let seg of segments) {
|
|
|
|
obj = obj && (seg in obj) ? obj[seg] : undefined;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-06-10 16:16:33 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/modules/WebpackLoader.ts":
|
|
|
|
/*!**************************************!*\
|
|
|
|
!*** ./src/modules/WebpackLoader.ts ***!
|
|
|
|
\**************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const BDModules = window.BDModules;
|
|
|
|
exports.default = new class WebpackLoader {
|
|
|
|
constructor() { }
|
|
|
|
get(id) {
|
|
|
|
return BDModules.get(id);
|
|
|
|
}
|
|
|
|
find(filter) {
|
|
|
|
return BDModules.get(filter)[0];
|
|
|
|
}
|
|
|
|
findByUniqueProperties(props) {
|
|
|
|
return BDModules.get((mod) => {
|
|
|
|
if (mod.__esModule && ("default" in mod)) {
|
|
|
|
let doesMatch = true;
|
|
|
|
for (let prop of props) {
|
|
|
|
if (!Object.prototype.hasOwnProperty.call(mod.default, prop))
|
|
|
|
doesMatch = false;
|
|
|
|
}
|
|
|
|
if (doesMatch)
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (let prop of props) {
|
|
|
|
if (!Object.prototype.hasOwnProperty.call(mod, prop))
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
})[0];
|
|
|
|
}
|
|
|
|
filter(filter) {
|
|
|
|
return BDModules.get(filter);
|
|
|
|
}
|
|
|
|
filterByUniqueProperties(props) {
|
|
|
|
return BDModules.get((mod) => {
|
|
|
|
if (mod.__esModule && ("default" in mod)) {
|
|
|
|
let doesMatch = true;
|
|
|
|
for (let prop of props) {
|
|
|
|
if (!Object.prototype.hasOwnProperty.call(mod.default, prop))
|
|
|
|
doesMatch = false;
|
|
|
|
}
|
|
|
|
if (doesMatch)
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (let prop of props) {
|
|
|
|
if (!Object.prototype.hasOwnProperty.call(mod, prop))
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-06-14 19:23:40 +02:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/modules/noop.ts":
|
|
|
|
/*!*****************************!*\
|
|
|
|
!*** ./src/modules/noop.ts ***!
|
|
|
|
\*****************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
function NOOP() { }
|
|
|
|
exports.default = NOOP;
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "./src/modules/uuid.ts":
|
|
|
|
/*!*****************************!*\
|
|
|
|
!*** ./src/modules/uuid.ts ***!
|
|
|
|
\*****************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const uuidv1 = __webpack_require__(/*! uuid/v1 */ "uuid/v1");
|
|
|
|
const uuidv4 = __webpack_require__(/*! uuid/v4 */ "uuid/v4");
|
|
|
|
let uuid = Object.assign(function () {
|
|
|
|
return uuidv4();
|
|
|
|
}, { v1: () => uuidv1(), v4: () => uuidv4() });
|
|
|
|
exports.default = uuid;
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "uuid/v1":
|
|
|
|
/*!**************************!*\
|
|
|
|
!*** external "uuid/v1" ***!
|
|
|
|
\**************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
module.exports = require("uuid/v1");
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ "uuid/v4":
|
|
|
|
/*!**************************!*\
|
|
|
|
!*** external "uuid/v4" ***!
|
|
|
|
\**************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
module.exports = require("uuid/v4");
|
|
|
|
|
2020-06-10 16:16:33 +02:00
|
|
|
/***/ })
|
|
|
|
|
|
|
|
/******/ });
|
2020-06-26 21:05:09 +02:00
|
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvd2VicGFjay9ib290c3RyYXAiLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL2FsaWFzL3JlYWN0LWRvbS50cyIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvLi9zcmMvY29tcG9uZW50cy9jb21wb25lbnRzLnRzIiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2dlbmVyYWwvQ29kZUJsb2NrLnRzeCIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvLi9zcmMvY29tcG9uZW50cy9nZW5lcmFsL1NldHRpbmdTdWJUaXRsZS50c3giLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL2NvbXBvbmVudHMvZ2VuZXJhbC9TZXR0aW5nc1RpdGxlLnRzeCIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvLi9zcmMvY29tcG9uZW50cy9nZW5lcmFsL1RhYnMudHN4Iiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2dlbmVyYWwvVGl0bGUudHN4Iiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2lucHV0cy9CdXR0b24udHN4Iiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2lucHV0cy9Ecm9wZG93bi50c3giLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL2NvbXBvbmVudHMvaW5wdXRzL1JhZGlvR3JvdXAudHN4Iiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2lucHV0cy9Td2l0Y2gudHN4Iiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9jb21wb25lbnRzL2lucHV0cy9UZXh0QXJlYS50c3giLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL2NvbXBvbmVudHMvaW5wdXRzL1RleHRJbnB1dC50c3giLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL2luZGV4LnRzIiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9tb2R1bGVzL1BsdWdpblV0aWxpdGllcy50cyIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvLi9zcmMvbW9kdWxlcy9VdGlscy50cyIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvLi9zcmMvbW9kdWxlcy9XZWJwYWNrTG9hZGVyLnRzIiwid2VicGFjazovL0xpZ2h0Y29yZEFwaS8uL3NyYy9tb2R1bGVzL25vb3AudHMiLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpLy4vc3JjL21vZHVsZXMvdXVpZC50cyIsIndlYnBhY2s6Ly9MaWdodGNvcmRBcGkvZXh0ZXJuYWwgXCJ1dWlkL3YxXCIiLCJ3ZWJwYWNrOi8vTGlnaHRjb3JkQXBpL2V4dGVybmFsIFwidXVpZC92NFwiIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O1FBQUE7UUFDQTs7UUFFQTtRQUNBOztRQUVBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBOztRQUVBO1FBQ0E7O1FBRUE7UUFDQTs7UUFFQTtRQUNBO1FBQ0E7OztRQUdBO1FBQ0E7O1FBRUE7UUFDQTs7UUFFQTtRQUNBO1FBQ0E7UUFDQSwwQ0FBMEMsZ0NBQWdDO1FBQzFFO1FBQ0E7O1FBRUE7UUFDQTtRQUNBO1FBQ0Esd0RBQXdELGtCQUFrQjtRQUMxRTtRQUNBLGlEQUFpRCxjQUFjO1FBQy9EOztRQUVBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQSx5Q0FBeUMsaUNBQWlDO1FBQzFFLGdIQUFnSCxtQkFBbUIsRUFBRTtRQUNySTtRQUNBOztRQUVBO1FBQ0E7UUFDQTtRQUNBLDJCQUEyQiwwQkFBMEIsRUFBRTtRQUN2RCxpQ0FBaUMsZUFBZTtRQUNoRDtRQUNBO1FBQ0E7O1FBRUE7UUFDQSxzREFBc0QsK0RBQStEOztRQUVySDtRQUNBOzs7UUFHQTtRQUNBOzs7Ozs7Ozs7Ozs7OztBQ2pGQSxpQkFBUyxNQUFNLENBQUMsTUFBTSxHQUFDLE1BQU0sQ0FBK0I7Ozs7Ozs7Ozs7Ozs7OztBQ0Q1RCxrR0FBMkM7QUFDM0Msa0dBQW9DO0FBQ3BDLDhHQUE0QztBQUM1Qyx3R0FBd0M7QUFDeEMsMkdBQTBDO0FBQzFDLHdHQUF3QztBQUN4QyxpR0FBbUM7QUFDbkMseUhBQW1EO0FBQ25ELDhGQUEwQztBQUMxQywrSEFBdUQ7QUFDdkQsNkdBQTJDO0FBRTNDLGtCQUFlO0lBQ1gsTUFBTSxFQUFFO1FBQ0osTUFBTSxFQUFFLGdCQUFhO1FBQ3JCLE1BQU0sRUFBRSxnQkFBTTtRQUNkLE9BQU8sRUFBRSxvQkFBVTtRQUNuQixVQUFVLEVBQUUsb0JBQVU7UUFDdEIsUUFBUSxFQUFFLGtCQUFRO1FBQ2xCLFNBQVMsRUFBRSxtQkFBUztRQUNwQixRQUFRLEVBQUUsa0JBQVE7S0FDckI7SUFDRCxPQUFPLEVBQUU7UUFDTCxLQUFLLEVBQUUsZUFBSztRQUNaLGFBQWEsRUFBRSx1QkFBYTtRQUM1QixlQUFlLEVBQUUseUJBQWU7UUFDaEMsSUFBSSxFQUFFLGNBQUk7UUFDVixTQUFTLEVBQUUsbUJBQVM7S0FDdkI7Q0FDSjs7Ozs7Ozs7Ozs7Ozs7O0FDN0JELGlIQUF1RDtBQU92RCxJQUFJLGdCQUFnQjtBQUNwQixNQUFxQixTQUFVLFNBQVEsS0FBSyxDQUFDLFNBQXlCO0lBTWxFLElBQUksT0FBTztRQUNQLE9BQU8sZ0JBQWdCLElBQUksQ0FBQyxnQkFBZ0IsR0FBRztZQUMzQyx1QkFBYSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUM7WUFDakMsdUJBQWEsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsY0FBYyxDQUFDO1lBQ3pDLHVCQUFhLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLHNCQUFzQixDQUFDO1lBQ2pELHVCQUFhLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQztZQUNwQyx1QkFBYSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxhQUFhLENBQUM7U0FDM0MsQ0FBQztJQUNOLENBQUM7SUFFRCxNQUFNO1FBQ0YsSUFBSSxDQUNBLGNBQWMsRUFDZCxjQUFjLEVBQ2QsZ0JBQWdCLEVBQ2hCLFlBQVksRUFDWixhQUFhLENBQ2hCLEdBQUcsSUFBSSxDQUFDLE9BQU87UUFFaEIsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxRQUFRLEtBQUssV0FBVyxDQUFDLENBQUMsQ0FBQyw4QkFBTSxTQUFTLEVBQUUsR0FBRyxnQkFBZ0IsQ0FBQyxzQkFBc0IsT0FBTyxJQUNoSCxJQUFJLENBQUMsS0FBSyxDQUFDLE9
|