@fluid-topics/ft-notice 0.2.17 → 0.2.20

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.
@@ -63,7 +63,7 @@ var et,it;null==tt||tt(H,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w
63
63
  <style>${t}</style>
64
64
  `))}
65
65
  ${this.getTemplate()}
66
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(n=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=l.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];const c=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));a.push(...c)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}ct([i()],ht.prototype,"exportpartsPrefix",void 0),ct([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],ht.prototype,"exportpartsPrefixes",void 0),h`
66
+ `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}ct([i()],ht.prototype,"exportpartsPrefix",void 0),ct([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],ht.prototype,"exportpartsPrefixes",void 0),h`
67
67
  .ft-no-text-select {
68
68
  -webkit-touch-callout: none;
69
69
  -webkit-user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-notice",
3
- "version": "0.2.17",
3
+ "version": "0.2.20",
4
4
  "description": "Notice to display different messages",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "^0.2.17",
23
- "@fluid-topics/ft-typography": "^0.2.17",
24
- "@fluid-topics/ft-wc-utils": "^0.2.17",
22
+ "@fluid-topics/ft-icon": "^0.2.20",
23
+ "@fluid-topics/ft-typography": "^0.2.20",
24
+ "@fluid-topics/ft-wc-utils": "^0.2.20",
25
25
  "lit": "2.1.3"
26
26
  },
27
- "gitHead": "7f1e7d4377a6bac24d6d797b342f25166ee44031"
27
+ "gitHead": "12b770753cd907c340153c5f9fed0909ecb1eefc"
28
28
  }
