2 lines
50 KiB
JavaScript
2 lines
50 KiB
JavaScript
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="/ODT")}({"/ODT":function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?P.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return u(e,l,r,o,null)}function u(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++C:o};return null==o&&null!=x.vnode&&x.vnode(i),i}function l(e){return e.children}function c(e,t){this.props=e,this.context=t}function a(e,t){if(null==t)return e.__?a(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?a(e):null}function s(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return s(e)}}function _(e){(!e.__d&&(e.__d=!0)&&E.push(e)&&!f.__r++||U!==x.debounceRendering)&&((U=x.debounceRendering)||D)(f)}function f(){for(var e;f.__r=E.length;)e=E.sort((function(e,t){return e.__v.__b-t.__v.__b})),E=[],e.some((function(e){var t,n,o,i,u,l;e.__d&&(u=(i=(t=e).__v).__e,(l=t.__P)&&(n=[],(o=r({},i)).__v=i.__v+1,g(l,i,o,t.__n,void 0!==l.ownerSVGElement,null!=i.__h?[u]:null,n,null==u?a(i):u,i.__h),O(n,i),i.__e!=u&&s(i)))}))}function p(e,t,n,r,o,i,c,s,_,f){var p,b,y,v,m,O,j,S=r&&r.__k||T,A=S.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?u(null,v,null,null,v):Array.isArray(v)?u(l,{children:v},null,null,null):v.__b>0?u(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(y=S[p])||y&&v.key==y.key&&v.type===y.type)S[p]=void 0;else for(b=0;b<A;b++){if((y=S[b])&&v.key==y.key&&v.type===y.type){S[b]=void 0;break}y=null}g(e,v,y=y||I,o,i,c,s,_,f),m=v.__e,(b=v.ref)&&y.ref!=b&&(j||(j=[]),y.ref&&j.push(y.ref,null,v),j.push(b,v.__c||m,v)),null!=m?(null==O&&(O=m),"function"==typeof v.type&&v.__k===y.__k?v.__d=_=h(v,_,e):_=d(e,v,y,S,m,_),"function"==typeof n.type&&(n.__d=_)):_&&y.__e==_&&_.parentNode!=e&&(_=a(y))}for(n.__e=O,p=A;p--;)null!=S[p]&&("function"==typeof n.type&&null!=S[p].__e&&S[p].__e==n.__d&&(n.__d=a(r,p+1)),w(S[p],S[p]));if(j)for(p=0;p<j.length;p++)k(j[p],j[++p],j[++p])}function h(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?h(r,t,n):d(n,r,r,o,r.__e,t));return t}function d(e,t,n,r,o,i){var u,l,c;if(void 0!==t.__d)u=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function b(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||N.test(t)?n:n+"px"}function y(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||b(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?m:v,i):e.removeEventListener(t,i?m:v,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function v(e){this.l[e.type+!1](x.event?x.event(e):e)}function m(e){this.l[e.type+!0](x.event?x.event(e):e)}function g(e,t,n,o,i,u,a,s,_){var f,h,d,b,y,v,m,g,O,k,w,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(_=n.__h,s=t.__e=n.__e,t.__h=null,u=[s]),(f=x.__b)&&f(t);try{e:if("function"==typeof A){if(g=t.props,O=(f=A.contextType)&&o[f.__c],k=f?O?O.props.value:f.__:o,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in A&&A.prototype.render?t.__c=h=new A(g,k):(t.__c=h=new c(g,k),h.constructor=A,h.render=S),O&&O.sub(h),h.props=g,h.state||(h.state={}),h.context=k,h.__n=o,d=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=r({},h.__s)),r(h.__s,A.getDerivedStateFromProps(g,h.__s))),b=h.props,y=h.state,d)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==b&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,k),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,k)||t.__v===n.__v){h.props=g,h.state=h.__s,t.__v!==n.__v&&(h.__d=!1),h.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,k),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(b,y,v)}))}h.context=k,h.props=g,h.state=h.__s,(f=x.__r)&&f(t),h.__d=!1,h.__v=t,h.__P=e,f=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=r(r({},o),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(v=h.getSnapshotBeforeUpdate(b,y)),w=null!=f&&f.type===l&&null==f.key?f.props.children:f,p(e,Array.isArray(w)?w:[w],t,n,o,i,u,a,s,_),h.base=t.__e,t.__h=null,h.__h.length&&a.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j(n.__e,t,n,o,i,u,a,_);(f=x.diffed)&&f(t)}catch(e){t.__v=null,(_||null!=u)&&(t.__e=s,t.__h=!!_,u[u.indexOf(s)]=null),x.__e(e,t,n)}}function O(e,t){x.__c&&x.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){x.__e(e,t.__v)}}))}function j(e,t,n,r,i,u,l,c){var s,_,f,h=n.props,d=t.props,b=t.type,v=0;if("svg"===b&&(i=!0),null!=u)for(;v<u.length;v++)if((s=u[v])&&"setAttribute"in s==!!b&&(b?s.localName===b:3===s.nodeType)){e=s,u[v]=null;break}if(null==e){if(null===b)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,d.is&&d),u=null,c=!1}if(null===b)h===d||c&&e.data===d||(e.data=d);else{if(u=u&&P.call(e.childNodes),_=(h=n.props||I).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=u)for(h={},v=0;v<e.attributes.length;v++)h[e.attributes[v].name]=e.attributes[v].value;(f||_)&&(f&&(_&&f.__html==_.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||y(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||y(e,i,t[i],n[i],r)}(e,d,h,i,c),f)t.__k=[];else if(v=t.props.children,p(e,Array.isArray(v)?v:[v],t,n,r,i&&"foreignObject"!==b,u,l,u?u[0]:n.__k&&a(n,0),c),null!=u)for(v=u.length;v--;)null!=u[v]&&o(u[v]);c||("value"in d&&void 0!==(v=d.value)&&(v!==e.value||"progress"===b&&!v||"option"===b&&v!==h.value)&&y(e,"value",v,h.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==e.checked&&y(e,"checked",v,h.checked,!1))}return e}function k(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){x.__e(e,n)}}function w(e,t,n){var r,i;if(x.unmount&&x.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||k(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){x.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&w(r[i],t,"function"!=typeof e.type);n||null==e.__e||o(e.__e),e.__e=e.__d=void 0}function S(e,t,n){return this.constructor(e,n)}function A(e,t,n){var r,o,u;x.__&&x.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,u=[],g(t,e=(!r&&n||t).__k=i(l,null,[e]),o||I,I,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?P.call(t.childNodes):null,u,!r&&n?n:o?o.__e:t.firstChild,r),O(u,e)}n.r(t);var P,x,C,E,D,U,I={},T=[],N=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;P=T.slice,x={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},C=0,c.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},c.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},c.prototype.render=l,E=[],D="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f.__r=0;var M=i,L=A,R=function(e){return e&&e.default?e.default:e};if("function"==typeof R(n("QfWi"))){var H=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var e=R(n("QfWi")),t={},r=document.querySelector('[type="__PREACT_CLI_DATA__"]');r&&(t=JSON.parse(decodeURI(r.innerHTML)).preRenderData||t);var o;t.url&&(o=t.url);L(M(e,{CLI_DATA:{preRenderData:t}}),document.body,H)}()}},QRet:function(e,t,n){"use strict";function r(e,t){b.options.__h&&b.options.__h(h,e,y||t),y=0;var n=h.__H||(h.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return y=1,i(f,e)}function i(e,t,n){var o=r(p++,2);return o.t=e,o.__c||(o.__=[n?n(t):f(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=h),o.__}function u(e,t){var n=r(p++,3);!b.options.__s&&_(n.__H,t)&&(n.__=e,n.__H=t,h.__H.__h.push(n))}function l(e){var t=h.context[e.__c],n=r(p++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(h)),t.props.value):e.__}function c(){for(var e;e=v.shift();)if(e.__P)try{e.__H.__h.forEach(a),e.__H.__h.forEach(s),e.__H.__h=[]}catch(t){e.__H.__h=[],b.options.__e(t,e.__v)}}function a(e){var t=h,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),h=t}function s(e){var t=h;e.__c=e.__(),h=t}function _(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function f(e,t){return"function"==typeof t?t(e):t}n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var p,h,d,b=n("hosL"),y=0,v=[],m=b.options.__b,g=b.options.__r,O=b.options.diffed,j=b.options.__c,k=b.options.unmount;b.options.__b=function(e){h=null,m&&m(e)},b.options.__r=function(e){g&&g(e),p=0;var t=(h=e.__c).__H;t&&(t.__h.forEach(a),t.__h.forEach(s),t.__h=[])},b.options.diffed=function(e){O&&O(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==v.push(t)&&d===b.options.requestAnimationFrame||((d=b.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),w&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);w&&(t=requestAnimationFrame(n))})(c)),h=null},b.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(a),e.__h=e.__h.filter((function(e){return!e.__||s(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],b.options.__e(n,e.__v)}})),j&&j(e,t)},b.options.unmount=function(e){k&&k(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{a(e)}catch(e){t=e}})),t&&b.options.__e(t,n.__v))};var w="function"==typeof requestAnimationFrame},QfWi:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=e.match(o),u={};if(i&&i[1])for(var c=i[1].split("&"),a=0;a<c.length;a++){var s=c[a].split("=");u[decodeURIComponent(s[0])]=decodeURIComponent(s.slice(1).join("="))}e=l(e.replace(o,"")),t=l(t||"");for(var _=Math.max(e.length,t.length),f=0;f<_;f++)if(t[f]&&":"===t[f].charAt(0)){var p=t[f].replace(/(^:|[+*?]+$)/g,""),h=(t[f].match(/[+*?]+$/)||te)[0]||"",d=~h.indexOf("+"),b=~h.indexOf("*"),y=e[f]||"";if(!y&&!b&&(h.indexOf("?")<0||d)){r=!1;break}if(u[p]=decodeURIComponent(y),d||b){u[p]=e.slice(f).map(decodeURIComponent).join("/");break}}else if(t[f]!==e[f]){r=!1;break}return(!0===n.default||!1!==r)&&u}function i(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function u(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,l(t).map(c).join(""));var t}(e),e.props}function l(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function c(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}function a(){var e;return""+((e=ne&&ne.location?ne.location:ne&&ne.getCurrentLocation?ne.getCurrentLocation():"undefined"!=typeof location?location:ie).pathname||"")+(e.search||"")}function s(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=re.length;t--;)if(re[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),ne&&ne[t]?ne[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),_(e)}function _(e){for(var t=!1,n=0;n<re.length;n++)!0===re[n].routeTo(e)&&(t=!0);for(var r=oe.length;r--;)oe[r](e);return t}function f(e){if(e&&e.getAttribute){var t=e.getAttribute("href"),n=e.getAttribute("target");if(t&&t.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return s(t)}}function p(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button))return f(e.currentTarget||e.target||this),h(e)}function h(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function d(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button)){var t=e.target;do{if("A"===String(t.nodeName).toUpperCase()&&t.getAttribute("href")){if(t.hasAttribute("native"))return;if(f(t))return h(e)}}while(t=t.parentNode)}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n,r,o,i,u){try{var l=e[i](u),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function O(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){g(l,r,o,i,u,"next",e)}function u(e){g(l,r,o,i,u,"throw",e)}var l=e.apply(t,n);i(void 0)}))}}function j(){return(j=O((function*(e,t){var n=new FormData;return n.append("username",e),n.append("password",t),n.append("action","login"),yield fetch("".concat(_e,"/api/auth"),{method:"POST",mode:"cors",body:n}).then((function(e){return e.text()}))}))).apply(this,arguments)}function k(){return k=O((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"azif7eqCl5",t=yield fetch("".concat(_e,"/api/userdb"),{method:"GET",mode:"cors",headers:{Authentification:e}}).then((function(e){return e.text()})).then((function(e){return w(e)}));return t})),k.apply(this,arguments)}function w(e){var t=e.split("\n"),n=[];return t.map((function(e,t){var r=v(e.split([";"]),6);n.push({line:t,uid:r[0],first_name:r[1],last_name:r[2],rfid_uid:r[3],user_pin:r[4],enabled:"1"===r[5][0]})})),n}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q(e,t,n,r,o,i,u){try{var l=e[i](u),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.r(t);var ee=n("hosL"),te={},ne=null,re=[],oe=[],ie={},ue=!1,le=function(e){function t(t){e.call(this,t),t.history&&(ne=t.history),this.state={url:t.url||a()},ue||("function"==typeof addEventListener&&(ne||addEventListener("popstate",(function(){_(a())})),addEventListener("click",d)),ue=!0)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.shouldComponentUpdate=function(e){return!0!==e.static||(e.url!==this.props.url||e.onChange!==this.props.onChange)},t.prototype.canRoute=function(e){var t=Object(ee.toChildArray)(this.props.children);return this.getMatchingChildren(t,e,!1).length>0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){re.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;ne&&(this.unlisten=ne.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),re.splice(re.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,n){return e.filter(u).sort(i).map((function(e){var i=o(t,e.props.path,e.props);if(i){if(!1!==n){var u={url:t,matches:i};return r(u,i),delete u.ref,delete u.key,Object(ee.cloneElement)(e,u)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var n=e.children,r=e.onChange,o=t.url,i=this.getMatchingChildren(Object(ee.toChildArray)(n),o,!0),u=i[0]||null,l=this.previousUrl;return o!==l&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:l,active:i,current:u})),u},t}(ee.Component),ce=function(e){return Object(ee.createElement)("a",r({onClick:p},e))};le.subscribers=oe,le.getCurrentUrl=a,le.route=s,le.Router=le,le.Route=function(e){return Object(ee.createElement)(e.component,e)},le.Link=ce,le.exec=o;var ae=n("QRet"),se=function(){return Object(ee.h)("div",{class:"container"},Object(ee.h)("h1",null,"Home"),Object(ee.h)("p",null,"This is the Home component."))},_e="http://192.168.4.22",fe={login:function(){return j.apply(this,arguments)},logout:function(){return"DUMMYTOKEN"},checkAuth:function(e){return"DUMMYTOKEN"===e},parsedb:w,fetchdb:function(){return k.apply(this,arguments)}},pe=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},fe),he=n("YRIq"),de=Object(ee.createContext)(),be=de.Provider,ye=function(e,t){switch(t){case"show":return!0;case"hide":return!1;case"toggle":return!e;default:throw new Error("menustate unknown to reducer")}},ve=function(e,t){switch(t.type){case"start":return{active:!0,token:t.token,username:t.username};case"end":return{active:!1,token:null,username:null,exiry:null};default:throw new Error("action type unknown to session reducer")}},me=function(e,t){var n=t.user;switch(t.type){case"create":return[].concat(x(e),[A({line:e.length},n)]);case"delete":var r=[],o=0;return e.forEach((function(e,t){return(n.uid&&e.uid!==n.uid||n.line&&t!==n.line)&&r.push(A(A({},e),{},{line:o++})),r}),[]),r;case"update":var i=[];return e.forEach((function(e,t){i.push(n.uid&&e.uid===n.uid||n.line&&t===n.line?n:e)})),[].concat(i);case"import":return t.imported;case"reset":return[];default:throw new Error("action type unknown to usertable reducer")}},ge=he.b,Oe=function(e){var t=e.pageid,n=T(Object(ae.d)({limit:100,page:1,pages:null}),2),r=n[0],o=n[1],i=Object(ae.a)(de),u=i.usertable,l=i.userreducer,c=T(Object(ae.a)(ge).session,2),a=c[0];return Object(ae.b)((function(){void 0===u&&console.log("TOKEN"),console.log(a.token),pe.fetchdb(a.token).then((function(e){l({type:"import",imported:e})}))}),[a]),Object(ae.b)((function(){o(U(U({},r),{},{pages:Math.ceil(u.length/r.limit)})),console.log("New View effect")}),[u]),Object(ae.b)((function(){t&&!isNaN(t)&&o(U(U({},r),{},{page:t}))}),[t]),Object(ee.h)("div",{class:"container"},Object(ee.h)(ke,{items:["Users"]}),Object(ee.h)("div",null,"Suche: ",Object(ee.h)("input",{type:"text"}),Object(ee.h)("button",null,"Hinzufügen")," Limit: ",Object(ee.h)("select",null,Object(ee.h)("optgroup",{label:"Anzahl"},Object(ee.h)("option",null,"10"),Object(ee.h)("option",null,"25"),Object(ee.h)("option",null,"50"),Object(ee.h)("option",null,"100")),Object(ee.h)("option",null,"Alle"))),Object(ee.h)(Ee.a,E({},{start:r.limit*(r.page-1),end:r.limit*r.page},{userlist:u,deleteUser:function(e){l({type:"delete",user:e})},editUser:function(e){s("/edituser/".concat(e.uid))}})),Object(ee.h)(xe,{start:1,end:r.pages,current:r.page,setPage:function(e){e.preventDefault(),console.log(e);var t=e.target.text;o(U(U({},r),{},{page:t}))}}))},je=function(e){var t=e.userid,n=Object(ae.a)(de),r=n.userreducer,o=n.usertable.find((function(e){return e.uid===t})),i=H(Object(ae.d)(o||{}),2),u=i[0],l=i[1],c=function(e){console.log(e),l(L(L({},u),{},R({},e.target.id,"checkbox"===e.target.type?e.target.checked:e.target.value)))},a=function(e){var t=e.id,n=e.type,r=void 0===n?"text":n,o=e.label,i=e.disabled;return Object(ee.h)("div",null,Object(ee.h)("label",{for:t},o),Object(ee.h)("input",{disabled:i,type:r,checked:"checkbox"==r&&u[t]?"on":"",value:u[t],id:t,onChange:c,name:"edit-".concat(t)}))};return Object(ee.h)("div",{className:"container"},Object(ee.h)("h1",null,"Benutzer Bearbeiten"),Object(ee.h)("form",{onSubmit:function(e){e.preventDefault(),r({type:"update",user:u}),s("/users")}},Object(ee.h)(a,{id:"uid",label:"UserID"}),Object(ee.h)(a,{id:"first_name",label:"Vorname"}),Object(ee.h)(a,{id:"last_name",label:"NachName"}),Object(ee.h)(a,{id:"rfid_uid",label:"RFID"}),Object(ee.h)(a,{id:"user_pin",label:"Pin"}),Object(ee.h)(a,{id:"enabled",type:"checkbox",label:"Vorname"}),Object(ee.h)("input",{type:"submit"},"Speichern")))},ke=function(e){var t=e.items;if(t)return Object(ee.h)("div",{class:"breadcrumb"},Object(ee.h)("ul",null,t.map((function(e,t){return Object(ee.h)("li",{key:t},Object(ee.h)("a",{href:"#"},e))}))))},we=function(){var e=z(Object(ae.a)(he.b).session,2),t=e[0],n=e[1],r=z(Object(ae.d)({username:"",password:"",error:null}),2),o=r[0],i=r[1];return t.active&&s("/",!0),Object(ee.h)("div",{class:"container"},Object(ee.h)(ke,{items:["Login"]}),Object(ee.h)("form",{id:"login_form",onSubmit:function(e){e.preventDefault(),pe.login(o.username,o.password).then((function(e){"failed!"!=e?n({type:"start",username:o.username,token:e}):i($($({},o),{},{error:"user"}));i({username:"",password:""})}))}},Object(ee.h)("p",null,"Bitte melden Sie sich mit ihren Nutzerdaten an."),null!==o.error&&Object(ee.h)("span",{style:"color: red"},"Fehler: Ungültige Anmeldedaten."),Object(ee.h)("div",{class:"input-box"},Object(ee.h)("input",{id:"name",type:"text",placeholder:"Username",onInput:function(e){return i($($({},o),{},{username:e.target.value}))},value:o.username}),Object(ee.h)("label",{for:"name"},"Benutzername")),Object(ee.h)("div",{class:"input-box"},Object(ee.h)("input",{id:"pass",type:"password",placeholder:"Passwort",onInput:function(e){return i($($({},o),{},{password:e.target.value}))},value:o.password}),Object(ee.h)("label",{for:"pass"},"Password")),Object(ee.h)("input",{type:"submit",value:"Submit"})))},Se=function(){var e=q(Object(ae.a)(he.b).session,2),t=e[0],n=e[1];return this.shouldComponentUpdate=function(){console.log("functional component vs closures")},t.active&&n({type:"end"}),Object(ee.h)("div",{class:"container"},Object(ee.h)(ke,{items:["Logout"]}),Object(ee.h)("p",null,"Erfolgreich abgemeldet.",Object(ee.h)(ce,{href:"/login"},"Erneut Anmelden")))},Ae=function(){return Object(ee.h)("div",{className:"container"},Object(ee.h)("h1",null,"System"),Object(ee.h)("h2",null,"WiFi Setup"),Object(ee.h)("hr",null),Object(ee.h)("form",null,Object(ee.h)("div",null,Object(ee.h)("label",null,"SSID"),Object(ee.h)("input",{type:"text",placeholder:"Wifi network name"})),Object(ee.h)("div",null,Object(ee.h)("label",null,"SSID"),Object(ee.h)("input",{type:"text",placeholder:"Wifi network name"}))),Object(ee.h)("h2",null,"Admin User"),Object(ee.h)("hr",null),Object(ee.h)("form",null,Object(ee.h)("div",null,Object(ee.h)("label",null,"SSID"),Object(ee.h)("input",{type:"text",placeholder:"Wifi network name"})),Object(ee.h)("div",null,Object(ee.h)("label",null,"SSID"),Object(ee.h)("input",{type:"text",placeholder:"Wifi network name"}))),Object(ee.h)("h2",null,"Datenbank Backup"),Object(ee.h)("hr",null),Object(ee.h)("div",null,Object(ee.h)("form",null,Object(ee.h)("h3",null,"Backup einspielen"),Object(ee.h)("input",{type:"file"}),Object(ee.h)("input",{type:"submit",value:"Hochladen"})),Object(ee.h)("h3",null,"Backup herunterladen"),Object(ee.h)("button",null,"Download")))},Pe=function(){var e=Object(ae.c)(ye,!1),t=Object(ae.c)(ve,{active:!1}),n=G(Object(ae.c)(me,[]),2),r=n[0],o=n[1];return this.menu_items=[{text:"Übersicht",path:"/"},{text:"Benutzer",path:"/users"},{text:"System",path:"/system"},{text:"Abmelden",path:"/logout"}],this.handleRoute=function(){var e,n=(e=function*(){t[0].active||s("/login",!0)},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){Q(l,r,o,i,u,"next",e)}function u(e){Q(l,r,o,i,u,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),Object(ee.h)(he.a,{value:{menu:e,session:t}},Object(ee.h)("div",{id:"wrapper"},Object(ee.h)(Ce.a,null),Object(ee.h)("div",{class:"page"},Object(ee.h)(De,{items:this.menu_items}),!e[0]&&Object(ee.h)(be,{value:{usertable:r,userreducer:o}},Object(ee.h)(le,{onChange:this.handleRoute},Object(ee.h)(se,{path:"/",user:"me"}),Object(ee.h)(we,{path:"login"}),Object(ee.h)(Ae,{path:"/system"}),Object(ee.h)(Se,{path:"/logout"}),Object(ee.h)(Oe,{path:"/users/:pageid?"}),Object(ee.h)(je,{path:"/edituser/:userid"}),Object(ee.h)("div",{class:"container",default:!0},"Error 404")))),Object(ee.h)("footer",null,Object(ee.h)("div",{className:"container",style:"text-align: center; align-items: center"},Object(ee.h)("span",null,"© Jean Jacques Avril 2022 ")))))},xe=function(e){var t=[];if(!isNaN(e.start)&&!isNaN(e.end)&&!isNaN(e.current))for(var n=e.start;n<=e.end;n++)t.push(Object(ee.h)("li",null,Object(ee.h)(ce,J({},n==e.current?{className:"active"}:{},{href:"/users/".concat(n),value:n}),n)));return Object(ee.h)("div",{class:"page-nav-bar"},Object(ee.h)("ul",null,t))},Ce=n("z8Av"),Ee=n("hNgA"),De=function(e){var t=e.items,n=X(Object(ae.a)(he.b).menu,2),r=n[1];if(t){var o=function(e){e.preventDefault(),r("hide")};return n[0]?Object(ee.h)("div",{class:"container"},Object(ee.h)("nav",{className:"menu"},Object(ee.h)("ul",null,t.map((function(e,t){return Object(ee.h)("li",{key:t},Object(ee.h)(ce,{href:e.path,onClick:o},e.text))}))))):void 0}},Ue=Pe;Object(ee.render)(Object(ee.h)(Ue,null),document.body)},YRIq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("hosL"),o=Object(r.createContext)({}),i=o.Provider;t.b=o},hNgA:function(e,t,n){"use strict";(function(e){var r=n("hosL");t.a=function(t){var n=t.userlist,o=t.editUser,i=t.deleteUser,u=t.start,l=t.end,c=function(e){return Object(r.h)("div",{key:"user".concat(e.line),class:"user-list-item"},Object(r.h)("div",{class:"user-attributes"},Object(r.h)("span",null,Object(r.h)("b",null,"UID:")," ",e.uid)," ",Object(r.h)("span",null,"(",Object(r.h)("b",null,e.enabled?"Aktiv":"Inaktiv"),")"),Object(r.h)("br",null),Object(r.h)("span",null,Object(r.h)("b",null,"Vorname:")," ",e.first_name),Object(r.h)("br",null),Object(r.h)("span",null,Object(r.h)("b",null,"Nachname:")," ",e.last_name),Object(r.h)("br",null),Object(r.h)("span",null,Object(r.h)("b",null,"RFID:")," ",e.rfid_uid),Object(r.h)("span",null,Object(r.h)("b",null,"PIN:")," ",e.user_pin)),Object(r.h)("div",{class:"btn-group"},Object(r.h)("button",{class:"btn-trash",onClick:function(){return i(e)}},"Löschen"),Object(r.h)("button",{class:"btn-edit",onClick:function(){return o(e)}},"Bearbeiten")))};return Object(r.h)(e,null,n&&(void 0!==u&&l?n.slice(u,l).map((function(e){return c(e)})):n.map((function(e){return c(e)}))))}}).call(this,n("hosL").Fragment)},hosL:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?U.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return u(e,l,r,o,null)}function u(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++T:o};return null==o&&null!=I.vnode&&I.vnode(i),i}function l(){return{current:null}}function c(e){return e.children}function a(e,t){this.props=e,this.context=t}function s(e,t){if(null==t)return e.__?s(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?s(e):null}function _(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return _(e)}}function f(e){(!e.__d&&(e.__d=!0)&&M.push(e)&&!p.__r++||R!==I.debounceRendering)&&((R=I.debounceRendering)||L)(p)}function p(){for(var e;p.__r=M.length;)e=M.sort((function(e,t){return e.__v.__b-t.__v.__b})),M=[],e.some((function(e){var t,n,o,i,u,l;e.__d&&(u=(i=(t=e).__v).__e,(l=t.__P)&&(n=[],(o=r({},i)).__v=i.__v+1,j(l,i,o,t.__n,void 0!==l.ownerSVGElement,null!=i.__h?[u]:null,n,null==u?s(i):u,i.__h),k(n,i),i.__e!=u&&_(i)))}))}function h(e,t,n,r,o,i,l,a,_,f){var p,h,b,v,m,g,O,k=r&&r.__k||F,w=k.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?u(null,v,null,null,v):Array.isArray(v)?u(c,{children:v},null,null,null):v.__b>0?u(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(b=k[p])||b&&v.key==b.key&&v.type===b.type)k[p]=void 0;else for(h=0;h<w;h++){if((b=k[h])&&v.key==b.key&&v.type===b.type){k[h]=void 0;break}b=null}j(e,v,b=b||W,o,i,l,a,_,f),m=v.__e,(h=v.ref)&&b.ref!=h&&(O||(O=[]),b.ref&&O.push(b.ref,null,v),O.push(h,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===b.__k?v.__d=_=d(v,_,e):_=y(e,v,b,k,m,_),"function"==typeof n.type&&(n.__d=_)):_&&b.__e==_&&_.parentNode!=e&&(_=s(b))}for(n.__e=g,p=w;p--;)null!=k[p]&&("function"==typeof n.type&&null!=k[p].__e&&k[p].__e==n.__d&&(n.__d=s(r,p+1)),A(k[p],k[p]));if(O)for(p=0;p<O.length;p++)S(O[p],O[++p],O[++p])}function d(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?d(r,t,n):y(n,r,r,o,r.__e,t));return t}function b(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,t)})):t.push(e)),t}function y(e,t,n,r,o,i){var u,l,c;if(void 0!==t.__d)u=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function v(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||$.test(t)?n:n+"px"}function m(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||v(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||v(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?O:g,i):e.removeEventListener(t,i?O:g,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function g(e){this.l[e.type+!1](I.event?I.event(e):e)}function O(e){this.l[e.type+!0](I.event?I.event(e):e)}function j(e,t,n,o,i,u,l,s,_){var f,p,d,b,y,v,m,g,O,j,k,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(_=n.__h,s=t.__e=n.__e,t.__h=null,u=[s]),(f=I.__b)&&f(t);try{e:if("function"==typeof S){if(g=t.props,O=(f=S.contextType)&&o[f.__c],j=f?O?O.props.value:f.__:o,n.__c?m=(p=t.__c=n.__c).__=p.__E:("prototype"in S&&S.prototype.render?t.__c=p=new S(g,j):(t.__c=p=new a(g,j),p.constructor=S,p.render=P),O&&O.sub(p),p.props=g,p.state||(p.state={}),p.context=j,p.__n=o,d=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=S.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=r({},p.__s)),r(p.__s,S.getDerivedStateFromProps(g,p.__s))),b=p.props,y=p.state,d)null==S.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==b&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,j),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,j)||t.__v===n.__v){p.props=g,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,j),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(b,y,v)}))}p.context=j,p.props=g,p.state=p.__s,(f=I.__r)&&f(t),p.__d=!1,p.__v=t,p.__P=e,f=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(o=r(r({},o),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(b,y)),k=null!=f&&f.type===c&&null==f.key?f.props.children:f,h(e,Array.isArray(k)?k:[k],t,n,o,i,u,l,s,_),p.base=t.__e,t.__h=null,p.__h.length&&l.push(p),m&&(p.__E=p.__=null),p.__e=!1}else null==u&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=w(n.__e,t,n,o,i,u,l,_);(f=I.diffed)&&f(t)}catch(e){t.__v=null,(_||null!=u)&&(t.__e=s,t.__h=!!_,u[u.indexOf(s)]=null),I.__e(e,t,n)}}function k(e,t){I.__c&&I.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){I.__e(e,t.__v)}}))}function w(e,t,n,r,i,u,l,c){var a,_,f,p=n.props,d=t.props,b=t.type,y=0;if("svg"===b&&(i=!0),null!=u)for(;y<u.length;y++)if((a=u[y])&&"setAttribute"in a==!!b&&(b?a.localName===b:3===a.nodeType)){e=a,u[y]=null;break}if(null==e){if(null===b)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,d.is&&d),u=null,c=!1}if(null===b)p===d||c&&e.data===d||(e.data=d);else{if(u=u&&U.call(e.childNodes),_=(p=n.props||W).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=u)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(f||_)&&(f&&(_&&f.__html==_.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||m(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||m(e,i,t[i],n[i],r)}(e,d,p,i,c),f)t.__k=[];else if(y=t.props.children,h(e,Array.isArray(y)?y:[y],t,n,r,i&&"foreignObject"!==b,u,l,u?u[0]:n.__k&&s(n,0),c),null!=u)for(y=u.length;y--;)null!=u[y]&&o(u[y]);c||("value"in d&&void 0!==(y=d.value)&&(y!==e.value||"progress"===b&&!y||"option"===b&&y!==p.value)&&m(e,"value",y,p.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==e.checked&&m(e,"checked",y,p.checked,!1))}return e}function S(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){I.__e(e,n)}}function A(e,t,n){var r,i;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||S(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){I.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],t,"function"!=typeof e.type);n||null==e.__e||o(e.__e),e.__e=e.__d=void 0}function P(e,t,n){return this.constructor(e,n)}function x(e,t,n){var r,o,u;I.__&&I.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,u=[],j(t,e=(!r&&n||t).__k=i(c,null,[e]),o||W,W,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?U.call(t.childNodes):null,u,!r&&n?n:o?o.__e:t.firstChild,r),k(u,e)}function C(e,t){x(e,t,C)}function E(e,t,n){var o,i,l,c=r({},e.props);for(l in t)"key"==l?o=t[l]:"ref"==l?i=t[l]:c[l]=t[l];return arguments.length>2&&(c.children=arguments.length>3?U.call(arguments,2):n),u(e.type,c,o||e.key,i||e.ref,null)}function D(e,t){var n={__c:t="__cC"+H++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(f)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.r(t),n.d(t,"render",(function(){return x})),n.d(t,"hydrate",(function(){return C})),n.d(t,"createElement",(function(){return i})),n.d(t,"h",(function(){return i})),n.d(t,"Fragment",(function(){return c})),n.d(t,"createRef",(function(){return l})),n.d(t,"isValidElement",(function(){return N})),n.d(t,"Component",(function(){return a})),n.d(t,"cloneElement",(function(){return E})),n.d(t,"createContext",(function(){return D})),n.d(t,"toChildArray",(function(){return b})),n.d(t,"options",(function(){return I}));var U,I,T,N,M,L,R,H,W={},F=[],$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;U=F.slice,I={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},T=0,N=function(e){return null!=e&&void 0===e.constructor},a.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),f(this))},a.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),f(this))},a.prototype.render=c,M=[],L="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,H=0},z8Av:function(e,t,n){"use strict";(function(e){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=n("QRet"),u=n("YRIq");t.a=function(){var t=Object(i.a)(u.b),n=t.session,o=r(t.menu,2),l=o[0],c=o[1],a=r(n,1)[0];return e("header",{className:"header"},e("div",{className:"container"},e("h1",null,"Login"),a.active&&e("div",{id:"hamburger-button",className:"hamburger ".concat(l&&"hamburger-active"),onClick:function(){return c("toggle")}},e("hr",null),e("hr",null),e("hr",null))))}}).call(this,n("hosL").h)}});
|
|
//# sourceMappingURL=bundle.357e7.js.map
|