UNPKG

@dbp-topics/dualdelivery

Version:

[GitLab Repository](https://gitlab.tugraz.at/dbp/dual-delivery/dualdelivery) | [npmjs package](https://www.npmjs.com/package/@dbp-topics/dualdelivery) | [Unpkg CDN](https://unpkg.com/browse/@dbp-topics/dualdelivery/) | [Dual Delivery Bundle](https://gitla

49 lines (45 loc) 2.39 kB
let t,e,i=t=>t;function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},a.apply(this,arguments)} /*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: BSD-3-Clause * @dbp-toolkit/app-shell: LGPL-2.1-or-later * @dbp-toolkit/language-select: LGPL-2.1-or-later * @dbp-toolkit/common: LGPL-2.1-or-later * @dbp-toolkit/auth: LGPL-2.1-or-later * event-target-shim: MIT * lit-html: BSD-3-Clause * @dbp-toolkit/notification: LGPL-2.1-or-later * @dbp-toolkit/theme-switcher: LGPL-2.1-or-later * path-to-regexp: MIT * universal-router: MIT * generateUrls: MIT * @dbp-toolkit/matomo: LGPL-2.1-or-later * @babel/runtime: MIT * i18next: MIT * @lit/reactive-element: BSD-3-Clause * lit-element: BSD-3-Clause * @open-wc/dedupe-mixin: MIT * @open-wc/scoped-elements: MIT */import{c as n,S as s,D as r,r as d,g as l,a as p,i as c,$ as o,h}from"./shared/dbp-lit-element.b2d8e6de.es.js";var u={"dd-activity":{"description-text":"description text",headline:"Dual Delivery Aktivität","sub-headline":"Sub headline text folgt ..."}},g={"dd-activity":{"description-text":"description text",headline:"Dual Delivery Activity","sub-headline":"Sub headline text follows ..."}};class y extends(s(r)){constructor(){super(),this._i18n=n({en:g,de:u},"de","en"),this.lang=this._i18n.language}static get scopedElements(){return{}}static get properties(){return a({},super.properties,{lang:{type:String}})}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} h2:first-child { margin-top: 0; } h2 { margin-bottom: 10px; } .subheadline { font-style: italic; padding-left: 2em; margin-top: -5px; } `),l(),p(!1),c())}render(){const t=this._i18n;return o(e||(e=i` <h2>${0}</h2> <p class="subheadline">${0}</p> <p>${0}</p> `),t.t("dd-activity.headline"),t.t("dd-activity.sub-headline"),t.t("dd-activity.description-text"))}}h("dbp-dd-activity",y); //# sourceMappingURL=dbp-dd-activity.js.map