@@ -1,284 +0,0 @@
1
- !function(){
2
- /**
3
- * @license
4
- * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- *
15
- * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
- */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(bt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
18
- /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */const t=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
23
- /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */}
28
- /**
29
- * @license
30
- * Copyright 2021 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */
33
- var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElements;const o=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
34
- /**
35
- * @license
36
- * Copyright 2019 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- */
39
- const n=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new Map;class a{constructor(t,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=s.get(this.cssText);return n&&void 0===t&&(s.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const l=t=>new a("string"==typeof t?t:t+"",r),c=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new a(i,r)},h=(t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},p=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return l(e)})(t):t
40
- /**
41
- * @license
42
- * Copyright 2017 Google LLC
43
- * SPDX-License-Identifier: BSD-3-Clause
44
- */;var f;const d=window.trustedTypes,u=d?d.emptyScript:"",y=window.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},g=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:g};class v extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(p(t))}else void 0!==t&&e.push(p(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return h(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=m){var o,n;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:x.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:x.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
45
- /**
46
- * @license
47
- * Copyright 2017 Google LLC
48
- * SPDX-License-Identifier: BSD-3-Clause
49
- */
50
- var b;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:v}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.3.2");const w=globalThis.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,S="?"+O,N=`<${S}>`,C=document,E=(t="")=>C.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,k=/>/g,z=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,j=/'/g,A=/"/g,L=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),B=new WeakMap,D=C.createTreeWalker(C,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=U;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===U?"!--"===l[1]?s=F:void 0!==l[1]?s=k:void 0!==l[2]?(L.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=z):void 0!==l[3]&&(s=z):s===z?">"===l[0]?(s=null!=n?n:U,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?z:'"'===l[3]?A:j):s===A||s===j?s=z:s===F||s===k?s=U:(s=z,n=void 0);const p=s===z&&t[e+1].startsWith("/>")?" ":"";r+=s===U?i+N:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-2===c?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=W(t,e);if(this.el=K.createElement(l,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(O)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?X:"@"===e[1]?G:Z})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(L.test(o.tagName)){const t=o.textContent.split(O),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],E()),D.nextNode(),a.push({type:2,index:++n});o.append(t[e],E())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(O,t+1));)a.push({type:7,index:n}),t+=O.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}}function H(t,e,i=t,o){var n,r,s,a;if(e===_)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,o)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:C).importNode(i,!0);D.currentNode=n;let r=D.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new V(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Q(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=D.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var n;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),R(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==P&&R(this._$AH)?this._$AA.nextSibling.data=t:this.k(C.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new I(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new K(t)),e}S(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new V(this.M(E()),this.M(E()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,o,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,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,o){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!R(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=H(this,o[i+s],e,s),a===_&&(a=this._$AH[s]),r||(r=!R(a)||a!==this._$AH[s]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends Z{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===P?void 0:t}}const q=w?w.emptyScript:"";class X extends Z{constructor(){super(...arguments),this.type=4}C(t){t&&t!==P?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class G extends Z{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=H(this,t,e,0))&&void 0!==i?i:P)===_)return;const o=this._$AH,n=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Q{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){H(this,t)}}const Y=window.litHtmlPolyfillSupport;
51
- /**
52
- * @license
53
- * Copyright 2017 Google LLC
54
- * SPDX-License-Identifier: BSD-3-Clause
55
- */
56
- var tt,et;null==Y||Y(K,V),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.4");class it extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new V(e.insertBefore(E(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}it.finalized=!0,it._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:it});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:it}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.2.0");class nt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return c`var(${l(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):l(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const rt={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:nt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:nt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:nt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:nt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:nt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:nt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:nt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:nt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:nt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
57
- /**
58
- * @license
59
- * Copyright 2021 Google LLC
60
- * SPDX-License-Identifier: BSD-3-Clause
61
- */var st,at,lt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ct extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return h(n,this.constructor.elementStyles),n}}}(it)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
62
- ${t.map((t=>T`
63
- <style>${t}</style>
64
- `))}
65
- ${this.getTemplate()}
66
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(n=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=l.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];const c=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));a.push(...c)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}lt([e()],ct.prototype,"exportpartsPrefix",void 0),lt([function(t,i){const o=()=>JSON.parse(JSON.stringify(t));return e({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ct.prototype,"exportpartsPrefixes",void 0),c`
67
- .ft-no-text-select {
68
- -webkit-touch-callout: none;
69
- -webkit-user-select: none;
70
- -khtml-user-select: none;
71
- -moz-user-select: none;
72
- -ms-user-select: none;
73
- user-select: none;
74
- }
75
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(at=null===(st=window.safari)||void 0===st?void 0:st.pushNotification)||void 0===at||at.toString());
76
- /**
77
- * @license
78
- * Copyright 2017 Google LLC
79
- * SPDX-License-Identifier: BSD-3-Clause
80
- */
81
- const ht=2;
82
- /**
83
- * @license
84
- * Copyright 2017 Google LLC
85
- * SPDX-License-Identifier: BSD-3-Clause
86
- */
87
- class pt extends 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)}}{constructor(t){if(super(t),this.it=P,t.type!==ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===P||null==t)return this.ft=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(dt||(dt={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ut||(ut={})),new Map([...["abw"].map((t=>[t,ut.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ut.AUDIO])),...["avi"].map((t=>[t,ut.AVI])),...["chm","xhs"].map((t=>[t,ut.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ut.CODE])),...["csv"].map((t=>[t,ut.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ut.DITA])),...["epub"].map((t=>[t,ut.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ut.EXCEL])),...["flac"].map((t=>[t,ut.FLAC])),...["gif"].map((t=>[t,ut.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ut.GZIP])),...["html","htm","xhtml"].map((t=>[t,ut.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ut.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ut.JPEG])),...["json"].map((t=>[t,ut.JSON])),...["m4a","m4p"].map((t=>[t,ut.M4A])),...["mov","qt"].map((t=>[t,ut.MOV])),...["mp3"].map((t=>[t,ut.MP3])),...["mp4","m4v"].map((t=>[t,ut.MP4])),...["ogg","oga"].map((t=>[t,ut.OGG])),...["pdf","ps"].map((t=>[t,ut.PDF])),...["png"].map((t=>[t,ut.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ut.POWERPOINT])),...["rar"].map((t=>[t,ut.RAR])),...["stp"].map((t=>[t,ut.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ut.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ut.VIDEO])),...["wav"].map((t=>[t,ut.WAV])),...["wma"].map((t=>[t,ut.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ut.WORD])),...["xml","xsl","rdf"].map((t=>[t,ut.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ut.YAML])),...["zip"].map((t=>[t,ut.ZIP]))]);var yt,xt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(yt||(yt={}));const gt={size:nt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:nt.extend("--ft-icon-fluid-topics-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:nt.extend("--ft-icon-file-format-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:nt.extend("--ft-icon-material-font-family",nt.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class mt extends ct{constructor(){super(...arguments),this.variant=yt.fluid_topics}render(){return T`
88
- <i class="ft-icon ${"ft-icon--"+this.variant}">
89
- ${ft(this.getIcon())}
90
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
91
- </i>
92
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===yt.file_format?null!==(t=ut[i.toUpperCase()])&&void 0!==t?t:i:this.variant===yt.fluid_topics?null!==(e=dt[i.toUpperCase()])&&void 0!==e?e:i:P}}mt.elementDefinitions={},mt.styles=c`
93
- :host {
94
- display: inline-block;
95
- }
96
- :host, i.ft-icon {
97
- width: ${gt.size};
98
- height: ${gt.size};
99
- text-align: center;
100
- }
101
-
102
- i.ft-icon {
103
- font-size: ${gt.size};
104
- line-height: 1;
105
- font-weight: normal;
106
- text-transform: none;
107
- font-style: normal;
108
- font-variant: normal;
109
- speak: none;
110
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
111
- text-rendering: auto;
112
- -webkit-font-smoothing: antialiased;
113
- -moz-osx-font-smoothing: grayscale;
114
- }
115
-
116
- .ft-icon--fluid-topics {
117
- font-family: ${gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
118
- }
119
-
120
- .ft-icon--file-format {
121
- font-family: ${gt.fileFormatFontFamily}, ft-mime, sans-serif;
122
- }
123
-
124
- .ft-icon--material {
125
- font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
126
- }
127
- `,xt([e()],mt.prototype,"variant",void 0),xt([
128
- /**
129
- * @license
130
- * Copyright 2017 Google LLC
131
- * SPDX-License-Identifier: BSD-3-Clause
132
- */
133
- function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],mt.prototype,"slottedContent",void 0),o("ft-icon")(mt);
134
- /**
135
- * @license
136
- * Copyright 2020 Google LLC
137
- * SPDX-License-Identifier: BSD-3-Clause
138
- */
139
- const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===vt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},wt=t=>({_$litStatic$:t,r:vt}),$t=new Map,Ot=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=bt(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=$t.get(t))&&(s.raw=s,$t.set(t,e=s)),i=a}return t(e,...i)})(T);var St,Nt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(St||(St={}));const Ct=nt.extend("--ft-typography-font-family",rt.titleFont),Et=nt.extend("--ft-typography-font-family",rt.contentFont),Rt={fontFamily:Et,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=nt.extend("--ft-typography-title-font-family",Ct),Ut=nt.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),Ft=nt.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),kt=nt.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),zt=nt.extend("--ft-typography-title-line-height",Rt.lineHeight,"1.2"),jt=nt.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),At=nt.extend("--ft-typography-title-dense-font-family",Ct),Lt=nt.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),Tt=nt.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),_t=nt.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),Pt=nt.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"1.7"),Bt=nt.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),Dt=nt.extend("--ft-typography-subtitle1-font-family",Et),Wt=nt.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Kt=nt.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Ht=nt.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),It=nt.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"1.5"),Vt=nt.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),Zt=nt.extend("--ft-typography-subtitle2-font-family",Et),Jt=nt.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),qt=nt.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Xt=nt.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=nt.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"1.7"),Qt=nt.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),Yt=nt.extend("--ft-typography-body1-font-family",Et),te=nt.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),ee=nt.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),ie=nt.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),oe=nt.extend("--ft-typography-body1-line-height",Rt.lineHeight,"1.5"),ne=nt.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit"),re=nt.extend("--ft-typography-body2-font-family",Et),se=nt.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),ae=nt.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),le=nt.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),ce=nt.extend("--ft-typography-body2-line-height",Rt.lineHeight,"1.4"),he=nt.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),pe=nt.extend("--ft-typography-caption-font-family",Et),fe=nt.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),de=nt.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),ue=nt.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),ye=nt.extend("--ft-typography-caption-line-height",Rt.lineHeight,"1.33"),xe=nt.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit"),ge=nt.extend("--ft-typography-breadcrumb-font-family",Et),me=nt.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),ve=nt.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),be=nt.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),we=nt.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"1.6"),$e=nt.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),Oe=nt.extend("--ft-typography-overline-font-family",Et),Se=nt.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),Ne=nt.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),Ce=nt.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),Ee=nt.extend("--ft-typography-overline-line-height",Rt.lineHeight,"1.6"),Re=nt.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),Me=nt.extend("--ft-typography-button-font-family",Et),Ue=nt.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),Fe=nt.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),ke=nt.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),ze=nt.extend("--ft-typography-button-line-height",Rt.lineHeight,"1.15"),je=nt.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase"),Ae=c`
140
- .ft-typography--title {
141
- font-family: ${Mt};
142
- font-size: ${Ut};
143
- font-weight: ${Ft};
144
- letter-spacing: ${kt};
145
- line-height: ${zt};
146
- text-transform: ${jt};
147
- }
148
- `,Le=c`
149
- .ft-typography--title-dense {
150
- font-family: ${At};
151
- font-size: ${Lt};
152
- font-weight: ${Tt};
153
- letter-spacing: ${_t};
154
- line-height: ${Pt};
155
- text-transform: ${Bt};
156
- }
157
- `,Te=c`
158
- .ft-typography--subtitle1 {
159
- font-family: ${Dt};
160
- font-size: ${Wt};
161
- font-weight: ${Kt};
162
- letter-spacing: ${Ht};
163
- line-height: ${It};
164
- text-transform: ${Vt};
165
- }
166
- `,_e=c`
167
- .ft-typography--subtitle2 {
168
- font-family: ${Zt};
169
- font-size: ${Jt};
170
- font-weight: ${qt};
171
- letter-spacing: ${Xt};
172
- line-height: ${Gt};
173
- text-transform: ${Qt};
174
- }
175
-
176
- `,Pe=c`
177
- .ft-typography--body1 {
178
- font-family: ${Yt};
179
- font-size: ${te};
180
- font-weight: ${ee};
181
- letter-spacing: ${ie};
182
- line-height: ${oe};
183
- text-transform: ${ne};
184
- }
185
- `,Be=c`
186
- .ft-typography--body2 {
187
- font-family: ${re};
188
- font-size: ${se};
189
- font-weight: ${ae};
190
- letter-spacing: ${le};
191
- line-height: ${ce};
192
- text-transform: ${he};
193
- }
194
- `,De=c`
195
- .ft-typography--caption {
196
- font-family: ${pe};
197
- font-size: ${fe};
198
- font-weight: ${de};
199
- letter-spacing: ${ue};
200
- line-height: ${ye};
201
- text-transform: ${xe};
202
- }
203
- `,We=c`
204
- .ft-typography--breadcrumb {
205
- font-family: ${ge};
206
- font-size: ${me};
207
- font-weight: ${ve};
208
- letter-spacing: ${be};
209
- line-height: ${we};
210
- text-transform: ${$e};
211
- }
212
- `,Ke=c`
213
- .ft-typography--overline {
214
- font-family: ${Oe};
215
- font-size: ${Se};
216
- font-weight: ${Ne};
217
- letter-spacing: ${Ce};
218
- line-height: ${Ee};
219
- text-transform: ${Re};
220
- }
221
- `,He=c`
222
- .ft-typography--button {
223
- font-family: ${Me};
224
- font-size: ${Ue};
225
- font-weight: ${Fe};
226
- letter-spacing: ${ke};
227
- line-height: ${ze};
228
- text-transform: ${je};
229
- }
230
- `;class Ie extends ct{constructor(){super(...arguments),this.variant=St.body1}render(){return this.element?Ot`
231
- <${wt(this.element)}
232
- class="ft-typography ft-typography--${this.variant}">
233
- <slot></slot>
234
- </${wt(this.element)}>
235
- `:Ot`
236
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
237
- `}}Ie.styles=[Ae,Le,Te,_e,Pe,Be,De,We,Ke,He,c`
238
- .ft-typography {
239
- vertical-align: inherit;
240
- }
241
- `],Nt([e()],Ie.prototype,"element",void 0),Nt([e()],Ie.prototype,"variant",void 0),o("ft-typography")(Ie);var Ve=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ze=nt.extend("--ft-notice-color",rt.colorPrimary),Je=nt.extend("--ft-notice-icon-color",rt.colorOnPrimary),qe=nt.external(rt.borderRadiusS,"Design System");class Xe extends ct{constructor(){super(...arguments),this.icon="info"}static get styles(){return c`
242
- .ft-notice {
243
- display: inline-flex;
244
- align-items: stretch;
245
- box-sizing: border-box;
246
- }
247
-
248
- ft-icon {
249
- ${t=gt.size,e="20px",l(`${t.name}: ${e}`)};
250
- padding: 0 8px;
251
- display: flex;
252
- align-self: center;
253
- }
254
-
255
- .ft-icon {
256
- color: ${Je};
257
- background-color: ${Ze};
258
- display: flex;
259
- align-items: center;
260
- border-top-left-radius: ${qe};
261
- border-bottom-left-radius: ${qe};
262
- }
263
-
264
- .ft-notice-label {
265
- padding: 8px;
266
- border-top-right-radius: ${qe};
267
- border-bottom-right-radius: ${qe};
268
- border: 1px solid ${Ze};
269
- }
270
- `;var t,e}render(){return T`
271
- <div class="ft-notice">
272
- <div class="ft-icon">
273
- <ft-icon>${this.icon}</ft-icon>
274
- </div>
275
- <ft-typography class="ft-notice-label" variant="body2">
276
- <slot></slot>
277
- </ft-typography>
278
- </div>
279
- `}}Xe.elementDefinitions={"ft-icon":mt,"ft-typography":Ie},Ve([e({type:String})],Xe.prototype,"icon",void 0),o("ft-notice")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),T`
280
- ${i.map((t=>T`
281
- <style>${t}</style>
282
- `))}
283
- ${super.render()}
284
- `}},i.styles=void 0,i.elementDefinitions=o,i}(Xe))}();
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inline-styles.d.ts.map
@@ -1,4 +0,0 @@
1
- import { customElement, InlineStyles } from "@fluid-topics/ft-wc-utils";
2
- import { FtNotice } from "./ft-notice";
3
- customElement("ft-notice")(InlineStyles(FtNotice));
4
- //# sourceMappingURL=inline-styles.js.map