diff --git a/dist/bundle.js b/dist/bundle.js index a66d2e4..a0601c0 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -97,6 +97,17 @@ eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * jQ /***/ }), +/***/ "./node_modules/js-cookie/src/js.cookie.js": +/*!*************************************************!*\ + !*** ./node_modules/js-cookie/src/js.cookie.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * JavaScript Cookie v2.2.0\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader = false;\n\tif (true) {\n\t\t!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (true) {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api (key, value, attributes) {\n\t\t\tvar result;\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Write\n\n\t\t\tif (arguments.length > 1) {\n\t\t\t\tattributes = extend({\n\t\t\t\t\tpath: '/'\n\t\t\t\t}, api.defaults, attributes);\n\n\t\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\t\tvar expires = new Date();\n\t\t\t\t\texpires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);\n\t\t\t\t\tattributes.expires = expires;\n\t\t\t\t}\n\n\t\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\t\ttry {\n\t\t\t\t\tresult = JSON.stringify(value);\n\t\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\t\tvalue = result;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\n\t\t\t\tif (!converter.write) {\n\t\t\t\t\tvalue = encodeURIComponent(String(value))\n\t\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = converter.write(value, key);\n\t\t\t\t}\n\n\t\t\t\tkey = encodeURIComponent(String(key));\n\t\t\t\tkey = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);\n\t\t\t\tkey = key.replace(/[\\(\\)]/g, escape);\n\n\t\t\t\tvar stringifiedAttributes = '';\n\n\t\t\t\tfor (var attributeName in attributes) {\n\t\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName];\n\t\t\t\t}\n\t\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t\t}\n\n\t\t\t// Read\n\n\t\t\tif (!key) {\n\t\t\t\tresult = {};\n\t\t\t}\n\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all. Also prevents odd result when\n\t\t\t// calling \"get()\"\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar rdecode = /(%[0-9A-Z]{2})+/g;\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!this.json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = parts[0].replace(rdecode, decodeURIComponent);\n\t\t\t\t\tcookie = converter.read ?\n\t\t\t\t\t\tconverter.read(cookie, name) : converter(cookie, name) ||\n\t\t\t\t\t\tcookie.replace(rdecode, decodeURIComponent);\n\n\t\t\t\t\tif (this.json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tresult = cookie;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!key) {\n\t\t\t\t\t\tresult[name] = cookie;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}\n\n\t\tapi.set = api;\n\t\tapi.get = function (key) {\n\t\t\treturn api.call(api, key);\n\t\t};\n\t\tapi.getJSON = function () {\n\t\t\treturn api.apply({\n\t\t\t\tjson: true\n\t\t\t}, [].slice.call(arguments));\n\t\t};\n\t\tapi.defaults = {};\n\n\t\tapi.remove = function (key, attributes) {\n\t\t\tapi(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvanMtY29va2llL3NyYy9qcy5jb29raWUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvanMtY29va2llL3NyYy9qcy5jb29raWUuanM/YTc4ZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIEphdmFTY3JpcHQgQ29va2llIHYyLjIuMFxuICogaHR0cHM6Ly9naXRodWIuY29tL2pzLWNvb2tpZS9qcy1jb29raWVcbiAqXG4gKiBDb3B5cmlnaHQgMjAwNiwgMjAxNSBLbGF1cyBIYXJ0bCAmIEZhZ25lciBCcmFja1xuICogUmVsZWFzZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlXG4gKi9cbjsoZnVuY3Rpb24gKGZhY3RvcnkpIHtcblx0dmFyIHJlZ2lzdGVyZWRJbk1vZHVsZUxvYWRlciA9IGZhbHNlO1xuXHRpZiAodHlwZW9mIGRlZmluZSA9PT0gJ2Z1bmN0aW9uJyAmJiBkZWZpbmUuYW1kKSB7XG5cdFx0ZGVmaW5lKGZhY3RvcnkpO1xuXHRcdHJlZ2lzdGVyZWRJbk1vZHVsZUxvYWRlciA9IHRydWU7XG5cdH1cblx0aWYgKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0Jykge1xuXHRcdG1vZHVsZS5leHBvcnRzID0gZmFjdG9yeSgpO1xuXHRcdHJlZ2lzdGVyZWRJbk1vZHVsZUxvYWRlciA9IHRydWU7XG5cdH1cblx0aWYgKCFyZW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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/js-cookie/src/js.cookie.js\n"); + +/***/ }), + /***/ "./src/domain/globals.ts": /*!*******************************!*\ !*** ./src/domain/globals.ts ***! @@ -105,7 +116,7 @@ eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * jQ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Globals\", function() { return Globals; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\nvar Globals = /** @class */ (function () {\r\n function Globals() {\r\n }\r\n Globals.registerTheme = function (name, styleClass) {\r\n if (Globals.themes.some(function (value) { return value.name === name; })) {\r\n console.log(\"Theme with name '\" + name + \"' already registered; ignoring register request for styleClass '\" + styleClass + \"'.\");\r\n }\r\n else {\r\n Globals.themes.push({\r\n name: name,\r\n styleClass: styleClass\r\n });\r\n }\r\n };\r\n Globals.hasThemes = function () {\r\n return Globals.themes.length > 0;\r\n };\r\n Globals.hasMultipleThemes = function () {\r\n return Globals.themes.length > 1;\r\n };\r\n Globals.getFirstTheme = function () {\r\n return Globals.getTheme(0);\r\n };\r\n Globals.getTheme = function (index) {\r\n return Globals.themes[index];\r\n };\r\n Globals.getThemes = function () {\r\n return Globals.themes;\r\n };\r\n Globals.registerLayout = function (layout) {\r\n var available = Globals.layouts.some(function (element) {\r\n if (layout.code === element.code) {\r\n console.error(\"Error: Language code '\" + layout.code + \"' cannot be registered for layout '\" + layout.prettyName + \"' \\n because it is already registered for layout '\" + element.prettyName + \"'!\");\r\n return false;\r\n }\r\n return true;\r\n });\r\n if (available) {\r\n Globals.layouts.push(layout);\r\n }\r\n };\r\n Globals.hasLayouts = function () {\r\n return Globals.layouts.length > 0;\r\n };\r\n Globals.hasMultipleLayouts = function () {\r\n return Globals.layouts.length > 1;\r\n };\r\n Globals.getFirstLayout = function () {\r\n return Globals.layouts[0];\r\n };\r\n Globals.getLayouts = function () {\r\n return Globals.layouts;\r\n };\r\n Globals.layouts = [];\r\n Globals.themes = [];\r\n return Globals;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2dsb2JhbHMudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZG9tYWluL2dsb2JhbHMudHM/MGU2NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZS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ICAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICAgICAgICAgICAgICAgIGBFcnJvcjogTGFuZ3VhZ2UgY29kZSAnJHtsYXlvdXQuY29kZX0nIGNhbm5vdCBiZSByZWdpc3RlcmVkIGZvciBsYXlvdXQgJyR7bGF5b3V0LnByZXR0eU5hbWV9JyBcbiAgICAgICAgICAgICAgICAgICAgICAgICBiZWNhdXNlIGl0IGlzIGFscmVhZHkgcmVnaXN0ZXJlZCBmb3IgbGF5b3V0ICcke2VsZW1lbnQucHJldHR5TmFtZX0nIWBcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICAgICAgaWYgKGF2YWlsYWJsZSkge1xuICAgICAgICAgICAgR2xvYmFscy5sYXlvdXRzLnB1c2gobGF5b3V0KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRpYyBoYXNMYXlvdXRzKCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gR2xvYmFscy5sYXlvdXRzLmxlbmd0aCA+IDA7XG4gICAgfVxuXG4gICAgc3RhdGljIGhhc011bHRpcGxlTGF5b3V0cygpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIEdsb2JhbHMubGF5b3V0cy5sZW5ndGggPiAxO1xuICAgIH1cblxuICAgIHN0YXRpYyBnZXRGaXJzdExheW91dCgpOiBMYXlvdXQge1xuICAgICAgICByZXR1cm4gR2xvYmFscy5sYXlvdXRzWzBdO1xuICAgIH1cblxuICAgIHN0YXRpYyBnZXRMYXlvdXRzKCk6IExheW91dFtdIHtcbiAgICAgICAgcmV0dXJuIEdsb2JhbHMubGF5b3V0cztcbiAgICB9XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7OztBQWFBO0FBS0E7QUFBQTtBQW1FQTtBQS9EQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBakVBO0FBQ0E7QUFpRUE7QUFBQTtBQW5FQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/domain/globals.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Globals\", function() { return Globals; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\nvar Globals = /** @class */ (function () {\r\n function Globals() {\r\n }\r\n Globals.registerTheme = function (name, styleClass) {\r\n if (Globals.themes.some(function (value) { return value.name === name; })) {\r\n console.log(\"Theme with name '\" + name + \"' already registered; ignoring register request for styleClass '\" + styleClass + \"'.\");\r\n }\r\n else {\r\n Globals.themes.push({\r\n name: name,\r\n styleClass: styleClass\r\n });\r\n }\r\n };\r\n Globals.hasThemes = function () {\r\n return Globals.themes.length > 0;\r\n };\r\n Globals.hasMultipleThemes = function () {\r\n return Globals.themes.length > 1;\r\n };\r\n Globals.getFirstTheme = function () {\r\n return Globals.getTheme(0);\r\n };\r\n Globals.getTheme = function (index) {\r\n return Globals.themes[index];\r\n };\r\n Globals.getThemes = function () {\r\n return Globals.themes;\r\n };\r\n Globals.registerLayout = function (layout) {\r\n var available = !Globals.layouts.some(function (element) {\r\n if (layout.code === element.code) {\r\n console.error(\"Error: Language code '\" + layout.code + \"' cannot be registered for layout '\" + layout.prettyName + \"' \\n because it is already registered for layout '\" + element.prettyName + \"'!\");\r\n console.log(\"globals.ts\", \"REJECTING LAYOUT\", layout.code, Globals.layouts);\r\n return true;\r\n }\r\n return false;\r\n });\r\n if (available) {\r\n console.log(\"globals.ts\", \"registering layout\", layout.code, layout);\r\n Globals.layouts.push(layout);\r\n }\r\n else {\r\n console.log(\"globals.ts\", \"NOT registering layout\", layout.code, layout);\r\n }\r\n };\r\n Globals.hasLayouts = function () {\r\n return Globals.layouts.length > 0;\r\n };\r\n Globals.hasMultipleLayouts = function () {\r\n return Globals.layouts.length > 1;\r\n };\r\n Globals.getFirstLayout = function () {\r\n return Globals.layouts[0];\r\n };\r\n Globals.getLayouts = function () {\r\n return Globals.layouts;\r\n };\r\n Globals.layouts = [];\r\n Globals.themes = [];\r\n return Globals;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2dsb2JhbHMudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZG9tYWluL2dsb2JhbHMudHM/MGU2NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZS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YXZhaWxhYmxlID0gIUdsb2JhbHMubGF5b3V0cy5zb21lKGVsZW1lbnQgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChsYXlvdXQuY29kZSA9PT0gZWxlbWVudC5jb2RlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoXG4gICAgICAgICAgICAgICAgICAgICAgICBgRXJyb3I6IExhbmd1YWdlIGNvZGUgJyR7bGF5b3V0LmNvZGV9JyBjYW5ub3QgYmUgcmVnaXN0ZXJlZCBmb3IgbGF5b3V0ICcke2xheW91dC5wcmV0dHlOYW1lfScgXG4gICAgICAgICAgICAgICAgICAgICAgICAgYmVjYXVzZSBpdCBpcyBhbHJlYWR5IHJlZ2lzdGVyZWQgZm9yIGxheW91dCAnJHtlbGVtZW50LnByZXR0eU5hbWV9JyFgXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiZ2xvYmFscy50c1wiLCBcIlJFSkVDVElORyBMQVlPVVRcIiwgbGF5b3V0LmNvZGUsIEdsb2JhbHMubGF5b3V0cyk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgICAgIGlmIChhdmFpbGFibGUpIHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiZ2xvYmFscy50c1wiLCBcInJlZ2lzdGVyaW5nIGxheW91dFwiLCBsYXlvdXQuY29kZSwgbGF5b3V0KTtcbiAgICAgICAgICAgIEdsb2JhbHMubGF5b3V0cy5wdXNoKGxheW91dCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcImdsb2JhbHMudHNcIiwgXCJOT1QgcmVnaXN0ZXJpbmcgbGF5b3V0XCIsIGxheW91dC5jb2RlLCBsYXlvdXQp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7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _theme_autodetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-autodetector */ \"./src/theme-autodetector.ts\");\n/* harmony import */ var _uhr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uhr */ \"./src/uhr.ts\");\n/* harmony import */ var _layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout/layout-de_ch */ \"./src/layout/layout-de_ch.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\n\r\n\r\n\r\n// First things first: discover included themes and register them\r\nObject(_theme_autodetector__WEBPACK_IMPORTED_MODULE_1__[\"autodetectThemes\"])();\r\n// Now register some layouts\r\n_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout(_layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__[\"Layout_de_CH\"]);\r\n$.widget(\"fritteli.uhr\", {\r\n \"options\": {\r\n width: '100%',\r\n status: 'on',\r\n language: 'de_CH',\r\n theme: _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstTheme().styleClass,\r\n force: false,\r\n controls: true,\r\n cookiePath: undefined,\r\n autoresize: true,\r\n mode: 'normal'\r\n },\r\n \"start\": function () {\r\n this.__fritteli_uhr_instance.start();\r\n },\r\n \"stop\": function () {\r\n this.__fritteli_uhr_instance.stop();\r\n },\r\n \"toggle\": function () {\r\n this.__fritteli_uhr_instance.toggle();\r\n },\r\n \"language\": function (key) {\r\n this.__fritteli_uhr_instance.setLanguage(key);\r\n },\r\n \"theme\": function (styleClass) {\r\n this.__fritteli_uhr_instance.setTheme(styleClass);\r\n },\r\n \"time\": function (time) {\r\n this.__fritteli_uhr_instance.setTime(time);\r\n },\r\n \"mode\": function (mode) {\r\n this.__fritteli_uhr_instance.setMode(mode);\r\n },\r\n \"width\": function (width) {\r\n this.__fritteli_uhr_instance.setWidth(width);\r\n },\r\n // constructor method\r\n \"_create\": function () {\r\n this.__fritteli_uhr_instance = new _uhr__WEBPACK_IMPORTED_MODULE_2__[\"Uhr\"](this);\r\n },\r\n // destructor method\r\n \"_destroy\": function () {\r\n this.__fritteli_uhr_instance.destroy();\r\n },\r\n \"__fritteli_uhr_instance\": null\r\n});\r\n$.fritteli.uhr.register = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvaW5kZXgudHM/ZmZiNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIH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nN0IHdpZGdldDogSlF1ZXJ5VUkuV2lkZ2V0O1xuXG4gICAgaW50ZXJmYWNlIEZyaXR0ZWxpIHtcbiAgICAgICAgdWhyOiBVaHI7XG4gICAgfVxuXG4gICAgaW50ZXJmYWNlIFVociB7XG4gICAgICAgIHJlZ2lzdGVyOiAobGF5b3V0OiBMYXlvdXQpID0+IHZvaWQ7XG4gICAgfVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7Ozs7Ozs7Ozs7Ozs7QUFhQTtBQUVBO0FBQ0E7QUFDQTtBQUdBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/index.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _theme_autodetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-autodetector */ \"./src/theme-autodetector.ts\");\n/* harmony import */ var _uhr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uhr */ \"./src/uhr.ts\");\n/* harmony import */ var _layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout/layout-de_ch */ \"./src/layout/layout-de_ch.ts\");\n/* harmony import */ var _layout_layout_de_ch_genau__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout/layout-de_ch_genau */ \"./src/layout/layout-de_ch_genau.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\n\r\n\r\n\r\n\r\n// First things first: discover included themes and register them\r\nObject(_theme_autodetector__WEBPACK_IMPORTED_MODULE_1__[\"autodetectThemes\"])();\r\n// Now register some layouts\r\n_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout(_layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__[\"Layout_de_CH\"]);\r\n_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout(_layout_layout_de_ch_genau__WEBPACK_IMPORTED_MODULE_4__[\"Layout_de_CH_genau\"]);\r\n$.widget(\"fritteli.uhr\", {\r\n \"options\": {\r\n width: '100%',\r\n status: 'on',\r\n language: 'de_CH',\r\n theme: _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstTheme().styleClass,\r\n force: false,\r\n controls: true,\r\n cookiePath: undefined,\r\n autoresize: true,\r\n mode: 'normal'\r\n },\r\n \"start\": function () {\r\n this.__fritteli_uhr_instance.start();\r\n },\r\n \"stop\": function () {\r\n this.__fritteli_uhr_instance.stop();\r\n },\r\n \"toggle\": function () {\r\n this.__fritteli_uhr_instance.toggle();\r\n },\r\n \"language\": function (key) {\r\n this.__fritteli_uhr_instance.setLanguage(key);\r\n },\r\n \"theme\": function (styleClass) {\r\n this.__fritteli_uhr_instance.setTheme(styleClass);\r\n },\r\n \"time\": function (time) {\r\n this.__fritteli_uhr_instance.setTime(time);\r\n },\r\n \"mode\": function (mode) {\r\n this.__fritteli_uhr_instance.setMode(mode);\r\n },\r\n \"width\": function (width) {\r\n this.__fritteli_uhr_instance.setWidth(width);\r\n },\r\n // constructor method\r\n \"_create\": function () {\r\n this.__fritteli_uhr_instance = new _uhr__WEBPACK_IMPORTED_MODULE_2__[\"Uhr\"](this);\r\n },\r\n // destructor method\r\n \"_destroy\": function () {\r\n this.__fritteli_uhr_instance.destroy();\r\n },\r\n \"__fritteli_uhr_instance\": null\r\n});\r\n$.fritteli.uhr.register = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvaW5kZXgudHM/ZmZiNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBid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ldpZGdldDtcblxuICAgIGludGVyZmFjZSBGcml0dGVsaSB7XG4gICAgICAgIHVocjogVWhyO1xuICAgIH1cblxuICAgIGludGVyZmFjZSBVaHIge1xuICAgICAgICByZWdpc3RlcjogKGxheW91dDogTGF5b3V0KSA9PiB2b2lkO1xuICAgIH1cbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7Ozs7Ozs7Ozs7Ozs7QUFhQTtBQUVBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/index.ts\n"); /***/ }), @@ -153,7 +164,19 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dom /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Layout_de_CH\", function() { return Layout_de_CH; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\nvar es_isch = { 1: [1, 2, 4, 5, 6, 7] };\r\nvar ab = { 4: [1, 2] };\r\nvar vor = { 3: [9, 10, 11] };\r\nvar haubi = { 4: [4, 5, 6, 7, 8] };\r\nvar fuef = { 1: [9, 10, 11] };\r\nvar zae = { 2: [9, 10, 11] };\r\nvar viertu = { 2: [1, 2, 3, 4, 5, 6] };\r\nvar zwaenzg = { 3: [1, 2, 3, 4, 5, 6] };\r\nvar Layout_de_CH = {\r\n code: 'de_CH',\r\n hours: {\r\n '0,12': { 10: [1, 2, 3, 4, 5, 6] },\r\n '1,13': { 5: [1, 2, 3] },\r\n '2,14': { 5: [4, 5, 6, 7] },\r\n '3,15': { 5: [9, 10, 11] },\r\n '4,16': { 6: [1, 2, 3, 4, 5] },\r\n '5,17': { 6: [6, 7, 8, 9] },\r\n '6,18': { 7: [1, 2, 3, 4, 5, 6] },\r\n '7,19': { 7: [7, 8, 9, 10, 11] },\r\n '8,20': { 8: [1, 2, 3, 4, 5] },\r\n '9,21': { 8: [6, 7, 8, 9] },\r\n '10,22': { 9: [1, 2, 3, 4] },\r\n '11,23': { 9: [8, 9, 10, 11] }\r\n },\r\n letters: [\r\n 'ESKISCHAFÜF',\r\n 'VIERTUBFZÄÄ',\r\n 'ZWÄNZGSIVOR',\r\n 'ABOHAUBIEGE',\r\n 'EISZWÖISDRÜ',\r\n 'VIERIFÜFIQT',\r\n 'SÄCHSISIBNI',\r\n 'ACHTINÜNIEL',\r\n 'ZÄNIERBEUFI',\r\n 'ZWÖUFINAUHR'\r\n ],\r\n minutes: {\r\n \"5,6,7,8,9\": [fuef, ab],\r\n \"10,11,12,13,14\": [zae, ab],\r\n \"15,16,17,18,19\": [viertu, ab],\r\n \"20,21,22,23,24\": [zwaenzg, ab],\r\n \"25,26,27,28,29\": [fuef, vor, haubi],\r\n \"30,31,32,33,34\": haubi,\r\n \"35,36,37,38,39\": [fuef, ab, haubi],\r\n \"40,41,42,43,44\": [zwaenzg, vor],\r\n \"45,46,47,48,49\": [viertu, vor],\r\n \"50,51,52,53,54\": [zae, vor],\r\n \"55,56,57,58,59\": [fuef, vor]\r\n },\r\n permanent: es_isch,\r\n prettyName: 'Bärndütsch',\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbGF5b3V0L2xheW91dC1kZV9jaC50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9sYXlvdXQvbGF5b3V0LWRlX2NoLnRzP2E2ODIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxuXG4gVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcbiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuICBTZWUgdGhlXG4gR05VIEdlbmVyYWwgUHVibGljIExpY2V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AgICAgXCI0MCw0MSw0Miw0Myw0NFwiOiBbendhZW56Zywgdm9yXSxcbiAgICAgICAgXCI0NSw0Niw0Nyw0OCw0OVwiOiBbdmllcnR1LCB2b3JdLFxuICAgICAgICBcIjUwLDUxLDUyLDUzLDU0XCI6IFt6YWUsIHZvcl0sXG4gICAgICAgIFwiNTUsNTYsNTcsNTgsNTlcIjogW2Z1ZWYsIHZvcl1cblxuICAgIH0sXG4gICAgcGVybWFuZW50OiBlc19pc2NoLFxuICAgIHByZXR0eU5hbWU6ICdCw6RybmTDvHRzY2gnLFxuICAgIHZlcnNpb246IDJcbn07XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7OztBQWFBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/layout/layout-de_ch.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Layout_de_CH\", function() { return Layout_de_CH; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\nvar es_isch = { 1: [1, 2, 4, 5, 6, 7] };\r\nvar ab = { 4: [1, 2] };\r\nvar vor = { 3: [9, 10, 11] };\r\nvar haubi = { 4: [4, 5, 6, 7, 8] };\r\nvar fuef = { 1: [9, 10, 11] };\r\nvar zae = { 2: [9, 10, 11] };\r\nvar viertu = { 2: [1, 2, 3, 4, 5, 6] };\r\nvar zwaenzg = { 3: [1, 2, 3, 4, 5, 6] };\r\nvar Layout_de_CH = {\r\n code: 'de_CH',\r\n hours: {\r\n '0,12': { 10: [1, 2, 3, 4, 5, 6] },\r\n '1,13': { 5: [1, 2, 3] },\r\n '2,14': { 5: [4, 5, 6, 7] },\r\n '3,15': { 5: [9, 10, 11] },\r\n '4,16': { 6: [1, 2, 3, 4, 5] },\r\n '5,17': { 6: [6, 7, 8, 9] },\r\n '6,18': { 7: [1, 2, 3, 4, 5, 6] },\r\n '7,19': { 7: [7, 8, 9, 10, 11] },\r\n '8,20': { 8: [1, 2, 3, 4, 5] },\r\n '9,21': { 8: [6, 7, 8, 9] },\r\n '10,22': { 9: [1, 2, 3, 4] },\r\n '11,23': { 9: [8, 9, 10, 11] }\r\n },\r\n letters: [\r\n 'ESKISCHAFÜF',\r\n 'VIERTUBFZÄÄ',\r\n 'ZWÄNZGSIVOR',\r\n 'ABOHAUBIEGE',\r\n 'EISZWÖISDRÜ',\r\n 'VIERIFÜFIQT',\r\n 'SÄCHSISIBNI',\r\n 'ACHTINÜNIEL',\r\n 'ZÄNIERBEUFI',\r\n 'ZWÖUFINAUHR'\r\n ],\r\n minutes: {\r\n \"5,6,7,8,9\": [fuef, ab],\r\n \"10,11,12,13,14\": [zae, ab],\r\n \"15,16,17,18,19\": [viertu, ab],\r\n \"20,21,22,23,24\": [zwaenzg, ab],\r\n \"25,26,27,28,29\": [fuef, vor, haubi],\r\n \"30,31,32,33,34\": haubi,\r\n \"35,36,37,38,39\": [fuef, ab, haubi],\r\n \"40,41,42,43,44\": [zwaenzg, vor],\r\n \"45,46,47,48,49\": [viertu, vor],\r\n \"50,51,52,53,54\": [zae, vor],\r\n \"55,56,57,58,59\": [fuef, vor]\r\n },\r\n permanent: es_isch,\r\n prettyName: 'Bärndütsch',\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbGF5b3V0L2xheW91dC1kZV9jaC50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9sYXlvdXQvbGF5b3V0LWRlX2NoLnRzP2E2ODIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxuXG4gVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcbiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuICBTZWUgdGhlXG4gR05VIEdlbmVyY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iB7NTogWzQsIDUsIDYsIDddfSxcbiAgICAgICAgJzMsMTUnOiB7NTogWzksIDEwLCAxMV19LFxuICAgICAgICAnNCwxNic6IHs2OiBbMSwgMiwgMywgNCwgNV19LFxuICAgICAgICAnNSwxNyc6IHs2OiBbNiwgNywgOCwgOV19LFxuICAgICAgICAnNiwxOCc6IHs3OiBbMSwgMiwgMywgNCwgNSwgNl19LFxuICAgICAgICAnNywxOSc6IHs3OiBbNywgOCwgOSwgMTAsIDExXX0sXG4gICAgICAgICc4LDIwJzogezg6IFsxLCAyLCAzLCA0LCA1XX0sXG4gICAgICAgICc5LDIxJzogezg6IFs2LCA3LCA4LCA5XX0sXG4gICAgICAgICcxMCwyMic6IHs5OiBbMSwgMiwgMywgNF19LFxuICAgICAgICAnMTEsMjMnOiB7OTogWzgsIDksIDEwLCAxMV19XG4gICAgfSxcbiAgICBsZXR0ZXJzOiBbXG4gICAgICAgICdFU0tJU0NIQUbDnEYnLFxuICAgICAgICAnVklFUlRVQkZaw4TDhCcsXG4gICAgICAgICdaV8OETlpHU0lWT1InLFxuICAgICAgICAnQUJPSEFVQklFR0UnLFxuICAgICAgICAnRUlTWlfDlklTRFLDnCcsXG4gICAgICAgICdWSUVSSUbDnEZJUVQnLFxuICAgICAgICAnU8OEQ0hTSVNJQk5JJyxcbiAgICAgICAgJ0FDSFRJTsOcTklFTCcsXG4gICAgICAgICdaw4ROSUVSQkVVRkknLFxuICAgICAgICAnWlfDllVGSU5BVUhSJ1xuICAgIF0sXG4gICAgbWludXRlczoge1xuICAgICAgICBcIjUsNiw3LDgsOVwiOiBbZnVlZiwgYWJdLFxuICAgICAgICBcIjEwLDExLDEyLDEzLDE0XCI6IFt6YWUsIGFiXSxcbiAgICAgICAgXCIxNSwxNiwxNywxOCwxOVwiOiBbdmllcnR1LCBhYl0sXG4gICAgICAgIFwiMjAsMjEsMjIsMjMsMjRcIjogW3p3YWVuemcsIGFiXSxcbiAgICAgICAgXCIyNSwyNiwyNywyOCwyOVwiOiBbZnVlZiwgdm9yLCBoYXViaV0sXG4gICAgICAgIFwiMzAsMzEsMzIsMzMsMzRcIjogaGF1YmksXG4gICAgICAgIFwiMzUsMzYsMzcsMzgsMzlcIjogW2Z1ZWYsIGFiLCBoYXViaV0sXG4gICAgICAgIFwiNDAsNDEsNDIsNDMsNDRcIjogW3p3YWVuemcsIHZvcl0sXG4gICAgICAgIFwiNDUsNDYsNDcsNDgsNDlcIjogW3ZpZXJ0dSwgdm9yXSxcbiAgICAgICAgXCI1MCw1MSw1Miw1Myw1NFwiOiBbemFlLCB2b3JdLFxuICAgICAgICBcIjU1LDU2LDU3LDU4LDU5XCI6IFtmdWVmLCB2b3JdXG4gICAgfSxcbiAgICBwZXJtYW5lbnQ6IGVzX2lzY2gsXG4gICAgcHJldHR5TmFtZTogJ0LDpHJuZMO8dHNjaCcsXG4gICAgdmVyc2lvbjogMlxufTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBOzs7Ozs7Ozs7Ozs7O0FBYUE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/layout/layout-de_ch.ts\n"); + +/***/ }), + +/***/ "./src/layout/layout-de_ch_genau.ts": +/*!******************************************!*\ + !*** ./src/layout/layout-de_ch_genau.ts ***! + \******************************************/ +/*! exports provided: Layout_de_CH_genau */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Layout_de_CH_genau\", function() { return Layout_de_CH_genau; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\nvar es_isch = { 1: [1, 2, 4, 5, 6, 7] };\r\nvar genau = { 3: [7, 8, 9, 10, 11] };\r\nvar ab = { 4: [4, 5] };\r\nvar vor = { 4: [1, 2, 3] };\r\nvar haubi = { 4: [7, 8, 9, 10, 11] };\r\nvar fuef = { 1: [9, 10, 11] };\r\nvar zae = { 2: [9, 10, 11] };\r\nvar viertu = { 2: [1, 2, 3, 4, 5, 6] };\r\nvar zwaenzg = { 3: [1, 2, 3, 4, 5, 6] };\r\nvar Layout_de_CH_genau = {\r\n code: 'de_CH_genau',\r\n hours: {\r\n \"0,12\": { 10: [1, 2, 3, 4, 5, 6] },\r\n \"1,13\": { 5: [1, 2, 3] },\r\n \"2,14\": { 5: [4, 5, 6, 7] },\r\n \"3,15\": { 5: [9, 10, 11] },\r\n \"4,16\": { 6: [1, 2, 3, 4, 5] },\r\n \"5,17\": { 6: [6, 7, 8, 9] },\r\n \"6,18\": { 7: [1, 2, 3, 4, 5, 6] },\r\n \"7,19\": { 7: [7, 8, 9, 10, 11] },\r\n \"8,20\": { 8: [1, 2, 3, 4, 5] },\r\n \"9,21\": { 8: [6, 7, 8, 9] },\r\n \"10,22\": { 9: [1, 2, 3, 4] },\r\n \"11,23\": { 9: [8, 9, 10, 11] }\r\n },\r\n letters: [\r\n 'ESKISCHAFÜF',\r\n 'VIERTUBFZÄÄ',\r\n 'ZWÄNZGGENAU',\r\n 'VORABOHAUBI',\r\n 'EISZWÖISDRÜ',\r\n 'VIERIFÜFIQT',\r\n 'SÄCHSISIBNI',\r\n 'ACHTINÜNIEL',\r\n 'ZÄNIERBEUFI',\r\n 'ZWÖUFINAUHR'\r\n ],\r\n minutes: {\r\n \"0\": genau,\r\n \"5,6,7,8,9\": [fuef, ab],\r\n \"10,11,12,13,14\": [zae, ab],\r\n \"15,16,17,18,19\": [viertu, ab],\r\n \"20,21,22,23,24\": [zwaenzg, ab],\r\n \"25,26,27,28,29\": [fuef, vor, haubi],\r\n \"30,31,32,33,34\": haubi,\r\n \"35,36,37,38,39\": [fuef, ab, haubi],\r\n \"40,41,42,43,44\": [zwaenzg, vor],\r\n \"45,46,47,48,49\": [viertu, vor],\r\n \"50,51,52,53,54\": [zae, vor],\r\n \"55,56,57,58,59\": [fuef, vor]\r\n },\r\n permanent: es_isch,\r\n prettyName: 'Bärndütsch (genau)',\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbGF5b3V0L2xheW91dC1kZV9jaF9nZW5hdS50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9sYXlvdXQvbGF5b3V0LWRlX2NoX2dlbmF1LnRzP2VjZmMiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUg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sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7Ozs7Ozs7Ozs7Ozs7QUFhQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/layout/layout-de_ch_genau.ts\n"); /***/ }), @@ -165,7 +188,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UhrRenderer\", function() { return UhrRenderer; });\n/* harmony import */ var _domain_letter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/letter */ \"./src/domain/letter.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\nvar UhrRendererV2Delegate = /** @class */ (function () {\r\n function UhrRendererV2Delegate(layout) {\r\n this.layout = layout;\r\n }\r\n UhrRendererV2Delegate.prototype.parse = function () {\r\n var letters = [];\r\n this.layout.letters.forEach(function (lineString) {\r\n var line = [];\r\n for (var c = 0; c < lineString.length; c++) {\r\n line.push(new _domain_letter__WEBPACK_IMPORTED_MODULE_0__[\"Letter\"](lineString[c]));\r\n }\r\n letters.push(line);\r\n });\r\n this.parseArrayOrObject(letters, 'on', this.layout.permanent);\r\n if (typeof this.layout.seconds !== 'undefined' && this.layout.seconds !== null) {\r\n this.parseTimeDefinition(letters, 'second', this.layout.seconds);\r\n }\r\n else {\r\n this.parseTimeDefinition(letters, 'second', UhrRendererV2Delegate.seconds);\r\n }\r\n this.parseTimeDefinition(letters, 'minute', this.layout.minutes);\r\n this.parseTimeDefinition(letters, 'hour', this.layout.hours);\r\n return letters;\r\n };\r\n ;\r\n UhrRendererV2Delegate.prototype.parseObject = function (letters, styleClass, object) {\r\n if (typeof object !== 'undefined' && object !== null) {\r\n Object.keys(object)\r\n .map(function (key) { return Number(key); })\r\n .forEach(function (y) { return object[y].forEach(function (x) { return letters[y - 1][x - 1].addStyle(styleClass); }); });\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseArrayOrObject = function (letters, styleClass, input) {\r\n var _this = this;\r\n if (typeof input !== 'undefined' && input !== null) {\r\n if (Array.isArray(input)) {\r\n input.forEach(function (item) { return _this.parseObject(letters, styleClass, item); });\r\n }\r\n else {\r\n this.parseObject(letters, styleClass, input);\r\n }\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseTimeDefinition = function (letters, styleClass, definition) {\r\n var _this = this;\r\n if (typeof definition !== 'undefined' && definition !== null) {\r\n Object.keys(definition).forEach(function (listString) {\r\n var timeValues = listString.split(',');\r\n var highlightLetters = definition[listString];\r\n timeValues.forEach(function (timeValue) { return _this.parseArrayOrObject(letters, styleClass + timeValue, highlightLetters); });\r\n });\r\n }\r\n };\r\n UhrRendererV2Delegate.vorne0 = {\r\n 3: [2, 3, 4],\r\n 4: [1, 5],\r\n 5: [1, 4, 5],\r\n 6: [1, 3, 5],\r\n 7: [1, 2, 5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten0 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 10, 11],\r\n 6: [7, 9, 11],\r\n 7: [7, 8, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne1 = {\r\n 3: [3],\r\n 4: [2, 3],\r\n 5: [3],\r\n 6: [3],\r\n 7: [3],\r\n 8: [3],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten1 = {\r\n 3: [9],\r\n 4: [8, 9],\r\n 5: [9],\r\n 6: [9],\r\n 7: [9],\r\n 8: [9],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne2 = {\r\n 3: [2, 3, 4],\r\n 4: [1, 5],\r\n 5: [5],\r\n 6: [4],\r\n 7: [3],\r\n 8: [2],\r\n 9: [1, 2, 3, 4, 5]\r\n };\r\n UhrRendererV2Delegate.hinten2 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [11],\r\n 6: [10],\r\n 7: [9],\r\n 8: [8],\r\n 9: [7, 8, 9, 10, 11]\r\n };\r\n UhrRendererV2Delegate.vorne3 = {\r\n 3: [1, 2, 3, 4, 5],\r\n 4: [4],\r\n 5: [3],\r\n 6: [4],\r\n 7: [5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten3 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [10],\r\n 5: [9],\r\n 6: [10],\r\n 7: [11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne4 = {\r\n 3: [4],\r\n 4: [3, 4],\r\n 5: [2, 4],\r\n 6: [1, 4],\r\n 7: [1, 2, 3, 4, 5],\r\n 8: [4],\r\n 9: [4]\r\n };\r\n UhrRendererV2Delegate.hinten4 = {\r\n 3: [10],\r\n 4: [9, 10],\r\n 5: [8, 10],\r\n 6: [7, 10],\r\n 7: [7, 8, 9, 10, 11],\r\n 8: [10],\r\n 9: [10]\r\n };\r\n UhrRendererV2Delegate.vorne5 = {\r\n 3: [1, 2, 3, 4, 5],\r\n 4: [1],\r\n 5: [1, 2, 3, 4],\r\n 6: [5],\r\n 7: [5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten5 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [7],\r\n 5: [7, 8, 9, 10],\r\n 6: [11],\r\n 7: [11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten6 = {\r\n 3: [9, 10],\r\n 4: [8],\r\n 5: [7],\r\n 6: [7, 8, 9, 10],\r\n 7: [7, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten7 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [11],\r\n 5: [10],\r\n 6: [9],\r\n 7: [8],\r\n 8: [8],\r\n 9: [8]\r\n };\r\n UhrRendererV2Delegate.hinten8 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 11],\r\n 6: [8, 9, 10],\r\n 7: [7, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten9 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 11],\r\n 6: [8, 9, 10, 11],\r\n 7: [11],\r\n 8: [10],\r\n 9: [8, 9]\r\n };\r\n UhrRendererV2Delegate.seconds = {\r\n \"0\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten0],\r\n \"1\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten1],\r\n \"2\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten2],\r\n \"3\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten3],\r\n \"4\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten4],\r\n \"5\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten5],\r\n \"6\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten6],\r\n \"7\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten7],\r\n \"8\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten8],\r\n \"9\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten9],\r\n \"10\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten0],\r\n \"11\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten1],\r\n \"12\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten2],\r\n \"13\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten3],\r\n \"14\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten4],\r\n \"15\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten5],\r\n \"16\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten6],\r\n \"17\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten7],\r\n \"18\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten8],\r\n \"19\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten9],\r\n \"20\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten0],\r\n \"21\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten1],\r\n \"22\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten2],\r\n \"23\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten3],\r\n \"24\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten4],\r\n \"25\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten5],\r\n \"26\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten6],\r\n \"27\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten7],\r\n \"28\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten8],\r\n \"29\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten9],\r\n \"30\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten0],\r\n \"31\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten1],\r\n \"32\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten2],\r\n \"33\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten3],\r\n \"34\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten4],\r\n \"35\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten5],\r\n \"36\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten6],\r\n \"37\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten7],\r\n \"38\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten8],\r\n \"39\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten9],\r\n \"40\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten0],\r\n \"41\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten1],\r\n \"42\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten2],\r\n \"43\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten3],\r\n \"44\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten4],\r\n \"45\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten5],\r\n \"46\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten6],\r\n \"47\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten7],\r\n \"48\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten8],\r\n \"49\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten9],\r\n \"50\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten0],\r\n \"51\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten1],\r\n \"52\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten2],\r\n \"53\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten3],\r\n \"54\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten4],\r\n \"55\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten5],\r\n \"56\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten6],\r\n \"57\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten7],\r\n \"58\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten8],\r\n \"59\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten9]\r\n };\r\n return UhrRendererV2Delegate;\r\n}());\r\n/**\r\n * Hilfsklasse zum Rendern der Uhr.\r\n * @param layout Layout-Objekt, das gerendert werden soll.\r\n * @param renderarea Das jQuery-gewrappte HTML-Element, auf dem gerendert werden soll.\r\n */\r\nvar UhrRenderer = /** @class */ (function () {\r\n function UhrRenderer(layout, renderarea /*FIXME any: jQuery-wrapped HTML element*/) {\r\n this.layout = layout;\r\n this.renderarea = renderarea;\r\n }\r\n UhrRenderer.prototype.render = function (beforeshow) {\r\n var _this = this;\r\n if (this.layout.parsed === undefined) {\r\n if (this.layout.version === 2) {\r\n var delegate = new UhrRendererV2Delegate(this.layout);\r\n var parsedLayout = delegate.parse();\r\n Object.defineProperty(this.layout, \"parsed\", {\r\n \"value\": parsedLayout,\r\n \"writable\": false,\r\n \"configurable\": false\r\n });\r\n }\r\n else {\r\n console.warn(\"Unknown layout version: '\" + this.layout.version + \"', expecting '2'\");\r\n return;\r\n }\r\n }\r\n var letters = this.layout.parsed;\r\n this.renderarea.fadeOut('fast', function () {\r\n _this.renderarea.empty();\r\n letters.forEach(function (line, index, array) {\r\n line.forEach(function (letter) { return _this.renderarea.append(letter.toString()); });\r\n if (index < array.length - 1) {\r\n _this.renderarea.append('
');\r\n }\r\n });\r\n if (typeof beforeshow === 'function') {\r\n beforeshow();\r\n }\r\n _this.renderarea.fadeIn('fast');\r\n });\r\n };\r\n ;\r\n return UhrRenderer;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcmVuZGVyZXIudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvcmVuZGVyZXIudHM/NWUwZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyY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FxuICAgICAgICA5OiBbOCwgOSwgMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSB2b3JuZTE6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbM10sXG4gICAgICAgIDQ6IFsyLCAzXSxcbiAgICAgICAgNTogWzNdLFxuICAgICAgICA2OiBbM10sXG4gICAgICAgIDc6IFszXSxcbiAgICAgICAgODogWzNdLFxuICAgICAgICA5OiBbMiwgMywgNF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjE6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbOV0sXG4gICAgICAgIDQ6IFs4LCA5XSxcbiAgICAgICAgNTogWzldLFxuICAgICAgICA2OiBbOV0sXG4gICAgICAgIDc6IFs5XSxcbiAgICAgICAgODogWzldLFxuICAgICAgICA5OiBbOCwgOSwgMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSB2b3JuZTI6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbMiwgMywgNF0sXG4gICAgICAgIDQ6IFsxLCA1XSxcbiAgICAgICAgNTogWzVdLFxuICAgICAgICA2OiBbNF0sXG4gICAgICAgIDc6IFszXSxcbiAgICAgICAgODogWzJdLFxuICAgICAgICA5OiBbMSwgMiwgMywgNCwgNV1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjI6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbOCwgOSwgMTBdLFxuICAgICAgICA0OiBbNywgMTFdLFxuICAgICAgICA1OiBbMTFdLFxuICAgICAgICA2OiBbMTBdLFxuICAgICAgICA3OiBbOV0sXG4gICAgICAgIDg6IFs4XSxcbiAgICAgICAgOTogWzcsIDgsIDksIDEwLCAxMV1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IHZvcm5lMzogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFsxLCAyLCAzLCA0LCA1XSxcbiAgICAgICAgNDogWzRdLFxuICAgICAgICA1OiBbM10sXG4gICAgICAgIDY6IFs0XSxcbiAgICAgICAgNzogWzVdLFxuICAgICAgICA4OiBbMSwgNV0sXG4gICAgICAgIDk6IFsyLCAzLCA0XVxuICAgIH07XG4gICAgcHJpdmF0ZSBzdGF0aWMgcmVhZG9ubHkgaGludGVuMzogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFs3LCA4LCA5LCAxMCwgMTFdLFxuICAgICAgICA0OiBbMTBdLFxuICAgICAgICA1OiBbOV0sXG4gICAgICAgIDY6IFsxMF0sXG4gICAgICAgIDc6IFsxMV0sXG4gICAgICAgIDg6IFs3LCAxMV0sXG4gICAgICAgIDk6IFs4LCA5LCAxMF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IHZvcm5lNDogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFs0XSxcbiAgICAgICAgNDogWzMsIDRdLFxuICAgICAgICA1OiBbMiwgNF0sXG4gICAgICAgIDY6IFsxLCA0XSxcbiAgICAgICAgNzogWzEsIDIsIDMsIDQsIDVdLFxuICAgICAgICA4OiBbNF0sXG4gICAgICAgIDk6IFs0XVxuICAgIH07XG4gICAgcHJpdmF0ZSBzdGF0aWMgcmVhZG9ubHkgaGludGVuNDogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFsxMF0sXG4gICAgICAgIDQ6IFs5LCAxMF0sXG4gICAgICAgIDU6IFs4LCAxMF0sXG4gICAgICAgIDY6IFs3LCAxMF0sXG4gICAgICAgIDc6IFs3LCA4LCA5LCAxMCwgMTFdLFxuICAgICAgICA4OiBbMTBdLFxuICAgICAgICA5OiBbMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSB2b3JuZTU6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbMSwgMiwgMywgNCwgNV0sXG4gICAgICAgIDQ6IFsxXSxcbiAgICAgICAgNTogWzEsIDIsIDMsIDRdLFxuICAgICAgICA2OiBbNV0sXG4gICAgICAgIDc6IFs1XSxcbiAgICAgICAgODogWzEsIDVdLFxuICAgICAgICA5OiBbMiwgMywgNF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjU6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbNywgOCwgOSwgMTAsIDExXSxcbiAgICAgICAgNDogWzddLFxuICAgICAgICA1OiBbNywgOCwgOSwgMTBdLFxuICAgICAgICA2OiBbMTFdLFxuICAgICAgICA3OiBbMTFdLFxuICAgICAgICA4OiBbNywgMTFdLFxuICAgICAgICA5OiBbOCwgOSwgMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSBoaW50ZW42OiBXb3JkRGVmaW5pdGlvbiA9IHtcbiAgICAgICAgMzogWzksIDEwXSxcbiAgICAgICAgNDogWzhdLFxuICAgICAgICA1OiBbN10sXG4gICAgICAgIDY6IFs3LCA4LCA5LCAxMF0sXG4gICAgICAgIDc6IFs3LCAxMV0sXG4gICAgICAgIDg6IFs3LCAxMV0sXG4gICAgICAgIDk6IFs4LCA5LCAxMF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjc6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbNywgOCwgOSwgMTAsIDExXSxcbiAgICAgICAgNDogWzExXSxcbiAgICAgICAgNTogWzEwXSxcbiAgICAgICAgNjogWzldLFxuICAgICAgICA3OiBbOF0sXG4gICAgICAgIDg6IFs4XSxcbiAgICAgICAgOTogWzhdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSBoaW50ZW44OiBXb3JkRGVmaW5pdGlvbiA9IHtcbiAgICAgICAgMzogWz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dGhpcy5sYXlvdXQucGVybWFuZW50KTtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmxheW91dC5zZWNvbmRzICE9PSAndW5kZWZpbmVkJyAmJiB0aGlzLmxheW91dC5zZWNvbmRzICE9PSBudWxsKSB7XG4gICAgICAgICAgICB0aGlzLnBhcnNlVGltZURlZmluaXRpb24obGV0dGVycywgJ3NlY29uZCcsIHRoaXMubGF5b3V0LnNlY29uZHMpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdzZWNvbmQnLCBVaHJSZW5kZXJlclYyRGVsZWdhdGUuc2Vjb25kcyk7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdtaW51dGUnLCB0aGlzLmxheW91dC5taW51dGVzKTtcbiAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdob3VyJywgdGhpcy5sYXlvdXQuaG91cnMpO1xuICAgICAgICByZXR1cm4gbGV0dGVycztcbiAgICB9O1xuXG4gICAgcHJpdmF0ZSBwYXJzZU9iamVjdChsZXR0ZXJzOiBMZXR0ZXJbXVtdLCBzdHlsZUNsYXNzOiBzdHJpbmcsIG9iamVjdDogV29yZERlZmluaXRpb24pOiB2b2lkIHtcbiAgICAgICAgaWYgKHR5cGVvZiBvYmplY3QgIT09ICd1bmRlZmluZWQnICYmIG9iamVjdCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgT2JqZWN0LmtleXMob2JqZWN0KVxuICAgICAgICAgICAgICAgIC5tYXAoa2V5ID0+IE51bWJlcihrZXkpKVxuICAgICAgICAgICAgICAgIC5mb3JFYWNoKFxuICAgICAgICAgICAgICAgICAgICB5ID0+IG9iamVjdFt5XS5mb3JFYWNoKFxuICAgICAgICAgICAgICAgICAgICAgICAgeCA9PiBsZXR0ZXJzW3kgLSAxXVt4IC0gMV0uYWRkU3R5bGUoc3R5bGVDbGFzcylcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHBhcnNlQXJyYXlPck9iamVjdChsZXR0ZXJzOiBMZXR0ZXJbXVtdLCBzdHlsZUNsYXNzOiBzdHJpbmcsIGlucHV0OiBXb3JkRGVmaW5pdGlvbiB8IFdvcmREZWZpbml0aW9uW10pOiB2b2lkIHtcbiAgICAgICAgaWYgKHR5cGVvZiBpbnB1dCAhPT0gJ3VuZGVmaW5lZCcgJiYgaW5wdXQgIT09IG51bGwpIHtcbiAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KGlucHV0KSkge1xuICAgICAgICAgICAgICAgIGlucHV0LmZvckVhY2goaXRlbSA9PiB0aGlzLnBhcnNlT2JqZWN0KGxldHRlcnMsIHN0eWxlQ2xhc3MsIGl0ZW0pKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5wYXJzZU9iamVjdChsZXR0ZXJzLCBzdHlsZUNsYXNzLCBpbnB1dCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHBhcnNlVGltZURlZmluaXRpb24obGV0dGVyczogTGV0dGVyW11bXSwgc3R5bGVDbGFzczogc3RyaW5nLCBkZWZpbml0aW9uOiBUaW1lRGVmaW5pdGlvbik6IHZvaWQge1xuICAgICAgICBpZiAodHlwZW9mIGRlZmluaXRpb24gIT09ICd1bmRlZmluZWQnICYmIGRlZmluaXRpb24gIT09IG51bGwpIHtcbiAgICAgICAgICAgIE9iamVjdC5rZXlzKGRlZmluaXRpb24pLmZvckVhY2gobGlzdFN0cmluZyA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgdGltZVZhbHVlczogc3RyaW5nW10gPSBsaXN0U3RyaW5nLnNwbGl0KCcsJyk7XG4gICAgICAgICAgICAgICAg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vdXQpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcnNlZExheW91dDogTGV0dGVyW11bXSA9IGRlbGVnYXRlLnBhcnNlKCk7XG4gICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMubGF5b3V0LCBcInBhcnNlZFwiLCB7XG4gICAgICAgICAgICAgICAgICAgIFwidmFsdWVcIjogcGFyc2VkTGF5b3V0LFxuICAgICAgICAgICAgICAgICAgICBcIndyaXRhYmxlXCI6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICBcImNvbmZpZ3VyYWJsZVwiOiBmYWxzZVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLndhcm4oYFVua25vd24gbGF5b3V0IHZlcnNpb246ICcke3RoaXMubGF5b3V0LnZlcnNpb259JywgZXhwZWN0aW5nICcyJ2ApO1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBjb25zdCBsZXR0ZXJzOiBMZXR0ZXJbXVtdID0gdGhpcy5sYXlvdXQucGFyc2VkO1xuICAgICAgICB0aGlzLnJlbmRlcmFyZWEuZmFkZU91dCgnZmFzdCcsICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMucmVuZGVyYXJlYS5lbXB0eSgpO1xuICAgICAgICAgICAgbGV0dGVycy5mb3JFYWNoKChsaW5lLCBpbmRleCwgYXJyYXkpID0+IHtcbiAgICAgICAgICAgICAgICBsaW5lLmZvckVhY2gobGV0dGVyID0+IHRoaXMucmVuZGVyYXJlYS5hcHBlbmQobGV0dGVyLnRvU3RyaW5nKCkpKTtcbiAgICAgICAgICAgICAgICBpZiAoaW5kZXggPCBhcnJheS5sZW5ndGggLSAxKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyYXJlYS5hcHBlbmQoJzxici8+Jyk7XG4gICAgICAgICAgICAgICAg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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUF3REE7QUFBQTtBQUVBOzs7O0FBSUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTs7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/renderer.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UhrRenderer\", function() { return UhrRenderer; });\n/* harmony import */ var _domain_letter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/letter */ \"./src/domain/letter.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\nvar UhrRendererV2Delegate = /** @class */ (function () {\r\n function UhrRendererV2Delegate(layout) {\r\n this.layout = layout;\r\n }\r\n UhrRendererV2Delegate.prototype.parse = function () {\r\n var letters = [];\r\n this.layout.letters.forEach(function (lineString) {\r\n var line = [];\r\n for (var c = 0; c < lineString.length; c++) {\r\n line.push(new _domain_letter__WEBPACK_IMPORTED_MODULE_0__[\"Letter\"](lineString[c]));\r\n }\r\n letters.push(line);\r\n });\r\n this.parseArrayOrObject(letters, 'on', this.layout.permanent);\r\n if (typeof this.layout.seconds !== 'undefined' && this.layout.seconds !== null) {\r\n this.parseTimeDefinition(letters, 'second', this.layout.seconds);\r\n }\r\n else {\r\n this.parseTimeDefinition(letters, 'second', UhrRendererV2Delegate.seconds);\r\n }\r\n this.parseTimeDefinition(letters, 'minute', this.layout.minutes);\r\n this.parseTimeDefinition(letters, 'hour', this.layout.hours);\r\n console.log(\"renderer.ts\", \"parsed layout\", this.layout.code, this.layout, letters);\r\n return letters;\r\n };\r\n ;\r\n UhrRendererV2Delegate.prototype.parseObject = function (letters, styleClass, object) {\r\n if (typeof object !== 'undefined' && object !== null) {\r\n Object.keys(object)\r\n .map(function (key) { return Number(key); })\r\n .forEach(function (y) { return object[y].forEach(function (x) { return letters[y - 1][x - 1].addStyle(styleClass); }); });\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseArrayOrObject = function (letters, styleClass, input) {\r\n var _this = this;\r\n if (typeof input !== 'undefined' && input !== null) {\r\n if (Array.isArray(input)) {\r\n input.forEach(function (item) { return _this.parseObject(letters, styleClass, item); });\r\n }\r\n else {\r\n this.parseObject(letters, styleClass, input);\r\n }\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseTimeDefinition = function (letters, styleClass, definition) {\r\n var _this = this;\r\n if (typeof definition !== 'undefined' && definition !== null) {\r\n Object.keys(definition).forEach(function (listString) {\r\n var timeValues = listString.split(',');\r\n var highlightLetters = definition[listString];\r\n timeValues.forEach(function (timeValue) { return _this.parseArrayOrObject(letters, styleClass + timeValue, highlightLetters); });\r\n });\r\n }\r\n };\r\n UhrRendererV2Delegate.vorne0 = {\r\n 3: [2, 3, 4],\r\n 4: [1, 5],\r\n 5: [1, 4, 5],\r\n 6: [1, 3, 5],\r\n 7: [1, 2, 5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten0 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 10, 11],\r\n 6: [7, 9, 11],\r\n 7: [7, 8, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne1 = {\r\n 3: [3],\r\n 4: [2, 3],\r\n 5: [3],\r\n 6: [3],\r\n 7: [3],\r\n 8: [3],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten1 = {\r\n 3: [9],\r\n 4: [8, 9],\r\n 5: [9],\r\n 6: [9],\r\n 7: [9],\r\n 8: [9],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne2 = {\r\n 3: [2, 3, 4],\r\n 4: [1, 5],\r\n 5: [5],\r\n 6: [4],\r\n 7: [3],\r\n 8: [2],\r\n 9: [1, 2, 3, 4, 5]\r\n };\r\n UhrRendererV2Delegate.hinten2 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [11],\r\n 6: [10],\r\n 7: [9],\r\n 8: [8],\r\n 9: [7, 8, 9, 10, 11]\r\n };\r\n UhrRendererV2Delegate.vorne3 = {\r\n 3: [1, 2, 3, 4, 5],\r\n 4: [4],\r\n 5: [3],\r\n 6: [4],\r\n 7: [5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten3 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [10],\r\n 5: [9],\r\n 6: [10],\r\n 7: [11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.vorne4 = {\r\n 3: [4],\r\n 4: [3, 4],\r\n 5: [2, 4],\r\n 6: [1, 4],\r\n 7: [1, 2, 3, 4, 5],\r\n 8: [4],\r\n 9: [4]\r\n };\r\n UhrRendererV2Delegate.hinten4 = {\r\n 3: [10],\r\n 4: [9, 10],\r\n 5: [8, 10],\r\n 6: [7, 10],\r\n 7: [7, 8, 9, 10, 11],\r\n 8: [10],\r\n 9: [10]\r\n };\r\n UhrRendererV2Delegate.vorne5 = {\r\n 3: [1, 2, 3, 4, 5],\r\n 4: [1],\r\n 5: [1, 2, 3, 4],\r\n 6: [5],\r\n 7: [5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten5 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [7],\r\n 5: [7, 8, 9, 10],\r\n 6: [11],\r\n 7: [11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten6 = {\r\n 3: [9, 10],\r\n 4: [8],\r\n 5: [7],\r\n 6: [7, 8, 9, 10],\r\n 7: [7, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten7 = {\r\n 3: [7, 8, 9, 10, 11],\r\n 4: [11],\r\n 5: [10],\r\n 6: [9],\r\n 7: [8],\r\n 8: [8],\r\n 9: [8]\r\n };\r\n UhrRendererV2Delegate.hinten8 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 11],\r\n 6: [8, 9, 10],\r\n 7: [7, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n };\r\n UhrRendererV2Delegate.hinten9 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 11],\r\n 6: [8, 9, 10, 11],\r\n 7: [11],\r\n 8: [10],\r\n 9: [8, 9]\r\n };\r\n UhrRendererV2Delegate.seconds = {\r\n \"0\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten0],\r\n \"1\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten1],\r\n \"2\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten2],\r\n \"3\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten3],\r\n \"4\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten4],\r\n \"5\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten5],\r\n \"6\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten6],\r\n \"7\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten7],\r\n \"8\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten8],\r\n \"9\": [UhrRendererV2Delegate.vorne0, UhrRendererV2Delegate.hinten9],\r\n \"10\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten0],\r\n \"11\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten1],\r\n \"12\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten2],\r\n \"13\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten3],\r\n \"14\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten4],\r\n \"15\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten5],\r\n \"16\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten6],\r\n \"17\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten7],\r\n \"18\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten8],\r\n \"19\": [UhrRendererV2Delegate.vorne1, UhrRendererV2Delegate.hinten9],\r\n \"20\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten0],\r\n \"21\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten1],\r\n \"22\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten2],\r\n \"23\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten3],\r\n \"24\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten4],\r\n \"25\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten5],\r\n \"26\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten6],\r\n \"27\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten7],\r\n \"28\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten8],\r\n \"29\": [UhrRendererV2Delegate.vorne2, UhrRendererV2Delegate.hinten9],\r\n \"30\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten0],\r\n \"31\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten1],\r\n \"32\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten2],\r\n \"33\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten3],\r\n \"34\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten4],\r\n \"35\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten5],\r\n \"36\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten6],\r\n \"37\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten7],\r\n \"38\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten8],\r\n \"39\": [UhrRendererV2Delegate.vorne3, UhrRendererV2Delegate.hinten9],\r\n \"40\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten0],\r\n \"41\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten1],\r\n \"42\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten2],\r\n \"43\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten3],\r\n \"44\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten4],\r\n \"45\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten5],\r\n \"46\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten6],\r\n \"47\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten7],\r\n \"48\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten8],\r\n \"49\": [UhrRendererV2Delegate.vorne4, UhrRendererV2Delegate.hinten9],\r\n \"50\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten0],\r\n \"51\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten1],\r\n \"52\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten2],\r\n \"53\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten3],\r\n \"54\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten4],\r\n \"55\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten5],\r\n \"56\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten6],\r\n \"57\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten7],\r\n \"58\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten8],\r\n \"59\": [UhrRendererV2Delegate.vorne5, UhrRendererV2Delegate.hinten9]\r\n };\r\n return UhrRendererV2Delegate;\r\n}());\r\n/**\r\n * Hilfsklasse zum Rendern der Uhr.\r\n * @param layout Layout-Objekt, das gerendert werden soll.\r\n * @param renderarea Das jQuery-gewrappte HTML-Element, auf dem gerendert werden soll.\r\n */\r\nvar UhrRenderer = /** @class */ (function () {\r\n function UhrRenderer(layout, renderarea /*FIXME any: jQuery-wrapped HTML element*/) {\r\n this.layout = layout;\r\n this.renderarea = renderarea;\r\n }\r\n UhrRenderer.prototype.render = function (beforeshow) {\r\n var _this = this;\r\n if (this.layout.parsed === undefined) {\r\n if (this.layout.version === 2) {\r\n var delegate = new UhrRendererV2Delegate(this.layout);\r\n var parsedLayout = delegate.parse();\r\n console.log(\"renderer.ts\", \"got parsed layout\", parsedLayout);\r\n Object.defineProperty(this.layout, \"parsed\", {\r\n \"value\": parsedLayout,\r\n \"writable\": false,\r\n \"configurable\": false\r\n });\r\n }\r\n else {\r\n console.warn(\"Unknown layout version: '\" + this.layout.version + \"', expecting '2'\");\r\n return;\r\n }\r\n }\r\n var letters = this.layout.parsed;\r\n this.renderarea.fadeOut('fast', function () {\r\n _this.renderarea.empty();\r\n letters.forEach(function (line, index, array) {\r\n line.forEach(function (letter) { return _this.renderarea.append(letter.toString()); });\r\n if (index < array.length - 1) {\r\n _this.renderarea.append('
');\r\n }\r\n });\r\n if (typeof beforeshow === 'function') {\r\n beforeshow();\r\n }\r\n _this.renderarea.fadeIn('fast');\r\n });\r\n };\r\n ;\r\n return UhrRenderer;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcmVuZGVyZXIudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvcmVuZGVyZXIudHM/NWUwZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGVcbiBHTlUgR2Vu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1xuICAgICAgICAzOiBbM10sXG4gICAgICAgIDQ6IFsyLCAzXSxcbiAgICAgICAgNTogWzNdLFxuICAgICAgICA2OiBbM10sXG4gICAgICAgIDc6IFszXSxcbiAgICAgICAgODogWzNdLFxuICAgICAgICA5OiBbMiwgMywgNF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjE6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbOV0sXG4gICAgICAgIDQ6IFs4LCA5XSxcbiAgICAgICAgNTogWzldLFxuICAgICAgICA2OiBbOV0sXG4gICAgICAgIDc6IFs5XSxcbiAgICAgICAgODogWzldLFxuICAgICAgICA5OiBbOCwgOSwgMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSB2b3JuZTI6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbMiwgMywgNF0sXG4gICAgICAgIDQ6IFsxLCA1XSxcbiAgICAgICAgNTogWzVdLFxuICAgICAgICA2OiBbNF0sXG4gICAgICAgIDc6IFszXSxcbiAgICAgICAgODogWzJdLFxuICAgICAgICA5OiBbMSwgMiwgMywgNCwgNV1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjI6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbOCwgOSwgMTBdLFxuICAgICAgICA0OiBbNywgMTFdLFxuICAgICAgICA1OiBbMTFdLFxuICAgICAgICA2OiBbMTBdLFxuICAgICAgICA3OiBbOV0sXG4gICAgICAgIDg6IFs4XSxcbiAgICAgICAgOTogWzcsIDgsIDksIDEwLCAxMV1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IHZvcm5lMzogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFsxLCAyLCAzLCA0LCA1XSxcbiAgICAgICAgNDogWzRdLFxuICAgICAgICA1OiBbM10sXG4gICAgICAgIDY6IFs0XSxcbiAgICAgICAgNzogWzVdLFxuICAgICAgICA4OiBbMSwgNV0sXG4gICAgICAgIDk6IFsyLCAzLCA0XVxuICAgIH07XG4gICAgcHJpdmF0ZSBzdGF0aWMgcmVhZG9ubHkgaGludGVuMzogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFs3LCA4LCA5LCAxMCwgMTFdLFxuICAgICAgICA0OiBbMTBdLFxuICAgICAgICA1OiBbOV0sXG4gICAgICAgIDY6IFsxMF0sXG4gICAgICAgIDc6IFsxMV0sXG4gICAgICAgIDg6IFs3LCAxMV0sXG4gICAgICAgIDk6IFs4LCA5LCAxMF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IHZvcm5lNDogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFs0XSxcbiAgICAgICAgNDogWzMsIDRdLFxuICAgICAgICA1OiBbMiwgNF0sXG4gICAgICAgIDY6IFsxLCA0XSxcbiAgICAgICAgNzogWzEsIDIsIDMsIDQsIDVdLFxuICAgICAgICA4OiBbNF0sXG4gICAgICAgIDk6IFs0XVxuICAgIH07XG4gICAgcHJpdmF0ZSBzdGF0aWMgcmVhZG9ubHkgaGludGVuNDogV29yZERlZmluaXRpb24gPSB7XG4gICAgICAgIDM6IFsxMF0sXG4gICAgICAgIDQ6IFs5LCAxMF0sXG4gICAgICAgIDU6IFs4LCAxMF0sXG4gICAgICAgIDY6IFs3LCAxMF0sXG4gICAgICAgIDc6IFs3LCA4LCA5LCAxMCwgMTFdLFxuICAgICAgICA4OiBbMTBdLFxuICAgICAgICA5OiBbMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSB2b3JuZTU6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbMSwgMiwgMywgNCwgNV0sXG4gICAgICAgIDQ6IFsxXSxcbiAgICAgICAgNTogWzEsIDIsIDMsIDRdLFxuICAgICAgICA2OiBbNV0sXG4gICAgICAgIDc6IFs1XSxcbiAgICAgICAgODogWzEsIDVdLFxuICAgICAgICA5OiBbMiwgMywgNF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjU6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbNywgOCwgOSwgMTAsIDExXSxcbiAgICAgICAgNDogWzddLFxuICAgICAgICA1OiBbNywgOCwgOSwgMTBdLFxuICAgICAgICA2OiBbMTFdLFxuICAgICAgICA3OiBbMTFdLFxuICAgICAgICA4OiBbNywgMTFdLFxuICAgICAgICA5OiBbOCwgOSwgMTBdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSBoaW50ZW42OiBXb3JkRGVmaW5pdGlvbiA9IHtcbiAgICAgICAgMzogWzksIDEwXSxcbiAgICAgICAgNDogWzhdLFxuICAgICAgICA1OiBbN10sXG4gICAgICAgIDY6IFs3LCA4LCA5LCAxMF0sXG4gICAgICAgIDc6IFs3LCAxMV0sXG4gICAgICAgIDg6IFs3LCAxMV0sXG4gICAgICAgIDk6IFs4LCA5LCAxMF1cbiAgICB9O1xuICAgIHByaXZhdGUgc3RhdGljIHJlYWRvbmx5IGhpbnRlbjc6IFdvcmREZWZpbml0aW9uID0ge1xuICAgICAgICAzOiBbNywgOCwgOSwgMTAsIDExXSxcbiAgICAgICAgNDogWzExXSxcbiAgICAgICAgNTogWzEwXSxcbiAgICAgICAgNjogWzldLFxuICAgICAgICA3OiBbOF0sXG4gICAgICAgIDg6IFs4XSxcbiAgICAgICAgOTogWzhdXG4gICAgfTtcbiAgICBwcml2YXRlIHN0YXRpYyByZWFkb25seSBoaW50ZW44OiBXb3JkRGVmaW5pdGlvbiA9IHtcbiAgICAgICAgMzogWzgsIDksIDEwXSxcbiAgICAgICAgNDogWzcsIDExXSxcbiAgICAgICAgNTogWzcsIDExXSxcbiAgICAgICAgNjogWzgsIDksIDEwXSxcbiAgICAgICAgNzogWz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GlzLmxheW91dC5zZWNvbmRzICE9PSBudWxsKSB7XG4gICAgICAgICAgICB0aGlzLnBhcnNlVGltZURlZmluaXRpb24obGV0dGVycywgJ3NlY29uZCcsIHRoaXMubGF5b3V0LnNlY29uZHMpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdzZWNvbmQnLCBVaHJSZW5kZXJlclYyRGVsZWdhdGUuc2Vjb25kcyk7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdtaW51dGUnLCB0aGlzLmxheW91dC5taW51dGVzKTtcbiAgICAgICAgdGhpcy5wYXJzZVRpbWVEZWZpbml0aW9uKGxldHRlcnMsICdob3VyJywgdGhpcy5sYXlvdXQuaG91cnMpO1xuICAgICAgICBjb25zb2xlLmxvZyhcInJlbmRlcmVyLnRzXCIsIFwicGFyc2VkIGxheW91dFwiLCB0aGlzLmxheW91dC5jb2RlLCB0aGlzLmxheW91dCwgbGV0dGVycyk7XG4gICAgICAgIHJldHVybiBsZXR0ZXJzO1xuICAgIH07XG5cbiAgICBwcml2YXRlIHBhcnNlT2JqZWN0KGxldHRlcnM6IExldHRlcltdW10sIHN0eWxlQ2xhc3M6IHN0cmluZywgb2JqZWN0OiBXb3JkRGVmaW5pdGlvbik6IHZvaWQge1xuICAgICAgICBpZiAodHlwZW9mIG9iamVjdCAhPT0gJ3VuZGVmaW5lZCcgJiYgb2JqZWN0ICE9PSBudWxsKSB7XG4gICAgICAgICAgICBPYmplY3Qua2V5cyhvYmplY3QpXG4gICAgICAgICAgICAgICAgLm1hcChrZXkgPT4gTnVtYmVyKGtleSkpXG4gICAgICAgICAgICAgICAgLmZvckVhY2goXG4gICAgICAgICAgICAgICAgICAgIHkgPT4gb2JqZWN0W3ldLmZvckVhY2goXG4gICAgICAgICAgICAgICAgICAgICAgICB4ID0+IGxldHRlcnNbeSA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VyVjJEZWxlZ2F0ZSh0aGlzLmxheW91dCk7XG4gICAgICAgICAgICAgICAgY29uc3QgcGFyc2VkTGF5b3V0OiBMZXR0ZXJbXVtdID0gZGVsZWdhdGUucGFyc2UoKTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcInJlbmRlcmVyLnRzXCIsIFwiZ290IHBhcnNlZCBsYXlvdXRcIiwgcGFyc2VkTGF5b3V0KTtcbiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcy5sYXlvdXQsIFwicGFyc2VkXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgXCJ2YWx1ZVwiOiBwYXJzZWRMYXlvdXQsXG4gICAgICAgICAgICAgICAgICAgIFwid3JpdGFibGVcIjogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIFwiY29uZmlndXJhYmxlXCI6IGZhbHNlXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihgVW5rbm93biBsYXlvdXQgdmVyc2lvbjogJyR7dGhpcy5sYXlvdXQudmVyc2lvbn0nLCBleHBlY3RpbmcgJzInYCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGxldHRlcnM6IExldHRlcltdW10gPSB0aGlzLmxheW91dC5wYXJzZWQ7XG4gICAgICAgIHRoaXMucmVuZGVyYXJlYS5mYWRlT3V0KCdmYXN0JywgKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5yZW5kZXJhcmVhLmVtcHR5KCk7XG4gICAgICAgICAgICBsZXR0ZXJzLmZvckVhY2goKGxpbmUsIGluZGV4LCBhcnJheSkgPT4ge1xuICAgICAgICAgICAgICAgIGxpbmUuZm9yRWFjaChsZXR0ZXIgPT4gdGhpcy5yZW5kZXJhcmVhLmFwcGVuZChsZXR0ZXIudG9TdHJpbmcoKSk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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBeURBO0FBQUE7QUFFQTs7OztBQUlBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTs7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/renderer.ts\n"); /***/ }), @@ -189,18 +212,19 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Uhr\", function() { return Uhr; });\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./renderer */ \"./src/renderer.ts\");\n/* harmony import */ var _domain_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./domain/layout */ \"./src/domain/layout.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\n\r\n\r\nvar Uhr = /** @class */ (function () {\r\n function Uhr(widgetInstance) {\r\n this.widgetInstance = widgetInstance;\r\n this.timer = null;\r\n this.currentMinute = null;\r\n var userTime = this.widgetInstance.options.time;\r\n if (this.widgetInstance.options.time === undefined) {\r\n this.widgetInstance.options.time = new Date();\r\n }\r\n this.parseHash();\r\n this.setupHTML();\r\n this.wireFunctionality();\r\n if (userTime !== undefined) {\r\n this.setTime(userTime);\r\n }\r\n }\r\n Uhr.prototype.destroy = function () {\r\n if (!!this.timer) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n }\r\n this.widgetInstance.element\r\n .removeAttr('style')\r\n .removeAttr('class')\r\n .empty();\r\n $(\"#uhr-configlink\" + this.widgetInstance.uuid).remove();\r\n $(\"#uhr-controlpanel\" + this.widgetInstance.uuid).remove();\r\n };\r\n Uhr.prototype.start = function () {\r\n var _this = this;\r\n if (!this.isOn()) {\r\n this.timer = window.setInterval(function () {\r\n _this.widgetInstance.options.time = new Date();\r\n _this.update();\r\n }, 1000);\r\n this.update();\r\n this.setCookie('uhr-status', 'on');\r\n }\r\n };\r\n Uhr.prototype.stop = function () {\r\n if (this.isOn()) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n this.update();\r\n this.setCookie('uhr-status', 'off');\r\n }\r\n };\r\n Uhr.prototype.toggle = function () {\r\n if (this.isOn()) {\r\n this.stop();\r\n }\r\n else {\r\n this.start();\r\n }\r\n };\r\n Uhr.prototype.setLanguage = function (key) {\r\n var _this = this;\r\n if (key !== this.widgetInstance.options.language) {\r\n this.widgetInstance.options.language = key;\r\n var renderer = new _renderer__WEBPACK_IMPORTED_MODULE_1__[\"UhrRenderer\"](this.getCurrentLayout(), this.widgetInstance.element.find('.letterarea'));\r\n renderer.render(function () {\r\n _this.currentMinute = -1;\r\n _this.update();\r\n });\r\n this.setCookie('uhr-language', key);\r\n this.update();\r\n }\r\n };\r\n Uhr.prototype.setTheme = function (styleClass) {\r\n if (styleClass !== this.widgetInstance.options.theme) {\r\n this.widgetInstance.element.removeClass(this.widgetInstance.options.theme).addClass(styleClass);\r\n $(\"#uhr-onoffswitch\" + this.widgetInstance.uuid).removeClass(this.widgetInstance.options.theme).addClass(styleClass);\r\n this.widgetInstance.options.theme = styleClass;\r\n this.setCookie('uhr-theme', styleClass);\r\n }\r\n };\r\n Uhr.prototype.setTime = function (time) {\r\n this.currentMinute = null;\r\n if (time === null) {\r\n this.widgetInstance.options.time = new Date();\r\n }\r\n else {\r\n if (this.timer !== null) {\r\n window.clearInterval(this.timer);\r\n }\r\n this.widgetInstance.options.time = time;\r\n }\r\n this.update();\r\n };\r\n Uhr.prototype.setMode = function (mode) {\r\n this.widgetInstance.options.mode = mode;\r\n this.currentMinute = null;\r\n this.update();\r\n this.setCookie('uhr-mode', mode);\r\n };\r\n Uhr.prototype.setWidth = function (width) {\r\n var e = this.widgetInstance.element;\r\n e.css('width', width);\r\n var realWidth = e.width();\r\n e.width(realWidth);\r\n e.height(realWidth);\r\n e.css('font-size', (realWidth / 40) + 'px');\r\n };\r\n Uhr.prototype.setupHTML = function () {\r\n var e = this.widgetInstance.element;\r\n // Base clock area\r\n e.addClass('uhr')\r\n .empty()\r\n .append('')\r\n .append('')\r\n .append('')\r\n .append('')\r\n .append('
')\r\n .append('
');\r\n this.setWidth(this.widgetInstance.options.width);\r\n if (this.widgetInstance.options.controls) {\r\n var controlpanel = $(\"
\");\r\n var content = $('
');\r\n controlpanel.append(content);\r\n // on/off switch\r\n var toggleSwitch = $(\"
\");\r\n toggleSwitch.append(\"\");\r\n toggleSwitch.append(\"\");\r\n content.append(toggleSwitch);\r\n // time mode switch\r\n var modeSwitch = $(\"
\");\r\n modeSwitch.append(\"\");\r\n modeSwitch.append(\"\");\r\n content.append(modeSwitch);\r\n // language chooser\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasMultipleLayouts()) {\r\n var languageChooser_1 = $(\"\");\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().forEach(function (layout) {\r\n languageChooser_1.append(\"\");\r\n });\r\n content.append(languageChooser_1);\r\n }\r\n // theme chooser\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasMultipleThemes()) {\r\n var themeChooser_1 = $(\"\");\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getThemes().forEach(function (theme) {\r\n themeChooser_1.append(\"\");\r\n });\r\n content.append(themeChooser_1);\r\n }\r\n var closebutton = $(\"\");\r\n //FIXME deprecated?!\r\n closebutton.on('click', function () {\r\n $(\"#uhr-controlpanel\" + this.uuid).hide('fast');\r\n }.bind(this.widgetInstance));\r\n content.append(closebutton);\r\n e.after(controlpanel);\r\n controlpanel.hide();\r\n var configlink = $(\"\");\r\n // FIXME deprecated!?\r\n configlink.on('click', function () {\r\n this.toggleConfigScreen();\r\n }.bind(this));\r\n e.after(configlink);\r\n }\r\n };\r\n ;\r\n Uhr.prototype.wireFunctionality = function () {\r\n var _this = this;\r\n // on/off switch\r\n var toggleSwitch = $(\"#uhr-onoffswitch-checkbox\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n toggleSwitch.on('click', function () { return _this.toggle(); });\r\n var status = this.getCookie('uhr-status');\r\n if (status === undefined || this.widgetInstance.options.force) {\r\n status = this.widgetInstance.options.status;\r\n }\r\n toggleSwitch.prop('checked', status === 'on');\r\n if (status === 'on') {\r\n this.start();\r\n }\r\n else {\r\n this.stop();\r\n }\r\n // time mode switch\r\n var modeSwitch = $(\"#uhr-modeswitch-checkbox\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n modeSwitch.on('click', function () {\r\n if (_this.widgetInstance.options.mode === 'seconds') {\r\n _this.setMode('normal');\r\n }\r\n else {\r\n _this.setMode('seconds');\r\n }\r\n });\r\n var mode = this.getCookie('uhr-mode');\r\n if (mode === undefined || this.widgetInstance.options.force) {\r\n mode = this.widgetInstance.options.mode;\r\n }\r\n modeSwitch.prop('checked', mode !== 'seconds');\r\n if (mode === 'seconds') {\r\n this.setMode('seconds');\r\n }\r\n else {\r\n this.setMode('normal');\r\n }\r\n // language chooser\r\n var languageChooser = $(\"#uhr-languagechooser\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n languageChooser.on('change', function () {\r\n var languageKey = $(\"#uhr-languagechooser\" + _this.widgetInstance.uuid).val();\r\n _this.setLanguage(languageKey);\r\n });\r\n var selectedLayout = this.getCookie('uhr-language');\r\n if (selectedLayout === undefined || this.widgetInstance.options.force) {\r\n selectedLayout = this.widgetInstance.options.language;\r\n }\r\n var found = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().some(function (item) { return selectedLayout === item.code; });\r\n if (!found) {\r\n var fallbackLanguage = void 0;\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasLayouts()) {\r\n fallbackLanguage = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstLayout().code;\r\n }\r\n else {\r\n fallbackLanguage = '';\r\n }\r\n console.warn(\"Language '\" + selectedLayout + \"' not found! Using fallback '\" + fallbackLanguage + \"'.\");\r\n selectedLayout = fallbackLanguage;\r\n }\r\n languageChooser.val(selectedLayout);\r\n this.widgetInstance.options.language = \"\";\r\n this.setLanguage(selectedLayout);\r\n // theme chooser\r\n var themeChooser = $(\"#uhr-themechooser\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n themeChooser.on('change', function () {\r\n var themeKey = $(\"#uhr-themechooser\" + _this.widgetInstance.uuid).val();\r\n _this.setTheme(themeKey);\r\n });\r\n var selectedTheme = this.getCookie('uhr-theme');\r\n if (selectedTheme === undefined || this.widgetInstance.options.force) {\r\n selectedTheme = this.widgetInstance.options.theme;\r\n }\r\n found = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getThemes().some(function (item) { return selectedTheme === item.styleClass; });\r\n if (!found) {\r\n var fallbackTheme = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstTheme().styleClass;\r\n console.warn(\"Theme '\" + selectedTheme + \"' not found! Using fallback '\" + fallbackTheme + \"'.\");\r\n selectedTheme = fallbackTheme;\r\n }\r\n themeChooser.val(selectedTheme);\r\n this.widgetInstance.options.theme = \"\";\r\n this.setTheme(selectedTheme);\r\n if (this.widgetInstance.options.autoresize) {\r\n // FIXME deprecated!?\r\n $(window).on('resize', function () {\r\n var $e = _this.widgetInstance.element;\r\n var $parent = $e.parent();\r\n var $window = $(window);\r\n var parentWidth = $parent.width();\r\n var parentHeight = $parent.height();\r\n var windowWidth = $window.width();\r\n var windowHeight = $window.height();\r\n var size = Math.min(parentWidth, parentHeight, windowWidth, windowHeight) + \"px\";\r\n _this.setWidth(size);\r\n });\r\n }\r\n };\r\n Uhr.prototype.isOn = function () {\r\n return this.timer !== null;\r\n };\r\n Uhr.prototype.getCookie = function (cookieName) {\r\n return $.cookie(cookieName + this.widgetInstance.uuid);\r\n };\r\n Uhr.prototype.setCookie = function (cookieName, cookieValue) {\r\n var options;\r\n if (this.widgetInstance.options.cookiePath !== undefined) {\r\n options = { expires: 365, path: this.widgetInstance.options.cookiePath };\r\n }\r\n else {\r\n options = { expires: 365 };\r\n }\r\n $.cookie(cookieName + this.widgetInstance.uuid, cookieValue, options);\r\n };\r\n Uhr.prototype.update = function () {\r\n if (this.isOn()) {\r\n var time = this.widgetInstance.options.time;\r\n if (!this.getCurrentLayout().hasOwnProperty('seconds') && this.widgetInstance.options.mode !== 'seconds') {\r\n if (time.getMinutes() === this.currentMinute) {\r\n return;\r\n }\r\n this.currentMinute = time.getMinutes();\r\n }\r\n this.show(time);\r\n }\r\n else {\r\n this.clear();\r\n this.currentMinute = -1;\r\n }\r\n };\r\n Uhr.prototype.show = function (time) {\r\n var second = this.getSecond(time);\r\n var dotMinute = this.getDotMinute(time);\r\n var hour = this.getHour(time);\r\n var coarseMinute = this.getCoarseMinute(time);\r\n this.clear();\r\n if (this.widgetInstance.options.mode === 'seconds') {\r\n this.highlight(\"second\" + second);\r\n }\r\n else {\r\n this.highlight('on');\r\n for (var i = 1; i <= dotMinute; i++) {\r\n this.highlight(\"dot\" + i);\r\n }\r\n this.highlight(\"minute\" + coarseMinute);\r\n this.highlight(\"hour\" + hour);\r\n }\r\n };\r\n Uhr.prototype.clear = function () {\r\n this.widgetInstance.element.find('.item').removeClass('active');\r\n };\r\n Uhr.prototype.highlight = function (itemClass) {\r\n this.widgetInstance.element.find(\".item.\" + itemClass).addClass('active');\r\n };\r\n Uhr.prototype.getSecond = function (time) {\r\n if (typeof this.getCurrentLayout().getSeconds === 'function') {\r\n return this.getCurrentLayout().getSeconds(time);\r\n }\r\n return time.getSeconds();\r\n };\r\n ;\r\n Uhr.prototype.getDotMinute = function (date) {\r\n if (typeof this.getCurrentLayout().getDotMinute === 'function') {\r\n return this.getCurrentLayout().getDotMinute(date);\r\n }\r\n return date.getMinutes() % 5;\r\n };\r\n ;\r\n Uhr.prototype.getCoarseMinute = function (date) {\r\n if (typeof this.getCurrentLayout().getCoarseMinute === 'function') {\r\n return this.getCurrentLayout().getCoarseMinute(date);\r\n }\r\n return date.getMinutes();\r\n };\r\n ;\r\n Uhr.prototype.getHour = function (date) {\r\n if (typeof this.getCurrentLayout().getHour === 'function') {\r\n return this.getCurrentLayout().getHour(date);\r\n }\r\n var hour = date.getHours();\r\n if (date.getMinutes() >= 25) {\r\n return (hour + 1) % 24;\r\n }\r\n return hour;\r\n };\r\n ;\r\n Uhr.prototype.parseHash = function () {\r\n var _this = this;\r\n var hash = window.location.hash;\r\n if (hash !== undefined && hash.charAt(0) === '#') {\r\n hash = hash.substring(1);\r\n hash = decodeURIComponent(hash);\r\n var params = hash.split('&');\r\n params.forEach(function (element) {\r\n var pair = element.split('=');\r\n var key = pair[0];\r\n var value = pair[1];\r\n switch (key) {\r\n case 'l':\r\n case 'language':\r\n _this.widgetInstance.options.language = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 't':\r\n case 'theme':\r\n _this.widgetInstance.options.theme = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 'm':\r\n case 'mode':\r\n _this.widgetInstance.options.mode = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 's':\r\n case 'status':\r\n _this.widgetInstance.options.status = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n }\r\n });\r\n }\r\n };\r\n Uhr.prototype.getCurrentLayout = function () {\r\n var _this = this;\r\n var matchingLanguages = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().filter(function (element) { return element.code === _this.widgetInstance.options.language; }, this);\r\n if (matchingLanguages.length > 0) {\r\n return matchingLanguages[0];\r\n }\r\n // fallback: return empty object\r\n return _domain_layout__WEBPACK_IMPORTED_MODULE_2__[\"EMPTY_LAYOUT\"];\r\n };\r\n ;\r\n return Uhr;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdWhyLnRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3Voci50cz9iOTVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcbiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCB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luc3RhbmNlLnV1aWR9YCkucmVtb3ZlKCk7XG4gICAgfVxuXG4gICAgc3RhcnQoKTogdm9pZCB7XG4gICAgICAgIGlmICghdGhpcy5pc09uKCkpIHtcbiAgICAgICAgICAgIHRoaXMudGltZXIgPSB3aW5kb3cuc2V0SW50ZXJ2YWwoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy50aW1lID0gbmV3IERhdGUoKTtcbiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZSgpO1xuICAgICAgICAgICAgfSwgMTAwMCk7XG4gICAgICAgICAgICB0aGlzLnVwZGF0ZSgpO1xuICAgICAgICAgICAgdGhpcy5zZXRDb29raWUoJ3Voci1zdGF0dXMnLCAnb24nKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0b3AoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmlzT24oKSkge1xuICAgICAgICAgICAgd2luZG93LmNsZWFySW50ZXJ2YWwodGhpcy50aW1lcik7XG4gICAgICAgICAgICB0aGlzLnRpbWVyID0gbnVsbDtcbiAgICAgICAgICAgIHRoaXMudXBkYXRlKCk7XG4gICAgICAgICAgICB0aGlzLnNldENvb2tpZSgndWhyLXN0YXR1cycsICdvZmYnKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHRvZ2dsZSgpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMuaXNPbigpKSB7XG4gICAgICAgICAgICB0aGlzLnN0b3AoKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuc3RhcnQoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNldExhbmd1YWdlKGtleTogc3RyaW5nKTogdm9pZCB7XG4gICAgICAgIGlmIChrZXkgIT09IHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5sYW5ndWFnZSkge1xuICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5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ICB9XG4gICAgfVxuXG4gICAgc2V0VGltZSh0aW1lOiBEYXRlKTogdm9pZCB7XG4gICAgICAgIHRoaXMuY3VycmVudE1pbnV0ZSA9IG51bGw7XG4gICAgICAgIGlmICh0aW1lID09PSBudWxsKSB7XG4gICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMudGltZSA9IG5ldyBEYXRlKCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAodGhpcy50aW1lciAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIHdpbmRvdy5jbGVhckludGVydmFsKHRoaXMudGltZXIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLnRpbWUgPSB0aW1lO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudXBkYXRlKCk7XG4gICAgfVxuXG4gICAgc2V0TW9kZShtb2RlOiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLm1vZGUgPSBtb2RlO1xuICAgICAgICB0aGlzLmN1cnJlbnRNaW51dGUgPSBudWxsO1xuICAgICAgICB0aGlzLnVwZGF0ZSgpO1xuICAgICAgICB0aGlzLnNldENvb2tpZSgndWhyLW1vZGUnLCBtb2RlKTtcbiAgICB9XG5cbiAgICBzZXRXaWR0aCh3aWR0aDogc3RyaW5nKTogdm9pZCB7XG4gICAgICAgIGNvbnN0IGUgPSB0aGlzLndpZGdldEluc3RhbmNlLmVsZW1lbnQ7XG4gICAgICAgIGUuY3NzKCd3aWR0aCcsIHdpZHRoKTtcbiAgICAgICAgY29uc3QgcmVhbFdpZHRoID0gZS53aWR0aCgpO1xuICAgICAgICBlLndpZHRoKHJlYWxXaWR0aCk7XG4gICAgICAgIGUuaGVpZ2h0KHJlYWxXaWR0aCk7XG4gICAgICAgIGUuY3NzKCdmb250LXNpemUnLCAocmVhbFdpZHRoIC8gNDAp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hdGVkIT9cbiAgICAgICAgICAgICQod2luZG93KS5vbigncmVzaXplJywgKCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0ICRlID0gdGhpcy53aWRnZXRJbnN0YW5jZS5lbGVtZW50O1xuICAgICAgICAgICAgICAgIGNvbnN0ICRwYXJlbnQgPSAkZS5wYXJlbnQoKTtcbiAgICAgICAgICAgICAgICBjb25zdCAkd2luZG93ID0gJCh3aW5kb3cpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcmVudFdpZHRoID0gJHBhcmVudC53aWR0aCgpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcmVudEhlaWdodCA9ICRwYXJlbnQuaGVpZ2h0KCk7XG4gICAgICAgICAgICAgICAgY29uc3Qgd2luZG93V2lkdGggPSAkd2luZG93LndpZHRoKCk7XG4gICAgICAgICAgICAgICAgY29uc3Qgd2luZG93SGVpZ2h0ID0gJHdpbmRvdy5oZWlnaHQoKTtcbiAgICAgICAgICAgICAgICBjb25zdCBzaXplID0gYCR7TWF0aC5taW4ocGFyZW50V2lkdGgsIHBhcmVudEhlaWdodCwgd2luZG93V2lkdGgsIHdpbmRvd0hlaWdodCl9cHhgO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0V2lkdGgoc2l6ZSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgaXNPbigpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudGltZXIgIT09IG51bGw7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRDb29raWUoY29va2llTmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuICQuY29va2llKGNvb2tpZU5hbWUgKyB0aGlzLndpZGdldEluc3RhbmNlLnV1aWQpO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0Q29va2llKGNvb2tpZU5hbWU6IHN0cmluZywgY29va2llVmFsdWU6IHN0cmluZyk6IHZvaWQge1xuICAgICAgICBsZXQgb3B0aW9ucztcbiAgICAgICAgaWYgKHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5jb29raWVQYXRoICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIG9wdGlvbnMgPSB7ZXhwaXJlczogMzY1LCBwYXRoOiB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuY29va2llUGF0aH07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBvcHRpb25zID0ge2V4cGlyZXM6IDM2NX07XG4gICAgICAgIH1cbiAgICAgICAgJC5jb29raWUoY29va2llTmFtZSArIHRoaXMud2lkZ2V0SW5zdGFuY2UudXVpZCwgY29va2llVmFsdWUsIG9wdGlvbnMpO1xuICAgIH1cblxuICAgIHByaXZhdGUgdXBkYXRlKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5pc09uKCkpIHtcbiAgICAgICAgICAgIGNvbnN0IHRpbWUgPSB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMudGltZTtcbiAgICAgICAgICAgIGlmICghdGhpcy5nZXRDdXJyZW50TGF5b3V0KCkuaGFzT3duUHJvcGVydHkoJ3NlY29uZHMnKSAmJiB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMubW9kZSAhPT0gJ3NlY29uZHMnKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRpbWUuZ2V0TWludXRlcygpID09PSB0aGlzLmN1cnJlbnRNaW51dGUpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRNaW51dGUgPSB0aW1lLmdldE1pbnV0ZXMoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuc2hvdyh0aW1lKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXIoKTtcbiAgICAgICAgICAgIHRoaXMuY3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HByaXZhdGUgZ2V0SG91cihkYXRlOiBEYXRlKTogbnVtYmVyIHtcbiAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmdldEN1cnJlbnRMYXlvdXQoKS5nZXRIb3VyID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5nZXRDdXJyZW50TGF5b3V0KCkuZ2V0SG91cihkYXRlKTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBob3VyID0gZGF0ZS5nZXRIb3VycygpO1xuICAgICAgICBpZiAoZGF0ZS5nZXRNaW51dGVzKCkgPj0gMjUpIHtcbiAgICAgICAgICAgIHJldHVybiAoaG91ciArIDEpICUgMjQ7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGhvdXI7XG4gICAgfTtcblxuICAgIHByaXZhdGUgcGFyc2VIYXNoKCk6IHZvaWQge1xuICAgICAgICBsZXQgaGFzaDogc3RyaW5nID0gd2luZG93LmxvY2F0aW9uLmhhc2g7XG4gICAgICAgIGlmIChoYXNoICE9PSB1bmRlZmluZWQgJiYgaGFzaC5jaGFyQXQoMCkgPT09ICcjJykge1xuICAgICAgICAgICAgaGFzaCA9IGhhc2guc3Vic3RyaW5nKDEpO1xuICAgICAgICAgICAgaGFzaCA9IGRlY29kZVVSSUNvbXBvbmVudChoYXNoKTtcbiAgICAgICAgICAgIGNvbnN0IHBhcmFtczogc3RyaW5nW10gPSBoYXNoLnNwbGl0KCcmJyk7XG4gICAgICAgICAgICBwYXJhbXMuZm9yRWFjaChlbGVtZW50ID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBwYWlyOiBzdHJpbmdbXSA9IGVsZW1lbnQuc3BsaXQoJz0nKTtcbiAgICAgICAgICAgICAgICBjb25zdCBrZXkgPSBwYWlyWzBdO1xuICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gcGFpclsxXTtcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKGtleSkge1xuICAgICAgICAgICAgICAgICAgICBjYXNlICdsJzpcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnbGFuZ3VhZ2UnOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLmxhbmd1YWdlID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuZm9yY2UgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ3QnOlxuICAgICAgICAgICAgICAgICAgICBjYXNlICd0aGVtZSc6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMudGhlbWUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5mb3JjZSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnbSc6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ21vZGUnOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLm1vZGUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5mb3JjZSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAncyc6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ3N0YXR1cyc6XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuc3RhdHVzID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuZm9yY2UgPSB0cn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7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBOzsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/uhr.ts\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Uhr\", function() { return Uhr; });\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./renderer */ \"./src/renderer.ts\");\n/* harmony import */ var _domain_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./domain/layout */ \"./src/domain/layout.ts\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! js-cookie */ \"./node_modules/js-cookie/src/js.cookie.js\");\n/* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_3__);\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see .\r\n */\r\n\r\n\r\n\r\n\r\nvar Uhr = /** @class */ (function () {\r\n function Uhr(widgetInstance) {\r\n this.widgetInstance = widgetInstance;\r\n this.timer = null;\r\n this.currentMinute = null;\r\n var userTime = this.widgetInstance.options.time;\r\n if (this.widgetInstance.options.time === undefined) {\r\n this.widgetInstance.options.time = new Date();\r\n }\r\n this.parseHash();\r\n this.setupHTML();\r\n this.wireFunctionality();\r\n if (userTime !== undefined) {\r\n this.setTime(userTime);\r\n }\r\n }\r\n Uhr.prototype.destroy = function () {\r\n if (!!this.timer) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n }\r\n this.widgetInstance.element\r\n .removeAttr('style')\r\n .removeAttr('class')\r\n .empty();\r\n $(\"#uhr-configlink\" + this.widgetInstance.uuid).remove();\r\n $(\"#uhr-controlpanel\" + this.widgetInstance.uuid).remove();\r\n };\r\n Uhr.prototype.start = function () {\r\n var _this = this;\r\n if (!this.isOn()) {\r\n this.timer = window.setInterval(function () {\r\n _this.widgetInstance.options.time = new Date();\r\n _this.update();\r\n }, 1000);\r\n this.update();\r\n this.setCookie('uhr-status', 'on');\r\n }\r\n };\r\n Uhr.prototype.stop = function () {\r\n if (this.isOn()) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n this.update();\r\n this.setCookie('uhr-status', 'off');\r\n }\r\n };\r\n Uhr.prototype.toggle = function () {\r\n if (this.isOn()) {\r\n this.stop();\r\n }\r\n else {\r\n this.start();\r\n }\r\n };\r\n Uhr.prototype.setLanguage = function (key) {\r\n var _this = this;\r\n if (key !== this.widgetInstance.options.language) {\r\n this.widgetInstance.options.language = key;\r\n var renderer = new _renderer__WEBPACK_IMPORTED_MODULE_1__[\"UhrRenderer\"](this.getCurrentLayout(), this.widgetInstance.element.find('.letterarea'));\r\n renderer.render(function () {\r\n _this.currentMinute = -1;\r\n _this.update();\r\n });\r\n this.setCookie('uhr-language', key);\r\n this.update();\r\n }\r\n };\r\n Uhr.prototype.setTheme = function (styleClass) {\r\n if (styleClass !== this.widgetInstance.options.theme) {\r\n this.widgetInstance.element.removeClass(this.widgetInstance.options.theme).addClass(styleClass);\r\n $(\"#uhr-onoffswitch\" + this.widgetInstance.uuid).removeClass(this.widgetInstance.options.theme).addClass(styleClass);\r\n this.widgetInstance.options.theme = styleClass;\r\n this.setCookie('uhr-theme', styleClass);\r\n }\r\n };\r\n Uhr.prototype.setTime = function (time) {\r\n this.currentMinute = null;\r\n if (time === null) {\r\n this.widgetInstance.options.time = new Date();\r\n }\r\n else {\r\n if (this.timer !== null) {\r\n window.clearInterval(this.timer);\r\n }\r\n this.widgetInstance.options.time = time;\r\n }\r\n this.update();\r\n };\r\n Uhr.prototype.setMode = function (mode) {\r\n this.widgetInstance.options.mode = mode;\r\n this.currentMinute = null;\r\n this.update();\r\n this.setCookie('uhr-mode', mode);\r\n };\r\n Uhr.prototype.setWidth = function (width) {\r\n var e = this.widgetInstance.element;\r\n e.css('width', width);\r\n var realWidth = e.width();\r\n e.width(realWidth);\r\n e.height(realWidth);\r\n e.css('font-size', (realWidth / 40) + 'px');\r\n };\r\n Uhr.prototype.setupHTML = function () {\r\n var _this = this;\r\n var e = this.widgetInstance.element;\r\n // Base clock area\r\n e.addClass('uhr')\r\n .empty()\r\n .append('')\r\n .append('')\r\n .append('')\r\n .append('')\r\n .append('
')\r\n .append('
');\r\n this.setWidth(this.widgetInstance.options.width);\r\n if (this.widgetInstance.options.controls) {\r\n var controlpanel = $(\"
\");\r\n var content = $('
');\r\n controlpanel.append(content);\r\n // on/off switch\r\n var toggleSwitch = $(\"
\");\r\n toggleSwitch.append(\"\");\r\n toggleSwitch.append(\"\");\r\n content.append(toggleSwitch);\r\n // time mode switch\r\n var modeSwitch = $(\"
\");\r\n modeSwitch.append(\"\");\r\n modeSwitch.append(\"\");\r\n content.append(modeSwitch);\r\n // language chooser\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasMultipleLayouts()) {\r\n var languageChooser_1 = $(\"\");\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().forEach(function (layout) {\r\n languageChooser_1.append(\"\");\r\n });\r\n content.append(languageChooser_1);\r\n }\r\n // theme chooser\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasMultipleThemes()) {\r\n var themeChooser_1 = $(\"\");\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getThemes().forEach(function (theme) {\r\n themeChooser_1.append(\"\");\r\n });\r\n content.append(themeChooser_1);\r\n }\r\n var closebutton = $(\"\");\r\n //FIXME deprecated?!\r\n closebutton.on('click', function () { return $(\"#uhr-controlpanel\" + _this.widgetInstance.uuid).hide('fast'); });\r\n content.append(closebutton);\r\n e.after(controlpanel);\r\n controlpanel.hide();\r\n var configlink = $(\"\");\r\n // FIXME deprecated!?\r\n configlink.on('click', function () { return _this.toggleConfigScreen(); });\r\n e.after(configlink);\r\n }\r\n };\r\n ;\r\n Uhr.prototype.wireFunctionality = function () {\r\n var _this = this;\r\n // on/off switch\r\n var toggleSwitch = $(\"#uhr-onoffswitch-checkbox\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n toggleSwitch.on('click', function () { return _this.toggle(); });\r\n var status = this.getCookie('uhr-status');\r\n if (status === undefined || this.widgetInstance.options.force) {\r\n status = this.widgetInstance.options.status;\r\n }\r\n toggleSwitch.prop('checked', status === 'on');\r\n if (status === 'on') {\r\n this.start();\r\n }\r\n else {\r\n this.stop();\r\n }\r\n // time mode switch\r\n var modeSwitch = $(\"#uhr-modeswitch-checkbox\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n modeSwitch.on('click', function () {\r\n if (_this.widgetInstance.options.mode === 'seconds') {\r\n _this.setMode('normal');\r\n }\r\n else {\r\n _this.setMode('seconds');\r\n }\r\n });\r\n var mode = this.getCookie('uhr-mode');\r\n if (mode === undefined || this.widgetInstance.options.force) {\r\n mode = this.widgetInstance.options.mode;\r\n }\r\n modeSwitch.prop('checked', mode !== 'seconds');\r\n if (mode === 'seconds') {\r\n this.setMode('seconds');\r\n }\r\n else {\r\n this.setMode('normal');\r\n }\r\n // language chooser\r\n var languageChooser = $(\"#uhr-languagechooser\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n languageChooser.on('change', function () {\r\n var languageKey = $(\"#uhr-languagechooser\" + _this.widgetInstance.uuid).val();\r\n _this.setLanguage(languageKey);\r\n });\r\n var selectedLayout = this.getCookie('uhr-language');\r\n if (selectedLayout === undefined || this.widgetInstance.options.force) {\r\n selectedLayout = this.widgetInstance.options.language;\r\n }\r\n var found = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().some(function (item) { return selectedLayout === item.code; });\r\n if (!found) {\r\n var fallbackLanguage = void 0;\r\n if (_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].hasLayouts()) {\r\n fallbackLanguage = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstLayout().code;\r\n }\r\n else {\r\n fallbackLanguage = '';\r\n }\r\n console.warn(\"Language '\" + selectedLayout + \"' not found! Using fallback '\" + fallbackLanguage + \"'.\");\r\n selectedLayout = fallbackLanguage;\r\n }\r\n languageChooser.val(selectedLayout);\r\n this.widgetInstance.options.language = \"\";\r\n this.setLanguage(selectedLayout);\r\n // theme chooser\r\n var themeChooser = $(\"#uhr-themechooser\" + this.widgetInstance.uuid);\r\n // FIXME deprecated!?\r\n themeChooser.on('change', function () {\r\n var themeKey = $(\"#uhr-themechooser\" + _this.widgetInstance.uuid).val();\r\n _this.setTheme(themeKey);\r\n });\r\n var selectedTheme = this.getCookie('uhr-theme');\r\n if (selectedTheme === undefined || this.widgetInstance.options.force) {\r\n selectedTheme = this.widgetInstance.options.theme;\r\n }\r\n found = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getThemes().some(function (item) { return selectedTheme === item.styleClass; });\r\n if (!found) {\r\n var fallbackTheme = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstTheme().styleClass;\r\n console.warn(\"Theme '\" + selectedTheme + \"' not found! Using fallback '\" + fallbackTheme + \"'.\");\r\n selectedTheme = fallbackTheme;\r\n }\r\n themeChooser.val(selectedTheme);\r\n this.widgetInstance.options.theme = \"\";\r\n this.setTheme(selectedTheme);\r\n if (this.widgetInstance.options.autoresize) {\r\n // FIXME deprecated!?\r\n $(window).on('resize', function () {\r\n var $e = _this.widgetInstance.element;\r\n var $parent = $e.parent();\r\n var $window = $(window);\r\n var parentWidth = $parent.width();\r\n var parentHeight = $parent.height();\r\n var windowWidth = $window.width();\r\n var windowHeight = $window.height();\r\n var size = Math.min(parentWidth, parentHeight, windowWidth, windowHeight) + \"px\";\r\n _this.setWidth(size);\r\n });\r\n }\r\n };\r\n Uhr.prototype.isOn = function () {\r\n return this.timer !== null;\r\n };\r\n Uhr.prototype.getCookie = function (cookieName) {\r\n return js_cookie__WEBPACK_IMPORTED_MODULE_3__[\"get\"](cookieName + this.widgetInstance.uuid);\r\n };\r\n Uhr.prototype.setCookie = function (cookieName, cookieValue) {\r\n var options;\r\n if (this.widgetInstance.options.cookiePath !== undefined) {\r\n options = { expires: 365, path: this.widgetInstance.options.cookiePath };\r\n }\r\n else {\r\n options = { expires: 365 };\r\n }\r\n js_cookie__WEBPACK_IMPORTED_MODULE_3__[\"set\"](cookieName + this.widgetInstance.uuid, cookieValue, options);\r\n };\r\n Uhr.prototype.update = function () {\r\n if (this.isOn()) {\r\n var time = this.widgetInstance.options.time;\r\n if (!this.getCurrentLayout().hasOwnProperty('seconds') && this.widgetInstance.options.mode !== 'seconds') {\r\n if (time.getMinutes() === this.currentMinute) {\r\n return;\r\n }\r\n this.currentMinute = time.getMinutes();\r\n }\r\n this.show(time);\r\n }\r\n else {\r\n this.clear();\r\n this.currentMinute = -1;\r\n }\r\n };\r\n Uhr.prototype.show = function (time) {\r\n var second = this.getSecond(time);\r\n var dotMinute = this.getDotMinute(time);\r\n var hour = this.getHour(time);\r\n var coarseMinute = this.getCoarseMinute(time);\r\n this.clear();\r\n if (this.widgetInstance.options.mode === 'seconds') {\r\n this.highlight(\"second\" + second);\r\n }\r\n else {\r\n this.highlight('on');\r\n for (var i = 1; i <= dotMinute; i++) {\r\n this.highlight(\"dot\" + i);\r\n }\r\n this.highlight(\"minute\" + coarseMinute);\r\n this.highlight(\"hour\" + hour);\r\n }\r\n };\r\n Uhr.prototype.clear = function () {\r\n this.widgetInstance.element.find('.item').removeClass('active');\r\n };\r\n Uhr.prototype.highlight = function (itemClass) {\r\n this.widgetInstance.element.find(\".item.\" + itemClass).addClass('active');\r\n };\r\n Uhr.prototype.getSecond = function (time) {\r\n if (typeof this.getCurrentLayout().getSeconds === 'function') {\r\n return this.getCurrentLayout().getSeconds(time);\r\n }\r\n return time.getSeconds();\r\n };\r\n ;\r\n Uhr.prototype.getDotMinute = function (date) {\r\n if (typeof this.getCurrentLayout().getDotMinute === 'function') {\r\n return this.getCurrentLayout().getDotMinute(date);\r\n }\r\n return date.getMinutes() % 5;\r\n };\r\n ;\r\n Uhr.prototype.getCoarseMinute = function (date) {\r\n if (typeof this.getCurrentLayout().getCoarseMinute === 'function') {\r\n return this.getCurrentLayout().getCoarseMinute(date);\r\n }\r\n return date.getMinutes();\r\n };\r\n ;\r\n Uhr.prototype.getHour = function (date) {\r\n if (typeof this.getCurrentLayout().getHour === 'function') {\r\n return this.getCurrentLayout().getHour(date);\r\n }\r\n var hour = date.getHours();\r\n if (date.getMinutes() >= 25) {\r\n return (hour + 1) % 24;\r\n }\r\n return hour;\r\n };\r\n ;\r\n Uhr.prototype.toggleConfigScreen = function () {\r\n $(\"#uhr-controlpanel\" + this.widgetInstance.uuid).toggle('fast');\r\n };\r\n ;\r\n Uhr.prototype.parseHash = function () {\r\n var _this = this;\r\n var hash = window.location.hash;\r\n if (hash !== undefined && hash.charAt(0) === '#') {\r\n hash = hash.substring(1);\r\n hash = decodeURIComponent(hash);\r\n var params = hash.split('&');\r\n params.forEach(function (element) {\r\n var pair = element.split('=');\r\n var key = pair[0];\r\n var value = pair[1];\r\n switch (key) {\r\n case 'l':\r\n case 'language':\r\n _this.widgetInstance.options.language = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 't':\r\n case 'theme':\r\n _this.widgetInstance.options.theme = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 'm':\r\n case 'mode':\r\n _this.widgetInstance.options.mode = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n case 's':\r\n case 'status':\r\n _this.widgetInstance.options.status = value;\r\n _this.widgetInstance.options.force = true;\r\n break;\r\n }\r\n });\r\n }\r\n };\r\n Uhr.prototype.getCurrentLayout = function () {\r\n var _this = this;\r\n var matchingLanguages = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getLayouts().filter(function (element) { return element.code === _this.widgetInstance.options.language; }, this);\r\n if (matchingLanguages.length > 0) {\r\n return matchingLanguages[0];\r\n }\r\n // fallback: return empty object\r\n return _domain_layout__WEBPACK_IMPORTED_MODULE_2__[\"EMPTY_LAYOUT\"];\r\n };\r\n ;\r\n return Uhr;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdWhyLnRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3Voci50cz9iOTVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcbiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxuIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIGVpdGhlciB2ZXJzaW9uIDMgb2YgdGhlIExpY2Vuc2UsIG9yXG4gKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cblxuIFRoaXMgcHJvZ3JhbSBpcyBkaXN0cmlidXRlZCBpbiB0aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLFxuIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mXG4gTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZVxuIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXG5cbiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgY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gICAgICBpZiAodXNlclRpbWUgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgdGhpcy5zZXRUaW1lKHVzZXJUaW1lKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGRlc3Ryb3koKTogdm9pZCB7XG4gICAgICAgIGlmICghIXRoaXMudGltZXIpIHtcbiAgICAgICAgICAgIHdpbmRvdy5jbGVhckludGVydmFsKHRoaXMudGltZXIpO1xuICAgICAgICAgICAgdGhpcy50aW1lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5lbGVtZW50XG4gICAgICAgICAgICAucmVtb3ZlQXR0cignc3R5bGUnKVxuICAgICAgICAgICAgLnJlbW92ZUF0dHIoJ2NsYXNzJylcbiAgICAgICAgICAgIC5lbXB0eSgpO1xuICAgICAgICAkKGAjdWhyLWNvbmZpZ2xpbmske3RoaXMud2lkZ2V0SW5zdGFuY2UudXVpZH1gKS5yZW1vdmUoKTtcbiAgICAgICAgJChgI3Voci1jb250cm9scGFuZWwke3RoaXMud2lkZ2V0SW5zdGFuY2UudXVpZH1gKS5yZW1vdmUoKTtcbiAgICB9XG5cbiAgICBzdGFydCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLmlzT24oKSkge1xuICAgICAgICAgICAgdGhpcy50aW1lciA9IHdpbmRvdy5zZXRJbnRlcnZhbCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLnRpbWUgPSBuZXcgRGF0ZSgpO1xuICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlKCk7XG4gICAgICAgICAgICB9LCAxMDAwKTtcbiAgICAgICAgICAgIHRoaXMudXBkYXRlKCk7XG4gICAgICAgICAgICB0aGlzLnNldENvb2tpZSgndWhyLXN0YXR1cycsICdvbicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgc3RvcCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMuaXNPbigpKSB7XG4gICAgICAgICAgICB3aW5kb3cuY2xlYXJJbnRlcnZhbCh0aGlzLnRpbWVyKTtcbiAgICAgICAgICAgIHRoaXMudGltZXIgPSBudWxsO1xuICAgICAgICAgICAgdGhpcy51cGRhdGUoKTtcbiAgICAgICAgICAgIHRoaXMuc2V0Q29va2llKCd1aHItc3RhdHVzJywgJ29mZicpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgdG9nZ2xlKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5pc09uKCkpIHtcbiAgICAgICAgICAgIHRoaXMuc3RvcCgpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5zdGFydCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgc2V0TGFuZ3VhZ2Uoa2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgaWYgKGtleSAhPT0gdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLmxhbmd1YWdlKSB7XG4gICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMubGFuZ3VhZ2UgPSBrZXk7XG4gICAgICAgICAgICBjb25zdCByZW5kZXJlciA9IG5ldyBVaHJSZW5kZXJlcih0aGlzLmdldEN1cnJlbnRMYXlvdXQoKSwgdGhpcy53aWRnZXRJbnN0YW5jZS5lbGVtZW50LmZpbmQoJy5sZXR0ZXJhcmVhJykpO1xuICAgICAgICAgICAgcmVuZGVyZXIucmVuZGVyKCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRNaW51dGUgPSAtMTtcbiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZSgpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB0aGlzLnNldENvb2tpZSgndWhyLWxhbmd1YWdlJywga2V5KTtcbiAgICAgICAgICAgIHRoaXMudXBkYXRlKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzZXRUaG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vc2VyLmFwcGVuZChgPG9wdGlvbiB2YWx1ZT1cIiR7dGhlbWUuc3R5bGVDbGFzc31cIj4ke3RoZW1lLm5hbWV9PC9vcHRpb24+YCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgY29udGVudC5hcHBlbmQodGhlbWVDaG9vc2VyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNvbnN0IGNsb3NlYnV0dG9uID0gJChgPGEgY2xhc3M9XCJ1aHItY2xvc2Vjb250cm9scGFuZWxcIiBpZD1cInVoci1jbG9zZWNvbnRyb2xwYW5lbCR7dGhpcy53aWRnZXRJbnN0YW5jZS51dWlkfVwiPjwvYT5gKTtcbiAgICAgICAgICAgIC8vRklYTUUgZGVwcmVjYXRlZD8hXG4gICAgICAgICAgICBjbG9zZWJ1dHRvbi5vbignY2xpY2snLCAoKSA9PiAkKGAjdWhyLWNvbnRyb2xwYW5lbCR7dGhpcy53aWRnZXRJbnN0YW5jZS51dWlkfWApLmhpZGUoJ2Zhc3QnKSk7XG4gICAgICAgICAgICBjb250ZW50LmFwcGVuZChjbG9zZWJ1dHRvbik7XG4gICAgICAgICAgICBlLmFmdGVyKGNvbnRyb2xwYW5lbCk7XG4gICAgICAgICAgICBjb250cm9scGFuZWwuaGlkZSgpO1xuICAgICAgICAgICAgY29uc3QgY29uZmlnbGluayA9ICQoYDxhIGNsYXNzPVwidWhyLWNvbmZpZ2xpbmtcIiBpZD1cInVoci1jb25maWdsaW5rJHt0aGlzLndpZGdldEluc3RhbmNlLnV1aWR9XCI+PC9hPmApO1xuICAgICAgICAgICAgLy8gRklYTUUgZGVwcmVjYXRlZCE/XG4gICAgICAgICAgICBjb25maWdsaW5rLm9uKCdjbGljaycsICgpID0+IHRoaXMudG9nZ2xlQ29uZmlnU2NyZWVuKCkpO1xuICAgICAgICAgICAgZS5hZnRlcihjb25maWdsaW5rKTtcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICBwcml2YXRlIHdpcm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vbGUud2FybihgVGhlbWUgJyR7c2VsZWN0ZWRUaGVtZX0nIG5vdCBmb3VuZCEgVXNpbmcgZmFsbGJhY2sgJyR7ZmFsbGJhY2tUaGVtZX0nLmApO1xuICAgICAgICAgICAgc2VsZWN0ZWRUaGVtZSA9IGZhbGxiYWNrVGhlbWU7XG4gICAgICAgIH1cbiAgICAgICAgdGhlbWVDaG9vc2VyLnZhbChzZWxlY3RlZFRoZW1lKTtcbiAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLnRoZW1lID0gXCJcIjtcbiAgICAgICAgdGhpcy5zZXRUaGVtZShzZWxlY3RlZFRoZW1lKTtcbiAgICAgICAgaWYgKHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5hdXRvcmVzaXplKSB7XG4gICAgICAgICAgICAvLyBGSVhNRSBkZXByZWNhdGVkIT9cbiAgICAgICAgICAgICQod2luZG93KS5vbigncmVzaXplJywgKCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0ICRlID0gdGhpcy53aWRnZXRJbnN0YW5jZS5lbGVtZW50O1xuICAgICAgICAgICAgICAgIGNvbnN0ICRwYXJlbnQgPSAkZS5wYXJlbnQoKTtcbiAgICAgICAgICAgICAgICBjb25zdCAkd2luZG93ID0gJCh3aW5kb3cpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcmVudFdpZHRoID0gJHBhcmVudC53aWR0aCgpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcmVudEhlaWdodCA9ICRwYXJlbnQuaGVpZ2h0KCk7XG4gICAgICAgICAgICAgICAgY29uc3Qgd2luZG93V2lkdGggPSAkd2luZG93LndpZHRoKCk7XG4gICAgICAgICAgICAgICAgY29uc3Qgd2luZG93SGVpZ2h0ID0gJHdpbmRvdy5oZWlnaHQoKTtcbiAgICAgICAgICAgICAgICBjb25zdCBzaXplID0gYCR7TWF0aC5taW4ocGFyZW50V2lkdGgsIHBhcmVudEhlaWdodCwgd2luZG93V2lkdGgsIHdpbmRvd0hlaWdodCl9cHhgO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0V2lkdGgoc2l6ZSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgaXNPbigpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudGltZXIgIT09IG51bGw7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRDb29raWUoY29va2llTmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIENvb2tpZXMuZ2V0KGNvb2tpZU5hbWUgKyB0aGlzLndpZGdldEluc3RhbmNlLnV1aWQpO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0Q29va2llKGNvb2tpZU5hbWU6IHN0cmluZywgY29va2llVmFsdWU6IHN0cmluZyk6IHZvaWQge1xuICAgICAgICBsZXQgb3B0aW9ucztcbiAgICAgICAgaWYgKHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5jb29raWVQYXRoICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIG9wdGlvbnMgPSB7ZXhwaXJlczogMzY1LCBwYXRoOiB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuY29va2llUGF0aH07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBvcHRpb25zID0ge2V4cGlyZXM6IDM2NX07XG4gICAgICAgIH1cbiAgICAgICAgQ29va2llcy5zZXQoY29va2llTmFtZSArIHRoaXMud2lkZ2V0SW5zdGFuY2UudXVpZCwgY29va2llVmFsdWUsIG9wdGlvbnMpO1xuICAgIH1cblxuICAgIHByaXZhdGUgdXBkYXRlKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5pc09uKCkpIHtcbiAgICAgICAgICAgIGNvbnN0IHRpbWUgPSB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMudGltZTtcbiAgICAgICAgICAgIGlmICghdGhp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ICBwcml2YXRlIHBhcnNlSGFzaCgpOiB2b2lkIHtcbiAgICAgICAgbGV0IGhhc2g6IHN0cmluZyA9IHdpbmRvdy5sb2NhdGlvbi5oYXNoO1xuICAgICAgICBpZiAoaGFzaCAhPT0gdW5kZWZpbmVkICYmIGhhc2guY2hhckF0KDApID09PSAnIycpIHtcbiAgICAgICAgICAgIGhhc2ggPSBoYXNoLnN1YnN0cmluZygxKTtcbiAgICAgICAgICAgIGhhc2ggPSBkZWNvZGVVUklDb21wb25lbnQoaGFzaCk7XG4gICAgICAgICAgICBjb25zdCBwYXJhbXM6IHN0cmluZ1tdID0gaGFzaC5zcGxpdCgnJicpO1xuICAgICAgICAgICAgcGFyYW1zLmZvckVhY2goZWxlbWVudCA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgcGFpcjogc3RyaW5nW10gPSBlbGVtZW50LnNwbGl0KCc9Jyk7XG4gICAgICAgICAgICAgICAgY29uc3Qga2V5ID0gcGFpclswXTtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHBhaXJbMV07XG4gICAgICAgICAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnbCc6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ2xhbmd1YWdlJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5sYW5ndWFnZSA9IHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLmZvcmNlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICBjYXNlICd0JzpcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAndGhlbWUnOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLnRoZW1lID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuZm9yY2UgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ20nOlxuICAgICAgICAgICAgICAgICAgICBjYXNlICdtb2RlJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMud2lkZ2V0SW5zdGFuY2Uub3B0aW9ucy5tb2RlID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLndpZGdldEluc3RhbmNlLm9wdGlvbnMuZm9yY2UgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ3MnOlxuICAgICAgICAgICAgICAgICAgICBjYXNlICdzdGF0dXMnOlxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLnN0YXR1cyA9IHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLmZvcmNlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRDdXJyZW50TGF5b3V0KCk6IExheW91dCB7XG4gICAgICAgIGNvbnN0IG1hdGNoaW5nTGFuZ3VhZ2VzOiBMYXlvdXRbXSA9IEdsb2JhbHMuZ2V0TGF5b3V0cygpLmZpbHRlcihlbGVtZW50ID0+IGVsZW1lbnQuY29kZSA9PT0gdGhpcy53aWRnZXRJbnN0YW5jZS5vcHRpb25zLmxhbmd1YWdlLCB0aGlzKTtcbiAgICAgICAgaWYgKG1hdGNoaW5nTGFuZ3VhZ2VzLmxlbmd0aCA+IDApIHtcbiAgIC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IjoiIn0=\n//# sourceURL=webpack-internal:///./src/uhr.ts\n"); /***/ }), /***/ 0: -/*!****************************!*\ - !*** multi ./src/index.ts ***! - \****************************/ +/*!*****************************************************************!*\ + !*** multi ./src/index.ts ./node_modules/jquery/dist/jquery.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./src/index.ts */"./src/index.ts"); +__webpack_require__(/*! ./src/index.ts */"./src/index.ts"); +module.exports = __webpack_require__(/*! ./node_modules/jquery/dist/jquery.js */"./node_modules/jquery/dist/jquery.js"); /***/ }) diff --git a/index.html b/index.html index 68deb84..4b1266e 100644 --- a/index.html +++ b/index.html @@ -21,18 +21,27 @@ along with this program. If not, see . - - - - - - - - + + + + + + + + - - + + + + + - + + + +