@fluid-topics/ft-search-selected-facets 1.0.12 → 1.0.14

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.
@@ -7,7 +7,11 @@ export declare class FtSearchSelectedFacets extends FtSearchComponent implements
7
7
  static elementDefinitions: ElementDefinitionsMap;
8
8
  static styles: import("lit").CSSResult;
9
9
  facets?: Array<FtSearchFacet>;
10
- protected render(): typeof nothing | import("lit-html").TemplateResult<1>;
10
+ editorMode: boolean;
11
+ constructor();
12
+ protected render(): import("lit-html").TemplateResult<1> | typeof nothing;
13
+ private renderDummyFacet;
14
+ private renderFacet;
11
15
  private getSelectedValues;
12
16
  private getLabelFromValue;
13
17
  private getBreadcrumbFromValue;
@@ -11,8 +11,17 @@ import { styles } from "./ft-search-selected-facets.css";
11
11
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
12
12
  import { FtChip } from "@fluid-topics/ft-chip";
13
13
  import { FtTooltip } from "@fluid-topics/ft-tooltip";
14
+ import { ftAppInfoStore } from "@fluid-topics/ft-app-context";
14
15
  class FtSearchSelectedFacets extends FtSearchComponent {
16
+ constructor() {
17
+ super();
18
+ this.editorMode = false;
19
+ this.addStore(ftAppInfoStore);
20
+ }
15
21
  render() {
22
+ if (this.editorMode) {
23
+ return this.renderDummyFacet();
24
+ }
16
25
  if (this.facets == null || this.facets.length === 0) {
17
26
  return nothing;
18
27
  }
@@ -21,28 +30,38 @@ class FtSearchSelectedFacets extends FtSearchComponent {
21
30
  <div class="ft-search-selected-facets--container">
22
31
  ${repeat(this.facets, facet => facet.key, facet => {
23
32
  const values = this.getSelectedValues(facet);
24
- return repeat(values, value => facet.key + "-" + value, value => {
25
- let label = facet.label + ": " + this.getBreadcrumbFromValue(value);
26
- const keyWithNoColumn = facet.key.replace(":", "-");
27
- return html `
28
- <ft-tooltip inline text="${label}"
29
- part="tooltips tooltip-${keyWithNoColumn}">
30
- <ft-chip
31
- part="ft-search-selected-facets ft-search-selected-facet-${keyWithNoColumn}"
32
- removable
33
- label="${label}"
34
- @icon-click=${() => { var _a; return (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.setFilter(facet.key, values.filter(v => v !== value)); }}
35
- data-key="${facet.key}"
36
- data-value="${value}">
37
- ${this.getLabelFromValue(value)}
38
- </ft-chip>
39
- </ft-tooltip>
40
- `;
41
- });
33
+ return repeat(values, value => facet.key + "-" + value, value => this.renderFacet(facet.key, facet.label, values, value));
42
34
  })}
43
35
  </div>
44
36
  `;
45
37
  }
38
+ renderDummyFacet() {
39
+ return html `
40
+
41
+ <div class="ft-search-selected-facets--container">
42
+ ${[this.renderFacet("placeholder", "placeholder", ["value1", "value2", "value3"], "value1"),
43
+ this.renderFacet("placeholder", "placeholder", ["value1", "value2", "value3"], "value2"),
44
+ this.renderFacet("placeholder", "placeholder", ["value1", "value2", "value3"], "value3")]}
45
+ </div>`;
46
+ }
47
+ renderFacet(facetKey, facetLabel, selectedValues, value) {
48
+ let label = facetLabel + ": " + this.getBreadcrumbFromValue(value);
49
+ const keyWithNoColumn = facetKey.replace(":", "-");
50
+ return html `
51
+ <ft-tooltip inline text="${label}"
52
+ part="tooltips tooltip-${keyWithNoColumn}">
53
+ <ft-chip
54
+ part="ft-search-selected-facets ft-search-selected-facet-${keyWithNoColumn}"
55
+ removable
56
+ label="${label}"
57
+ @icon-click=${() => { var _a; return (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.setFilter(facetKey, selectedValues.filter(v => v !== value)); }}
58
+ data-key="${facetKey}"
59
+ data-value="${value}">
60
+ ${this.getLabelFromValue(value)}
61
+ </ft-chip>
62
+ </ft-tooltip>
63
+ `;
64
+ }
46
65
  getSelectedValues(facet) {
47
66
  return flatDeep(facet.rootNodes, n => n.selected ? [] : n.childNodes)
48
67
  .filter(n => n.selected)
@@ -70,6 +89,9 @@ FtSearchSelectedFacets.elementDefinitions = {
70
89
  };
71
90
  FtSearchSelectedFacets.styles = styles;
72
91
  __decorate([
73
- redux()
92
+ redux({ store: "search" })
74
93
  ], FtSearchSelectedFacets.prototype, "facets", void 0);
94
+ __decorate([
95
+ redux({ store: ftAppInfoStore.name })
96
+ ], FtSearchSelectedFacets.prototype, "editorMode", void 0);
75
97
  export { FtSearchSelectedFacets };
@@ -114,13 +114,13 @@
114
114
  <div class="ft-ripple--background"></div>
115
115
  <div class="ft-ripple--effect"></div>
116
116
  </div>
117
- `}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}U.elementDefinitions={},U.styles=E,N([n.property({type:Boolean})],U.prototype,"primary",void 0),N([n.property({type:Boolean})],U.prototype,"secondary",void 0),N([n.property({type:Boolean})],U.prototype,"unbounded",void 0),N([n.property({type:Boolean})],U.prototype,"activated",void 0),N([n.property({type:Boolean})],U.prototype,"selected",void 0),N([n.property({type:Boolean})],U.prototype,"disabled",void 0),N([n.state()],U.prototype,"hovered",void 0),N([n.state()],U.prototype,"focused",void 0),N([n.state()],U.prototype,"pressed",void 0),N([n.state()],U.prototype,"rippling",void 0),N([n.state()],U.prototype,"rippleSize",void 0),N([n.state()],U.prototype,"originX",void 0),N([n.state()],U.prototype,"originY",void 0),N([n.query(".ft-ripple")],U.prototype,"ripple",void 0),N([n.query(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(U);const A=window,T=A.trustedTypes,M=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,L="?"+F,_=`<${L}>`,R=document,P=()=>R.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,K="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,V=/>/g,q=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,J=/^(?:script|style|textarea|title)$/i,Q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),tt=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),et=new WeakMap,ot=R.createTreeWalker(R,129,null,!1),nt=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=H;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===H?"!--"===l[1]?r=G:void 0!==l[1]?r=V:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=q):void 0!==l[3]&&(r=q):r===q?">"===l[0]?(r=null!=n?n:H,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?q:'"'===l[3]?Y:X):r===Y||r===X?r=q:r===G||r===V?r=H:(r=q,n=void 0);const c=r===q&&t[i+1].startsWith("/>")?" ":"";s+=r===H?e+_:h>=0?(o.push(a),e.slice(0,h)+Z+e.slice(h)+F+c):e+F+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class st{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=nt(t,i);if(this.el=st.createElement(l,e),ot.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=ot.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(Z)||i.startsWith(F)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+Z).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?pt:"?"===i[1]?ft:"@"===i[1]?dt:ht})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],P()),ot.nextNode(),a.push({type:2,index:++n});o.append(t[i],P())}}}else if(8===o.nodeType)if(o.data===L)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=R.createElement("template");return e.innerHTML=t,e}}function rt(t,i,e=t,o){var n,s,r,a;if(i===tt)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=D(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=rt(t,l._$AS(t,i.values),l,o)),i}class at{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:R).importNode(e,!0);ot.currentNode=n;let s=ot.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new lt(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new ut(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=ot.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class lt{constructor(t,i,e,o){var n;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=rt(this,t,i),D(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>W(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!==it&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=st.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new at(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=et.get(t.strings);return void 0===i&&et.set(t.strings,i=new st(t)),i}T(t){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new lt(this.k(P()),this.k(P()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ht{constructor(t,i,e,o,n){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=rt(this,t,i,0),s=!D(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=rt(this,o[e+r],i,r),a===tt&&(a=this._$AH[r]),s||(s=!D(a)||a!==this._$AH[r]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}}const ct=T?T.emptyScript:"";class ft extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends ht{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=rt(this,t,i,0))&&void 0!==e?e:it)===tt)return;const o=this._$AH,n=t===it&&o!==it||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==it&&(o===it||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ut{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}}const gt=A.litHtmlPolyfillSupport;null==gt||gt(st,lt),(null!==(B=A.litHtmlVersions)&&void 0!==B?B:A.litHtmlVersions=[]).push("2.7.3");
117
+ `}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}U.elementDefinitions={},U.styles=E,N([n.property({type:Boolean})],U.prototype,"primary",void 0),N([n.property({type:Boolean})],U.prototype,"secondary",void 0),N([n.property({type:Boolean})],U.prototype,"unbounded",void 0),N([n.property({type:Boolean})],U.prototype,"activated",void 0),N([n.property({type:Boolean})],U.prototype,"selected",void 0),N([n.property({type:Boolean})],U.prototype,"disabled",void 0),N([n.state()],U.prototype,"hovered",void 0),N([n.state()],U.prototype,"focused",void 0),N([n.state()],U.prototype,"pressed",void 0),N([n.state()],U.prototype,"rippling",void 0),N([n.state()],U.prototype,"rippleSize",void 0),N([n.state()],U.prototype,"originX",void 0),N([n.state()],U.prototype,"originY",void 0),N([n.query(".ft-ripple")],U.prototype,"ripple",void 0),N([n.query(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(U);const A=window,T=A.trustedTypes,M=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,L="?"+Z,_=`<${L}>`,R=document,D=()=>R.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,K="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,V=/>/g,q=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,J=/^(?:script|style|textarea|title)$/i,Q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),tt=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),et=new WeakMap,ot=R.createTreeWalker(R,129,null,!1),nt=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=H;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===H?"!--"===l[1]?r=G:void 0!==l[1]?r=V:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=q):void 0!==l[3]&&(r=q):r===q?">"===l[0]?(r=null!=n?n:H,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?q:'"'===l[3]?Y:X):r===Y||r===X?r=q:r===G||r===V?r=H:(r=q,n=void 0);const c=r===q&&t[i+1].startsWith("/>")?" ":"";s+=r===H?e+_:h>=0?(o.push(a),e.slice(0,h)+F+e.slice(h)+Z+c):e+Z+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class st{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=nt(t,i);if(this.el=st.createElement(l,e),ot.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=ot.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(F)||i.startsWith(Z)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+F).split(Z),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?pt:"?"===i[1]?ft:"@"===i[1]?dt:ht})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(Z),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],D()),ot.nextNode(),a.push({type:2,index:++n});o.append(t[i],D())}}}else if(8===o.nodeType)if(o.data===L)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(Z,t+1));)a.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,i){const e=R.createElement("template");return e.innerHTML=t,e}}function rt(t,i,e=t,o){var n,s,r,a;if(i===tt)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=P(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=rt(t,l._$AS(t,i.values),l,o)),i}class at{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:R).importNode(e,!0);ot.currentNode=n;let s=ot.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new lt(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new ut(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=ot.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class lt{constructor(t,i,e,o){var n;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=rt(this,t,i),P(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>W(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!==it&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=st.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new at(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=et.get(t.strings);return void 0===i&&et.set(t.strings,i=new st(t)),i}T(t){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new lt(this.k(D()),this.k(D()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ht{constructor(t,i,e,o,n){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=rt(this,t,i,0),s=!P(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=rt(this,o[e+r],i,r),a===tt&&(a=this._$AH[r]),s||(s=!P(a)||a!==this._$AH[r]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}}const ct=T?T.emptyScript:"";class ft extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends ht{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=rt(this,t,i,0))&&void 0!==e?e:it)===tt)return;const o=this._$AH,n=t===it&&o!==it||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==it&&(o===it||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ut{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}}const gt=A.litHtmlPolyfillSupport;null==gt||gt(st,lt),(null!==(B=A.litHtmlVersions)&&void 0!==B?B:A.litHtmlVersions=[]).push("2.7.3");
118
118
  /**
119
119
  * @license
120
120
  * Copyright 2020 Google LLC
121
121
  * SPDX-License-Identifier: BSD-3-Clause
122
122
  */
123
- const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void 0:t._$litStatic$},bt=t=>({_$litStatic$:t,r:vt}),yt=new Map,mt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=xt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=yt.get(t))&&(r.raw=r,yt.set(t,i=r)),e=a}return t(i,...e)})(Q);var $t;!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"}($t||($t={}));const wt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),kt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),zt={fontFamily:kt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},St=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",wt),Ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),It=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",wt),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",kt),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",kt),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",kt),Xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),ii={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",kt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit")},ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",kt),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit"),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",kt),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",kt),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),vi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",zt.lineHeight,"1.6"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),mi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",kt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",zt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase")},$i=e.css`
123
+ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void 0:t._$litStatic$},bt=t=>({_$litStatic$:t,r:vt}),yt=new Map,mt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=xt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=yt.get(t))&&(r.raw=r,yt.set(t,i=r)),e=a}return t(i,...e)})(Q);var $t;!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"}($t||($t={}));const wt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),kt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),zt={fontFamily:kt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},St=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",wt),Ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),It=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",wt),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",kt),Zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",kt),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",kt),Xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),ii={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",kt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit")},ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",kt),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit"),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",kt),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",kt),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),vi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",zt.lineHeight,"1.6"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),mi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",kt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",zt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase")},$i=e.css`
124
124
  .ft-typography--title {
125
125
  font-family: ${St};
126
126
  font-size: ${Ct};
@@ -140,16 +140,16 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
140
140
  }
141
141
  `,ki=e.css`
142
142
  .ft-typography--subtitle1 {
143
- font-family: ${Zt};
144
- font-size: ${Ft};
143
+ font-family: ${Ft};
144
+ font-size: ${Zt};
145
145
  font-weight: ${Lt};
146
146
  letter-spacing: ${_t};
147
147
  line-height: ${Rt};
148
- text-transform: ${Pt};
148
+ text-transform: ${Dt};
149
149
  }
150
150
  `,zi=e.css`
151
151
  .ft-typography--subtitle2 {
152
- font-family: ${Dt};
152
+ font-family: ${Pt};
153
153
  font-size: ${Wt};
154
154
  font-weight: ${Kt};
155
155
  letter-spacing: ${Ht};
@@ -222,7 +222,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
222
222
  </${bt(this.element)}>
223
223
  `:mt`
224
224
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
225
- `}}Ti.styles=[$i,wi,ki,zi,Si,Ci,Ii,Oi,ji,Ei,Bi],Ai([n.property()],Ti.prototype,"element",void 0),Ai([n.property()],Ti.prototype,"variant",void 0),i.customElement("ft-typography")(Ti),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(Ni||(Ni={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ui||(Ui={})),new Map([...["abw"].map((t=>[t,Ui.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,Ui.AUDIO])),...["avi"].map((t=>[t,Ui.AVI])),...["chm","xhs"].map((t=>[t,Ui.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,Ui.CODE])),...["csv"].map((t=>[t,Ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ui.DITA])),...["epub"].map((t=>[t,Ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ui.EXCEL])),...["flac"].map((t=>[t,Ui.FLAC])),...["gif"].map((t=>[t,Ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ui.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,Ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ui.JPEG])),...["json"].map((t=>[t,Ui.JSON])),...["m4a","m4p"].map((t=>[t,Ui.M4A])),...["mov","qt"].map((t=>[t,Ui.MOV])),...["mp3"].map((t=>[t,Ui.MP3])),...["mp4","m4v"].map((t=>[t,Ui.MP4])),...["ogg","oga"].map((t=>[t,Ui.OGG])),...["pdf","ps"].map((t=>[t,Ui.PDF])),...["png"].map((t=>[t,Ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ui.POWERPOINT])),...["rar"].map((t=>[t,Ui.RAR])),...["stp"].map((t=>[t,Ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ui.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,Ui.VIDEO])),...["wav"].map((t=>[t,Ui.WAV])),...["wma"].map((t=>[t,Ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ui.YAML])),...["zip"].map((t=>[t,Ui.ZIP]))]);const Mi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Zi=e.css`
225
+ `}}Ti.styles=[$i,wi,ki,zi,Si,Ci,Ii,Oi,ji,Ei,Bi],Ai([n.property()],Ti.prototype,"element",void 0),Ai([n.property()],Ti.prototype,"variant",void 0),i.customElement("ft-typography")(Ti),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(Ni||(Ni={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ui||(Ui={})),new Map([...["abw"].map((t=>[t,Ui.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,Ui.AUDIO])),...["avi"].map((t=>[t,Ui.AVI])),...["chm","xhs"].map((t=>[t,Ui.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,Ui.CODE])),...["csv"].map((t=>[t,Ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ui.DITA])),...["epub"].map((t=>[t,Ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ui.EXCEL])),...["flac"].map((t=>[t,Ui.FLAC])),...["gif"].map((t=>[t,Ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ui.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,Ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ui.JPEG])),...["json"].map((t=>[t,Ui.JSON])),...["m4a","m4p"].map((t=>[t,Ui.M4A])),...["mov","qt"].map((t=>[t,Ui.MOV])),...["mp3"].map((t=>[t,Ui.MP3])),...["mp4","m4v"].map((t=>[t,Ui.MP4])),...["ogg","oga"].map((t=>[t,Ui.OGG])),...["pdf","ps"].map((t=>[t,Ui.PDF])),...["png"].map((t=>[t,Ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ui.POWERPOINT])),...["rar"].map((t=>[t,Ui.RAR])),...["stp"].map((t=>[t,Ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ui.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,Ui.VIDEO])),...["wav"].map((t=>[t,Ui.WAV])),...["wma"].map((t=>[t,Ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ui.YAML])),...["zip"].map((t=>[t,Ui.ZIP]))]);const Mi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Fi=e.css`
226
226
  :host, i.ft-icon {
227
227
  display: inline-flex;
228
228
  align-items: center;
@@ -270,12 +270,12 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
270
270
  .ft-icon--material {
271
271
  font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
272
272
  }
273
- `;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Li=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _i extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Fi).includes(this.variant)?this.variant:Fi.fluid_topics,i=t!==Fi.material||!!this.value;return e.html`
273
+ `;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Li=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _i extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Zi).includes(this.variant)?this.variant:Zi.fluid_topics,i=t!==Zi.material||!!this.value;return e.html`
274
274
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
275
275
  ${r.unsafeHTML(this.resolvedIcon)}
276
276
  <slot ?hidden=${i}></slot>
277
277
  </i>
278
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ui[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ni[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_i.elementDefinitions={},_i.styles=Zi,Li([n.property()],_i.prototype,"variant",void 0),Li([n.property()],_i.prototype,"value",void 0),Li([n.state()],_i.prototype,"resolvedIcon",void 0),Li([n.query("slot")],_i.prototype,"slottedContent",void 0),i.customElement("ft-icon")(_i);const Ri=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Pi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Di=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Wi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Hi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Gi=e.css`
278
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Zi.file_format:this.resolvedIcon=null!==(t=Ui[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Zi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ni[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_i.elementDefinitions={},_i.styles=Fi,Li([n.property()],_i.prototype,"variant",void 0),Li([n.property()],_i.prototype,"value",void 0),Li([n.state()],_i.prototype,"resolvedIcon",void 0),Li([n.query("slot")],_i.prototype,"slottedContent",void 0),i.customElement("ft-icon")(_i);const Ri=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Di=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Pi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Wi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Hi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Gi=e.css`
279
279
  .ft-tooltip--container {
280
280
  display: block;
281
281
  position: relative;
@@ -300,8 +300,8 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
300
300
  .ft-tooltip--content {
301
301
  padding: 4px 8px;
302
302
  border-radius: ${Ki};
303
- background-color: ${Di};
304
- color: ${Pi};
303
+ background-color: ${Pi};
304
+ color: ${Di};
305
305
  top: -500px;
306
306
  left: -500px;
307
307
  position: relative;
@@ -721,22 +721,26 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
721
721
  <div class="ft-chip--icon-container ft-no-text-select">
722
722
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
723
723
  </div>
724
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new be))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new be))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ye.elementDefinitions={"ft-ripple":U,"ft-typography":Ti,"ft-icon":_i,"ft-button":he},ye.styles=ve,xe([n.property({type:Boolean})],ye.prototype,"highlighted",void 0),xe([n.property({type:Boolean})],ye.prototype,"removable",void 0),xe([n.property({type:Boolean})],ye.prototype,"disabled",void 0),xe([n.property({type:Boolean})],ye.prototype,"clickable",void 0),xe([n.property({type:Boolean})],ye.prototype,"iconClickable",void 0),xe([n.property({type:Boolean})],ye.prototype,"dense",void 0),xe([n.property({type:Boolean})],ye.prototype,"multiLine",void 0),xe([n.property()],ye.prototype,"label",void 0),xe([n.property()],ye.prototype,"iconLabel",void 0),xe([n.property()],ye.prototype,"icon",void 0),xe([n.property()],ye.prototype,"iconVariant",void 0),xe([n.property({type:Boolean})],ye.prototype,"trailingIcon",void 0),xe([n.query("ft-typography slot")],ye.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ye);var me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class $e extends ${render(){return null==this.facets||0===this.facets.length?e.nothing:e.html`
724
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new be))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new be))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ye.elementDefinitions={"ft-ripple":U,"ft-typography":Ti,"ft-icon":_i,"ft-button":he},ye.styles=ve,xe([n.property({type:Boolean})],ye.prototype,"highlighted",void 0),xe([n.property({type:Boolean})],ye.prototype,"removable",void 0),xe([n.property({type:Boolean})],ye.prototype,"disabled",void 0),xe([n.property({type:Boolean})],ye.prototype,"clickable",void 0),xe([n.property({type:Boolean})],ye.prototype,"iconClickable",void 0),xe([n.property({type:Boolean})],ye.prototype,"dense",void 0),xe([n.property({type:Boolean})],ye.prototype,"multiLine",void 0),xe([n.property()],ye.prototype,"label",void 0),xe([n.property()],ye.prototype,"iconLabel",void 0),xe([n.property()],ye.prototype,"icon",void 0),xe([n.property()],ye.prototype,"iconVariant",void 0),xe([n.property({type:Boolean})],ye.prototype,"trailingIcon",void 0),xe([n.query("ft-typography slot")],ye.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ye);var me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class $e extends ${constructor(){super(),this.editorMode=!1,this.addStore(p)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?e.nothing:e.html`
725
725
 
726
726
  <div class="ft-search-selected-facets--container">
727
- ${o.repeat(this.facets,(t=>t.key),(t=>{const i=this.getSelectedValues(t);return o.repeat(i,(i=>t.key+"-"+i),(o=>{let n=t.label+": "+this.getBreadcrumbFromValue(o);const s=t.key.replace(":","-");return e.html`
728
- <ft-tooltip inline text="${n}"
729
- part="tooltips tooltip-${s}">
730
- <ft-chip
731
- part="ft-search-selected-facets ft-search-selected-facet-${s}"
732
- removable
733
- label="${n}"
734
- @icon-click=${()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setFilter(t.key,i.filter((t=>t!==o)))}}
735
- data-key="${t.key}"
736
- data-value="${o}">
737
- ${this.getLabelFromValue(o)}
738
- </ft-chip>
739
- </ft-tooltip>
740
- `}))}))}
727
+ ${o.repeat(this.facets,(t=>t.key),(t=>{const i=this.getSelectedValues(t);return o.repeat(i,(i=>t.key+"-"+i),(e=>this.renderFacet(t.key,t.label,i,e)))}))}
741
728
  </div>
742
- `}getSelectedValues(t){return i.flatDeep(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}$e.elementDefinitions={"ft-chip":ye,"ft-tooltip":qi},$e.styles=l,me([i.redux()],$e.prototype,"facets",void 0),i.customElement("ft-search-selected-facets")($e),t.FtSearchSelectedFacets=$e,t.FtSearchSelectedFacetsCssVariables=a,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
729
+ `}renderDummyFacet(){return e.html`
730
+
731
+ <div class="ft-search-selected-facets--container">
732
+ ${[this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value1"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value2"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value3")]}
733
+ </div>`}renderFacet(t,i,o,n){let s=i+": "+this.getBreadcrumbFromValue(n);const r=t.replace(":","-");return e.html`
734
+ <ft-tooltip inline text="${s}"
735
+ part="tooltips tooltip-${r}">
736
+ <ft-chip
737
+ part="ft-search-selected-facets ft-search-selected-facet-${r}"
738
+ removable
739
+ label="${s}"
740
+ @icon-click=${()=>{var i;return null===(i=this.stateManager)||void 0===i?void 0:i.setFilter(t,o.filter((t=>t!==n)))}}
741
+ data-key="${t}"
742
+ data-value="${n}">
743
+ ${this.getLabelFromValue(n)}
744
+ </ft-chip>
745
+ </ft-tooltip>
746
+ `}getSelectedValues(t){return i.flatDeep(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}$e.elementDefinitions={"ft-chip":ye,"ft-tooltip":qi},$e.styles=l,me([i.redux({store:"search"})],$e.prototype,"facets",void 0),me([i.redux({store:p.name})],$e.prototype,"editorMode",void 0),i.customElement("ft-search-selected-facets")($e),t.FtSearchSelectedFacets=$e,t.FtSearchSelectedFacetsCssVariables=a,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);