@fluid-topics/ft-notice 0.3.18 → 0.3.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.
- package/build/ft-notice.light.js +87 -87
- package/build/ft-notice.min.js +110 -111
- package/package.json +5 -5
package/build/ft-notice.light.js
CHANGED
|
@@ -35,120 +35,120 @@
|
|
|
35
35
|
.ft-icon--material {
|
|
36
36
|
font-family: ${a.materialFontFamily}, "Material Icons", sans-serif;
|
|
37
37
|
}
|
|
38
|
-
`;var f;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(f||(f={}));var h
|
|
38
|
+
`;var f;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(f||(f={}));var p,h=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class x extends e.FtLitElement{constructor(){super(...arguments),this.variant=f.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
39
39
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
40
40
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
41
41
|
<slot ?hidden=${t}></slot>
|
|
42
42
|
</i>
|
|
43
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case f.file_format:this.resolvedIcon=null!==(t=r[o.toUpperCase()])&&void 0!==t?t:o;break;case f.fluid_topics:this.resolvedIcon=null!==(e=n[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}x.elementDefinitions={},x.styles=l,
|
|
43
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case f.file_format:this.resolvedIcon=null!==(t=r[o.toUpperCase()])&&void 0!==t?t:o;break;case f.fluid_topics:this.resolvedIcon=null!==(e=n[o.toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}x.elementDefinitions={},x.styles=l,h([o.property()],x.prototype,"variant",void 0),h([o.property()],x.prototype,"value",void 0),h([o.state()],x.prototype,"resolvedIcon",void 0),h([o.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);const y=window,c=y.trustedTypes,g=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,m="?"+d,u=`<${m}>`,v=document,b=(t="")=>v.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,j=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,O=/"/g,k=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),E=new WeakMap,M=v.createTreeWalker(v,129,null,!1),F=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=z;for(let e=0;e<i;e++){const i=t[e];let a,l,f=-1,p=0;for(;p<i.length&&(r.lastIndex=p,l=r.exec(i),null!==l);)p=r.lastIndex,r===z?"!--"===l[1]?r=N:void 0!==l[1]?r=j:void 0!==l[2]?(k.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=A):void 0!==l[3]&&(r=A):r===A?">"===l[0]?(r=null!=s?s:z,f=-1):void 0===l[1]?f=-2:(f=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?A:'"'===l[3]?O:_):r===O||r===_?r=A:r===N||r===j?r=z:(r=A,s=void 0);const h=r===A&&t[e+1].startsWith("/>")?" ":"";n+=r===z?i+u:f>=0?(o.push(a),i.slice(0,f)+"$lit$"+i.slice(f)+d+h):i+d+(-2===f?(o.push(void 0),e):h)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,o]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,f]=F(t,e);if(this.el=T.createElement(l,i),M.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=M.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(d)){const i=f[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(d),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?q:"@"===e[1]?H:R})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(d),e=t.length-1;if(e>0){o.textContent=c?c.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],b()),M.nextNode(),a.push({type:2,index:++s});o.append(t[e],b())}}}else if(8===o.nodeType)if(o.data===m)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)a.push({type:7,index:s}),t+=d.length-1}s++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function W(t,e,i=t,o){var s,n,r,a;if(e===I)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const f=$(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==f&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===f?l=void 0:(l=new f(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=W(t,l._$AS(t,e.values),l,o)),e}class C{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:v).importNode(i,!0);M.currentNode=s;let n=M.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new K(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new B(n,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=M.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class K{constructor(t,e,i,o){var s;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=W(this,t,e),$(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==I&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>w(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==U&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=T.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new C(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new T(t)),e}k(t){w(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new K(this.O(b()),this.O(b()),this,this.options)):i=e[o],i._$AI(s),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,i,o,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=W(this,t,e,0),n=!$(t)||t!==this._$AH&&t!==I,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=W(this,o[i+r],e,r),a===I&&(a=this._$AH[r]),n||(n=!$(a)||a!==this._$AH[r]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const G=c?c.emptyScript:"";class q extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class H extends R{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=W(this,t,e,0))&&void 0!==i?i:U)===I)return;const o=this._$AH,s=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==U&&(o===U||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 B{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){W(this,t)}}const D=y.litHtmlPolyfillSupport;null==D||D(T,K),(null!==(p=y.litHtmlVersions)&&void 0!==p?p:y.litHtmlVersions=[]).push("2.4.0");
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2020 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const
|
|
49
|
+
const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:L}),Q=new Map,V=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,f=0,p=!1;for(;f<o;){for(l=e[f];f<o&&void 0!==(n=i[f],s=J(n));)l+=s+e[++f],p=!0;a.push(n),r.push(l),f++}if(f===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=Q.get(t))&&(r.raw=r,Q.set(t,e=r)),i=a}return t(e,...i)})(S);var X;!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"}(X||(X={}));const Y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),tt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),et={fontFamily:tt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},it=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",Y),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),at=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Y),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),yt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",tt),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",tt),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),jt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",tt),_t=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),St=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),It=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit"),Ut=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",tt),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),Wt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit"),Ct=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",tt),Kt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),qt=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",tt),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),Pt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Qt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",tt),Vt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Yt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),te=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),ee=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),ie=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",tt),oe=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),se=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),ne=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),re=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),ae=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase"),le=i.css`
|
|
50
50
|
.ft-typography--title {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
57
|
-
}
|
|
58
|
-
`,
|
|
51
|
+
font-family: ${it};
|
|
52
|
+
font-size: ${ot};
|
|
53
|
+
font-weight: ${st};
|
|
54
|
+
letter-spacing: ${nt};
|
|
55
|
+
line-height: ${rt};
|
|
56
|
+
text-transform: ${at};
|
|
57
|
+
}
|
|
58
|
+
`,fe=i.css`
|
|
59
59
|
.ft-typography--title-dense {
|
|
60
|
-
font-family: ${
|
|
61
|
-
font-size: ${
|
|
62
|
-
font-weight: ${
|
|
60
|
+
font-family: ${lt};
|
|
61
|
+
font-size: ${ft};
|
|
62
|
+
font-weight: ${pt};
|
|
63
63
|
letter-spacing: ${ht};
|
|
64
|
-
line-height: ${
|
|
65
|
-
text-transform: ${
|
|
64
|
+
line-height: ${xt};
|
|
65
|
+
text-transform: ${yt};
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,pe=i.css`
|
|
68
68
|
.ft-typography--subtitle1 {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
69
|
+
font-family: ${ct};
|
|
70
|
+
font-size: ${gt};
|
|
71
|
+
font-weight: ${dt};
|
|
72
|
+
letter-spacing: ${mt};
|
|
73
|
+
line-height: ${ut};
|
|
74
|
+
text-transform: ${vt};
|
|
75
75
|
}
|
|
76
76
|
`,he=i.css`
|
|
77
77
|
.ft-typography--subtitle2 {
|
|
78
|
-
font-family: ${
|
|
79
|
-
font-size: ${
|
|
80
|
-
font-weight: ${
|
|
81
|
-
letter-spacing: ${
|
|
82
|
-
line-height: ${
|
|
83
|
-
text-transform: ${
|
|
78
|
+
font-family: ${bt};
|
|
79
|
+
font-size: ${$t};
|
|
80
|
+
font-weight: ${wt};
|
|
81
|
+
letter-spacing: ${zt};
|
|
82
|
+
line-height: ${Nt};
|
|
83
|
+
text-transform: ${jt};
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
`,pe=i.css`
|
|
87
|
-
.ft-typography--body1 {
|
|
88
|
-
font-family: ${jt};
|
|
89
|
-
font-size: ${At};
|
|
90
|
-
font-weight: ${_t};
|
|
91
|
-
letter-spacing: ${St};
|
|
92
|
-
line-height: ${kt};
|
|
93
|
-
text-transform: ${Ot};
|
|
94
|
-
}
|
|
95
86
|
`,xe=i.css`
|
|
96
|
-
.ft-typography--
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
87
|
+
.ft-typography--body1 {
|
|
88
|
+
font-family: ${At};
|
|
89
|
+
font-size: ${_t};
|
|
90
|
+
font-weight: ${Ot};
|
|
91
|
+
letter-spacing: ${kt};
|
|
92
|
+
line-height: ${St};
|
|
93
|
+
text-transform: ${It};
|
|
103
94
|
}
|
|
104
95
|
`,ye=i.css`
|
|
105
|
-
.ft-typography--
|
|
106
|
-
font-family: ${
|
|
107
|
-
font-size: ${
|
|
108
|
-
font-weight: ${
|
|
109
|
-
letter-spacing: ${
|
|
110
|
-
line-height: ${
|
|
111
|
-
text-transform: ${
|
|
96
|
+
.ft-typography--body2 {
|
|
97
|
+
font-family: ${Ut};
|
|
98
|
+
font-size: ${Et};
|
|
99
|
+
font-weight: ${Mt};
|
|
100
|
+
letter-spacing: ${Ft};
|
|
101
|
+
line-height: ${Tt};
|
|
102
|
+
text-transform: ${Wt};
|
|
112
103
|
}
|
|
113
104
|
`,ce=i.css`
|
|
114
|
-
.ft-typography--
|
|
115
|
-
font-family: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
font-weight: ${
|
|
118
|
-
letter-spacing: ${
|
|
119
|
-
line-height: ${
|
|
120
|
-
text-transform: ${
|
|
105
|
+
.ft-typography--caption {
|
|
106
|
+
font-family: ${Ct};
|
|
107
|
+
font-size: ${Kt};
|
|
108
|
+
font-weight: ${Rt};
|
|
109
|
+
letter-spacing: ${Zt};
|
|
110
|
+
line-height: ${Gt};
|
|
111
|
+
text-transform: ${qt};
|
|
121
112
|
}
|
|
122
113
|
`,ge=i.css`
|
|
123
|
-
.ft-typography--
|
|
124
|
-
font-family: ${
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
text-transform: ${
|
|
114
|
+
.ft-typography--breadcrumb {
|
|
115
|
+
font-family: ${Ht};
|
|
116
|
+
font-size: ${Bt};
|
|
117
|
+
font-weight: ${Dt};
|
|
118
|
+
letter-spacing: ${Lt};
|
|
119
|
+
line-height: ${Jt};
|
|
120
|
+
text-transform: ${Pt};
|
|
130
121
|
}
|
|
131
122
|
`,de=i.css`
|
|
132
|
-
.ft-typography--
|
|
133
|
-
font-family: ${
|
|
134
|
-
font-size: ${
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
123
|
+
.ft-typography--overline {
|
|
124
|
+
font-family: ${Qt};
|
|
125
|
+
font-size: ${Vt};
|
|
126
|
+
font-weight: ${Xt};
|
|
127
|
+
letter-spacing: ${Yt};
|
|
128
|
+
line-height: ${te};
|
|
129
|
+
text-transform: ${ee};
|
|
139
130
|
}
|
|
140
131
|
`,me=i.css`
|
|
132
|
+
.ft-typography--button {
|
|
133
|
+
font-family: ${ie};
|
|
134
|
+
font-size: ${oe};
|
|
135
|
+
font-weight: ${se};
|
|
136
|
+
letter-spacing: ${ne};
|
|
137
|
+
line-height: ${re};
|
|
138
|
+
text-transform: ${ae};
|
|
139
|
+
}
|
|
140
|
+
`,ue=i.css`
|
|
141
141
|
.ft-typography {
|
|
142
142
|
vertical-align: inherit;
|
|
143
143
|
}
|
|
144
|
-
`;var
|
|
145
|
-
<${
|
|
144
|
+
`;var ve=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class be extends e.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?V`
|
|
145
|
+
<${P(this.element)}
|
|
146
146
|
class="ft-typography ft-typography--${this.variant}">
|
|
147
147
|
<slot></slot>
|
|
148
|
-
</${
|
|
149
|
-
`:
|
|
148
|
+
</${P(this.element)}>
|
|
149
|
+
`:V`
|
|
150
150
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
151
|
-
`}}
|
|
151
|
+
`}}be.styles=[le,fe,pe,he,xe,ye,ce,ge,de,me,ue],ve([o.property()],be.prototype,"element",void 0),ve([o.property()],be.prototype,"variant",void 0),e.customElement("ft-typography")(be);const $e={noticeColor:e.FtCssVariableFactory.extend("--ft-notice-color",e.designSystemVariables.colorPrimary),noticeIconColor:e.FtCssVariableFactory.extend("--ft-notice-icon-color",e.designSystemVariables.colorOnPrimary),borderRadius:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design System")},we=i.css`
|
|
152
152
|
.ft-notice {
|
|
153
153
|
display: inline-flex;
|
|
154
154
|
align-items: stretch;
|
|
@@ -163,21 +163,21 @@ const B=Symbol.for(""),D=t=>{if((null==t?void 0:t.r)===B)return null==t?void 0:t
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.ft-icon {
|
|
166
|
-
color: ${
|
|
167
|
-
background-color: ${
|
|
166
|
+
color: ${$e.noticeIconColor};
|
|
167
|
+
background-color: ${$e.noticeColor};
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
|
-
border-top-left-radius: ${
|
|
171
|
-
border-bottom-left-radius: ${
|
|
170
|
+
border-top-left-radius: ${$e.borderRadius};
|
|
171
|
+
border-bottom-left-radius: ${$e.borderRadius};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.ft-notice-label {
|
|
175
175
|
padding: 8px;
|
|
176
|
-
border-top-right-radius: ${
|
|
177
|
-
border-bottom-right-radius: ${
|
|
178
|
-
border: 1px solid ${
|
|
176
|
+
border-top-right-radius: ${$e.borderRadius};
|
|
177
|
+
border-bottom-right-radius: ${$e.borderRadius};
|
|
178
|
+
border: 1px solid ${$e.noticeColor};
|
|
179
179
|
}
|
|
180
|
-
`;var
|
|
180
|
+
`;var ze=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ne extends e.FtLitElement{constructor(){super(...arguments),this.icon="info"}render(){return i.html`
|
|
181
181
|
<div class="ft-notice">
|
|
182
182
|
<div class="ft-icon">
|
|
183
183
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -186,4 +186,4 @@ const B=Symbol.for(""),D=t=>{if((null==t?void 0:t.r)===B)return null==t?void 0:t
|
|
|
186
186
|
<slot></slot>
|
|
187
187
|
</ft-typography>
|
|
188
188
|
</div>
|
|
189
|
-
`}}
|
|
189
|
+
`}}Ne.elementDefinitions={"ft-icon":x,"ft-typography":be},Ne.styles=we,ze([o.property({type:String})],Ne.prototype,"icon",void 0),e.customElement("ft-notice")(Ne),t.FtNotice=Ne,t.FtNoticeCssVariables=$e,t.styles=we,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-notice.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
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(
|
|
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(Nt){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
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -36,34 +36,34 @@ var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElement
|
|
|
36
36
|
* Copyright 2019 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
const r=window.ShadowRoot&&(void 0===
|
|
39
|
+
const r=window,s=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;class c{constructor(t,e,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",void 0,a),p=(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 c(i,t,a)},f=(t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=r.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/;var
|
|
44
|
+
*/;var u;const y=window,x=y.trustedTypes,g=x?x.emptyScript:"",m=y.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?g: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}},b=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:b};class $ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=w){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)||w}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._$Ev=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(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).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._$ES)||void 0===e||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;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||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._$ES)||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)}_$EO(t,e,i=w){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:v).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:v;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||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._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||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)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var
|
|
50
|
+
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:$}),(null!==(u=y.reactiveElementVersions)&&void 0!==u?u:y.reactiveElementVersions=[]).push("1.4.1");const S=window,N=S.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,R="?"+C,M=`<${R}>`,k=document,U=(t="")=>k.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,L=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,T=/"/g,W=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),H=new WeakMap,I=k.createTreeWalker(k,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=z;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===z?"!--"===l[1]?s=A:void 0!==l[1]?s=L:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=n?n:z,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?T:P):s===T||s===P?s=_:s===A||s===L?s=z:(s=_,n=void 0);const p=s===_&&t[e+1].startsWith("/>")?" ":"";r+=s===z?i+M:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+C+p):i+C+(-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!==E?E.createHTML(a):a,o]};class V{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]=Z(t,e);if(this.el=V.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.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(C)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?tt:"@"===e[1]?et:G})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(W.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),I.nextNode(),a.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var n,r,s,a;if(e===D)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=F(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)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,o)),e}class q{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:k).importNode(i,!0);I.currentNode=n;let r=I.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new X(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new it(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=I.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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=J(this,t,e),F(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==K&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new q(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}k(t){j(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 X(this.O(U()),this.O(U()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,n){this.type=1,this._$AH=K,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=K}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=J(this,t,e,0),r=!F(t)||t!==this._$AH&&t!==D,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=J(this,o[i+s],e,s),a===D&&(a=this._$AH[s]),r||(r=!F(a)||a!==this._$AH[s]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const Y=N?N.emptyScript:"";class tt extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class et extends G{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=J(this,t,e,0))&&void 0!==i?i:K)===D)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==K&&(o===K||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 it{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){J(this,t)}}const ot=S.litHtmlPolyfillSupport;null==ot||ot(V,X),(null!==(O=S.litHtmlVersions)&&void 0!==O?O:S.litHtmlVersions=[]).push("2.4.0");
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
56
|
+
var nt,rt;class st extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((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 X(e.insertBefore(U(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return D}}st.finalized=!0,st._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:st});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:st}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.2");class lt{static create(t,e,i){let o=t=>h(null!=t?t:i),n=p`var(${h(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>p`var(${h(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=p`var(${h(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>p`var(${h(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):h(null!=e?e:t.defaultValue),o=p`var(${h(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>p`var(${h(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ct={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var
|
|
62
|
-
${t.map((t=>
|
|
61
|
+
*/var ht,pt,ft=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 dt 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 f(n,this.constructor.elementStyles),n}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
|
|
62
|
+
${t.map((t=>B`
|
|
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;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){}}
|
|
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){}}ft([i()],dt.prototype,"exportpartsPrefix",void 0),ft([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:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),p`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -72,7 +72,7 @@ var et,it;null==tt||tt(H,V),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w
|
|
|
72
72
|
-ms-user-select: none;
|
|
73
73
|
user-select: none;
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,p`
|
|
76
76
|
.ft-word-wrap {
|
|
77
77
|
white-space: normal;
|
|
78
78
|
word-wrap: break-word;
|
|
@@ -84,31 +84,30 @@ var et,it;null==tt||tt(H,V),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w
|
|
|
84
84
|
-webkit-hyphens: auto;
|
|
85
85
|
hyphens: auto
|
|
86
86
|
}
|
|
87
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
87
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(pt=null===(ht=window.safari)||void 0===ht?void 0:ht.pushNotification)||void 0===pt||pt.toString());
|
|
88
88
|
/**
|
|
89
89
|
* @license
|
|
90
90
|
* Copyright 2017 Google LLC
|
|
91
91
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
92
|
*/
|
|
93
|
-
const
|
|
93
|
+
const ut=2;class yt{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)}}
|
|
94
94
|
/**
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright 2017 Google LLC
|
|
97
97
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
-
*/
|
|
99
|
-
class ft 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=W,t.type!==pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=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._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(ft);var ut,yt;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ut||(ut={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(yt||(yt={})),new Map([...["abw"].map((t=>[t,yt.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,yt.AUDIO])),...["avi"].map((t=>[t,yt.AVI])),...["chm","xhs"].map((t=>[t,yt.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,yt.CODE])),...["csv"].map((t=>[t,yt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yt.DITA])),...["epub"].map((t=>[t,yt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yt.EXCEL])),...["flac"].map((t=>[t,yt.FLAC])),...["gif"].map((t=>[t,yt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yt.GZIP])),...["html","htm","xhtml"].map((t=>[t,yt.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,yt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yt.JPEG])),...["json"].map((t=>[t,yt.JSON])),...["m4a","m4p"].map((t=>[t,yt.M4A])),...["mov","qt"].map((t=>[t,yt.MOV])),...["mp3"].map((t=>[t,yt.MP3])),...["mp4","m4v"].map((t=>[t,yt.MP4])),...["ogg","oga"].map((t=>[t,yt.OGG])),...["pdf","ps"].map((t=>[t,yt.PDF])),...["png"].map((t=>[t,yt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yt.POWERPOINT])),...["rar"].map((t=>[t,yt.RAR])),...["stp"].map((t=>[t,yt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yt.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,yt.VIDEO])),...["wav"].map((t=>[t,yt.WAV])),...["wma"].map((t=>[t,yt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yt.WORD])),...["xml","xsl","rdf"].map((t=>[t,yt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yt.YAML])),...["zip"].map((t=>[t,yt.ZIP]))]);const xt={size:rt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:rt.extend("--ft-icon-fluid-topics-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:rt.extend("--ft-icon-file-format-font-family",rt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:rt.extend("--ft-icon-material-font-family",rt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:rt.create("--ft-icon-vertical-align","UNKNOWN","unset")},gt=h`
|
|
98
|
+
*/class xt extends yt{constructor(t){if(super(t),this.it=K,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===D)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}xt.directiveName="unsafeHTML",xt.resultType=1;const gt=(t=>(...e)=>({_$litDirective$:t,values:e}))(xt);var mt,vt;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(mt||(mt={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(vt||(vt={})),new Map([...["abw"].map((t=>[t,vt.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,vt.AUDIO])),...["avi"].map((t=>[t,vt.AVI])),...["chm","xhs"].map((t=>[t,vt.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,vt.CODE])),...["csv"].map((t=>[t,vt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vt.DITA])),...["epub"].map((t=>[t,vt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vt.EXCEL])),...["flac"].map((t=>[t,vt.FLAC])),...["gif"].map((t=>[t,vt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vt.GZIP])),...["html","htm","xhtml"].map((t=>[t,vt.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,vt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vt.JPEG])),...["json"].map((t=>[t,vt.JSON])),...["m4a","m4p"].map((t=>[t,vt.M4A])),...["mov","qt"].map((t=>[t,vt.MOV])),...["mp3"].map((t=>[t,vt.MP3])),...["mp4","m4v"].map((t=>[t,vt.MP4])),...["ogg","oga"].map((t=>[t,vt.OGG])),...["pdf","ps"].map((t=>[t,vt.PDF])),...["png"].map((t=>[t,vt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vt.POWERPOINT])),...["rar"].map((t=>[t,vt.RAR])),...["stp"].map((t=>[t,vt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vt.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,vt.VIDEO])),...["wav"].map((t=>[t,vt.WAV])),...["wma"].map((t=>[t,vt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vt.WORD])),...["xml","xsl","rdf"].map((t=>[t,vt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vt.YAML])),...["zip"].map((t=>[t,vt.ZIP]))]);const bt={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:lt.create("--ft-icon-vertical-align","UNKNOWN","unset")},wt=p`
|
|
100
99
|
:host {
|
|
101
100
|
display: inline-block;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
:host, i.ft-icon {
|
|
105
|
-
width: ${
|
|
106
|
-
height: ${
|
|
104
|
+
width: ${bt.size};
|
|
105
|
+
height: ${bt.size};
|
|
107
106
|
text-align: center;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
i.ft-icon {
|
|
111
|
-
font-size: ${
|
|
110
|
+
font-size: ${bt.size};
|
|
112
111
|
line-height: 1;
|
|
113
112
|
font-weight: normal;
|
|
114
113
|
text-transform: none;
|
|
@@ -119,145 +118,145 @@ class ft extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
|
119
118
|
text-rendering: auto;
|
|
120
119
|
-webkit-font-smoothing: antialiased;
|
|
121
120
|
-moz-osx-font-smoothing: grayscale;
|
|
122
|
-
vertical-align: ${
|
|
121
|
+
vertical-align: ${bt.verticalAlign};
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
.ft-icon--fluid-topics {
|
|
126
|
-
font-family: ${
|
|
125
|
+
font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
.ft-icon--file-format {
|
|
130
|
-
font-family: ${
|
|
129
|
+
font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
.ft-icon--material {
|
|
134
|
-
font-family: ${
|
|
133
|
+
font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
|
|
135
134
|
}
|
|
136
|
-
`;var
|
|
135
|
+
`;var $t;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($t||($t={}));var Ot=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 St extends dt{constructor(){super(...arguments),this.variant=$t.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return B`
|
|
137
136
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
138
|
-
${
|
|
137
|
+
${gt(this.resolvedIcon)}
|
|
139
138
|
<slot ?hidden=${t}></slot>
|
|
140
139
|
</i>
|
|
141
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
140
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=null!==(t=vt[i.toUpperCase()])&&void 0!==t?t:i;break;case $t.fluid_topics:this.resolvedIcon=null!==(e=mt[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}St.elementDefinitions={},St.styles=wt,Ot([i()],St.prototype,"variant",void 0),Ot([i()],St.prototype,"value",void 0),Ot([function(t){return i({...t,state:!0})}
|
|
142
141
|
/**
|
|
143
142
|
* @license
|
|
144
143
|
* Copyright 2017 Google LLC
|
|
145
144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
146
|
-
*/()],
|
|
145
|
+
*/()],St.prototype,"resolvedIcon",void 0),Ot([
|
|
147
146
|
/**
|
|
148
147
|
* @license
|
|
149
148
|
* Copyright 2017 Google LLC
|
|
150
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
151
150
|
*/
|
|
152
|
-
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")],
|
|
151
|
+
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")],St.prototype,"slottedContent",void 0),n("ft-icon")(St);
|
|
153
152
|
/**
|
|
154
153
|
* @license
|
|
155
154
|
* Copyright 2020 Google LLC
|
|
156
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
157
156
|
*/
|
|
158
|
-
const
|
|
157
|
+
const Nt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Nt)return null==t?void 0:t._$litStatic$},Ct=t=>({_$litStatic$:t,r:Nt}),Rt=new Map,Mt=(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=Et(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=Rt.get(t))&&(s.raw=s,Rt.set(t,e=s)),i=a}return t(e,...i)})(B);var kt;!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"}(kt||(kt={}));const Ut=lt.extend("--ft-typography-font-family",ct.titleFont),Ft=lt.extend("--ft-typography-font-family",ct.contentFont),jt={fontFamily:Ft,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},zt=lt.extend("--ft-typography-title-font-family",Ut),At=lt.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Lt=lt.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),_t=lt.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Pt=lt.extend("--ft-typography-title-line-height",jt.lineHeight,"1.2"),Tt=lt.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),Wt=lt.extend("--ft-typography-title-dense-font-family",Ut),Bt=lt.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Dt=lt.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Kt=lt.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Ht=lt.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"1.7"),It=lt.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Zt=lt.extend("--ft-typography-subtitle1-font-family",Ft),Vt=lt.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),Jt=lt.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),qt=lt.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),Xt=lt.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"1.5"),Gt=lt.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),Qt=lt.extend("--ft-typography-subtitle2-font-family",Ft),Yt=lt.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),te=lt.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),ee=lt.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),ie=lt.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"1.7"),oe=lt.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ne=lt.extend("--ft-typography-body1-font-family",Ft),re=lt.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),se=lt.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),ae=lt.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),le=lt.extend("--ft-typography-body1-line-height",jt.lineHeight,"1.5"),ce=lt.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit"),he=lt.extend("--ft-typography-body2-font-family",Ft),pe=lt.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),fe=lt.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),de=lt.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),ue=lt.extend("--ft-typography-body2-line-height",jt.lineHeight,"1.4"),ye=lt.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit"),xe=lt.extend("--ft-typography-caption-font-family",Ft),ge=lt.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),me=lt.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),ve=lt.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),be=lt.extend("--ft-typography-caption-line-height",jt.lineHeight,"1.33"),we=lt.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit"),$e=lt.extend("--ft-typography-breadcrumb-font-family",Ft),Oe=lt.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),Se=lt.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),Ne=lt.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),Ee=lt.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"1.6"),Ce=lt.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),Re=lt.extend("--ft-typography-overline-font-family",Ft),Me=lt.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),ke=lt.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),Ue=lt.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),Fe=lt.extend("--ft-typography-overline-line-height",jt.lineHeight,"1.6"),je=lt.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),ze=lt.extend("--ft-typography-button-font-family",Ft),Ae=lt.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),Le=lt.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),_e=lt.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),Pe=lt.extend("--ft-typography-button-line-height",jt.lineHeight,"1.15"),Te=lt.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),We=p`
|
|
159
158
|
.ft-typography--title {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
159
|
+
font-family: ${zt};
|
|
160
|
+
font-size: ${At};
|
|
161
|
+
font-weight: ${Lt};
|
|
162
|
+
letter-spacing: ${_t};
|
|
163
|
+
line-height: ${Pt};
|
|
164
|
+
text-transform: ${Tt};
|
|
166
165
|
}
|
|
167
|
-
`,
|
|
166
|
+
`,Be=p`
|
|
168
167
|
.ft-typography--title-dense {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
168
|
+
font-family: ${Wt};
|
|
169
|
+
font-size: ${Bt};
|
|
170
|
+
font-weight: ${Dt};
|
|
171
|
+
letter-spacing: ${Kt};
|
|
172
|
+
line-height: ${Ht};
|
|
173
|
+
text-transform: ${It};
|
|
175
174
|
}
|
|
176
|
-
`,
|
|
175
|
+
`,De=p`
|
|
177
176
|
.ft-typography--subtitle1 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
177
|
+
font-family: ${Zt};
|
|
178
|
+
font-size: ${Vt};
|
|
179
|
+
font-weight: ${Jt};
|
|
180
|
+
letter-spacing: ${qt};
|
|
181
|
+
line-height: ${Xt};
|
|
182
|
+
text-transform: ${Gt};
|
|
184
183
|
}
|
|
185
|
-
`,
|
|
184
|
+
`,Ke=p`
|
|
186
185
|
.ft-typography--subtitle2 {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
186
|
+
font-family: ${Qt};
|
|
187
|
+
font-size: ${Yt};
|
|
188
|
+
font-weight: ${te};
|
|
189
|
+
letter-spacing: ${ee};
|
|
190
|
+
line-height: ${ie};
|
|
191
|
+
text-transform: ${oe};
|
|
193
192
|
}
|
|
194
193
|
|
|
195
|
-
`,
|
|
194
|
+
`,He=p`
|
|
196
195
|
.ft-typography--body1 {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
196
|
+
font-family: ${ne};
|
|
197
|
+
font-size: ${re};
|
|
198
|
+
font-weight: ${se};
|
|
199
|
+
letter-spacing: ${ae};
|
|
200
|
+
line-height: ${le};
|
|
201
|
+
text-transform: ${ce};
|
|
203
202
|
}
|
|
204
|
-
`,
|
|
203
|
+
`,Ie=p`
|
|
205
204
|
.ft-typography--body2 {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
210
|
-
line-height: ${
|
|
211
|
-
text-transform: ${
|
|
205
|
+
font-family: ${he};
|
|
206
|
+
font-size: ${pe};
|
|
207
|
+
font-weight: ${fe};
|
|
208
|
+
letter-spacing: ${de};
|
|
209
|
+
line-height: ${ue};
|
|
210
|
+
text-transform: ${ye};
|
|
212
211
|
}
|
|
213
|
-
`,
|
|
212
|
+
`,Ze=p`
|
|
214
213
|
.ft-typography--caption {
|
|
215
|
-
font-family: ${
|
|
216
|
-
font-size: ${
|
|
217
|
-
font-weight: ${
|
|
218
|
-
letter-spacing: ${
|
|
219
|
-
line-height: ${
|
|
220
|
-
text-transform: ${
|
|
214
|
+
font-family: ${xe};
|
|
215
|
+
font-size: ${ge};
|
|
216
|
+
font-weight: ${me};
|
|
217
|
+
letter-spacing: ${ve};
|
|
218
|
+
line-height: ${be};
|
|
219
|
+
text-transform: ${we};
|
|
221
220
|
}
|
|
222
|
-
`,
|
|
221
|
+
`,Ve=p`
|
|
223
222
|
.ft-typography--breadcrumb {
|
|
224
|
-
font-family: ${
|
|
225
|
-
font-size: ${
|
|
226
|
-
font-weight: ${
|
|
227
|
-
letter-spacing: ${
|
|
228
|
-
line-height: ${
|
|
229
|
-
text-transform: ${
|
|
223
|
+
font-family: ${$e};
|
|
224
|
+
font-size: ${Oe};
|
|
225
|
+
font-weight: ${Se};
|
|
226
|
+
letter-spacing: ${Ne};
|
|
227
|
+
line-height: ${Ee};
|
|
228
|
+
text-transform: ${Ce};
|
|
230
229
|
}
|
|
231
|
-
`,
|
|
230
|
+
`,Je=p`
|
|
232
231
|
.ft-typography--overline {
|
|
233
|
-
font-family: ${
|
|
234
|
-
font-size: ${
|
|
235
|
-
font-weight: ${
|
|
236
|
-
letter-spacing: ${
|
|
237
|
-
line-height: ${
|
|
238
|
-
text-transform: ${
|
|
232
|
+
font-family: ${Re};
|
|
233
|
+
font-size: ${Me};
|
|
234
|
+
font-weight: ${ke};
|
|
235
|
+
letter-spacing: ${Ue};
|
|
236
|
+
line-height: ${Fe};
|
|
237
|
+
text-transform: ${je};
|
|
239
238
|
}
|
|
240
|
-
`,
|
|
239
|
+
`,qe=p`
|
|
241
240
|
.ft-typography--button {
|
|
242
|
-
font-family: ${
|
|
243
|
-
font-size: ${
|
|
244
|
-
font-weight: ${
|
|
245
|
-
letter-spacing: ${
|
|
246
|
-
line-height: ${
|
|
247
|
-
text-transform: ${
|
|
241
|
+
font-family: ${ze};
|
|
242
|
+
font-size: ${Ae};
|
|
243
|
+
font-weight: ${Le};
|
|
244
|
+
letter-spacing: ${_e};
|
|
245
|
+
line-height: ${Pe};
|
|
246
|
+
text-transform: ${Te};
|
|
248
247
|
}
|
|
249
|
-
`,
|
|
248
|
+
`,Xe=p`
|
|
250
249
|
.ft-typography {
|
|
251
250
|
vertical-align: inherit;
|
|
252
251
|
}
|
|
253
|
-
`;var
|
|
254
|
-
<${
|
|
252
|
+
`;var Ge=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 Qe extends dt{constructor(){super(...arguments),this.variant=kt.body1}render(){return this.element?Mt`
|
|
253
|
+
<${Ct(this.element)}
|
|
255
254
|
class="ft-typography ft-typography--${this.variant}">
|
|
256
255
|
<slot></slot>
|
|
257
|
-
</${
|
|
258
|
-
`:
|
|
256
|
+
</${Ct(this.element)}>
|
|
257
|
+
`:Mt`
|
|
259
258
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
260
|
-
`}}
|
|
259
|
+
`}}Qe.styles=[We,Be,De,Ke,He,Ie,Ze,Ve,Je,qe,Xe],Ge([i()],Qe.prototype,"element",void 0),Ge([i()],Qe.prototype,"variant",void 0),n("ft-typography")(Qe);const Ye={noticeColor:lt.extend("--ft-notice-color",ct.colorPrimary),noticeIconColor:lt.extend("--ft-notice-icon-color",ct.colorOnPrimary),borderRadius:lt.external(ct.borderRadiusS,"Design System")},ti=p`
|
|
261
260
|
.ft-notice {
|
|
262
261
|
display: inline-flex;
|
|
263
262
|
align-items: stretch;
|
|
@@ -265,28 +264,28 @@ const wt=Symbol.for(""),$t=t=>{if((null==t?void 0:t.r)===wt)return null==t?void
|
|
|
265
264
|
}
|
|
266
265
|
|
|
267
266
|
ft-icon {
|
|
268
|
-
${
|
|
267
|
+
${ei=bt.size,ii="20px",h(`${ei.name}: ${ii}`)};
|
|
269
268
|
padding: 0 8px;
|
|
270
269
|
display: flex;
|
|
271
270
|
align-self: center;
|
|
272
271
|
}
|
|
273
272
|
|
|
274
273
|
.ft-icon {
|
|
275
|
-
color: ${
|
|
276
|
-
background-color: ${
|
|
274
|
+
color: ${Ye.noticeIconColor};
|
|
275
|
+
background-color: ${Ye.noticeColor};
|
|
277
276
|
display: flex;
|
|
278
277
|
align-items: center;
|
|
279
|
-
border-top-left-radius: ${
|
|
280
|
-
border-bottom-left-radius: ${
|
|
278
|
+
border-top-left-radius: ${Ye.borderRadius};
|
|
279
|
+
border-bottom-left-radius: ${Ye.borderRadius};
|
|
281
280
|
}
|
|
282
281
|
|
|
283
282
|
.ft-notice-label {
|
|
284
283
|
padding: 8px;
|
|
285
|
-
border-top-right-radius: ${
|
|
286
|
-
border-bottom-right-radius: ${
|
|
287
|
-
border: 1px solid ${
|
|
284
|
+
border-top-right-radius: ${Ye.borderRadius};
|
|
285
|
+
border-bottom-right-radius: ${Ye.borderRadius};
|
|
286
|
+
border: 1px solid ${Ye.noticeColor};
|
|
288
287
|
}
|
|
289
|
-
`;var
|
|
288
|
+
`;var ei,ii,oi=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 ni extends dt{constructor(){super(...arguments),this.icon="info"}render(){return B`
|
|
290
289
|
<div class="ft-notice">
|
|
291
290
|
<div class="ft-icon">
|
|
292
291
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -295,4 +294,4 @@ const wt=Symbol.for(""),$t=t=>{if((null==t?void 0:t.r)===wt)return null==t?void
|
|
|
295
294
|
<slot></slot>
|
|
296
295
|
</ft-typography>
|
|
297
296
|
</div>
|
|
298
|
-
`}}
|
|
297
|
+
`}}ni.elementDefinitions={"ft-icon":St,"ft-typography":Qe},ni.styles=ti,oi([i({type:String})],ni.prototype,"icon",void 0),n("ft-notice")(ni),t.FtNotice=ni,t.FtNoticeCssVariables=Ye,t.styles=ti,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.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.3.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.20",
|
|
23
|
+
"@fluid-topics/ft-typography": "0.3.20",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.20",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f06e98f4cd6c9f9ae741ca86f9a24cb84ce15ec5"
|
|
28
28
|
}
|