uhr/dist/uhr.js

2 lines
27 KiB
JavaScript
Raw Normal View History

var uhr=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}({0:function(t,e){t.exports=jQuery},1:function(t,e){t.exports=Cookies},10:function(t,e,n){"use strict";n.r(e);var i=function(){function t(){}return t.registerTheme=function(e,n){t.themes.some(function(t){return t.name===e})?console.log("Theme with name '"+e+"' already registered; ignoring register request for styleClass '"+n+"'."):t.themes.push({name:e,styleClass:n})},t.hasThemes=function(){return t.themes.length>0},t.hasMultipleThemes=function(){return t.themes.length>1},t.getFirstTheme=function(){return t.getTheme(0)},t.getTheme=function(e){return t.themes[e]},t.getThemes=function(){return t.themes},t.registerLayout=function(e){!t.layouts.some(function(t){return e.code===t.code&&(console.error("Error: Language code '"+e.code+"' cannot be registered for layout '"+e.prettyName+"' \n because it is already registered for layout '"+t.prettyName+"'!"),!0)})&&(t.layouts.push(e),t.layouts.sort(function(t,e){return t.prettyName.localeCompare(e.prettyName)}))},t.hasLayouts=function(){return t.layouts.length>0},t.hasMultipleLayouts=function(){return t.layouts.length>1},t.getFirstLayout=function(){return t.layouts[0]},t.getLayouts=function(){return t.layouts},t.layouts=[],t.themes=[],t}(),o=n(0);var s=function(){function t(t,e){this.style="",this.value=t,e&&(this.style=e)}return t.prototype.addStyle=function(t){""===this.style?this.style=t:this.style+=" "+t},t.prototype.toString=function(){return'<span class="item letter '+this.style+'">'+this.value+"</span>"},t}(),r=function(){function t(t){this.layout=t}return t.prototype.parse=function(){var e=[];return this.layout.letters.forEach(function(t){for(var n=[],i=0;i<t.length;i++)n.push(new s(t[i]));e.push(n)}),this.parseArrayOrObject(e,"on",this.layout.permanent),void 0!==this.layout.seconds&&null!==this.layout.seconds?this.parseTimeDefinition(e,"second",this.layout.seconds):this.parseTimeDefinition(e,"second",t.seconds),this.parseTimeDefinition(e,"minute",this.layout.minutes),this.parseTimeDefinition(e,"hour",this.layout.hours),e},t.prototype.parseObject=function(t,e,n){null!=n&&Object.keys(n).map(function(t){return Number(t)}).forEach(function(i){return n[i].forEach(function(n){return t[i-1][n-1].addStyle(e)})})},t.prototype.parseArrayOrObject=function(t,e,n){var i=this;null!=n&&(Array.isArray(n)?n.forEach(function(n){return i.parseObject(t,e,n)}):this.parseObject(t,e,n))},t.prototype.parseTimeDefinition=function(t,e,n){var i=this;null!=n&&Object.keys(n).forEach(function(o){var s=o.split(","),r=n[o];s.forEach(function(n){return i.parseArrayOrObject(t,e+n,r)})})},t.vorne0={3:[2,3,4],4:[1,5],5:[1,4,5],6:[1,3,5],7:[1,2,5],8:[1,5],9:[2,3,4]},t.hinten0={3:[8,9,10],4:[7,11],5:[7,10,11],6:[7,9,11],7:[7,8,11],8:[7,11],9:[8,9,10]},t.vorne1={3:[3],4:[2,3],5:[3],6:[3],7:[3],8:[3],9:[2,3,4]},t.hinten1={3:[9],4:[8,9],5:[9],6:[9],7:[9],8:[9],9:[8,9,10]},t.vorne2={3:[2,3,4],4:[1,5],5:[5],6:[4],7:[3],8:[2],9:[1,2,3,4,5]},t.hinten2={3:[8,9,10],4:[7,11],5:[11],6:[10],7:[9],8:[8],9:[7,8,9,10,11]},t.vorne3={3:[1,2,3,4,5],4:[4],5:[3],6:[4],7:[5],8:[1,5],9:[2,3,4]},t.hinten3={3:[7,8,9,10,11],4:[10],5:[9],6:[10],7:[11],8:[7,11],9:[8,9,10]},t.vorne4={3:[4],4:[3,4],5:[2,4],
//# sourceMappingURL=uhr.js.map