eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * jQuery JavaScript Library v3.4.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2019-05-01T21:04Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( true && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar document = window.document;\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar concat = arr.concat;\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n // Support: Chrome <=57, Firefox <=52\n // In some browsers, typeof returns \"function\" for HTML <object> elements\n // (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n // We don't want to classify *any* DOM node as a function.\n return typeof obj === \"function\" && typeof obj.nodeType !== \"number\";\n };\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\":\n\t\ttypeofobj;\n}\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 <http://www.gnu.org/licenses/>.\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\nGlobals.hasLayouts=function(){\r\nreturnGlobals.layouts.length>0;\r\n};\r\nGlobals.hasMultipleLayouts=function(){\r\nreturnGlobals.layouts.length>1;\r\n};\r\nGlobals.getFirstLayout=function(){\r\nreturnGlobals.layouts[0];\r\n};\r\nGlobals.getLayouts=function(){\r\nreturnGlobals.layouts;\r\n};\r\nGlobals.layouts=[];\r\nGlobals.themes=[];\r\nreturnGlobals;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2dsb2JhbHMudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZG9tYWluL2dsb2JhbHMudHM/MGU2NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBB
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EMPTY_LAYOUT\", function() { return EMPTY_LAYOUT; });\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 <http://www.gnu.org/licenses/>.\r\n */\r\nvar EMPTY_LAYOUT = {\r\n code: null,\r\n hours: null,\r\n letters: [],\r\n minutes: null,\r\n permanent: [],\r\n prettyName: null,\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2xheW91dC50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9kb21haW4vbGF5b3V0LnRzP2VjYzAiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxuXG4gVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gYnV0IFdJVEhPVVQgQU5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ICAgIHJlYWRvbmx5IHZlcnNpb246IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBXb3JkRGVmaW5pdGlvbiB7XG4gICAgW2xpbmU6IG51bWJlcl06IG51bWJlcltdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFRpbWVEZWZpbml0aW9uIHtcbiAgICBbdmFsdWVzOiBzdHJpbmddOiBXb3JkRGVmaW5pdGlvbiB8IFdvcmREZWZpbml0aW9uW107XG59XG5cbmV4cG9ydCBjb25zdCBFTVBUWV9MQVlPVVQ6IExheW91dCA9IHtcbiAgICBjb2RlOiBudWxsLFxuICAgIGhvdXJzOiBudWxsLFxuICAgIGxldHRlcnM6IFtdLFxuICAgIG1pbnV0ZXM6IG51bGwsXG4gICAgcGVybWFuZW50OiBbXSxcbiAgICBwcmV0dHlOYW1lOiBudWxsLFxuICAgIHZlcnNpb246IDJcbn07XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7OztBQWFBO0FBNEJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/domain/layout.ts\n");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Letter\", function() { return Letter; });\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 <http://www.gnu.org/licenses/>.\r\n */\r\n/**\r\n * Ein Buchstabe. Hilfsklasse für den Renderer und Inhalt der Layout-Arrays.\r\n * @param value Der Buchstabe, der Dargestellt werden soll.\r\n * @param style Die CSS-Styleklassen des Buchstabens.\r\n */\r\nvar Letter = /** @class */ (function () {\r\n function Letter(value, style) {\r\n this.style = '';\r\n this.value = value;\r\n if (!!style) {\r\n this.style = style;\r\n }\r\n }\r\n Letter.prototype.addStyle = function (style) {\r\n if (this.style === '') {\r\n this.style = style;\r\n }\r\n else {\r\n this.style += \" \" + style;\r\n }\r\n };\r\n ;\r\n Letter.prototype.toString = function () {\r\n return \"<span class=\\\"item letter \" + this.style + \"\\\">\" + this.value + \"</span>\";\r\n};\r\n;\r\nreturnLetter;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2xldHRlci50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9kb21haW4vbGV0dGVyLnRzPzU1MjUiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxuXG4gVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcbiBNRV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xlID0gc3R5bGU7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnN0eWxlICs9IGAgJHtzdHlsZX1gO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIHRvU3RyaW5nKCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiBgPHNwYW4gY2xhc3M9XCJpdGVtIGxldHRlciAke3RoaXMuc3R5bGV9XCI+JHt0aGlzLnZhbHVlfTwvc3Bhbj5gO1xuICAgIH07XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7OztBQWFBO0FBRUE7Ozs7QUFJQTtBQUNBO0FBSUE7QUFGQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7OyIsInNvdXJjZVJvb3QiOi
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 <http://www.gnu.org/licenses/>.\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/ZmZiNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZX
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 <http://www.gnu.org/licenses/>.\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\nreturnletters;\r\n};\r\n;\r\nUhrRendererV2Delegate.prototype.parseObject=function(letters,styleClass,object){\r\nif(typeofobject!=='undefined'&&object!==null){\r\nObject.keys(object)\r\n.map(function(key){returnNumber(key);})\r\n.forEach(function(y){returnobject[y].forEach(function(x){returnletters[y-1][x-1].addStyle(styleClass);});});\r\n}\r\n};\r\nUhrRendererV2Delegate.prototype.parseArrayOrObject=function(letters,styleClass,input){\r\nvar_this=this;\r\nif(typeofinput!=='undefined'&&input!==null){\r\nif(Array.isArray(input)){\r\ninput.forEach(function(item){return_this.parseObject(letters,styleClass,item);});\r\n}\r\nelse{\r\nthis.parseObject(letters,styleClass,input);\r\n}\r\n}\r\n};\r\nUhrRendererV2Delegate.prototype.parseTimeDefinition=function(letters,styleClass,definition){\r\nvar_this=this;\r\nif(typeofdefinition!=='undefined'&&definition!==null){\r\nObject.keys(definition).forEach(function(listString){\r\nvartimeValues=listString.split(',');\r\nvarhighlightLetters=definition[listString];\r\ntimeValues.forEach(function(timeValue){return_this.parseArrayOrObject(letters,styleClass+timeValue,highlightLetters);});\r\n});\r\n}\r\n};\r\nUhrRendererV2Delegate.vorne0={\r\n3:[2,3,4],\r\n4:[1,5],\r\n5:[1,4,5],\r\n6:[1,3,5],\r\n7:[1,2,5],\r\n8:[1,5],\r\n9:[2,3,4]\r\n};\r\nUhrRendererV2Delegate.hinten0={\r\n3:[8,9,10],\r\n4:[7,11],\r\n5:[7,10,11],\r\n
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"autodetectThemes\", function() { return autodetectThemes; });\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\");\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.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 <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n\r\nfunction autodetectThemes() {\r\n jquery__WEBPACK_IMPORTED_MODULE_0__('link[rel=stylesheet]').each(function (index, item) {\r\n var styleSheet = jquery__WEBPACK_IMPORTED_MODULE_0__(item);\r\n var styleClass = styleSheet.attr('data-class');\r\n if (styleClass !== undefined) {\r\n var name_1 = styleSheet.attr('data-name');\r\n if (name_1 === undefined) {\r\n name_1 = styleClass;\r\n }\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].registerTheme(name_1, styleClass);\r\n }\r\n });\r\n // fall-back if no theme was included\r\n if (!_domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].hasThemes()) {\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].registerTheme('','');\r\n}\r\n}\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdGhlbWUtYXV0b2RldGVjdG9yLnRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3RoZW1lLWF1dG9kZXRlY3Rvci50cz8zMjdkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcbiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxuIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIGVpdGhlciB2ZXJzaW9uIDMgb2YgdGhlIExpY2Vuc2UsIG9yXG4gKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cblxuIFRoaXMgcHJvZ3JhbSBpcyBkaXN0cmlidXRlZCBpbiB0aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLFxuIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mXG4gTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZVxuIEdOVSBHZW5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2Jh
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 <http://www.gnu.org/licenses/>.\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\nrenderer.render(function(){\r\n_this.currentMinute=-1;\r\n_this.update();\r\n});\r\nthis.setCookie('uhr-language',key);\r\nthis.update();\r\n}\r\n};\r\nUhr.