',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],or(e.dayPicker),rr(e.monthPicker),ar(e.yearPicker,e.allYears),e.dayElements=e.dayPicker.getElementsByClassName("scrollroll-element")},Ro=function(e){v("setInitialPositions"),e.previousYearScroll=cr(e.yearPos,e.height),e.yearPicker.scrollTo(0,e.previousYearScroll),e.previousMonthScroll=cr(e.monthPos,e.height),e.monthPicker.scrollTo(0,e.previousMonthScroll),e.previousDayScroll=cr(e.dayPos,e.height),e.dayPicker.scrollTo(0,e.previousDayScroll)},qo=function(e){var t,n;for(e.maxDays=Mo[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")},zo=function(t){var e,n,o;for(v("attachEventListeners"),t.element.addEventListener("click",function(e){return Yo(e,t)}),t.element.addEventListener("focus",function(e){return $o(e,t)}),t.acceptButton.addEventListener("click",function(e){return _o(e,t)}),t.dayPicker.addEventListener("mousedown",function(e){return Jo(e,t,t.dayPicker)}),t.dayPicker.addEventListener("touchstart",function(e){return Ko(e,t,t.dayPicker)}),t.dayPicker.addEventListener("wheel",tr),t.monthPicker.addEventListener("mousedown",function(e){return Jo(e,t,t.monthPicker)}),t.monthPicker.addEventListener("touchstart",function(e){return Ko(e,t,t.monthPicker)}),t.monthPicker.addEventListener("wheel",tr),t.yearPicker.addEventListener("mousedown",function(e){return Jo(e,t,t.yearPicker)}),t.yearPicker.addEventListener("touchstart",function(e){return Ko(e,t,t.yearPicker)}),t.yearPicker.addEventListener("wheel",tr),document.addEventListener("mousemove",function(e){return Go(e,t)}),document.addEventListener("touchmove",function(e){return Qo(e,t)}),document.addEventListener("mouseup",function(e){return Xo(e,t)}),document.addEventListener("touchend",function(e){return Zo(e,t)}),n=0,o=(e=t.datepickerContainer.getElementsByClassName("scrollroll-element")).length;ne.maxDays-1&&(e.dayPos=e.maxDays-1),t=cr(e.dayPos,e.height),e.dayPicker.scrollTo(0,t),ir(e)),e.previousDayScroll=t},Fo=function(e){var t=e.monthPicker.scrollTop,n=cr(e.monthPos,e.height);null==e.dragObj&&e.previousMonthScroll===t&&t!==n&&(e.monthPos=dr(t,e.height),11=e.allYears.length&&(e.yearPos=e.allYears.length-1),t=cr(e.yearPos,e.height),e.yearPicker.scrollTo(0,t),ir(e)),e.previousYearScroll=t},Yo=function(e,t){return v("inputElementClicked"),e.preventDefault(),!!t.frozen||(lr(t),!1)},$o=function(e,t){return v("inputElementFocused"),e.preventDefault(),e.target.blur(),!1},_o=function(e,t){var n,o,r,a;v("acceptButtonClicked"),Vo(t),Fo(t),Wo(t),qo(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=xo[t.monthPos]}-`+(o=To[t.dayPos]),o=o+`.${r}.`+a,t.isInputElement?t.element.value=o:t.element.innerText=o,t.value=n,sr(t))},Jo=function(e,t,n){v("mouseDowned"),t.dragObj={picker:n},t.dragObj.lastY=e.screenY,t.dragObj.hasMoved=!1},Ko=function(e,t,n){v("touchStarted"),e=e.changedTouches[0],t.dragObj={picker:n},t.dragObj.touchID=e.identifier,t.dragObj.lastY=e.screenY},Go=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,nr(n,t.dragObj.picker))},Qo=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=To.length;n${To[r]}`;e.innerHTML=t+=""},rr=function(e){var t,n,o,r;for(v("addMonthElements"),t="",r=n=0,o=xo.length;n${xo[r]}`;e.innerHTML=t+=""},ar=function(e,t){var n,o,r,a;for(v("addYearElements"),n="",a=o=0,r=t.length;o${t[a]}`;e.innerHTML=n+=""},ir=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")},sr=function(e){v("closeScrollRollDatepicker"),e.outerContainer.classList.remove("shown"),e.dragObj=null,e.nexHeartbeat=function(){},e.isOn=!1},lr=function(e){v("openScrollRollDatepicker"),e.outerContainer.classList.add("shown"),e.nexHeartbeat=e.heartbeat.bind(e),requestAnimationFrame(e.nexHeartbeat),e.isOn=!0},cr=function(e,t){return t/2+e*t},dr=function(e,t){return(e-e%t)/t},ur=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement&&e.isConnected:null!=e&&1===e.nodeType&&e.isConnected},mr=function(e,t){Object.assign(e,Oo),Object.assign(e,t)},fr=({log:y,olog:jn}=e("credentialsframemodule"),document.getElementById("credentialsframe-container")),pr=document.getElementById("login-code-input"),hr=document.getElementById("login-birthday-input"),gr=document.getElementById("invalid-user-error-feedback"),vr=document.getElementById("network-error-feedback"),yr=document.getElementById("input-error-feedback"),wr=document.getElementById("login-preloader"),br=fr.getElementsByClassName("user-feedback")[0],P=null,Er="",Lr=null,kr=function(){y("initialize"),wr=wr.parentNode.removeChild(wr),pr.addEventListener("keydown",Cr),pr.addEventListener("keyup",Br),(P=new Do({element:"login-birthday-input",height:32})).initialize()},Cr=function(e){var t,n;13===e.keyCode?(e.preventDefault(),So()):46!==e.keyCode&&8!==e.keyCode&&27!==e.keyCode&&(e=[],0<(t=(n=(n=pr.value.replaceAll(" ","").toLowerCase())!==Er?Er:n).length)&&e.push(n.slice(0,3)),3":">",'"':""","'":"'","/":"/","`":"`","=":"="},Na=/\s*/,ja=/\s+/,Ha=/\s*=/,Ua=/\s*\}/,Ra=/#|\^|\/|>|\{|&|=|!/;function qa(e){this.string=e,this.tail=e,this.pos=0}function za(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={}}}}qa.prototype.eos=function(){return""===this.tail},qa.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):""},qa.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},za.prototype.push=function(e){return new za(e,this)},za.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(ja,2)),!Pa(e)||2!==e.length)throw new Error("Invalid tags: "+e);t=new RegExp(Ta(e[0])+"\\s*"),n=new RegExp("\\s*"+Ta(e[1])),o=new RegExp("\\s*"+Ta("}"+e[1]))}p(x||O.tags);for(var h,g,v,y,w,b,E=new qa(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(Pa(s))for(var l=0,c=s.length;l"'`=\/]/g,function(e){return Da[e]})},O.Scanner=qa,O.Context=za,O.Writer=S;let p=O;({log:Va,olog:Fa}=e("screeningslistmodule"));var Ya,$a,_a={year:"numeric",month:"numeric",day:"numeric"},Ja=document.getElementById("real-body"),Ka=document.getElementById("screenings-container"),Ga=document.getElementById("screening-button-template").innerHTML,Qa=document.getElementById("no-screenings-template").innerHTML,Xa=document.getElementById("network-error-screenings-template").innerHTML,Za=document.getElementById("auth-error-screenings-template").innerHTML,ei=document.getElementById("misc-error-screenings-template").innerHTML,ti=function(){Va("initialize"),Va(Ga),screeningslist.innerHTML=Qa},ni=async function(){var e,t,n,o,r;for(t in Va("retrieveScreenings"),e=vt(),e=await Fe(e),o=[],r=await ct(e))n=r[t],o.push(n);return o},oi=function(e){Va("screeningClicked"),e.preventDefault(),e=this.getAttribute("href"),window.open(e)},ri=async function(){var e,t,n,o,r,a,i,s,l,c,d;Va("updateScreenings");try{if(Ka.classList.add("preload"),(d=await ni()).length<=0)screeningslist.innerHTML=Qa;else{for(r="",a=0,s=d.length;a${n.message}`),screeningslist.innerHTML=o)}finally{Ka.classList.remove("preload")}},ai=function(){return Ja.classList.add("list-screenings")},ii=function(){return Ja.classList.remove("list-screenings")};({log:Ya,olog:$a}=e("contentmodule"));var si,li,T,x,ci,di,ui,D,mi,fi,pi,hi,gi,vi,yi,wi,bi,Ei,N,Li,ki,Ci,Bi,Ii=function(){Ya("setToDefaultState"),ga(),ka(),ii(),_r(),Nr(),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")},Ai=function(){Ya("setToAddCodeState"),ga(),ka(),ii(),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")},Pi=function(){Ya("setToUpdateCodeState"),ga(),ka(),ii(),Or(),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(){Ya("setToRequestCodeState"),ii(),ga(),fa(),ka(),Yr(),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")},Ti=function(){Ya("setToRequestUpdateCodeState"),ii(),ga(),fa(),ka(),$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(){Ya("setToPreUserImagesState"),ii(),ga(),pa(),ka(),Nr(),_r(),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")},Mi=async function(){Ya("setToUserImagesState"),await ba(),ii(),va(),Ca(),Nr(),_r(),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")},Oi=async function(){await ba(),ii(),ha(),Ca(),Nr(),_r(),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")},Di=function(){Ya("showScreeningsList"),ai(),ga(),ka(),Nr(),_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.remove("request-code")},Ni=({log:x,olog:ci}=e("pwainstallmodule"),T=li=null,si=!1,function(){x("initialize"),pwainstallHowtoBackground.addEventListener("click",Ui),window.addEventListener("beforeinstallprompt",ji),window.addEventListener("appinstalled",Hi),window.matchMedia("(display-mode: standalone)").addEventListener("change",Ri),a.inApp=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone,qi(),zi(),setTimeout(Fi,5e3),ci({env:a,howToToShow:T,appIsInstalled:si})}),ji=function(e){x("beforeInstallPrompt"),e.preventDefault(),T=null,li=e,x("So adding Installbutton ;-)"),os()},Hi=function(e){x("onAppInstalled"),rs(),li=null},Ui=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")},Ri=function(e){x("onDisplayModeChange"),e.matches?a.inApp=!0:a.inApp=!1},qi=function(){x("checkIfInstalled"),a.inApp&&(si=!0)},zi=function(){return x("decideOnHowTo"),"ios"===a.os?void(T="ios"):"samsung"===a.browser?void(T="samsung"):void(T=null)},Vi=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")},Fi=function(){x("showButtonManually"),x("appIsInstalled: "+si),si||(x("howToToShow: "+T),null!=T&&(x("So adding Installbutton ;-)"),os()))},Wi=async function(){var e;if(x("promptForInstallation"),!si){if(null!=T)return Vi();if(null!=li)try{e=await li.prompt(),ci(e),"accepted"===e.outcome?(x("doing installation..."),rs(),li=null):x("doing nothing...")}catch(e){}}},Yi=({log:D,olog:bi}=e("menumodule"),pi=document.getElementById("menu-frame"),mi=document.getElementById("menu-add-code"),yi=document.getElementById("menu-show-qr"),hi=document.getElementById("menu-hide-qr"),gi=document.getElementById("menu-logout"),wi=document.getElementById("menu-version"),vi=document.getElementById("menu-pwa-install-button"),di=document.getElementById("all-users"),fi=document.getElementById("menu-entry-template"),N=document.getElementById("unnamed-text-element"),ui=fi.innerHTML,Ei=N.textContent,function(){D("initialize"),pi.addEventListener("click",$i),mi.addEventListener("click",Ji),yi.addEventListener("click",Ki),hi.addEventListener("click",Gi),gi.addEventListener("click",Qi),wi.addEventListener("click",Xi),vi.addEventListener("click",Zi)}),$i=function(e){D("menuFrameClicked"),Bn(!1)},_i=function(e){var t;D("userEntryClicked"),e.stopPropagation(),e=e.currentTarget.getAttribute("user-index"),D(e),t=bt().activeAccount,(e=parseInt(e))===t&&Cn(),NaN!==e&&Ct(e)},Ji=function(e){D("addCodeClicked"),e.stopPropagation(),In()},Ki=function(e){D("showQRClicked"),e.stopPropagation(),tn("show-qr")},Gi=function(e){D("hideQRClicked"),e.stopPropagation(),Cn()},Qi=function(e){D("logoutClicked"),e.stopPropagation(),en("logoutconfirmation")},Xi=function(e){D("menuVersionClicked"),e.stopPropagation(),window.location.reload()},Zi=function(e){D("pwaInstallClicked"),Wi()},es=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}=bt(),s="",c=l=0,u=o.length;l *")).length;d{await nn("update-code",null,1)})();break;case"click-catcher":case"modal-cancel-button":case"modal-close-button":An(!0)}}},Zl=function(){H("codeUpdateProcess")},ec=({log:dl,olog:ul}=e("centerbuttonmodule"),ml=document.getElementById("request-code-button"),function(){dl("initialize"),centerbutton.addEventListener("click",tc),ml.addEventListener("click",nc)}),tc=function(e){dl("centerButtonClicked"),e.preventDefault(),tn("screenings-list")},nc=function(e){var t;dl("requestCodeButtonClicked"),"add-code"===(t=Bl())&&(async()=>{await tn("request-code")})(),"update-code"===t&&(async()=>{await tn("request-update-code")})()},oc={accountmodule:!0,appcoremodule:!0},rc=oc;for(hl in rc)rc[hl]&&(fe[hl]=!0);({log:fl,olog:pl}=e("headermodule"));var ac,ic,sc=function(){fl("initialize"),susdoxLogo.addEventListener("click",lc),menuButton.addEventListener("click",cc),menuCloseButton.addEventListener("click",dc),headerInstallButton.addEventListener("click",uc)},lc=function(){fl("susdoxLogoClicked"),Cn()},cc=function(){fl("menuButtonClicked"),Bn(!0)},dc=function(){fl("menuCloseButtonClicked"),Bn(!1)},uc=function(){return fl("headerInstallButtonClicked"),Wi()},mc=({log:ac,olog:ic}=e("usermodalmodule"),function(){ac("initialize"),Ps("initialize"),(As=new gl(logoutmodal)).connectDefaultElements(),Ts=logoutmodalContentMessageTemplate.innerHTML,Ss=logoutmodal.getElementsByClassName("modal-content")[0],js("initialize"),(Ns=new gl(invalidcodemodal)).connectDefaultElements(),Us=invalidcodemodalContentMessageTemplate.innerHTML,Hs=invalidcodemodal.getElementsByClassName("modal-content")[0],Fs.addEventListener("click",Ws),(async()=>{j("initialize"),(vs=new gl(codeverificationmodal)).connectDefaultElements(),ps.addEventListener("click",hs),await(ys=new Do({element:"codeverification-birthday-input"})).initialize()})()});let o={accountmodule:W,appcoremodule:ae,centerbuttonmodule:ie,codedisplaymodule:ne,configmodule:z,contentmodule:Z,credentialsframemodule:J,cubemodule:G,debugmodule:se,environmentmodule:F,errormodule:q,footermodule:Y,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 fc,pc=r(13);r.n(pc)().initialize(),r.g.allModules=o,"undefined"!=typeof navigator&&null!==navigator&&null!=navigator.serviceWorker&&navigator.serviceWorker.register("serviceworker.js"),fc=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),fc()})()}})()