@fluid-topics/ft-search-bar 1.0.52 → 1.0.54
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-search-bar.light.js +31 -31
- package/build/ft-search-bar.min.js +22 -22
- package/package.json +15 -15
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
22
22
|
<div class="ft-size-watcher--watcher"></div>
|
|
23
23
|
</div>
|
|
24
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v="$lit$",g=`lit$${(Math.random()+"").slice(9)}$`,x="?"+g,y=`<${x}>`,m=document,$=()=>m.createComment(""),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,S="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,
|
|
24
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v="$lit$",g=`lit$${(Math.random()+"").slice(9)}$`,x="?"+g,y=`<${x}>`,m=document,$=()=>m.createComment(""),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,S="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,E=/>/g,B=RegExp(`>|${S}(?:([^\\s"'>=/]+)(${S}*=${S}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),C=/'/g,I=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),M=new WeakMap,R=m.createTreeWalker(m,129,null,!1),A=(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 l,a,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===z?"!--"===a[1]?r=O:void 0!==a[1]?r=E:void 0!==a[2]?(F.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=B):void 0!==a[3]&&(r=B):r===B?">"===a[0]?(r=null!=s?s:z,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?B:'"'===a[3]?I:C):r===I||r===C?r=B:r===O||r===E?r=z:(r=B,s=void 0);const p=r===B&&t[e+1].startsWith("/>")?" ":"";n+=r===z?i+y:c>=0?(o.push(l),i.slice(0,c)+v+i.slice(c)+g+p):i+g+(-2===c?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(l):l,o]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,c]=A(t,e);if(this.el=T.createElement(a,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=R.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(v)||e.startsWith(g)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+v).split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?V:"@"===e[1]?W:U})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(F.test(o.tagName)){const t=o.textContent.split(g),e=t.length-1;if(e>0){o.textContent=u?u.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],$()),R.nextNode(),l.push({type:2,index:++s});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===x)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(g,t+1));)l.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,o){var s,n,r,l;if(e===L)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=w(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=N(t,a._$AS(t,e.values),a,o)),e}class P{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:m).importNode(i,!0);R.currentNode=s;let n=R.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Z(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new K(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=R.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=N(this,t,e),w(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==L&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&w(this._$AH)?this._$AA.nextSibling.data=t:this.$(m.createTextNode(t)),this._$AH=t}g(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.v(i);else{const t=new P(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new T(t)),e}T(t){k(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 Z(this.k($()),this.k($()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class U{constructor(t,e,i,o,s){this.type=1,this._$AH=j,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=j}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=N(this,t,e,0),n=!w(t)||t!==this._$AH&&t!==L,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=N(this,o[i+r],e,r),l===L&&(l=this._$AH[r]),n||(n=!w(l)||l!==this._$AH[r]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const H=u?u.emptyScript:"";class V extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class W extends U{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=N(this,t,e,0))&&void 0!==i?i:j)===L)return;const o=this._$AH,s=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==j&&(o===j||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 K{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){N(this,t)}}const q=d.litHtmlPolyfillSupport;null==q||q(T,Z),(null!==(c=d.litHtmlVersions)&&void 0!==c?c:d.litHtmlVersions=[]).push("2.7.3");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:G}),J=new Map,Q=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=X(n));)a+=s+e[++c],h=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=l}return t(e,...i)})(D);var tt;!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"}(tt||(tt={}));const et=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),it=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ot={fontFamily:it,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")},st=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",et),nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ot.lineHeight,"1.2"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",et),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"1.7"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"1.5"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"1.7"),
|
|
30
|
+
const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t._$litStatic$},Y=t=>({_$litStatic$:t,r:G}),J=new Map,Q=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=X(n));)a+=s+e[++c],h=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=l}return t(e,...i)})(D);var tt;!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"}(tt||(tt={}));const et=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),it=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ot={fontFamily:it,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")},st=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",et),nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ot.lineHeight,"1.2"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",et),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"1.7"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"1.5"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"1.7"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ot.textTransform,"inherit"),Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ot.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ot.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ot.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ot.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ot.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ot.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ot.textTransform,"inherit")},It={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ot.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ot.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ot.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ot.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ot.textTransform,"inherit")},Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ot.fontSize,"10px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ot.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ot.letterSpacing,"0.33px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ot.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ot.textTransform,"inherit"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ot.fontSize,"10px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ot.fontWeight,"normal"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ot.letterSpacing,"1.5px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ot.lineHeight,"1.6"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ot.textTransform,"uppercase"),_t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ot.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ot.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ot.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ot.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ot.textTransform,"uppercase")},Ht=i.css`
|
|
31
31
|
.ft-typography--title {
|
|
32
32
|
font-family: ${st};
|
|
33
33
|
font-size: ${nt};
|
|
@@ -61,17 +61,17 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
61
61
|
font-weight: ${St};
|
|
62
62
|
letter-spacing: ${zt};
|
|
63
63
|
line-height: ${Ot};
|
|
64
|
-
text-transform: ${
|
|
64
|
+
text-transform: ${Et};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
`,qt=i.css`
|
|
68
68
|
.ft-typography--body1 {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
69
|
+
font-family: ${Bt.fontFamily};
|
|
70
|
+
font-size: ${Bt.fontSize};
|
|
71
|
+
font-weight: ${Bt.fontWeight};
|
|
72
|
+
letter-spacing: ${Bt.letterSpacing};
|
|
73
|
+
line-height: ${Bt.lineHeight};
|
|
74
|
+
text-transform: ${Bt.textTransform};
|
|
75
75
|
}
|
|
76
76
|
`,Gt=i.css`
|
|
77
77
|
.ft-typography--body2 {
|
|
@@ -236,7 +236,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
236
236
|
<div class="ft-ripple--background"></div>
|
|
237
237
|
<div class="ft-ripple--effect"></div>
|
|
238
238
|
</div>
|
|
239
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ve.elementDefinitions={},ve.styles=ue,be([o.property({type:Boolean})],ve.prototype,"primary",void 0),be([o.property({type:Boolean})],ve.prototype,"secondary",void 0),be([o.property({type:Boolean})],ve.prototype,"unbounded",void 0),be([o.property({type:Boolean})],ve.prototype,"activated",void 0),be([o.property({type:Boolean})],ve.prototype,"selected",void 0),be([o.property({type:Boolean})],ve.prototype,"disabled",void 0),be([o.state()],ve.prototype,"hovered",void 0),be([o.state()],ve.prototype,"focused",void 0),be([o.state()],ve.prototype,"pressed",void 0),be([o.state()],ve.prototype,"rippling",void 0),be([o.state()],ve.prototype,"rippleSize",void 0),be([o.state()],ve.prototype,"originX",void 0),be([o.state()],ve.prototype,"originY",void 0),be([o.query(".ft-ripple")],ve.prototype,"ripple",void 0),be([o.query(".ft-ripple--effect")],ve.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ve);const ge={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","
|
|
239
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ve.elementDefinitions={},ve.styles=ue,be([o.property({type:Boolean})],ve.prototype,"primary",void 0),be([o.property({type:Boolean})],ve.prototype,"secondary",void 0),be([o.property({type:Boolean})],ve.prototype,"unbounded",void 0),be([o.property({type:Boolean})],ve.prototype,"activated",void 0),be([o.property({type:Boolean})],ve.prototype,"selected",void 0),be([o.property({type:Boolean})],ve.prototype,"disabled",void 0),be([o.state()],ve.prototype,"hovered",void 0),be([o.state()],ve.prototype,"focused",void 0),be([o.state()],ve.prototype,"pressed",void 0),be([o.state()],ve.prototype,"rippling",void 0),be([o.state()],ve.prototype,"rippleSize",void 0),be([o.state()],ve.prototype,"originX",void 0),be([o.state()],ve.prototype,"originY",void 0),be([o.query(".ft-ripple")],ve.prototype,"ripple",void 0),be([o.query(".ft-ripple--effect")],ve.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ve);const ge={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},xe=i.css`
|
|
240
240
|
.ft-tooltip--container {
|
|
241
241
|
display: block;
|
|
242
242
|
}
|
|
@@ -283,7 +283,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
283
283
|
</div>
|
|
284
284
|
</div>
|
|
285
285
|
</div>
|
|
286
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-i,n=t.offsetLeft+s;break;case"bottom":r=t.offsetTop+t.offsetHeight,n=t.offsetLeft+s;break;case"left":r=t.offsetTop+o,n=t.offsetLeft-e;break;case"right":r=t.offsetTop+o,n=t.offsetLeft+t.offsetWidth}const l=this.tooltip.style;l.left=this.
|
|
286
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let c=-a.x,h=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-a.y,f=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(p,f))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${ge.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}me.elementDefinitions={"ft-typography":ie},me.styles=xe,ye([o.property()],me.prototype,"text",void 0),ye([o.property({type:Boolean})],me.prototype,"manual",void 0),ye([o.property({type:Boolean})],me.prototype,"inline",void 0),ye([o.property({type:Number})],me.prototype,"delay",void 0),ye([o.property()],me.prototype,"position",void 0),ye([o.queryAssignedNodes("",!0)],me.prototype,"slotNodes",void 0),ye([o.query(".ft-tooltip--container")],me.prototype,"container",void 0),ye([o.query(".ft-tooltip")],me.prototype,"tooltip",void 0),ye([o.query(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0),ye([o.state()],me.prototype,"visible",void 0),e.customElement("ft-tooltip")(me);const $e={color:e.FtCssVariableFactory.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},we=i.css`
|
|
287
287
|
:host {
|
|
288
288
|
line-height: 0;
|
|
289
289
|
}
|
|
@@ -359,7 +359,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
359
359
|
<div></div>
|
|
360
360
|
<div></div>
|
|
361
361
|
</div>
|
|
362
|
-
`}}var Se,ze;ke.styles=we,e.customElement("ft-loader")(ke),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Se||(Se={})),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=""}(ze||(ze={}));const Oe=new Map([...["abw"].map((t=>[t,ze.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,ze.AUDIO])),...["avi"].map((t=>[t,ze.AVI])),...["chm","xhs"].map((t=>[t,ze.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,ze.CODE])),...["csv"].map((t=>[t,ze.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ze.DITA])),...["epub"].map((t=>[t,ze.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ze.EXCEL])),...["flac"].map((t=>[t,ze.FLAC])),...["gif"].map((t=>[t,ze.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ze.GZIP])),...["html","htm","xhtml"].map((t=>[t,ze.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,ze.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ze.JPEG])),...["json"].map((t=>[t,ze.JSON])),...["m4a","m4p"].map((t=>[t,ze.M4A])),...["mov","qt"].map((t=>[t,ze.MOV])),...["mp3"].map((t=>[t,ze.MP3])),...["mp4","m4v"].map((t=>[t,ze.MP4])),...["ogg","oga"].map((t=>[t,ze.OGG])),...["pdf","ps"].map((t=>[t,ze.PDF])),...["png"].map((t=>[t,ze.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ze.POWERPOINT])),...["rar"].map((t=>[t,ze.RAR])),...["stp"].map((t=>[t,ze.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ze.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,ze.VIDEO])),...["wav"].map((t=>[t,ze.WAV])),...["wma"].map((t=>[t,ze.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ze.WORD])),...["xml","xsl","rdf"].map((t=>[t,ze.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ze.YAML])),...["zip"].map((t=>[t,ze.ZIP]))]),
|
|
362
|
+
`}}var Se,ze;ke.styles=we,e.customElement("ft-loader")(ke),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Se||(Se={})),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=""}(ze||(ze={}));const Oe=new Map([...["abw"].map((t=>[t,ze.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,ze.AUDIO])),...["avi"].map((t=>[t,ze.AVI])),...["chm","xhs"].map((t=>[t,ze.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,ze.CODE])),...["csv"].map((t=>[t,ze.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ze.DITA])),...["epub"].map((t=>[t,ze.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ze.EXCEL])),...["flac"].map((t=>[t,ze.FLAC])),...["gif"].map((t=>[t,ze.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ze.GZIP])),...["html","htm","xhtml"].map((t=>[t,ze.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,ze.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ze.JPEG])),...["json"].map((t=>[t,ze.JSON])),...["m4a","m4p"].map((t=>[t,ze.M4A])),...["mov","qt"].map((t=>[t,ze.MOV])),...["mp3"].map((t=>[t,ze.MP3])),...["mp4","m4v"].map((t=>[t,ze.MP4])),...["ogg","oga"].map((t=>[t,ze.OGG])),...["pdf","ps"].map((t=>[t,ze.PDF])),...["png"].map((t=>[t,ze.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ze.POWERPOINT])),...["rar"].map((t=>[t,ze.RAR])),...["stp"].map((t=>[t,ze.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ze.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,ze.VIDEO])),...["wav"].map((t=>[t,ze.WAV])),...["wma"].map((t=>[t,ze.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ze.WORD])),...["xml","xsl","rdf"].map((t=>[t,ze.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ze.YAML])),...["zip"].map((t=>[t,ze.ZIP]))]),Ee=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Be={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ce=i.css`
|
|
363
363
|
:host, i.ft-icon {
|
|
364
364
|
display: inline-flex;
|
|
365
365
|
align-items: center;
|
|
@@ -368,14 +368,14 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
:host {
|
|
371
|
-
width: ${
|
|
372
|
-
height: ${
|
|
371
|
+
width: ${Be.size};
|
|
372
|
+
height: ${Be.size};
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
i.ft-icon {
|
|
376
376
|
width: 100%;
|
|
377
377
|
height: 100%;
|
|
378
|
-
font-size: ${
|
|
378
|
+
font-size: ${Be.size};
|
|
379
379
|
line-height: 1;
|
|
380
380
|
font-weight: normal;
|
|
381
381
|
text-transform: none;
|
|
@@ -386,26 +386,26 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
386
386
|
text-rendering: auto;
|
|
387
387
|
-webkit-font-smoothing: antialiased;
|
|
388
388
|
-moz-osx-font-smoothing: grayscale;
|
|
389
|
-
vertical-align: ${
|
|
389
|
+
vertical-align: ${Be.verticalAlign};
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
i.ft-icon.ft-icon--fluid-topics {
|
|
393
|
-
font-family: ${
|
|
393
|
+
font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
394
394
|
|
|
395
395
|
/* Ugly fix because font is broken */
|
|
396
|
-
font-size: calc(0.75 * ${
|
|
397
|
-
line-height: ${
|
|
396
|
+
font-size: calc(0.75 * ${Be.size});
|
|
397
|
+
line-height: ${Be.size};
|
|
398
398
|
position: relative;
|
|
399
399
|
top: -4%;
|
|
400
400
|
justify-content: center;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.ft-icon--file-format {
|
|
404
|
-
font-family: ${
|
|
404
|
+
font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
.ft-icon--material {
|
|
408
|
-
font-family: ${
|
|
408
|
+
font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
|
|
409
409
|
}
|
|
410
410
|
`;var Ie;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ie||(Ie={}));var Fe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 De extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,e=t!==Ie.material||!!this.value;return i.html`
|
|
411
411
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
@@ -454,7 +454,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
454
454
|
|
|
455
455
|
--ft-button-internal-line-height: max(calc(${je.fontSize} + 2px), ${je.iconSize});
|
|
456
456
|
--ft-button-internal-color: ${je.color};
|
|
457
|
-
${e.setVariable(
|
|
457
|
+
${e.setVariable(Be.size,je.iconSize)};
|
|
458
458
|
${e.setVariable(le.color,je.rippleColor)};
|
|
459
459
|
|
|
460
460
|
border-radius: ${je.borderRadius};
|
|
@@ -1179,7 +1179,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1179
1179
|
slot:not([name]) {
|
|
1180
1180
|
display: none;
|
|
1181
1181
|
}
|
|
1182
|
-
`];var Oi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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
|
|
1182
|
+
`];var Oi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 Ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class Bi extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return e.flatDeep(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return i.html`
|
|
1183
1183
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1184
1184
|
part="container">
|
|
1185
1185
|
${this.label||t?i.html`
|
|
@@ -1251,9 +1251,9 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1251
1251
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1252
1252
|
noValuesLabel="${this.noValuesLabel}"
|
|
1253
1253
|
></ft-filter-level>
|
|
1254
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;e.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1254
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;e.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new Ei(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Bi.elementDefinitions={"ft-button":_e,"ft-filter-level":fi,"ft-snap-scroll":gi,"ft-typography":ie},Bi.styles=zi,Oi([o.property({type:String})],Bi.prototype,"id",void 0),Oi([o.property({type:String})],Bi.prototype,"label",void 0),Oi([o.property({type:String})],Bi.prototype,"filterPlaceHolder",void 0),Oi([o.property({type:String})],Bi.prototype,"clearButtonLabel",void 0),Oi([o.property({type:String})],Bi.prototype,"moreValuesButtonLabel",void 0),Oi([o.property({type:String})],Bi.prototype,"noValuesLabel",void 0),Oi([e.jsonProperty([])],Bi.prototype,"options",void 0),Oi([o.property({type:Boolean})],Bi.prototype,"multivalued",void 0),Oi([o.property({type:Boolean})],Bi.prototype,"disabled",void 0),Oi([o.property({type:Boolean})],Bi.prototype,"raiseSelectedOptions",void 0),Oi([o.property({type:Number})],Bi.prototype,"displayedValuesLimit",void 0),Oi([o.property({type:Boolean})],Bi.prototype,"hideClearButton",void 0),Oi([o.query(".ft-filter--slot")],Bi.prototype,"slotElement",void 0),Oi([o.query(".ft-filter--container")],Bi.prototype,"container",void 0),Oi([o.query(".ft-filter--values")],Bi.prototype,"valuesContainer",void 0),Oi([o.query(".ft-filter--levels")],Bi.prototype,"levelsContainer",void 0),Oi([o.state()],Bi.prototype,"lastLevelHasHiddenvalues",void 0),Oi([o.query(".ft-filter--filter input")],Bi.prototype,"filterInput",void 0),Oi([o.queryAll(".ft-filter--levels ft-filter-level")],Bi.prototype,"levels",void 0),Oi([o.state()],Bi.prototype,"withScroll",void 0),Oi([o.state()],Bi.prototype,"filter",void 0),Oi([o.state()],Bi.prototype,"slideIn",void 0),Oi([o.state()],Bi.prototype,"slideOut",void 0);var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(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 Ii extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
|
|
1255
1255
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1256
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ii.elementDefinitions={},Ci([o.property({type:String})],Ii.prototype,"label",void 0),Ci([o.property({type:Object,converter:t=>t})],Ii.prototype,"value",void 0),Ci([o.property({type:Boolean,reflect:!0})],Ii.prototype,"selected",void 0),Ci([o.property({type:Object})],Ii.prototype,"subOptions",void 0),Ci([e.jsonProperty({})],Ii.prototype,"renderOption",void 0),Ci([o.query(".ft-filter-option--slot")],Ii.prototype,"slotElement",void 0),e.customElement("ft-filter")(
|
|
1256
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ii.elementDefinitions={},Ci([o.property({type:String})],Ii.prototype,"label",void 0),Ci([o.property({type:Object,converter:t=>t})],Ii.prototype,"value",void 0),Ci([o.property({type:Boolean,reflect:!0})],Ii.prototype,"selected",void 0),Ci([o.property({type:Object})],Ii.prototype,"subOptions",void 0),Ci([e.jsonProperty({})],Ii.prototype,"renderOption",void 0),Ci([o.query(".ft-filter-option--slot")],Ii.prototype,"slotElement",void 0),e.customElement("ft-filter")(Bi),e.customElement("ft-filter-option")(Ii);const Fi=i.css`
|
|
1257
1257
|
.ft-accordion {
|
|
1258
1258
|
box-sizing: border-box;
|
|
1259
1259
|
}
|
|
@@ -1354,7 +1354,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1354
1354
|
|
|
1355
1355
|
--ft-chip-internal-font-size: ${Zi.fontSize};
|
|
1356
1356
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1357
|
-
${e.setVariable(
|
|
1357
|
+
${e.setVariable(Be.size,Zi.iconSize)};
|
|
1358
1358
|
--ft-chip-internal-vertical-padding: ${Zi.verticalPadding};
|
|
1359
1359
|
--ft-chip-internal-horizontal-padding: ${Zi.horizontalPadding};
|
|
1360
1360
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -1683,7 +1683,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1683
1683
|
${e.setVariable(Xi.raisedFontSize,to.labelSize)};
|
|
1684
1684
|
${e.setVariable(Xi.verticalSpacing,to.verticalSpacing)};
|
|
1685
1685
|
${e.setVariable(Xi.horizontalSpacing,to.horizontalSpacing)};
|
|
1686
|
-
${e.setVariable(Xi.labelMaxWidth,`calc(100% - ${
|
|
1686
|
+
${e.setVariable(Xi.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1702,8 +1702,8 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
1702
1702
|
overflow: hidden;
|
|
1703
1703
|
white-space: nowrap;
|
|
1704
1704
|
text-overflow: ellipsis;
|
|
1705
|
-
${e.setVariable(
|
|
1706
|
-
${e.setVariable(
|
|
1705
|
+
${e.setVariable(Bt.fontSize,to.selectedOptionSize)};
|
|
1706
|
+
${e.setVariable(Bt.lineHeight,to.selectedOptionSize)};
|
|
1707
1707
|
}
|
|
1708
1708
|
|
|
1709
1709
|
.ft-select--in-error .ft-select--selected-option {
|
|
@@ -2242,7 +2242,7 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
2242
2242
|
</a>
|
|
2243
2243
|
`))}
|
|
2244
2244
|
</div>
|
|
2245
|
-
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const n=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==n||n.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ie.file_format:Ie.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?Se.BOOK:Se.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[r,l]=((null!==(i=
|
|
2245
|
+
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const n=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==n||n.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ie.file_format:Ie.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?Se.BOOK:Se.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[r,l]=((null!==(i=Ee.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=Oe.get(l))&&void 0!==o?o:Oe.get(e))&&void 0!==s?s:Oe.get(r))&&void 0!==n?n:ze.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=Se.TOPICS}return i.html`
|
|
2246
2246
|
<ft-icon .variant="${e}" .value="${o}" part="suggestion-icon"></ft-icon>
|
|
2247
2247
|
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}po.styles=[e.wordWrap,i.css`
|
|
2248
2248
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
@@ -2659,4 +2659,4 @@ const G=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===G)return null==t?void 0:t
|
|
|
2659
2659
|
part="floating-panel"
|
|
2660
2660
|
tabindex="-1">
|
|
2661
2661
|
${this.renderDesktopMenu()}
|
|
2662
|
-
</div>`}}$o.elementDefinitions={"ft-accordion":Li,"ft-accordion-item":Ni,"ft-button":_e,"ft-chip":Gi,"ft-filter":
|
|
2662
|
+
</div>`}}$o.elementDefinitions={"ft-accordion":Li,"ft-accordion-item":Ni,"ft-button":_e,"ft-chip":Gi,"ft-filter":Bi,"ft-filter-option":Ii,"ft-icon":De,"ft-ripple":ve,"ft-select":so,"ft-select-option":oo,"ft-size-watcher":f,"ft-skeleton":ho,"ft-snap-scroll":gi,"ft-tooltip":me,"ft-typography":ie,"ft-radio-group":ai,"ft-radio":ni},$o.styles=[Gt,ao,co,fo.styles,po.styles],vo([o.property({type:Boolean})],$o.prototype,"dense",void 0),vo([o.property()],$o.prototype,"mode",void 0),vo([o.property({type:Boolean})],$o.prototype,"forceMobileMenuOpen",void 0),vo([o.property({type:Boolean})],$o.prototype,"forceMenuOpen",void 0),vo([o.property()],$o.prototype,"baseUrl",void 0),vo([o.property()],$o.prototype,"apiIntegrationIdentifier",void 0),vo([o.property()],$o.prototype,"contentLocale",void 0),vo([o.state()],$o.prototype,"availableContentLocales",void 0),vo([o.state()],$o.prototype,"availableContentLocalesInitialized",void 0),vo([o.property()],$o.prototype,"uiLocale",void 0),vo([e.jsonProperty({})],$o.prototype,"labels",void 0),vo([e.jsonProperty([])],$o.prototype,"displayedFilters",void 0),vo([e.jsonProperty([])],$o.prototype,"presets",void 0),vo([o.property({type:String,reflect:!0})],$o.prototype,"selectedPreset",void 0),vo([e.jsonProperty([])],$o.prototype,"priors",void 0),vo([o.property()],$o.prototype,"searchRequestSerializer",void 0),vo([o.state()],$o.prototype,"searchFilters",void 0),vo([o.state()],$o.prototype,"sizeCategory",void 0),vo([o.state()],$o.prototype,"displayFacets",void 0),vo([o.state()],$o.prototype,"mobileMenuOpen",void 0),vo([o.state()],$o.prototype,"facets",void 0),vo([o.state()],$o.prototype,"facetsInitialized",void 0),vo([o.query(".ft-search-bar--container")],$o.prototype,"container",void 0),vo([o.query(".ft-search-bar--filters-opener")],$o.prototype,"filtersOpener",void 0),vo([o.query(".ft-search-bar--floating-panel")],$o.prototype,"floatingContainer",void 0),vo([o.query("ft-snap-scroll.ft-search-bar--filters-container")],$o.prototype,"scrollingFiltersContainer",void 0),vo([o.query(".ft-search-bar--input")],$o.prototype,"input",void 0),vo([o.state()],$o.prototype,"query",void 0),vo([o.state()],$o.prototype,"suggestions",void 0),vo([o.state()],$o.prototype,"recentSearches",void 0),vo([o.state()],$o.prototype,"scrollToFacet",void 0),vo([o.state()],$o.prototype,"api",void 0),vo([o.state()],$o.prototype,"facetsLoaded",void 0),e.customElement("ft-search-bar")($o),t.DEFAULT_LABELS=go,t.FtSearchBar=$o,t.FtSearchBarCssVariables=lo,t.LaunchSearchEvent=xo,t.SearchStateChangeEvent=yo,t.facetsCss=co,t.searchBarCss=ao}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -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,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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=a;if(e)return a=void 0,e;const i=n.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),s.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=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(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!==s.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"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.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,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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=a;if(e)return a=void 0,e;const i=n.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),s.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=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(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!==s.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"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ni){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -60,19 +60,19 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/;var k;const S=window,O=S.trustedTypes,E=O?O.emptyScript:"",C=S.reactiveElementPolyfillSupport,z={toAttribute(t,e){switch(e){case Boolean:t=t?E: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),R={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:B};let
|
|
63
|
+
*/;var k;const S=window,O=S.trustedTypes,E=O?O.emptyScript:"",C=S.reactiveElementPolyfillSupport,z={toAttribute(t,e){switch(e){case Boolean:t=t?E: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),R={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:B};let M=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;this.finalize(),(null!==(e=this.h)&&void 0!==e?e: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=R){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),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(w(t))}else void 0!==t&&e.push(w(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 $(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=R){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:z).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:z;this._$El=s,this[s]=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){}};
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var M
|
|
69
|
+
var N;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:M}),(null!==(k=S.reactiveElementVersions)&&void 0!==k?k:S.reactiveElementVersions=[]).push("1.6.1");const F=window,I=F.trustedTypes,L=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,U="?"+j,P=`<${U}>`,A=document,T=()=>A.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,Z=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,q=/>/g,J=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,G=/^(?:script|style|textarea|title)$/i,Q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),tt=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),it=new WeakMap,ot=A.createTreeWalker(A,129,null,!1),st=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=V;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===V?"!--"===a[1]?n=K:void 0!==a[1]?n=q:void 0!==a[2]?(G.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=J):void 0!==a[3]&&(n=J):n===J?">"===a[0]?(n=null!=s?s:V,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?J:'"'===a[3]?Y:X):n===Y||n===X?n=J:n===K||n===q?n=V:(n=J,s=void 0);const p=n===J&&t[e+1].startsWith("/>")?" ":"";r+=n===V?i+P:c>=0?(o.push(l),i.slice(0,c)+D+i.slice(c)+j+p):i+j+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==L?L.createHTML(l):l,o]};class rt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=st(t,e);if(this.el=rt.createElement(a,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ot.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(D)||e.startsWith(j)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+D).split(j),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?ft:ct})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(G.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),ot.nextNode(),l.push({type:2,index:++s});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===U)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)l.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var s,r,n,l;if(e===tt)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=_(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=nt(t,a._$AS(t,e.values),a,o)),e}class lt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);ot.currentNode=s;let r=ot.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new at(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ut(r,this,t)),this._$AV.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=ot.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class at{constructor(t,e,i,o){var s;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),_(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==et&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new lt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new rt(t)),e}T(t){H(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 at(this.k(T()),this.k(T()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ct{constructor(t,e,i,o,s){this.type=1,this._$AH=et,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=et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=nt(this,t,e,0),r=!_(t)||t!==this._$AH&&t!==tt,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=nt(this,o[i+n],e,n),l===tt&&(l=this._$AH[n]),r||(r=!_(l)||l!==this._$AH[n]),l===et?t=et:t!==et&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ht extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const pt=I?I.emptyScript:"";class dt extends ct{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends ct{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=nt(this,t,e,0))&&void 0!==i?i:et)===tt)return;const o=this._$AH,s=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==et&&(o===et||s);s&&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 ut{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){nt(this,t)}}const bt={O:D,P:j,A:U,C:1,M:st,L:lt,D:Z,R:nt,I:at,V:ct,H:dt,N:ft,U:ht,F:ut},vt=F.litHtmlPolyfillSupport;null==vt||vt(rt,at),(null!==(N=F.litHtmlVersions)&&void 0!==N?N:F.litHtmlVersions=[]).push("2.7.3");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
|
-
var gt,xt;let yt=class extends N{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,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new at(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(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 tt}};yt.finalized=!0,yt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:yt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let o=t=>y(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=m`var(${y(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=>m`var(${y(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}}function wt(t,e){return y(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class St extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Ot,Et=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ct=Symbol("constructorPrototype"),zt=Symbol("constructorName"),Bt=Symbol("exportpartsDebouncer");class Rt extends St{constructor(){super(),this[Ot]=new e(5),this[zt]=this.constructor.name,this[Ct]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zt]&&Object.setPrototypeOf(this,this[Ct])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Bt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.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!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ot=Bt,Et([o()],Rt.prototype,"exportpartsPrefix",void 0),Et([f([])],Rt.prototype,"exportpartsPrefixes",void 0),Et([o()],Rt.prototype,"customStylesheet",void 0);const Nt=m`
|
|
75
|
+
var gt,xt;let yt=class extends M{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,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new at(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(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 tt}};yt.finalized=!0,yt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:yt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let o=t=>y(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=m`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=m`var(${y(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=>m`var(${y(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}}function wt(t,e){return y(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class St extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Ot,Et=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ct=Symbol("constructorPrototype"),zt=Symbol("constructorName"),Bt=Symbol("exportpartsDebouncer");class Rt extends St{constructor(){super(),this[Ot]=new e(5),this[zt]=this.constructor.name,this[Ct]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zt]&&Object.setPrototypeOf(this,this[Ct])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Bt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.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!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ot=Bt,Et([o()],Rt.prototype,"exportpartsPrefix",void 0),Et([f([])],Rt.prototype,"exportpartsPrefixes",void 0),Et([o()],Rt.prototype,"customStylesheet",void 0);const Mt=m`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Nt=m`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -148,7 +148,7 @@ var gt,xt;let yt=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
148
148
|
* Copyright 2020 Google LLC
|
|
149
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
150
|
*/
|
|
151
|
-
const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void 0:t._$litStatic$},se=t=>({_$litStatic$:t,r:ie}),re=new Map,ne=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=oe(r));)a+=s+e[++c],h=!0;c!==o&&l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=re.get(t))&&(n.raw=n,re.set(t,e=n)),i=l}return t(e,...i)})(Q);var le;!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"}(le||(le={}));const ae=$t.extend("--ft-typography-font-family",kt.titleFont),ce=$t.extend("--ft-typography-font-family",kt.contentFont),he={fontFamily:ce,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},pe=$t.extend("--ft-typography-title-font-family",ae),de=$t.extend("--ft-typography-title-font-size",he.fontSize,"20px"),fe=$t.extend("--ft-typography-title-font-weight",he.fontWeight,"normal"),ue=$t.extend("--ft-typography-title-letter-spacing",he.letterSpacing,"0.15px"),be=$t.extend("--ft-typography-title-line-height",he.lineHeight,"1.2"),ve=$t.extend("--ft-typography-title-text-transform",he.textTransform,"inherit"),ge=$t.extend("--ft-typography-title-dense-font-family",ae),xe=$t.extend("--ft-typography-title-dense-font-size",he.fontSize,"14px"),ye=$t.extend("--ft-typography-title-dense-font-weight",he.fontWeight,"normal"),me=$t.extend("--ft-typography-title-dense-letter-spacing",he.letterSpacing,"0.105px"),$e=$t.extend("--ft-typography-title-dense-line-height",he.lineHeight,"1.7"),we=$t.extend("--ft-typography-title-dense-text-transform",he.textTransform,"inherit"),ke=$t.extend("--ft-typography-subtitle1-font-family",ce),Se=$t.extend("--ft-typography-subtitle1-font-size",he.fontSize,"16px"),Oe=$t.extend("--ft-typography-subtitle1-font-weight",he.fontWeight,"600"),Ee=$t.extend("--ft-typography-subtitle1-letter-spacing",he.letterSpacing,"0.144px"),Ce=$t.extend("--ft-typography-subtitle1-line-height",he.lineHeight,"1.5"),ze=$t.extend("--ft-typography-subtitle1-text-transform",he.textTransform,"inherit"),Be=$t.extend("--ft-typography-subtitle2-font-family",ce),Re=$t.extend("--ft-typography-subtitle2-font-size",he.fontSize,"14px"),
|
|
151
|
+
const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void 0:t._$litStatic$},se=t=>({_$litStatic$:t,r:ie}),re=new Map,ne=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=oe(r));)a+=s+e[++c],h=!0;c!==o&&l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=re.get(t))&&(n.raw=n,re.set(t,e=n)),i=l}return t(e,...i)})(Q);var le;!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"}(le||(le={}));const ae=$t.extend("--ft-typography-font-family",kt.titleFont),ce=$t.extend("--ft-typography-font-family",kt.contentFont),he={fontFamily:ce,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},pe=$t.extend("--ft-typography-title-font-family",ae),de=$t.extend("--ft-typography-title-font-size",he.fontSize,"20px"),fe=$t.extend("--ft-typography-title-font-weight",he.fontWeight,"normal"),ue=$t.extend("--ft-typography-title-letter-spacing",he.letterSpacing,"0.15px"),be=$t.extend("--ft-typography-title-line-height",he.lineHeight,"1.2"),ve=$t.extend("--ft-typography-title-text-transform",he.textTransform,"inherit"),ge=$t.extend("--ft-typography-title-dense-font-family",ae),xe=$t.extend("--ft-typography-title-dense-font-size",he.fontSize,"14px"),ye=$t.extend("--ft-typography-title-dense-font-weight",he.fontWeight,"normal"),me=$t.extend("--ft-typography-title-dense-letter-spacing",he.letterSpacing,"0.105px"),$e=$t.extend("--ft-typography-title-dense-line-height",he.lineHeight,"1.7"),we=$t.extend("--ft-typography-title-dense-text-transform",he.textTransform,"inherit"),ke=$t.extend("--ft-typography-subtitle1-font-family",ce),Se=$t.extend("--ft-typography-subtitle1-font-size",he.fontSize,"16px"),Oe=$t.extend("--ft-typography-subtitle1-font-weight",he.fontWeight,"600"),Ee=$t.extend("--ft-typography-subtitle1-letter-spacing",he.letterSpacing,"0.144px"),Ce=$t.extend("--ft-typography-subtitle1-line-height",he.lineHeight,"1.5"),ze=$t.extend("--ft-typography-subtitle1-text-transform",he.textTransform,"inherit"),Be=$t.extend("--ft-typography-subtitle2-font-family",ce),Re=$t.extend("--ft-typography-subtitle2-font-size",he.fontSize,"14px"),Me=$t.extend("--ft-typography-subtitle2-font-weight",he.fontWeight,"normal"),Ne=$t.extend("--ft-typography-subtitle2-letter-spacing",he.letterSpacing,"0.098px"),Fe=$t.extend("--ft-typography-subtitle2-line-height",he.lineHeight,"1.7"),Ie=$t.extend("--ft-typography-subtitle2-text-transform",he.textTransform,"inherit"),Le={fontFamily:$t.extend("--ft-typography-body1-font-family",ce),fontSize:$t.extend("--ft-typography-body1-font-size",he.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",he.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",he.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",he.textTransform,"inherit")},De={fontFamily:$t.extend("--ft-typography-body2-font-family",ce),fontSize:$t.extend("--ft-typography-body2-font-size",he.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-body2-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body2-letter-spacing",he.letterSpacing,"0.252px"),lineHeight:$t.extend("--ft-typography-body2-line-height",he.lineHeight,"1.4"),textTransform:$t.extend("--ft-typography-body2-text-transform",he.textTransform,"inherit")},je={fontFamily:$t.extend("--ft-typography-caption-font-family",ce),fontSize:$t.extend("--ft-typography-caption-font-size",he.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",he.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",he.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",he.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",he.textTransform,"inherit")},Ue=$t.extend("--ft-typography-breadcrumb-font-family",ce),Pe=$t.extend("--ft-typography-breadcrumb-font-size",he.fontSize,"10px"),Ae=$t.extend("--ft-typography-breadcrumb-font-weight",he.fontWeight,"normal"),Te=$t.extend("--ft-typography-breadcrumb-letter-spacing",he.letterSpacing,"0.33px"),_e=$t.extend("--ft-typography-breadcrumb-line-height",he.lineHeight,"1.6"),He=$t.extend("--ft-typography-breadcrumb-text-transform",he.textTransform,"inherit"),Ze=$t.extend("--ft-typography-overline-font-family",ce),We=$t.extend("--ft-typography-overline-font-size",he.fontSize,"10px"),Ve=$t.extend("--ft-typography-overline-font-weight",he.fontWeight,"normal"),Ke=$t.extend("--ft-typography-overline-letter-spacing",he.letterSpacing,"1.5px"),qe=$t.extend("--ft-typography-overline-line-height",he.lineHeight,"1.6"),Je=$t.extend("--ft-typography-overline-text-transform",he.textTransform,"uppercase"),Xe={fontFamily:$t.extend("--ft-typography-button-font-family",ce),fontSize:$t.extend("--ft-typography-button-font-size",he.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",he.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",he.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",he.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",he.textTransform,"uppercase")},Ye=m`
|
|
152
152
|
.ft-typography--title {
|
|
153
153
|
font-family: ${pe};
|
|
154
154
|
font-size: ${de};
|
|
@@ -179,8 +179,8 @@ const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void
|
|
|
179
179
|
.ft-typography--subtitle2 {
|
|
180
180
|
font-family: ${Be};
|
|
181
181
|
font-size: ${Re};
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
182
|
+
font-weight: ${Me};
|
|
183
|
+
letter-spacing: ${Ne};
|
|
184
184
|
line-height: ${Fe};
|
|
185
185
|
text-transform: ${Ie};
|
|
186
186
|
}
|
|
@@ -363,7 +363,7 @@ const fi=Tt(class extends _t{constructor(t){var e;if(super(t),t.type!==Pt||"clas
|
|
|
363
363
|
<div class="ft-ripple--background"></div>
|
|
364
364
|
<div class="ft-ripple--effect"></div>
|
|
365
365
|
</div>
|
|
366
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Si.elementDefinitions={},Si.styles=wi,ki([o({type:Boolean})],Si.prototype,"primary",void 0),ki([o({type:Boolean})],Si.prototype,"secondary",void 0),ki([o({type:Boolean})],Si.prototype,"unbounded",void 0),ki([o({type:Boolean})],Si.prototype,"activated",void 0),ki([o({type:Boolean})],Si.prototype,"selected",void 0),ki([o({type:Boolean})],Si.prototype,"disabled",void 0),ki([s()],Si.prototype,"hovered",void 0),ki([s()],Si.prototype,"focused",void 0),ki([s()],Si.prototype,"pressed",void 0),ki([s()],Si.prototype,"rippling",void 0),ki([s()],Si.prototype,"rippleSize",void 0),ki([s()],Si.prototype,"originX",void 0),ki([s()],Si.prototype,"originY",void 0),ki([n(".ft-ripple")],Si.prototype,"ripple",void 0),ki([n(".ft-ripple--effect")],Si.prototype,"rippleEffect",void 0),d("ft-ripple")(Si);const Oi={distance:$t.create("--ft-tooltip-distance","SIZE","4px"),color:$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:$t.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:$t.create("--ft-tooltip-z-index","NUMBER","
|
|
366
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Si.elementDefinitions={},Si.styles=wi,ki([o({type:Boolean})],Si.prototype,"primary",void 0),ki([o({type:Boolean})],Si.prototype,"secondary",void 0),ki([o({type:Boolean})],Si.prototype,"unbounded",void 0),ki([o({type:Boolean})],Si.prototype,"activated",void 0),ki([o({type:Boolean})],Si.prototype,"selected",void 0),ki([o({type:Boolean})],Si.prototype,"disabled",void 0),ki([s()],Si.prototype,"hovered",void 0),ki([s()],Si.prototype,"focused",void 0),ki([s()],Si.prototype,"pressed",void 0),ki([s()],Si.prototype,"rippling",void 0),ki([s()],Si.prototype,"rippleSize",void 0),ki([s()],Si.prototype,"originX",void 0),ki([s()],Si.prototype,"originY",void 0),ki([n(".ft-ripple")],Si.prototype,"ripple",void 0),ki([n(".ft-ripple--effect")],Si.prototype,"rippleEffect",void 0),d("ft-ripple")(Si);const Oi={distance:$t.create("--ft-tooltip-distance","SIZE","4px"),color:$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:$t.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:$t.create("--ft-tooltip-z-index","NUMBER","100"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),maxWidth:$t.create("--ft-tooltip-max-width","SIZE","150px")},Ei=m`
|
|
367
367
|
.ft-tooltip--container {
|
|
368
368
|
display: block;
|
|
369
369
|
}
|
|
@@ -410,7 +410,7 @@ const fi=Tt(class extends _t{constructor(t){var e;if(super(t),t.type!==Pt||"clas
|
|
|
410
410
|
</div>
|
|
411
411
|
</div>
|
|
412
412
|
</div>
|
|
413
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let r=0,n=0;switch(this.validPosition){case"top":n=t.offsetTop-i,r=t.offsetLeft+s;break;case"bottom":n=t.offsetTop+t.offsetHeight,r=t.offsetLeft+s;break;case"left":n=t.offsetTop+o,r=t.offsetLeft-e;break;case"right":n=t.offsetTop+o,r=t.offsetLeft+t.offsetWidth}const l=this.tooltip.style;l.left=this.
|
|
413
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,s=(t.offsetWidth-e)/2;let r=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=r+"px",l.top=n+"px";const a=this.tooltip.getBoundingClientRect();let c=-a.x,h=a.x+a.width-window.innerWidth;l.left=r+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-a.y,d=a.y+a.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(p,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Oi.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}zi.elementDefinitions={"ft-typography":ci},zi.styles=Ei,Ci([o()],zi.prototype,"text",void 0),Ci([o({type:Boolean})],zi.prototype,"manual",void 0),Ci([o({type:Boolean})],zi.prototype,"inline",void 0),Ci([o({type:Number})],zi.prototype,"delay",void 0),Ci([o()],zi.prototype,"position",void 0),Ci([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?c({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],zi.prototype,"slotNodes",void 0),Ci([n(".ft-tooltip--container")],zi.prototype,"container",void 0),Ci([n(".ft-tooltip")],zi.prototype,"tooltip",void 0),Ci([n(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Ci([s()],zi.prototype,"visible",void 0),d("ft-tooltip")(zi);const Bi={color:$t.extend("--ft-loader-color",kt.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Ri=m`
|
|
414
414
|
:host {
|
|
415
415
|
line-height: 0;
|
|
416
416
|
}
|
|
@@ -479,20 +479,20 @@ const fi=Tt(class extends _t{constructor(t){var e;if(super(t),t.type!==Pt||"clas
|
|
|
479
479
|
transform: translate(calc(0.35 * ${Bi.size}), 0);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
`;class
|
|
482
|
+
`;class Mi extends Rt{render(){return Q`
|
|
483
483
|
<div class="ft-loader">
|
|
484
484
|
<div></div>
|
|
485
485
|
<div></div>
|
|
486
486
|
<div></div>
|
|
487
487
|
<div></div>
|
|
488
488
|
</div>
|
|
489
|
-
`}}
|
|
489
|
+
`}}Mi.styles=Ri,d("ft-loader")(Mi);
|
|
490
490
|
/**
|
|
491
491
|
* @license
|
|
492
492
|
* Copyright 2017 Google LLC
|
|
493
493
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
494
494
|
*/
|
|
495
|
-
class
|
|
495
|
+
class Ni extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.ft=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ni.directiveName="unsafeHTML",Ni.resultType=1;const Fi=Tt(Ni);var Ii,Li;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ii||(Ii={})),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=""}(Li||(Li={}));const Di=new Map([...["abw"].map((t=>[t,Li.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,Li.AUDIO])),...["avi"].map((t=>[t,Li.AVI])),...["chm","xhs"].map((t=>[t,Li.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,Li.CODE])),...["csv"].map((t=>[t,Li.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Li.DITA])),...["epub"].map((t=>[t,Li.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Li.EXCEL])),...["flac"].map((t=>[t,Li.FLAC])),...["gif"].map((t=>[t,Li.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Li.GZIP])),...["html","htm","xhtml"].map((t=>[t,Li.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,Li.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Li.JPEG])),...["json"].map((t=>[t,Li.JSON])),...["m4a","m4p"].map((t=>[t,Li.M4A])),...["mov","qt"].map((t=>[t,Li.MOV])),...["mp3"].map((t=>[t,Li.MP3])),...["mp4","m4v"].map((t=>[t,Li.MP4])),...["ogg","oga"].map((t=>[t,Li.OGG])),...["pdf","ps"].map((t=>[t,Li.PDF])),...["png"].map((t=>[t,Li.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Li.POWERPOINT])),...["rar"].map((t=>[t,Li.RAR])),...["stp"].map((t=>[t,Li.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Li.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,Li.VIDEO])),...["wav"].map((t=>[t,Li.WAV])),...["wma"].map((t=>[t,Li.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Li.WORD])),...["xml","xsl","rdf"].map((t=>[t,Li.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Li.YAML])),...["zip"].map((t=>[t,Li.ZIP]))]),ji=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ui={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pi=m`
|
|
496
496
|
:host, i.ft-icon {
|
|
497
497
|
display: inline-flex;
|
|
498
498
|
align-items: center;
|
|
@@ -682,7 +682,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
682
682
|
${wt(Bi.size,Zi.iconSize)};
|
|
683
683
|
${wt(Bi.color,"var(--ft-button-internal-color)")};
|
|
684
684
|
}
|
|
685
|
-
`,
|
|
685
|
+
`,Mt];var Gi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Qi extends Rt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Q`
|
|
686
686
|
<button part="button"
|
|
687
687
|
class="${fi(t)}"
|
|
688
688
|
aria-label="${this.getLabel()}"
|
|
@@ -705,7 +705,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
705
705
|
</ft-tooltip>
|
|
706
706
|
`:t}resolveIcon(){return this.loading?Q`
|
|
707
707
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?Q`
|
|
708
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Qi.elementDefinitions={"ft-ripple":Si,"ft-tooltip":zi,"ft-typography":ci,"ft-icon":_i,"ft-loader":
|
|
708
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Qi.elementDefinitions={"ft-ripple":Si,"ft-tooltip":zi,"ft-typography":ci,"ft-icon":_i,"ft-loader":Mi},Qi.styles=[Ft,Yi],Gi([o({type:String,reflect:!0})],Qi.prototype,"role",void 0),Gi([o({type:Boolean})],Qi.prototype,"primary",void 0),Gi([o({type:Boolean})],Qi.prototype,"outlined",void 0),Gi([o({type:Boolean})],Qi.prototype,"disabled",void 0),Gi([o({type:Boolean})],Qi.prototype,"dense",void 0),Gi([o({type:Boolean})],Qi.prototype,"round",void 0),Gi([o()],Qi.prototype,"label",void 0),Gi([o()],Qi.prototype,"icon",void 0),Gi([o()],Qi.prototype,"iconVariant",void 0),Gi([o({type:Boolean})],Qi.prototype,"trailingIcon",void 0),Gi([o({type:Boolean})],Qi.prototype,"loading",void 0),Gi([o()],Qi.prototype,"tooltipPosition",void 0),Gi([o({type:Boolean})],Qi.prototype,"hideTooltip",void 0),Gi([o({type:Boolean})],Qi.prototype,"forceTooltip",void 0),Gi([n(".ft-button")],Qi.prototype,"button",void 0),Gi([n(".ft-button--label slot")],Qi.prototype,"slottedContent",void 0),d("ft-button")(Qi);const to=$t.extend("--ft-checkbox-text-color",kt.colorOnSurfaceHigh),eo=$t.external(kt.colorPrimary,"Design system"),io=$t.external(kt.colorOnPrimary,"Design system"),oo=$t.extend("--ft-checkbox-border-color",kt.colorOnSurfaceMedium),so=$t.external(kt.colorOnSurfaceDisabled,"Design system"),ro=m`
|
|
709
709
|
* {
|
|
710
710
|
box-sizing: border-box;
|
|
711
711
|
}
|
|
@@ -1200,7 +1200,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1200
1200
|
@click=${this.next}
|
|
1201
1201
|
></ft-button>
|
|
1202
1202
|
</div>
|
|
1203
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Co(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}zo.elementDefinitions={"ft-button":Qi},zo.styles=Oo,Eo([o({type:Boolean})],zo.prototype,"horizontal",void 0),Eo([o({type:Boolean})],zo.prototype,"hideScrollbar",void 0),Eo([o({type:Boolean})],zo.prototype,"controls",void 0),Eo([o({type:Boolean})],zo.prototype,"limitSize",void 0),Eo([s()],zo.prototype,"elements",void 0),Eo([s()],zo.prototype,"currentElement",void 0),Eo([s()],zo.prototype,"withScroll",void 0),Eo([s()],zo.prototype,"startReached",void 0),Eo([s()],zo.prototype,"endReached",void 0),Eo([n(".ft-snap-scroll--content")],zo.prototype,"contentSlot",void 0),d("ft-snap-scroll")(zo);const Bo=$t.external(kt.colorOutline,"Design system"),Ro=$t.external(kt.colorOnSurface,"Design system"),
|
|
1203
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Co(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}zo.elementDefinitions={"ft-button":Qi},zo.styles=Oo,Eo([o({type:Boolean})],zo.prototype,"horizontal",void 0),Eo([o({type:Boolean})],zo.prototype,"hideScrollbar",void 0),Eo([o({type:Boolean})],zo.prototype,"controls",void 0),Eo([o({type:Boolean})],zo.prototype,"limitSize",void 0),Eo([s()],zo.prototype,"elements",void 0),Eo([s()],zo.prototype,"currentElement",void 0),Eo([s()],zo.prototype,"withScroll",void 0),Eo([s()],zo.prototype,"startReached",void 0),Eo([s()],zo.prototype,"endReached",void 0),Eo([n(".ft-snap-scroll--content")],zo.prototype,"contentSlot",void 0),d("ft-snap-scroll")(zo);const Bo=$t.external(kt.colorOutline,"Design system"),Ro=$t.external(kt.colorOnSurface,"Design system"),Mo=$t.external(kt.colorOnSurfaceMedium,"Design system"),No=$t.external(kt.colorPrimary,"Design system"),Fo=$t.external(kt.colorSurface,"Design system"),Io=$t.external(kt.transitionDuration,"Design system"),Lo=$t.external(kt.transitionTimingFunction,"Design system"),Do=[oi,m`
|
|
1204
1204
|
:host {
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
max-height: 100%;
|
|
@@ -1267,11 +1267,11 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1267
1267
|
padding: 4px;
|
|
1268
1268
|
background-color: ${Fo};
|
|
1269
1269
|
color: ${Ro};
|
|
1270
|
-
outline-color: ${
|
|
1270
|
+
outline-color: ${No};
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
1273
|
input::placeholder {
|
|
1274
|
-
color: ${
|
|
1274
|
+
color: ${Mo};
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
input:placeholder-shown {
|
|
@@ -1469,7 +1469,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
1469
1469
|
</div>
|
|
1470
1470
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1471
1471
|
</div>
|
|
1472
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xo.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":_i},Xo.styles=qo,Jo([o()],Xo.prototype,"icon",void 0),Jo([o()],Xo.prototype,"iconVariant",void 0),Jo([o()],Xo.prototype,"label",void 0),Jo([o({type:Boolean,reflect:!0})],Xo.prototype,"active",void 0),d("ft-accordion")(Zo),d("ft-accordion-item")(Xo);const Yo=$t.extend("--ft-chip-color",kt.colorOnSurface),Go={backgroundColor:$t.extend("--ft-chip-background-color",kt.colorSurface),color:Yo,fontSize:$t.extend("--ft-chip-font-size",De.fontSize),iconSize:$t.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:$t.extend("--ft-chip-ripple-color",Yo),horizontalPadding:$t.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:$t.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:$t.external(kt.colorOutline,"Design system"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Qo=$t.extend("--ft-chip-highlighted-color",$t.extend("--ft-chip-color",kt.colorOnPrimary)),ts={backgroundColor:$t.extend("--ft-chip-highlighted-background-color",$t.extend("--ft-chip-background-color",kt.colorPrimary)),color:Qo,rippleColor:$t.extend("--ft-chip-highlighted-ripple-color",Qo)},es=$t.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),is=$t.create("--ft-chip-dense-vertical-padding","SIZE","4px"),os=[
|
|
1472
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Xo.elementDefinitions={"ft-ripple":Si,"ft-typography":ci,"ft-icon":_i},Xo.styles=qo,Jo([o()],Xo.prototype,"icon",void 0),Jo([o()],Xo.prototype,"iconVariant",void 0),Jo([o()],Xo.prototype,"label",void 0),Jo([o({type:Boolean,reflect:!0})],Xo.prototype,"active",void 0),d("ft-accordion")(Zo),d("ft-accordion-item")(Xo);const Yo=$t.extend("--ft-chip-color",kt.colorOnSurface),Go={backgroundColor:$t.extend("--ft-chip-background-color",kt.colorSurface),color:Yo,fontSize:$t.extend("--ft-chip-font-size",De.fontSize),iconSize:$t.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:$t.extend("--ft-chip-ripple-color",Yo),horizontalPadding:$t.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:$t.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:$t.external(kt.colorOutline,"Design system"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Qo=$t.extend("--ft-chip-highlighted-color",$t.extend("--ft-chip-color",kt.colorOnPrimary)),ts={backgroundColor:$t.extend("--ft-chip-highlighted-background-color",$t.extend("--ft-chip-background-color",kt.colorPrimary)),color:Qo,rippleColor:$t.extend("--ft-chip-highlighted-ripple-color",Qo)},es=$t.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),is=$t.create("--ft-chip-dense-vertical-padding","SIZE","4px"),os=[Mt,m`
|
|
1473
1473
|
:host {
|
|
1474
1474
|
display: inline-block;
|
|
1475
1475
|
max-width: 100%;
|
|
@@ -2377,7 +2377,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2377
2377
|
</div>
|
|
2378
2378
|
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,i,o,s,r,n;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(r=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var i,o;t.preventDefault(),t.stopPropagation();let s=t.target.closest(".ft-search-bar--suggestion");const r=null!==(o=null!==(i=null==s?void 0:s.previousElementSibling)&&void 0!==i?i:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:this.searchBar.input;null==r||r.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?Ai.file_format:Ai.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Ii.BOOK:Ii.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,o,s,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,l]=((null!==(i=ji.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(s=null!==(o=Di.get(l))&&void 0!==o?o:Di.get(e))&&void 0!==s?s:Di.get(n))&&void 0!==r?r:Li.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Ii.TOPICS}return Q`
|
|
2379
2379
|
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
2380
|
-
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}ws.styles=[
|
|
2380
|
+
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}ws.styles=[Nt,m`
|
|
2381
2381
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2382
2382
|
flex-grow: 1;
|
|
2383
2383
|
flex-shrink: 1;
|
|
@@ -2649,7 +2649,7 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2649
2649
|
</div>
|
|
2650
2650
|
`}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}Os.styles=m`
|
|
2651
2651
|
|
|
2652
|
-
`;var Es=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Cs={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"};class zs extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Bs extends CustomEvent{constructor(t){super("change",{detail:t})}}const Rs=()=>{};class
|
|
2652
|
+
`;var Es=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Cs={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"};class zs extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Bs extends CustomEvent{constructor(t){super("change",{detail:t})}}const Rs=()=>{};class Ms extends Rt{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new It(Cs,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=Yt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.suggestManager=new ws(this),this.selectedFacetsManager=new ks(this),this.desktopSearchBarManager=new Os(this),this.mobileSearchBarManager=new Ss(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new e(10),this.updateLocalesDebouncer=new e(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new e(500),this.closeFloatingContainer=t=>{this.isMobile()||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>t.values.length>0&&!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Yt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return Q`
|
|
2653
2653
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2654
2654
|
${this.renderSearchBar()}
|
|
2655
2655
|
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():Q`
|
|
@@ -2792,4 +2792,4 @@ class Mi extends _t{constructor(t){if(super(t),this.et=et,t.type!==At)throw Erro
|
|
|
2792
2792
|
part="floating-panel"
|
|
2793
2793
|
tabindex="-1">
|
|
2794
2794
|
${this.renderDesktopMenu()}
|
|
2795
|
-
</div>`}}
|
|
2795
|
+
</div>`}}Ms.elementDefinitions={"ft-accordion":Zo,"ft-accordion-item":Xo,"ft-button":Qi,"ft-chip":ns,"ft-filter":Po,"ft-filter-option":To,"ft-icon":_i,"ft-ripple":Si,"ft-select":bs,"ft-select-option":us,"ft-size-watcher":ee,"ft-skeleton":$s,"ft-snap-scroll":zo,"ft-tooltip":zi,"ft-typography":ci,"ft-radio-group":yo,"ft-radio":vo},Ms.styles=[ii,ys,ms,ks.styles,ws.styles],Es([o({type:Boolean})],Ms.prototype,"dense",void 0),Es([o()],Ms.prototype,"mode",void 0),Es([o({type:Boolean})],Ms.prototype,"forceMobileMenuOpen",void 0),Es([o({type:Boolean})],Ms.prototype,"forceMenuOpen",void 0),Es([o()],Ms.prototype,"baseUrl",void 0),Es([o()],Ms.prototype,"apiIntegrationIdentifier",void 0),Es([o()],Ms.prototype,"contentLocale",void 0),Es([s()],Ms.prototype,"availableContentLocales",void 0),Es([s()],Ms.prototype,"availableContentLocalesInitialized",void 0),Es([o()],Ms.prototype,"uiLocale",void 0),Es([f({})],Ms.prototype,"labels",void 0),Es([f([])],Ms.prototype,"displayedFilters",void 0),Es([f([])],Ms.prototype,"presets",void 0),Es([o({type:String,reflect:!0})],Ms.prototype,"selectedPreset",void 0),Es([f([])],Ms.prototype,"priors",void 0),Es([o()],Ms.prototype,"searchRequestSerializer",void 0),Es([s()],Ms.prototype,"searchFilters",void 0),Es([s()],Ms.prototype,"sizeCategory",void 0),Es([s()],Ms.prototype,"displayFacets",void 0),Es([s()],Ms.prototype,"mobileMenuOpen",void 0),Es([s()],Ms.prototype,"facets",void 0),Es([s()],Ms.prototype,"facetsInitialized",void 0),Es([n(".ft-search-bar--container")],Ms.prototype,"container",void 0),Es([n(".ft-search-bar--filters-opener")],Ms.prototype,"filtersOpener",void 0),Es([n(".ft-search-bar--floating-panel")],Ms.prototype,"floatingContainer",void 0),Es([n("ft-snap-scroll.ft-search-bar--filters-container")],Ms.prototype,"scrollingFiltersContainer",void 0),Es([n(".ft-search-bar--input")],Ms.prototype,"input",void 0),Es([s()],Ms.prototype,"query",void 0),Es([s()],Ms.prototype,"suggestions",void 0),Es([s()],Ms.prototype,"recentSearches",void 0),Es([s()],Ms.prototype,"scrollToFacet",void 0),Es([s()],Ms.prototype,"api",void 0),Es([s()],Ms.prototype,"facetsLoaded",void 0),d("ft-search-bar")(Ms),t.DEFAULT_LABELS=Cs,t.FtSearchBar=Ms,t.FtSearchBarCssVariables=xs,t.LaunchSearchEvent=zs,t.SearchStateChangeEvent=Bs,t.facetsCss=ms,t.searchBarCss=ys}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "1.0.
|
|
23
|
-
"@fluid-topics/ft-button": "1.0.
|
|
24
|
-
"@fluid-topics/ft-chip": "1.0.
|
|
25
|
-
"@fluid-topics/ft-filter": "1.0.
|
|
26
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
27
|
-
"@fluid-topics/ft-select": "1.0.
|
|
28
|
-
"@fluid-topics/ft-size-watcher": "1.0.
|
|
29
|
-
"@fluid-topics/ft-skeleton": "1.0.
|
|
30
|
-
"@fluid-topics/ft-snap-scroll": "1.0.
|
|
31
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
32
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-accordion": "1.0.54",
|
|
23
|
+
"@fluid-topics/ft-button": "1.0.54",
|
|
24
|
+
"@fluid-topics/ft-chip": "1.0.54",
|
|
25
|
+
"@fluid-topics/ft-filter": "1.0.54",
|
|
26
|
+
"@fluid-topics/ft-icon": "1.0.54",
|
|
27
|
+
"@fluid-topics/ft-select": "1.0.54",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "1.0.54",
|
|
29
|
+
"@fluid-topics/ft-skeleton": "1.0.54",
|
|
30
|
+
"@fluid-topics/ft-snap-scroll": "1.0.54",
|
|
31
|
+
"@fluid-topics/ft-tooltip": "1.0.54",
|
|
32
|
+
"@fluid-topics/ft-typography": "1.0.54",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "1.0.54",
|
|
34
34
|
"lit": "2.7.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@fluid-topics/public-api": "1.0.
|
|
37
|
+
"@fluid-topics/public-api": "1.0.44"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "d1045741e4bd9965f6a8319b4df0534b7eec46ba"
|
|
40
40
|
}
|