',e.acceptButton=e.datepickerContainer.getElementsByClassName("scrollroll-accept-button")[0],e.dayPicker=e.datepickerContainer.getElementsByClassName("scrollroll-day-picker")[0],e.monthPicker=e.datepickerContainer.getElementsByClassName("scrollroll-month-picker")[0],e.yearPicker=e.datepickerContainer.getElementsByClassName("scrollroll-year-picker")[0],rr(e.dayPicker),ar(e.monthPicker),ir(e.yearPicker,e.allYears),e.dayElements=e.dayPicker.getElementsByClassName("scrollroll-element")},qo=function(e){v("setInitialPositions"),e.previousYearScroll=dr(e.yearPos,e.height),e.yearPicker.scrollTo(0,e.previousYearScroll),e.previousMonthScroll=dr(e.monthPos,e.height),e.monthPicker.scrollTo(0,e.previousMonthScroll),e.previousDayScroll=dr(e.dayPos,e.height),e.dayPicker.scrollTo(0,e.previousDayScroll)},zo=function(e){var t,n;for(e.maxDays=Oo[e.monthPos],e.allYears[e.yearPos]%4||28!==e.maxDays||e.maxDays++,n=t=28;t<=30;n=++t)e.maxDays<=n?e.dayElements[n].style.opacity="0.5":e.dayElements[n].style.removeProperty("opacity")},Vo=function(t){var e,n,o;for(v("attachEventListeners"),t.element.addEventListener("click",function(e){return $o(e,t)}),t.element.addEventListener("focus",function(e){return _o(e,t)}),t.acceptButton.addEventListener("click",function(e){return Jo(e,t)}),t.dayPicker.addEventListener("mousedown",function(e){return Ko(e,t,t.dayPicker)}),t.dayPicker.addEventListener("touchstart",function(e){return Go(e,t,t.dayPicker)},{passive:!0}),t.dayPicker.addEventListener("wheel",nr),t.monthPicker.addEventListener("mousedown",function(e){return Ko(e,t,t.monthPicker)}),t.monthPicker.addEventListener("touchstart",function(e){return Go(e,t,t.monthPicker)},{passive:!0}),t.monthPicker.addEventListener("wheel",nr),t.yearPicker.addEventListener("mousedown",function(e){return Ko(e,t,t.yearPicker)}),t.yearPicker.addEventListener("touchstart",function(e){return Go(e,t,t.yearPicker)},{passive:!0}),t.yearPicker.addEventListener("wheel",nr),document.addEventListener("mousemove",function(e){return Qo(e,t)}),document.addEventListener("touchmove",function(e){return Xo(e,t)},{passive:!0}),document.addEventListener("mouseup",function(e){return Zo(e,t)}),document.addEventListener("touchend",function(e){return er(e,t)},{passive:!0}),n=0,o=(e=t.datepickerContainer.getElementsByClassName("scrollroll-element")).length;ne.maxDays-1&&(e.dayPos=e.maxDays-1),t=dr(e.dayPos,e.height),e.dayPicker.scrollTo(0,t),sr(e)),e.previousDayScroll=t},Yo=function(e){var t=e.monthPicker.scrollTop,n=dr(e.monthPos,e.height);null==e.dragObj&&e.previousMonthScroll===t&&t!==n&&(e.monthPos=ur(t,e.height),11=e.allYears.length&&(e.yearPos=e.allYears.length-1),t=dr(e.yearPos,e.height),e.yearPicker.scrollTo(0,t),sr(e)),e.previousYearScroll=t},$o=function(e,t){return v("inputElementClicked"),e.preventDefault(),!!t.frozen||(cr(t),!1)},_o=function(e,t){return v("inputElementFocused"),e.preventDefault(),e.target.blur(),!1},Jo=function(e,t){var n,o,r,a;v("acceptButtonClicked"),Fo(t),Yo(t),Wo(t),zo(t),t.dayPos>t.maxDays-1?(t.dayElements[t.dayPos].style.color="red",t.dayElements[t.dayPos].style.fontWeight="bold"):(n=`${a=t.allYears[t.yearPos]}-${r=Mo[t.monthPos]}-`+(o=xo[t.dayPos]),o=o+`.${r}.`+a,t.isInputElement?t.element.value=o:t.element.innerText=o,t.value=n,lr(t))},Ko=function(e,t,n){v("mouseDowned"),t.dragObj={picker:n},t.dragObj.lastY=e.screenY,t.dragObj.hasMoved=!1},Go=function(e,t,n){v("touchStarted"),e=e.changedTouches[0],t.dragObj={picker:n},t.dragObj.touchID=e.identifier,t.dragObj.lastY=e.screenY},Qo=function(e,t){var n;null!=t.dragObj&&(v("mouseMoved"),t.dragObj.hasMoved=!0,n=t.dragObj.lastY-e.screenY,t.dragObj.lastY=e.screenY,or(n,t.dragObj.picker))},Xo=function(e,t){var n,o,r,a,i;if(null!=t.dragObj)for(v("touchMoved"),o=0,r=(a=e.changedTouches).length;o",r=n=0,o=xo.length;n${xo[r]}`;e.innerHTML=t+=""},ar=function(e){var t,n,o,r;for(v("addMonthElements"),t="",r=n=0,o=Mo.length;n${Mo[r]}`;e.innerHTML=t+=""},ir=function(e,t){var n,o,r,a;for(v("addYearElements"),n="",a=o=0,r=t.length;o${t[a]}`;e.innerHTML=n+=""},sr=function(e){for(var t,n=t=28;t<=30;n=++t)e.dayElements[n].style.removeProperty("color"),e.dayElements[n].style.removeProperty("font-weight")},lr=function(e){v("closeScrollRollDatepicker"),e.outerContainer.classList.remove("shown"),e.dragObj=null,e.nexHeartbeat=function(){},e.isOn=!1},cr=function(e){v("openScrollRollDatepicker"),e.outerContainer.classList.add("shown"),e.nexHeartbeat=e.heartbeat.bind(e),requestAnimationFrame(e.nexHeartbeat),e.isOn=!0},dr=function(e,t){return t/2+e*t},ur=function(e,t){return(e-e%t)/t},mr=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement&&e.isConnected:null!=e&&1===e.nodeType&&e.isConnected},fr=function(e,t){Object.assign(e,Do),Object.assign(e,t)},pr=({log:y,olog:Hn}=e("credentialsframemodule"),document.getElementById("credentialsframe-container")),hr=document.getElementById("login-code-input"),gr=document.getElementById("login-birthday-input"),vr=document.getElementById("invalid-user-error-feedback"),yr=document.getElementById("network-error-feedback"),wr=document.getElementById("input-error-feedback"),br=document.getElementById("login-preloader"),Er=pr.getElementsByClassName("user-feedback")[0],P=null,Lr="",kr=null,Cr=function(){y("initialize"),br=br.parentNode.removeChild(br),hr.addEventListener("keydown",Br),hr.addEventListener("keyup",Ir),(P=new No({element:"login-birthday-input",height:32})).initialize()},Br=function(e){var t,n;13===e.keyCode?(e.preventDefault(),To()):46!==e.keyCode&&8!==e.keyCode&&27!==e.keyCode&&(e=[],0<(t=(n=(n=hr.value.replaceAll(" ","").toLowerCase())!==Lr?Lr:n).length)&&e.push(n.slice(0,3)),3":">",'"':""","'":"'","/":"/","`":"`","=":"="},ja=/\s*/,Ha=/\s+/,Ua=/\s*=/,Ra=/\s*\}/,qa=/#|\^|\/|>|\{|&|=|!/;function za(e){this.string=e,this.tail=e,this.pos=0}function Va(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function S(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}za.prototype.eos=function(){return""===this.tail},za.prototype.scan=function(e){var e=this.tail.match(e);return e&&0===e.index?(e=e[0],this.tail=this.tail.substring(e.length),this.pos+=e.length,e):""},za.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},Va.prototype.push=function(e){return new Va(e,this)},Va.prototype.lookup=function(e){var t,n,o,r=this.cache;if(r.hasOwnProperty(e))t=r[e];else{for(var a,i,s,l=this,c=!1;l;){if(0{if(!e)return[];var t,n,o,r,a=!1,i=[],s=[],l=[],c=!1,d=!1,u="",m=0;function f(){if(c&&!d)for(;l.length;)delete s[l.pop()];else l=[];d=c=!1}function p(e){if("string"==typeof e&&(e=e.split(Ha,2)),!Sa(e)||2!==e.length)throw new Error("Invalid tags: "+e);t=new RegExp(xa(e[0])+"\\s*"),n=new RegExp("\\s*"+xa(e[1])),o=new RegExp("\\s*"+xa("}"+e[1]))}p(x||O.tags);for(var h,g,v,y,w,b,E=new za(e);!E.eos();){if(h=E.pos,v=E.scanUntil(t))for(var L=0,k=v.length;L"==g?[g,v,h,E.pos,u,m,a]:[g,v,h,E.pos],m++,s.push(w),"#"===g||"^"===g)i.push(w);else if("/"===g){if(!(b=i.pop()))throw new Error('Unopened section "'+v+'" at '+h);if(b[1]!==v)throw new Error('Unclosed section "'+b[1]+'" at '+h)}else"name"===g||"{"===g||"&"===g?d=!0:"="===g&&p(v)}if(f(),b=i.pop())throw new Error('Unclosed section "'+b[1]+'" at '+E.pos);for(var C,B=(e=>{for(var t,n,o=[],r=0,a=e.length;r"===i?s=this.renderPartial(a,t,n,r):"&"===i?s=this.unescapedValue(a,t):"name"===i?s=this.escapedValue(a,t,r):"text"===i&&(s=this.rawValue(a)),void 0!==s&&(l+=s);return l},S.prototype.renderSection=function(e,t,n,o,r){var a=this,i="",s=t.lookup(e[1]);if(s){if(Sa(s))for(var l=0,c=s.length;l"'`=\/]/g,function(e){return Na[e]})},O.Scanner=za,O.Context=Va,O.Writer=S;let p=O;({log:Fa,olog:Ya}=e("screeningslistmodule"));var $a,_a,Ja={year:"numeric",month:"numeric",day:"numeric"},Ka=document.getElementById("real-body"),Ga=document.getElementById("screenings-container"),Qa=document.getElementById("screening-button-template").innerHTML,Xa=document.getElementById("no-screenings-template").innerHTML,Za=document.getElementById("network-error-screenings-template").innerHTML,ei=document.getElementById("auth-error-screenings-template").innerHTML,ti=document.getElementById("misc-error-screenings-template").innerHTML,ni=function(){Fa("initialize"),Fa(Qa),screeningslist.innerHTML=Xa},oi=async function(){var e,t,n,o,r;for(t in Fa("retrieveScreenings"),e=yt(),e=await Fe(e),o=[],r=await dt(e))n=r[t],o.push(n);return o},ri=function(e){Fa("screeningClicked"),e.preventDefault(),e=this.getAttribute("href"),window.open(e+"&app=pwa_patient")},ai=async function(){var e,t,n,o,r,a,i,s,l,c,d;Fa("updateScreenings");try{if(Ga.classList.add("preload"),(d=await oi()).length<=0)screeningslist.innerHTML=Xa;else{for(r="",a=0,s=d.length;a${n.message}`),screeningslist.innerHTML=o)}finally{Ga.classList.remove("preload")}},ii=function(){return Ka.classList.add("list-screenings")},si=function(){return Ka.classList.remove("list-screenings")};({log:$a,olog:_a}=e("contentmodule"));var li,ci,T,x,di,ui,mi,D,fi,pi,hi,gi,vi,yi,wi,bi,Ei,Li,N,ki,Ci,Bi,Ii,Ai=function(){$a("setToDefaultState"),va(),Ca(),si(),Jr(),jr(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},Pi=function(){$a("setToAddCodeState"),va(),Ca(),si(),Nr(),content.classList.remove("preload"),content.classList.add("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},Si=function(){$a("setToUpdateCodeState"),va(),Ca(),si(),Dr(),content.classList.remove("preload"),content.classList.add("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},Ti=function(){$a("setToRequestCodeState"),si(),va(),pa(),Ca(),$r(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.add("request-code")},xi=function(){$a("setToRequestUpdateCodeState"),si(),va(),pa(),Ca(),_r(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.add("request-code")},Mi=function(){$a("setToPreUserImagesState"),si(),va(),ha(),Ca(),jr(),Jr(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.add("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},Oi=async function(){$a("setToUserImagesState"),await Ea(),si(),ya(),Ba(),jr(),Jr(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.add("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},Di=async function(){await Ea(),si(),ga(),Ba(),jr(),Jr(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.add("show-qr"),content.classList.remove("request-code")},Ni=function(){$a("showScreeningsList"),ii(),va(),Ca(),jr(),Jr(),content.classList.remove("preload"),content.classList.remove("add-code"),content.classList.remove("pre-user-images"),content.classList.remove("user-images"),content.classList.remove("show-qr"),content.classList.remove("request-code")},ji=({log:x,olog:di}=e("pwainstallmodule"),T=ci=null,li=!1,function(){x("initialize"),pwainstallHowtoBackground.addEventListener("click",Ri),window.addEventListener("beforeinstallprompt",Hi),window.addEventListener("appinstalled",Ui),window.matchMedia("(display-mode: standalone)").addEventListener("change",qi),a.inApp=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone,zi(),Vi(),setTimeout(Yi,5e3),di({env:a,howToToShow:T,appIsInstalled:li})}),Hi=function(e){x("beforeInstallPrompt"),e.preventDefault(),T=null,ci=e,x("So adding Installbutton ;-)"),rs()},Ui=function(e){x("onAppInstalled"),as(),ci=null},Ri=function(e){x("howtoBackgroundClicked"),x(T),"ios"!==T?"mac"!==T?"firefox-android"!==T?"firefox-desktop"===T&&pwainstallHowtoBackground.classList.remove("howto-firefox-desktop"):pwainstallHowtoBackground.classList.remove("howto-firefox-android"):pwainstallHowtoBackground.classList.remove("howto-mac"):pwainstallHowtoBackground.classList.remove("howto-ios")},qi=function(e){x("onDisplayModeChange"),e.matches?a.inApp=!0:a.inApp=!1},zi=function(){x("checkIfInstalled"),a.inApp&&(li=!0)},Vi=function(){return x("decideOnHowTo"),"ios"===a.os?void(T="ios"):"samsung"===a.browser?void(T="samsung"):void(T=null)},Fi=function(){x("showHowTo"),x(T),"ios"!==T?"mac"!==T?"firefox-android"!==T?"firefox-desktop"===T&&pwainstallHowtoBackground.classList.add("howto-firefox-desktop"):pwainstallHowtoBackground.classList.add("howto-firefox-android"):pwainstallHowtoBackground.classList.add("howto-mac"):pwainstallHowtoBackground.classList.add("howto-ios")},Yi=function(){x("showButtonManually"),x("appIsInstalled: "+li),li||(x("howToToShow: "+T),null!=T&&(x("So adding Installbutton ;-)"),rs()))},Wi=async function(){var e;if(x("promptForInstallation"),!li){if(null!=T)return Fi();if(null!=ci)try{e=await ci.prompt(),di(e),"accepted"===e.outcome?(x("doing installation..."),as(),ci=null):x("doing nothing...")}catch(e){}}},$i=({log:D,olog:Ei}=e("menumodule"),hi=document.getElementById("menu-frame"),fi=document.getElementById("menu-add-code"),wi=document.getElementById("menu-show-qr"),gi=document.getElementById("menu-hide-qr"),vi=document.getElementById("menu-logout"),bi=document.getElementById("menu-version"),yi=document.getElementById("menu-pwa-install-button"),ui=document.getElementById("all-users"),pi=document.getElementById("menu-entry-template"),N=document.getElementById("unnamed-text-element"),mi=pi.innerHTML,Li=N.textContent,function(){D("initialize"),hi.addEventListener("click",_i),fi.addEventListener("click",Ki),wi.addEventListener("click",Gi),gi.addEventListener("click",Qi),vi.addEventListener("click",Xi),bi.addEventListener("click",Zi),yi.addEventListener("click",es)}),_i=function(e){D("menuFrameClicked"),In(!1)},Ji=function(e){var t;D("userEntryClicked"),e.stopPropagation(),e=e.currentTarget.getAttribute("user-index"),D(e),t=Et().activeAccount,(e=parseInt(e))===t&&Bn(),NaN!==e&&Bt(e)},Ki=function(e){D("addCodeClicked"),e.stopPropagation(),An()},Gi=function(e){D("showQRClicked"),e.stopPropagation(),nn("show-qr")},Qi=function(e){D("hideQRClicked"),e.stopPropagation(),Bn()},Xi=function(e){D("logoutClicked"),e.stopPropagation(),tn("logoutconfirmation")},Zi=function(e){D("menuVersionClicked"),e.stopPropagation(),window.location.reload()},es=function(e){D("pwaInstallClicked"),Wi()},ts=function(){var e,t,n,o,r,a,i,s,l,c,d,u,m,f;for(D("updateAllUsers"),{activeAccount:n,allAccounts:o,accountValidity:t}=Et(),s="",c=l=0,u=o.length;l *")).length;d{await on("update-code",null,1)})();break;case"click-catcher":case"modal-cancel-button":case"modal-close-button":Pn(!0)}}},ec=function(){H("codeUpdateProcess")},tc=({log:ul,olog:ml}=e("centerbuttonmodule"),fl=document.getElementById("request-code-button"),function(){ul("initialize"),centerbutton.addEventListener("click",nc),fl.addEventListener("click",oc)}),nc=function(e){ul("centerButtonClicked"),e.preventDefault(),nn("screenings-list")},oc=function(e){var t;ul("requestCodeButtonClicked"),"add-code"===(t=Il())&&(async()=>{await nn("request-code")})(),"update-code"===t&&(async()=>{await nn("request-update-code")})()},rc={accountmodule:!0,appcoremodule:!0},ac=rc;for(gl in ac)ac[gl]&&(fe[gl]=!0);({log:pl,olog:hl}=e("headermodule"));var ic,sc,lc=function(){pl("initialize"),susdoxLogo.addEventListener("click",cc),menuButton.addEventListener("click",dc),menuCloseButton.addEventListener("click",uc),headerInstallButton.addEventListener("click",mc)},cc=function(){pl("susdoxLogoClicked"),Bn()},dc=function(){pl("menuButtonClicked"),In(!0)},uc=function(){pl("menuCloseButtonClicked"),In(!1)},mc=function(){return pl("headerInstallButtonClicked"),Wi()},fc=({log:ic,olog:sc}=e("usermodalmodule"),function(){ic("initialize"),Ss("initialize"),(Ps=new vl(logoutmodal)).connectDefaultElements(),xs=logoutmodalContentMessageTemplate.innerHTML,Ts=logoutmodal.getElementsByClassName("modal-content")[0],Hs("initialize"),(js=new vl(invalidcodemodal)).connectDefaultElements(),Rs=invalidcodemodalContentMessageTemplate.innerHTML,Us=invalidcodemodal.getElementsByClassName("modal-content")[0],Ys.addEventListener("click",Ws),(async()=>{j("initialize"),(ys=new vl(codeverificationmodal)).connectDefaultElements(),hs.addEventListener("click",gs),await(ws=new No({element:"codeverification-birthday-input"})).initialize()})()});let o={accountmodule:Y,appcoremodule:ae,centerbuttonmodule:ie,codedisplaymodule:ne,configmodule:z,contentmodule:Z,credentialsframemodule:J,cubemodule:G,debugmodule:se,environmentmodule:F,errormodule:q,footermodule:W,headermodule:le,mainbuttonmodule:$,menumodule:te,pwainstallmodule:ee,radiologistdatamodule:Q,requestcodeframemodule:K,scimodule:V,screeningslistmodule:X,scrollrolldatepickermodule:_,statemodule:d,uistatemodule:oe,usermodalmodule:ue,usernamedisplaymodule:re,utilmodule:R};var pc,hc=r(13);r.n(hc)().initialize(),r.g.allModules=o,"undefined"!=typeof navigator&&null!==navigator&&null!=navigator.serviceWorker&&navigator.serviceWorker.register("serviceworker.js"),pc=function(){ge()},(async()=>{var t,n,e=(()=>{var e=[];for(n in o)null!=(t=o[n]).initialize&&e.push(t.initialize());return e})();await Promise.all(e),pc()})()}})()