@cas-smartdesign/app-banner 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ Copyright 2019 CAS Software AG
2
+
3
+ This software is confidential and proprietary information of CAS Software AG. You shall not
4
+ disclose such Confidential Information and shall use it only in accordance with the terms of
5
+ the license agreement you entered into with CAS Software AG or SmartWe World AG.
6
+
7
+ To obtain a license (e.g. by joining the partner programs of CAS Software AG or SmartWe World AG)
8
+ please contact partnerinfo@cas.de or partnerinfo@smartwe.world.
@@ -0,0 +1,298 @@
1
+ var window;(window||={})["@cas-smartdesign/app-banner"]=(()=>{var q=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Bt=Object.prototype.hasOwnProperty;var jt=(r,t)=>{for(var e in t)q(r,e,{get:t[e],enumerable:!0})},zt=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Dt(t))!Bt.call(r,s)&&s!==e&&q(r,s,{get:()=>t[s],enumerable:!(i=It(t,s))||i.enumerable});return r};var qt=r=>zt(q({},"__esModule",{value:!0}),r);var ee={};jt(ee,{AppBanner:()=>v});var N=window,L=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),dt=new WeakMap,P=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(L&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=dt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&dt.set(e,t))}return t}toString(){return this.cssText}},ht=r=>new P(typeof r=="string"?r:r+"",void 0,V),K=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new P(e,r,V)},W=(r,t)=>{L?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),s=N.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},I=L?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return ht(e)})(r):r;var F,D=window,ct=D.trustedTypes,Vt=ct?ct.emptyScript:"",pt=D.reactiveElementPolyfillSupport,Y={toAttribute(r,t){switch(t){case Boolean:r=r?Vt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ut=(r,t)=>t!==r&&(t==t||r==r),J={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:ut},Z="finalized",f=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=J){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){let o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||J}static finalize(){if(this.hasOwnProperty(Z))return!1;this[Z]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)e.unshift(I(s))}else t!==void 0&&e.push(I(t));return e}static _$Ep(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return W(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=J){var s;let o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){let n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Y).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;let s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){let n=s.getPropertyOptions(o),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Y;this._$El=o,this[o]=d.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ut)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};f[Z]=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},pt?.({ReactiveElement:f}),((F=D.reactiveElementVersions)!==null&&F!==void 0?F:D.reactiveElementVersions=[]).push("1.6.3");var G,B=window,S=B.trustedTypes,mt=S?S.createPolicy("lit-html",{createHTML:r=>r}):void 0,X="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+y,Kt=`<${_t}>`,A=document,T=()=>A.createComment(""),O=r=>r===null||typeof r!="object"&&typeof r!="function",At=Array.isArray,Wt=r=>At(r)||typeof r?.[Symbol.iterator]=="function",Q=`[
2
+ \f\r]`,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,ft=/>/g,b=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,yt=/"/g,Et=/^(?:script|style|textarea|title)$/i,St=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),xt=St(1),ae=St(2),g=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),$t=new WeakMap,_=A.createTreeWalker(A,129,null,!1);function wt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(t):t}var Ft=(r,t)=>{let e=r.length-1,i=[],s,o=t===2?"<svg>":"",n=k;for(let d=0;d<e;d++){let a=r[d],l,h,c=-1,u=0;for(;u<a.length&&(n.lastIndex=u,h=n.exec(a),h!==null);)u=n.lastIndex,n===k?h[1]==="!--"?n=vt:h[1]!==void 0?n=ft:h[2]!==void 0?(Et.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=b):h[3]!==void 0&&(n=b):n===b?h[0]===">"?(n=s??k,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,l=h[1],n=h[3]===void 0?b:h[3]==='"'?yt:gt):n===yt||n===gt?n=b:n===vt||n===ft?n=k:(n=b,s=void 0);let m=n===b&&r[d+1].startsWith("/>")?" ":"";o+=n===k?a+Kt:c>=0?(i.push(l),a.slice(0,c)+X+a.slice(c)+y+m):a+y+(c===-2?(i.push(void 0),d):m)}return[wt(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},R=class r{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0,d=t.length-1,a=this.parts,[l,h]=Ft(t,e);if(this.el=r.createElement(l,i),_.currentNode=this.el.content,e===2){let c=this.el.content,u=c.firstChild;u.remove(),c.append(...u.childNodes)}for(;(s=_.nextNode())!==null&&a.length<d;){if(s.nodeType===1){if(s.hasAttributes()){let c=[];for(let u of s.getAttributeNames())if(u.endsWith(X)||u.startsWith(y)){let m=h[n++];if(c.push(u),m!==void 0){let Lt=s.getAttribute(m.toLowerCase()+X).split(y),M=/([.?@])?(.*)/.exec(m);a.push({type:1,index:o,name:M[2],strings:Lt,ctor:M[1]==="."?et:M[1]==="?"?it:M[1]==="@"?st:w})}else a.push({type:6,index:o})}for(let u of c)s.removeAttribute(u)}if(Et.test(s.tagName)){let c=s.textContent.split(y),u=c.length-1;if(u>0){s.textContent=S?S.emptyScript:"";for(let m=0;m<u;m++)s.append(c[m],T()),_.nextNode(),a.push({type:2,index:++o});s.append(c[u],T())}}}else if(s.nodeType===8)if(s.data===_t)a.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf(y,c+1))!==-1;)a.push({type:7,index:o}),c+=y.length-1}o++}}static createElement(t,e){let i=A.createElement("template");return i.innerHTML=t,i}};function x(r,t,e=r,i){var s,o,n,d;if(t===g)return t;let a=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl,l=O(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((o=a?._$AO)===null||o===void 0||o.call(a,!1),l===void 0?a=void 0:(a=new l(r),a._$AT(r,e,i)),i!==void 0?((n=(d=e)._$Co)!==null&&n!==void 0?n:d._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=x(r,a._$AS(r,t.values),a,i)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:i},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:A).importNode(i,!0);_.currentNode=o;let n=_.nextNode(),d=0,a=0,l=s[0];for(;l!==void 0;){if(d===l.index){let h;l.type===2?h=new U(n,n.nextSibling,this,t):l.type===1?h=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(h=new rt(n,this,t)),this._$AV.push(h),l=s[++a]}d!==l?.index&&(n=_.nextNode(),d++)}return _.currentNode=A,o}v(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},U=class r{constructor(t,e,i,s){var o;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=x(this,t,e),O(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==g&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Wt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;let{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=R.createElement(wt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{let n=new tt(o,this),d=n.u(this.options);n.v(i),this.$(d),this._$AH=n}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new R(t)),e}T(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,s=0;for(let o of t)s===e.length?e.push(i=new r(this.k(T()),this.k(T()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},w=class{constructor(t,e,i,s,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){let o=this.strings,n=!1;if(o===void 0)t=x(this,t,e,0),n=!O(t)||t!==this._$AH&&t!==g,n&&(this._$AH=t);else{let d=t,a,l;for(t=o[0],a=0;a<o.length-1;a++)l=x(this,d[i+a],e,a),l===g&&(l=this._$AH[a]),n||(n=!O(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+o[a+1]),this._$AH[a]=l}n&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends w{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},Jt=S?S.emptyScript:"",it=class extends w{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,Jt):this.element.removeAttribute(this.name)}},st=class extends w{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=x(this,t,e,0))!==null&&i!==void 0?i:p)===g)return;let s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){x(this,t)}};var bt=B.litHtmlPolyfillSupport;bt?.(R,U),((G=B.litHtmlVersions)!==null&&G!==void 0?G:B.litHtmlVersions=[]).push("2.8.0");var Ct=(r,t,e)=>{var i,s;let o=(i=e?.renderBefore)!==null&&i!==void 0?i:t,n=o._$litPart$;if(n===void 0){let d=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new U(t.insertBefore(T(),d),d,void 0,e??{})}return n._$AI(r),n};var ot,nt;var $=class extends f{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return g}};$.finalized=!0,$._$litElement$=!0,(ot=globalThis.litElementHydrateSupport)===null||ot===void 0||ot.call(globalThis,{LitElement:$});var Pt=globalThis.litElementPolyfillSupport;Pt?.({LitElement:$});((nt=globalThis.litElementVersions)!==null&&nt!==void 0?nt:globalThis.litElementVersions=[]).push("3.3.3");var kt=r=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(r,t):((e,i)=>{let{kind:s,elements:o}=i;return{kind:s,elements:o,finisher(n){customElements.define(e,n)}}})(r,t);var Yt=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},Zt=(r,t,e)=>{t.constructor.createProperty(e,r)};function E(r){return(t,e)=>e!==void 0?Zt(r,t,e):Yt(r,t)}var at,He=((at=window.HTMLSlotElement)===null||at===void 0?void 0:at.prototype.assignedElements)!=null?(r,t)=>r.assignedElements(t):(r,t)=>r.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);var Tt=class j extends HTMLElement{memoizedTemplate(){let t=this.is();if(j.TEMPLATE_CACHE[t])return j.TEMPLATE_CACHE[t];let e=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,this.is()),j.TEMPLATE_CACHE[t]=e,e}connectedCallback(){let t=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(t.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(t){this.shadowRoot?t():this.addEventListener("ready",()=>t())}};Tt.TEMPLATE_CACHE={};var Ot=Tt;var Gt=`<style>
4
+ :host {
5
+ contain: content;
6
+ background: rgba(20, 103, 186, 0);
7
+ color: #1467ba;
8
+ border: none;
9
+ outline: none;
10
+ padding: 0 8px;
11
+ height: 32px;
12
+ cursor: pointer;
13
+ user-select: none;
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ box-sizing: border-box;
18
+ vertical-align: middle;
19
+ }
20
+
21
+ :host(:focus),
22
+ :host(:not([disabled], [aria-disabled="true"]):hover) {
23
+ background: rgba(20, 103, 186, 0.1);
24
+ }
25
+
26
+ @media (forced-colors: active) {
27
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
28
+ outline: 1px solid;
29
+ }
30
+ :host {
31
+ margin: 1px;
32
+ }
33
+ }
34
+
35
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
36
+ box-shadow: 0 0 0 1px #1467ba inset;
37
+ }
38
+
39
+ :host(:not([disabled], [aria-disabled="true"]):active) {
40
+ background: rgba(20, 103, 186, 0.2);
41
+ }
42
+
43
+ :host([primary]) {
44
+ background: #1467ba;
45
+ color: #fff;
46
+ }
47
+
48
+ :host([primary]:focus),
49
+ :host(:not([disabled], [aria-disabled="true"])[primary]:hover) {
50
+ background: #125da8;
51
+ }
52
+
53
+ :host([primary]:focus-visible) {
54
+ box-shadow: 0 0 0 1px white inset;
55
+ }
56
+
57
+ :host(:not([disabled], [aria-disabled="true"])[primary]:focus-visible) {
58
+ outline: 1px solid #1467ba;
59
+ }
60
+
61
+ :host(:not([disabled], [aria-disabled="true"])[primary]:active) {
62
+ background: #0e4883;
63
+ }
64
+
65
+ :host([disabled]),
66
+ :host([aria-disabled="true"]) {
67
+ filter: grayscale(100%);
68
+ opacity: 0.5;
69
+ cursor: default;
70
+ }
71
+
72
+ :host([disabled]:focus-visible),
73
+ :host([aria-disabled="true"]:focus-visible) {
74
+ outline: 1px dashed #111;
75
+ }
76
+
77
+ :host(:not([icon])) .icon,
78
+ :host([icon=""]) .icon {
79
+ display: none;
80
+ }
81
+
82
+ .content {
83
+ display: flex;
84
+ align-items: center;
85
+ min-width: 0px;
86
+ }
87
+
88
+ .content ::slotted(*) {
89
+ margin-left: var(--sd-button-content-padding, 8px);
90
+ }
91
+
92
+ .content ::slotted(*:last-child) {
93
+ margin-right: var(--sd-button-content-padding, 8px);
94
+ }
95
+
96
+ .icon {
97
+ max-height: var(--sd-button-max-icon-size, 32px);
98
+ max-width: var(--sd-button-max-icon-size, 32px);
99
+ }
100
+ </style>
101
+ <img class="icon" />
102
+ <div class="content">
103
+ <slot></slot>
104
+ </div>
105
+ `,Rt=class Ut extends Ot{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",t=>{this.isSpaceOrEnter(t)&&(this._isSpaceOrEnterKeyDown=!0,t.preventDefault())}),this.addEventListener("keyup",t=>{this.isSpaceOrEnter(t)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",t=>{var e,i;if(this.disabled||this.hasAttribute("disabled")){t.stopImmediatePropagation();return}let s=(i=(e=this.getAttribute("type"))==null?void 0:e.toLowerCase())==null?void 0:i.trim();if(s!=="submit"&&s!=="reset")return;let o=this.closest("form");o&&s==="submit"&&o.requestSubmit(),o&&s==="reset"&&o.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(t){this.icon!==t&&(t?this.setAttribute("icon",t):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(t){t?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(t){this.setAttribute("aria-disabled",t.toString())}static get observedAttributes(){return["icon"]}is(){return Ut.ID}template(){let t=document.createElement("template");return t.innerHTML=Gt,t}isSpaceOrEnter(t){switch(t.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){let t=this.getAttribute("icon");t&&(this._image.src=t)}}};Rt.ID="sd-button";var lt=Rt;customElements.get(lt.ID)||customElements.define(lt.ID,lt);var Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mt=r=>(...t)=>({_$litDirective$:r,values:t}),z=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Nt=Mt(class extends z{constructor(r){var t;if(super(r),r.type!==Ht.ATTRIBUTE||r.name!=="class"||((t=r.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var e,i;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!(!((e=this.nt)===null||e===void 0)&&e.has(o))&&this.it.add(o);return this.render(t)}let s=r.element.classList;this.it.forEach(o=>{o in t||(s.remove(o),this.it.delete(o))});for(let o in t){let n=!!t[o];n===this.it.has(o)||!((i=this.nt)===null||i===void 0)&&i.has(o)||(n?(s.add(o),this.it.add(o)):(s.remove(o),this.it.delete(o)))}return g}});var Qt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%203.75L12.25%2012.25M12.25%203.75L3.75%2012.25'%20stroke='%23767676'%20stroke-width='1.2'/%3e%3c/svg%3e",Xt=Object.defineProperty,te=Object.getOwnPropertyDescriptor,C=(r,t,e,i)=>{for(var s=i>1?void 0:i?te(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Xt(t,e,s),s},v=class extends ${constructor(){super(...arguments),this.message="",this.messageAppButton="Open",this.url="",this.icon="",this.verticalAlignment=""}render(){let r=Nt({"app-banner":!0,"app-banner-on-top":this.verticalAlignment=="top","app-banner-on-bottom":this.verticalAlignment=="bottom"});return xt`<div class="${r}">
106
+ <div id="app-banner-close-action" @click="${this.closeBanner}">
107
+ <img src="${Qt}" alt="Close cross icon" />
108
+ </div>
109
+ <a id="app-banner-open-action" href="${this.url}">
110
+ <img src="${this.icon}" alt="Application logo" />
111
+ <div class="app-banner-message-div">${this.message}</div>
112
+ <div class="app-banner-open-text">${this.messageAppButton}</div>
113
+ </a>
114
+ </div>`}closeBanner(){let r=this.shadowRoot.host;r.style.display="none"}};v.ID="sd-app-banner";v.styles=K`
115
+ img {
116
+ display: block;
117
+ margin: auto;
118
+ }
119
+
120
+ .app-banner {
121
+ font-family: "Segoe UI", "Lucida Sans", "Arial", sans-serif;
122
+ background-color: #f1f1f1;
123
+ border-radius: 5px;
124
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
125
+ margin: 20px;
126
+ display: grid;
127
+ grid-template-columns: 0fr 1fr;
128
+ align-items: center;
129
+ }
130
+ .app-banner-on-top {
131
+ position: fixed;
132
+ top: 0;
133
+ left: 0;
134
+ right: 0;
135
+ }
136
+ .app-banner-on-bottom {
137
+ position: fixed;
138
+ bottom: 0;
139
+ left: 0;
140
+ right: 0;
141
+ }
142
+
143
+ #app-banner-close-action {
144
+ display: grid;
145
+ height: 100%;
146
+ padding: 0 10px 0 10px;
147
+ cursor: pointer;
148
+ color: black;
149
+ text-decoration: none;
150
+ }
151
+ #app-banner-open-action {
152
+ display: grid;
153
+ grid-template-columns: 0fr auto auto;
154
+ align-items: center;
155
+ padding: 10px 10px 10px 0;
156
+ column-gap: 5px;
157
+ cursor: pointer;
158
+ color: black;
159
+ text-decoration: none;
160
+ }
161
+
162
+ .app-banner-message-div {
163
+ white-space: normal;
164
+ font-size: 0.87em;
165
+ font-weight: 500;
166
+ white-space: normal;
167
+ }
168
+
169
+ .app-banner-open-text {
170
+ color: #2980b9;
171
+ font-size: 1.1em;
172
+ font-weight: bold;
173
+ justify-self: right;
174
+ padding-right: 10px;
175
+ }
176
+ `;C([E()],v.prototype,"message",2);C([E()],v.prototype,"messageAppButton",2);C([E()],v.prototype,"url",2);C([E()],v.prototype,"icon",2);C([E()],v.prototype,"verticalAlignment",2);v=C([kt("sd-app-banner")],v);return qt(ee);})();
177
+ /*! Bundled license information:
178
+
179
+ @lit/reactive-element/css-tag.js:
180
+ (**
181
+ * @license
182
+ * Copyright 2019 Google LLC
183
+ * SPDX-License-Identifier: BSD-3-Clause
184
+ *)
185
+
186
+ @lit/reactive-element/reactive-element.js:
187
+ (**
188
+ * @license
189
+ * Copyright 2017 Google LLC
190
+ * SPDX-License-Identifier: BSD-3-Clause
191
+ *)
192
+
193
+ lit-html/lit-html.js:
194
+ (**
195
+ * @license
196
+ * Copyright 2017 Google LLC
197
+ * SPDX-License-Identifier: BSD-3-Clause
198
+ *)
199
+
200
+ lit-element/lit-element.js:
201
+ (**
202
+ * @license
203
+ * Copyright 2017 Google LLC
204
+ * SPDX-License-Identifier: BSD-3-Clause
205
+ *)
206
+
207
+ lit-html/is-server.js:
208
+ (**
209
+ * @license
210
+ * Copyright 2022 Google LLC
211
+ * SPDX-License-Identifier: BSD-3-Clause
212
+ *)
213
+
214
+ @lit/reactive-element/decorators/custom-element.js:
215
+ (**
216
+ * @license
217
+ * Copyright 2017 Google LLC
218
+ * SPDX-License-Identifier: BSD-3-Clause
219
+ *)
220
+
221
+ @lit/reactive-element/decorators/property.js:
222
+ (**
223
+ * @license
224
+ * Copyright 2017 Google LLC
225
+ * SPDX-License-Identifier: BSD-3-Clause
226
+ *)
227
+
228
+ @lit/reactive-element/decorators/state.js:
229
+ (**
230
+ * @license
231
+ * Copyright 2017 Google LLC
232
+ * SPDX-License-Identifier: BSD-3-Clause
233
+ *)
234
+
235
+ @lit/reactive-element/decorators/base.js:
236
+ (**
237
+ * @license
238
+ * Copyright 2017 Google LLC
239
+ * SPDX-License-Identifier: BSD-3-Clause
240
+ *)
241
+
242
+ @lit/reactive-element/decorators/event-options.js:
243
+ (**
244
+ * @license
245
+ * Copyright 2017 Google LLC
246
+ * SPDX-License-Identifier: BSD-3-Clause
247
+ *)
248
+
249
+ @lit/reactive-element/decorators/query.js:
250
+ (**
251
+ * @license
252
+ * Copyright 2017 Google LLC
253
+ * SPDX-License-Identifier: BSD-3-Clause
254
+ *)
255
+
256
+ @lit/reactive-element/decorators/query-all.js:
257
+ (**
258
+ * @license
259
+ * Copyright 2017 Google LLC
260
+ * SPDX-License-Identifier: BSD-3-Clause
261
+ *)
262
+
263
+ @lit/reactive-element/decorators/query-async.js:
264
+ (**
265
+ * @license
266
+ * Copyright 2017 Google LLC
267
+ * SPDX-License-Identifier: BSD-3-Clause
268
+ *)
269
+
270
+ @lit/reactive-element/decorators/query-assigned-elements.js:
271
+ (**
272
+ * @license
273
+ * Copyright 2021 Google LLC
274
+ * SPDX-License-Identifier: BSD-3-Clause
275
+ *)
276
+
277
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
278
+ (**
279
+ * @license
280
+ * Copyright 2017 Google LLC
281
+ * SPDX-License-Identifier: BSD-3-Clause
282
+ *)
283
+
284
+ lit-html/directive.js:
285
+ (**
286
+ * @license
287
+ * Copyright 2017 Google LLC
288
+ * SPDX-License-Identifier: BSD-3-Clause
289
+ *)
290
+
291
+ lit-html/directives/class-map.js:
292
+ (**
293
+ * @license
294
+ * Copyright 2018 Google LLC
295
+ * SPDX-License-Identifier: BSD-3-Clause
296
+ *)
297
+ */
298
+ //# sourceMappingURL=app-banner-with-externals.js.map