@dbp-topics/check-in
Version: 
[GitLab Repository](https://gitlab.tugraz.at/dbp/check-in/checkin) | [npmjs package](https://www.npmjs.com/package/@dbp-topics/check-in) | [Unpkg CDN](https://unpkg.com/browse/@dbp-topics/check-in/) | [Checkin Bundle](https://gitlab.tugraz.at/dbp/check-in
75 lines (71 loc) • 4.28 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.5 (BSD-3-Clause)
 * @dbp-toolkit/app-shell: 0.3.3 (LGPL-2.1-or-later)
 * @dbp-toolkit/language-select: 0.3.1 (LGPL-2.1-or-later)
 * @dbp-toolkit/common: 0.3.4 (LGPL-2.1-or-later)
 * @dbp-toolkit/auth: 0.3.1 (LGPL-2.1-or-later)
 * event-target-shim: 6.0.2 (MIT)
 * @dbp-toolkit/notification: 0.3.1 (LGPL-2.1-or-later)
 * @dbp-toolkit/theme-switcher: 0.0.5 (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.6 (LGPL-2.1-or-later)
 * @tugraz/web-components: 0.3.6 (LGPL-2.1-or-later)
 * @babel/runtime: 7.18.9 (MIT)
 * i18next: 21.9.1 (MIT)
 * @lit/reactive-element: 1.4.1 (BSD-3-Clause)
 * lit-html: 2.3.1 (BSD-3-Clause)
 * lit-element: 3.2.2 (BSD-3-Clause)
 * @open-wc/dedupe-mixin: 1.3.1 (MIT)
 * @open-wc/scoped-elements: 2.1.3 (MIT)
 * @dbp-toolkit/qr-code-scanner: 0.3.1 (LGPL-2.1-or-later)
 * async-mutex: 0.3.2 (MIT)
 * select2: 4.0.13 (MIT)
 */import{S as s,I as a,M as r,B as o,i as d,g as c,b as l,f as p,d as h,u as g,y as m,o as u,k as f}from"./shared/notification.d05eb818.es.js";import{T as b}from"./shared/textswitch.eaecfc8c.es.js";import{D as v,c as y,A as $,g as k}from"./shared/activity.dbc87bd2.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;
            }
        `),c(),l(!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