@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
69 lines (65 loc) • 4.06 kB
JavaScript
let t,e,i=t=>t;function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.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 s,I as a,M as r,B as o,i as d,g as l,b as c,f as p,d as h,p as g,x as m,o as u,k as f}from"./shared/notification.fWOMSAA9.es.js";import{T as b}from"./shared/textswitch.UQb80iHx.es.js";import{D as v,c as y,A as $,g as k}from"./shared/activity.pxR99eKk.es.js";
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var w;null===(w=window.HTMLSlotElement)||void 0===w||w.prototype.assignedElements,
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
console.warn("The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.");var I={element:"dbp-check-in-info",module_src:"dbp-check-in-info.js",routing_name:"infos",name:{de:"Information",en:"Information"},short_name:{de:"Information",en:"Information"},description:{de:"Zeigt alle Informationen zur Checkin Seite.",en:"Shows all information about the checkin page."},subscribe:"lang:lang,entry-point-url:entry-point-url,auth:auth"};class j extends(s(v)){constructor(){super(),this._i18n=y(),this.lang=this._i18n.language,this.activity=new $(I),this.entryPointUrl=""}static get scopedElements(){return{"dbp-icon":a,"dbp-mini-spinner":r,"dbp-button":o,"dbp-textswitch":b}}static get properties(){return n({},super.properties,{lang:{type:String},entryPointUrl:{type:String,attribute:"entry-point-url"}})}connectedCallback(){super.connectedCallback()}update(t){t.forEach(((t,e)=>{if("lang"===e)this._i18n.changeLanguage(this.lang)})),super.update(t)}static get styles(){return d(t||(t=i`
${0}
${0}
${0}
${0}
${0}
${0}
.loading {
justify-content: center;
}
`),l(),c(!1),p(),h(),g(),k())}render(){const t=this._i18n;return m(e||(e=i`
<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>
<div class="border">
<div class="container">TODO</div>
</div>
</div>
`),u({hidden:this.isLoggedIn()||!this.isLoading()}),t.t("check-out.loading-message"),u({hidden:this.isLoggedIn()||this.isLoading()}),t.t("error-login-message"),u({hidden:!this.isLoggedIn()||this.isLoading()}),this.activity.getName(this.lang),this.activity.getDescription(this.lang))}}f("dbp-check-in-info",j);
//# sourceMappingURL=dbp-check-in-info.js.map