UNPKG

@digital-blueprint/checkin-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/checkin-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/checkin-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/checkin-app/) | [Checkin Bundle](https://github

59 lines (54 loc) 3.39 kB
let i,t,s=i=>i;function e(){return e=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&(i[e]=s[e])}return i},e.apply(this,arguments)} /*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: 0.0.9 (BSD-3-Clause) * @dbp-toolkit/app-shell: 0.3.4 (LGPL-2.1-or-later) * @dbp-toolkit/language-select: 0.3.2 (LGPL-2.1-or-later) * @dbp-toolkit/common: 0.3.5 (LGPL-2.1-or-later) * @dbp-toolkit/auth: 0.3.2 (LGPL-2.1-or-later) * event-target-shim: 6.0.2 (MIT) * @dbp-toolkit/notification: 0.3.2 (LGPL-2.1-or-later) * @dbp-toolkit/theme-switcher: 0.0.6 (LGPL-2.1-or-later) * path-to-regexp: 6.2.0 (MIT) * universal-router: 9.1.0 (MIT) * generateUrls: 9.1.0 (MIT) * @dbp-toolkit/matomo: 0.2.7 (LGPL-2.1-or-later) * @dbp-toolkit/qr-code-scanner: 0.3.3 (LGPL-2.1-or-later) * async-mutex: 0.4.0 (MIT) * select2: 4.0.13 (MIT) * @lit/reactive-element: 1.6.1 (BSD-3-Clause) * lit-element: 3.3.1 (BSD-3-Clause) */import{S as n,I as r,M as a,i as o,g as d,b as p,f as c,d as l,p as g,x as h,o as m,k as u}from"./shared/notification.fWOMSAA9.es.js";import{D as f,c as b,A as k,g as v}from"./shared/activity.pxR99eKk.es.js";var $={element:"dbp-report-risk",module_src:"dbp-report-risk.js",routing_name:"report-risk",name:{de:"Risiko melden",en:"Report risk"},short_name:{de:"Risiko melden",en:"Report risk"},description:{de:"Zeigt Information, wie man ein Infektionsrisiko melden kann.",en:"Shows information on how to report a risk of infection."},subscribe:"lang,entry-point-url,auth,html-overrides"};class y extends(n(f)){constructor(){super(),this._i18n=b(),this.lang=this._i18n.language,this.activity=new k($)}static get scopedElements(){return{"dbp-icon":r,"dbp-mini-spinner":a}}static get properties(){return e({},super.properties,{lang:{type:String}})}connectedCallback(){super.connectedCallback()}update(i){i.forEach(((i,t)=>{if("lang"===t)this._i18n.changeLanguage(this.lang)})),super.update(i)}static get styles(){return o(i||(i=s` ${0} ${0} ${0} ${0} ${0} ${0} .loading { justify-content: center; } `),d(),p(!1),c(),l(),g(),v())}render(){const i=this._i18n;return h(t||(t=s` <div class="control ${0}"> <span class="loading"> <dbp-mini-spinner text=${0}></dbp-mini-spinner> </span> </div> <div class="notification is-warning ${0}"> ${0} </div> <div class="${0}"> <h2>${0}</h2> <p class="subheadline"> <slot name="description">${0}</slot> </p> <slot name="additional-information"> <p>${0}</p> </slot> </div> `),m({hidden:this.isLoggedIn()||!this.isLoading()}),i.t("check-out.loading-message"),m({hidden:this.isLoggedIn()||this.isLoading()}),i.t("error-login-message"),m({hidden:!this.isLoggedIn()||this.isLoading()}),this.activity.getName(this.lang),this.activity.getDescription(this.lang),i.t("report-risk.text"))}}u("dbp-report-risk",y); //# sourceMappingURL=dbp-report-risk.js.map