@fluid-topics/ft-text-field 1.0.57 → 1.0.59

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.
@@ -2,7 +2,8 @@ import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtTextFieldProperties } from "./ft-text-field.properties";
4
4
  import type { FtTextFieldSuggestion } from "./ft-text-field-suggestion";
5
- export declare class FtTextField extends FtLitElement implements FtTextFieldProperties {
5
+ declare const FtTextField_base: import("@fluid-topics/ft-wc-utils").FtFormComponentType<typeof FtLitElement>;
6
+ export declare class FtTextField extends FtTextField_base implements FtTextFieldProperties {
6
7
  static elementDefinitions: ElementDefinitionsMap;
7
8
  static styles: import("lit").CSSResult[];
8
9
  label?: string;
@@ -48,3 +49,4 @@ export declare class FtTextField extends FtLitElement implements FtTextFieldProp
48
49
  private onMainPanelBlur;
49
50
  private togglePasswordVisibility;
50
51
  }
52
+ export {};
@@ -8,13 +8,13 @@ import { html, nothing } from "lit";
8
8
  import { property, query, queryAssignedElements, state } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { ifDefined } from "lit/directives/if-defined.js";
11
- import { FtLitElement } from "@fluid-topics/ft-wc-utils";
11
+ import { FtLitElement, toFtFormComponent } from "@fluid-topics/ft-wc-utils";
12
12
  import { FtTypography, FtTypographyBody1 } from "@fluid-topics/ft-typography";
13
13
  import { FtInputLabel } from "@fluid-topics/ft-input-label";
14
14
  import { FtRipple } from "@fluid-topics/ft-ripple";
15
15
  import { FtIcon, FtIcons } from "@fluid-topics/ft-icon";
16
16
  import { styles } from "./ft-text-field.css";
17
- class FtTextField extends FtLitElement {
17
+ class FtTextField extends toFtFormComponent(FtLitElement, "textbox") {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this._value = "";
@@ -50,6 +50,7 @@ class FtTextField extends FtLitElement {
50
50
  setInternalValue(value) {
51
51
  const oldValue = this._value;
52
52
  this._value = value || "";
53
+ this.setFormValue(this._value);
53
54
  this.requestUpdate("value", oldValue);
54
55
  }
55
56
  focus() {
@@ -86,10 +87,10 @@ class FtTextField extends FtLitElement {
86
87
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
87
88
  `}
88
89
  ${this.prefix ? html `
89
- <ft-typography class="ft-text-field--prefix" vaiant="body1">
90
- ${this.prefix}
91
- </ft-typography>
92
- ` : nothing}
90
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
91
+ ${this.prefix}
92
+ </ft-typography>
93
+ ` : nothing}
93
94
  <input type=${(this.password && this.hidePassword) ? "password" : "text"}
94
95
  maxlength=${ifDefined(this.maxLength || undefined)}
95
96
  aria-label="${this.label}"
@@ -371,7 +371,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
371
371
  <div class="ft-ripple--background"></div>
372
372
  <div class="ft-ripple--effect"></div>
373
373
  </div>
374
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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.endRipple()}}ke.elementDefinitions={},ke.styles=be,we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"secondary",void 0),we([o.property({type:Boolean})],ke.prototype,"unbounded",void 0),we([o.property({type:Boolean})],ke.prototype,"activated",void 0),we([o.property({type:Boolean})],ke.prototype,"selected",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.state()],ke.prototype,"hovered",void 0),we([o.state()],ke.prototype,"focused",void 0),we([o.state()],ke.prototype,"pressed",void 0),we([o.state()],ke.prototype,"rippling",void 0),we([o.state()],ke.prototype,"originX",void 0),we([o.state()],ke.prototype,"originY",void 0),we([o.query(".ft-ripple")],ke.prototype,"ripple",void 0),we([o.query(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ke),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(me||(me={})),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;"}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.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,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.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,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.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,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.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,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]);const ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Se=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ee=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ie=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ne=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
374
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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.endRipple()}}ke.elementDefinitions={},ke.styles=be,we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"secondary",void 0),we([o.property({type:Boolean})],ke.prototype,"unbounded",void 0),we([o.property({type:Boolean})],ke.prototype,"activated",void 0),we([o.property({type:Boolean})],ke.prototype,"selected",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.state()],ke.prototype,"hovered",void 0),we([o.state()],ke.prototype,"focused",void 0),we([o.state()],ke.prototype,"pressed",void 0),we([o.state()],ke.prototype,"rippling",void 0),we([o.state()],ke.prototype,"originX",void 0),we([o.state()],ke.prototype,"originY",void 0),we([o.query(".ft-ripple")],ke.prototype,"ripple",void 0),we([o.query(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ke),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(me||(me={})),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;"}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.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,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.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,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.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,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.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,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]);const ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Se=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ee=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ie=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ne=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
375
375
  :host, i.ft-icon {
376
376
  display: inline-flex;
377
377
  align-items: center;
@@ -580,7 +580,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
580
580
  .ft-text-field--with-password ft-icon:hover {
581
581
  cursor: pointer;
582
582
  }
583
- `;var Ze=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class _e extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=me.EYE_SLASH,this.passwordRevealedIcon=me.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
583
+ `;var Ze=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class _e extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=me.EYE_SLASH,this.passwordRevealedIcon=me.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
584
584
  <div class="${s.classMap(t)}">
585
585
  <div class="ft-text-field--main-panel"
586
586
  @keydown=${this.handleKeyboardNavigation}
@@ -595,10 +595,10 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
595
595
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
596
596
  `}
597
597
  ${this.prefix?i.html`
598
- <ft-typography class="ft-text-field--prefix" vaiant="body1">
599
- ${this.prefix}
600
- </ft-typography>
601
- `:i.nothing}
598
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
599
+ ${this.prefix}
600
+ </ft-typography>
601
+ `:i.nothing}
602
602
  <input type=${this.password&&this.hidePassword?"password":"text"}
603
603
  maxlength=${(t=>null!=t?t:N)(this.maxLength||void 0)}
604
604
  aria-label="${this.label}"
@@ -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,n=new WeakMap,r=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||[]);c(s,a,l);const p={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,p),this._definitionsByClass.set(s,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(s,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=r.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 p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.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)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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 n{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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(di){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}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=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||[]);c(s,a,l);const p={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,p),this._definitionsByClass.set(s,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(s,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=r.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 p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.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)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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 n{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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ui){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
@@ -67,7 +67,7 @@ var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRoot
67
67
  * Copyright 2017 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
69
69
  */
70
- var dt,ut;let xt=class extends R{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 n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 Y}};xt.finalized=!0,xt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:xt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:xt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class yt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`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=v`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=>v`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=v`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=>v`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 vt(t,e){return y(`${t.name}: ${e}`)}const bt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends xt{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 b(i,t.elementStyles),i}}var wt,$t=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};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Et extends mt{constructor(){super(),this[wt]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}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[kt].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,n,r;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 p=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!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const f=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}var Nt,Ct;wt=kt,$t([o()],Et.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),$t([o()],Et.prototype,"customStylesheet",void 0),v`
70
+ var dt,ut;let xt=class extends R{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 n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 Y}};xt.finalized=!0,xt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:xt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:xt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class yt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`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=v`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=>v`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=v`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=>v`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 vt(t,e){return y(`${t.name}: ${e}`)}const bt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends xt{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 b(i,t.elementStyles),i}}var wt,$t=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};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Et extends mt{constructor(){super(),this[wt]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}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[kt].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,n,r;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 p=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!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const f=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}wt=kt,$t([o()],Et.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),$t([o()],Et.prototype,"customStylesheet",void 0),v`
71
71
  .ft-no-text-select {
72
72
  -webkit-touch-callout: none;
73
73
  -webkit-user-select: none;
@@ -99,143 +99,143 @@ var dt,ut;let xt=class extends R{constructor(){super(...arguments),this.renderOp
99
99
  display: inline-block;
100
100
  width: 0;
101
101
  }
102
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ct=null===(Nt=window.safari)||void 0===Nt?void 0:Nt.pushNotification)||void 0===Ct||Ct.toString());
102
+ `,window.ftReduxStores||(window.ftReduxStores={});const Nt=Symbol("elementInternals");var Ct,Rt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt||Rt.toString());
103
103
  /**
104
104
  * @license
105
105
  * Copyright 2017 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
107
  */
108
- const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
108
+ const Mt=1,Ut=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
109
109
  /**
110
110
  * @license
111
111
  * Copyright 2018 Google LLC
112
112
  * SPDX-License-Identifier: BSD-3-Clause
113
- */const jt=Ut(class extends zt{constructor(t){var e;if(super(t),t.type!==Rt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),Dt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],f=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),f){const t=r.join("$$lit$$");void 0===(e=Dt.get(t))&&(r.raw=r,Dt.set(t,e=r)),i=l}return t(e,...i)})(X);
113
+ */const Ft=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Mt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),At=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===At)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:At}),Pt=new Map,It=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Bt(n));)a+=s+e[++p],f=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),f){const t=r.join("$$lit$$");void 0===(e=Pt.get(t))&&(r.raw=r,Pt.set(t,e=r)),i=l}return t(e,...i)})(X);
114
114
  /**
115
115
  * @license
116
116
  * Copyright 2018 Google LLC
117
117
  * SPDX-License-Identifier: BSD-3-Clause
118
- */var It;!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"}(It||(It={}));const Lt=yt.extend("--ft-typography-font-family",bt.titleFont),Tt=yt.extend("--ft-typography-font-family",bt.contentFont),_t={fontFamily:Tt,fontSize:yt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:yt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:yt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:yt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:yt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=yt.extend("--ft-typography-title-font-family",Lt),Ht=yt.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Kt=yt.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Zt=yt.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),Vt=yt.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Jt=yt.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),qt=yt.extend("--ft-typography-title-dense-font-family",Lt),Xt=yt.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Yt=yt.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),Gt=yt.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Qt=yt.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),te=yt.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),ee=yt.extend("--ft-typography-subtitle1-font-family",Tt),ie=yt.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),oe=yt.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),se=yt.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),ne=yt.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),re=yt.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),le=yt.extend("--ft-typography-subtitle2-font-family",Tt),ae=yt.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),pe=yt.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),fe=yt.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),he=yt.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),ce=yt.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),de={fontFamily:yt.extend("--ft-typography-body1-font-family",Tt),fontSize:yt.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),fontWeight:yt.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),lineHeight:yt.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),textTransform:yt.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit")},ue=yt.extend("--ft-typography-body2-font-family",Tt),xe=yt.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),ge=yt.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),ye=yt.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),ve=yt.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),be=yt.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit"),me={fontFamily:yt.extend("--ft-typography-caption-font-family",Tt),fontSize:yt.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),fontWeight:yt.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),lineHeight:yt.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),textTransform:yt.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit")},we=yt.extend("--ft-typography-breadcrumb-font-family",Tt),$e=yt.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Oe=yt.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Se=yt.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),ke=yt.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Ee=yt.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),Ne=yt.extend("--ft-typography-overline-font-family",Tt),Ce=yt.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Re=yt.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),Me=yt.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),Ue=yt.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),ze=yt.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),je=yt.extend("--ft-typography-button-font-family",Tt),Fe=yt.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),Ae=yt.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Be=yt.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),De=yt.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Pe=yt.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Ie=v`
118
+ */var Lt;!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"}(Lt||(Lt={}));const Tt=yt.extend("--ft-typography-font-family",bt.titleFont),_t=yt.extend("--ft-typography-font-family",bt.contentFont),Wt={fontFamily:_t,fontSize:yt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:yt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:yt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:yt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:yt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ht=yt.extend("--ft-typography-title-font-family",Tt),Kt=yt.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),Zt=yt.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Vt=yt.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),Jt=yt.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),qt=yt.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Xt=yt.extend("--ft-typography-title-dense-font-family",Tt),Yt=yt.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Gt=yt.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),Qt=yt.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),te=yt.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),ee=yt.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),ie=yt.extend("--ft-typography-subtitle1-font-family",_t),oe=yt.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),se=yt.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),ne=yt.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),re=yt.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),le=yt.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),ae=yt.extend("--ft-typography-subtitle2-font-family",_t),pe=yt.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),fe=yt.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),he=yt.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),ce=yt.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),de=yt.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),ue={fontFamily:yt.extend("--ft-typography-body1-font-family",_t),fontSize:yt.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),fontWeight:yt.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),lineHeight:yt.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),textTransform:yt.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit")},xe=yt.extend("--ft-typography-body2-font-family",_t),ge=yt.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),ye=yt.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),ve=yt.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),be=yt.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),me=yt.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit"),we={fontFamily:yt.extend("--ft-typography-caption-font-family",_t),fontSize:yt.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),fontWeight:yt.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),lineHeight:yt.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),textTransform:yt.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit")},$e=yt.extend("--ft-typography-breadcrumb-font-family",_t),Oe=yt.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),Se=yt.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),ke=yt.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),Ee=yt.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),Ne=yt.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Ce=yt.extend("--ft-typography-overline-font-family",_t),Re=yt.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Me=yt.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),Ue=yt.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),ze=yt.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),je=yt.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Fe=yt.extend("--ft-typography-button-font-family",_t),Ae=yt.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),Be=yt.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),De=yt.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),Pe=yt.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),Ie=yt.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase"),Le=v`
119
119
  .ft-typography--title {
120
- font-family: ${Wt};
121
- font-size: ${Ht};
122
- font-weight: ${Kt};
123
- letter-spacing: ${Zt};
124
- line-height: ${Vt};
125
- text-transform: ${Jt};
126
- }
127
- `,Le=v`
128
- .ft-typography--title-dense {
129
- font-family: ${qt};
130
- font-size: ${Xt};
131
- font-weight: ${Yt};
132
- letter-spacing: ${Gt};
133
- line-height: ${Qt};
134
- text-transform: ${te};
120
+ font-family: ${Ht};
121
+ font-size: ${Kt};
122
+ font-weight: ${Zt};
123
+ letter-spacing: ${Vt};
124
+ line-height: ${Jt};
125
+ text-transform: ${qt};
135
126
  }
136
127
  `,Te=v`
137
- .ft-typography--subtitle1 {
138
- font-family: ${ee};
139
- font-size: ${ie};
140
- font-weight: ${oe};
141
- letter-spacing: ${se};
142
- line-height: ${ne};
143
- text-transform: ${re};
128
+ .ft-typography--title-dense {
129
+ font-family: ${Xt};
130
+ font-size: ${Yt};
131
+ font-weight: ${Gt};
132
+ letter-spacing: ${Qt};
133
+ line-height: ${te};
134
+ text-transform: ${ee};
144
135
  }
145
136
  `,_e=v`
146
- .ft-typography--subtitle2 {
147
- font-family: ${le};
148
- font-size: ${ae};
149
- font-weight: ${pe};
150
- letter-spacing: ${fe};
151
- line-height: ${he};
152
- text-transform: ${ce};
137
+ .ft-typography--subtitle1 {
138
+ font-family: ${ie};
139
+ font-size: ${oe};
140
+ font-weight: ${se};
141
+ letter-spacing: ${ne};
142
+ line-height: ${re};
143
+ text-transform: ${le};
153
144
  }
154
-
155
145
  `,We=v`
156
- .ft-typography--body1 {
157
- font-family: ${de.fontFamily};
158
- font-size: ${de.fontSize};
159
- font-weight: ${de.fontWeight};
160
- letter-spacing: ${de.letterSpacing};
161
- line-height: ${de.lineHeight};
162
- text-transform: ${de.textTransform};
146
+ .ft-typography--subtitle2 {
147
+ font-family: ${ae};
148
+ font-size: ${pe};
149
+ font-weight: ${fe};
150
+ letter-spacing: ${he};
151
+ line-height: ${ce};
152
+ text-transform: ${de};
163
153
  }
154
+
164
155
  `,He=v`
165
- .ft-typography--body2 {
166
- font-family: ${ue};
167
- font-size: ${xe};
168
- font-weight: ${ge};
169
- letter-spacing: ${ye};
170
- line-height: ${ve};
171
- text-transform: ${be};
156
+ .ft-typography--body1 {
157
+ font-family: ${ue.fontFamily};
158
+ font-size: ${ue.fontSize};
159
+ font-weight: ${ue.fontWeight};
160
+ letter-spacing: ${ue.letterSpacing};
161
+ line-height: ${ue.lineHeight};
162
+ text-transform: ${ue.textTransform};
172
163
  }
173
164
  `,Ke=v`
174
- .ft-typography--caption {
175
- font-family: ${me.fontFamily};
176
- font-size: ${me.fontSize};
177
- font-weight: ${me.fontWeight};
178
- letter-spacing: ${me.letterSpacing};
179
- line-height: ${me.lineHeight};
180
- text-transform: ${me.textTransform};
165
+ .ft-typography--body2 {
166
+ font-family: ${xe};
167
+ font-size: ${ge};
168
+ font-weight: ${ye};
169
+ letter-spacing: ${ve};
170
+ line-height: ${be};
171
+ text-transform: ${me};
181
172
  }
182
173
  `,Ze=v`
183
- .ft-typography--breadcrumb {
184
- font-family: ${we};
185
- font-size: ${$e};
186
- font-weight: ${Oe};
187
- letter-spacing: ${Se};
188
- line-height: ${ke};
189
- text-transform: ${Ee};
174
+ .ft-typography--caption {
175
+ font-family: ${we.fontFamily};
176
+ font-size: ${we.fontSize};
177
+ font-weight: ${we.fontWeight};
178
+ letter-spacing: ${we.letterSpacing};
179
+ line-height: ${we.lineHeight};
180
+ text-transform: ${we.textTransform};
190
181
  }
191
182
  `,Ve=v`
192
- .ft-typography--overline {
193
- font-family: ${Ne};
194
- font-size: ${Ce};
195
- font-weight: ${Re};
196
- letter-spacing: ${Me};
197
- line-height: ${Ue};
198
- text-transform: ${ze};
183
+ .ft-typography--breadcrumb {
184
+ font-family: ${$e};
185
+ font-size: ${Oe};
186
+ font-weight: ${Se};
187
+ letter-spacing: ${ke};
188
+ line-height: ${Ee};
189
+ text-transform: ${Ne};
199
190
  }
200
191
  `,Je=v`
201
- .ft-typography--button {
202
- font-family: ${je};
203
- font-size: ${Fe};
204
- font-weight: ${Ae};
205
- letter-spacing: ${Be};
206
- line-height: ${De};
207
- text-transform: ${Pe};
192
+ .ft-typography--overline {
193
+ font-family: ${Ce};
194
+ font-size: ${Re};
195
+ font-weight: ${Me};
196
+ letter-spacing: ${Ue};
197
+ line-height: ${ze};
198
+ text-transform: ${je};
208
199
  }
209
200
  `,qe=v`
201
+ .ft-typography--button {
202
+ font-family: ${Fe};
203
+ font-size: ${Ae};
204
+ font-weight: ${Be};
205
+ letter-spacing: ${De};
206
+ line-height: ${Pe};
207
+ text-transform: ${Ie};
208
+ }
209
+ `,Xe=v`
210
210
  .ft-typography {
211
211
  vertical-align: inherit;
212
212
  }
213
- `;var Xe=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 Ye extends Et{constructor(){super(...arguments),this.variant=It.body1}render(){return this.element?Pt`
214
- <${Bt(this.element)}
213
+ `;var Ye=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 Ge extends Et{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?It`
214
+ <${Dt(this.element)}
215
215
  class="ft-typography ft-typography--${this.variant}">
216
216
  <slot></slot>
217
- </${Bt(this.element)}>
218
- `:Pt`
217
+ </${Dt(this.element)}>
218
+ `:It`
219
219
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
220
- `}}Ye.styles=[Ie,Le,Te,_e,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),h("ft-typography")(Ye);const Ge={fontSize:yt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:yt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:yt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:yt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:yt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:yt.extend("--ft-input-label-border-color",bt.colorOutline),textColor:yt.extend("--ft-input-label-text-color",bt.colorOnSurfaceMedium),disabledTextColor:yt.extend("--ft-input-label-disabled-text-color",bt.colorOnSurfaceDisabled),colorSurface:yt.external(bt.colorSurface,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system")},Qe=v`
220
+ `}}Ge.styles=[Le,Te,_e,We,He,Ke,Ze,Ve,Je,qe,Xe],Ye([o()],Ge.prototype,"element",void 0),Ye([o()],Ge.prototype,"variant",void 0),h("ft-typography")(Ge);const Qe={fontSize:yt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:yt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:yt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:yt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:yt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:yt.extend("--ft-input-label-border-color",bt.colorOutline),textColor:yt.extend("--ft-input-label-text-color",bt.colorOnSurfaceMedium),disabledTextColor:yt.extend("--ft-input-label-disabled-text-color",bt.colorOnSurfaceDisabled),colorSurface:yt.external(bt.colorSurface,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system")},ti=v`
221
221
  .ft-input-label {
222
222
  position: absolute;
223
223
  inset: 0;
224
224
  display: flex;
225
- background-color: ${Ge.colorSurface};
226
- border-radius: ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0 0;
225
+ background-color: ${Qe.colorSurface};
226
+ border-radius: ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0 0;
227
227
  }
228
228
 
229
229
  .ft-input-label--outlined {
230
- border-radius: ${Ge.borderRadiusS};
230
+ border-radius: ${Qe.borderRadiusS};
231
231
  }
232
232
 
233
233
  .ft-input-label {
234
- border-color: ${Ge.borderColor};
234
+ border-color: ${Qe.borderColor};
235
235
  }
236
236
 
237
237
  .ft-input-label.ft-input-label--in-error {
238
- border-color: ${Ge.colorError}
238
+ border-color: ${Qe.colorError}
239
239
  }
240
240
 
241
241
  .ft-input-label:before,
@@ -248,7 +248,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
248
248
  }
249
249
 
250
250
  .ft-input-label:before {
251
- width: calc(${Ge.horizontalSpacing} - 4px);
251
+ width: calc(${Qe.horizontalSpacing} - 4px);
252
252
  flex-shrink: 0;
253
253
  }
254
254
 
@@ -264,20 +264,20 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
264
264
  border-bottom-width: 1px;
265
265
  border-bottom-style: solid;
266
266
  border-color: inherit;
267
- color: ${Ge.textColor};
267
+ color: ${Qe.textColor};
268
268
  transition: font-size 250ms, line-height 250ms, color 250ms;
269
- max-width: calc(${Ge.labelMaxWidth} - 2 * (${Ge.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
269
+ max-width: calc(${Qe.labelMaxWidth} - 2 * (${Qe.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
270
270
  text-overflow: ellipsis;
271
- ${vt(me.fontSize,Ge.fontSize)};
272
- ${vt(me.lineHeight,Ge.fontSize)};
271
+ ${vt(we.fontSize,Qe.fontSize)};
272
+ ${vt(we.lineHeight,Qe.fontSize)};
273
273
  }
274
274
 
275
275
  .ft-input-label--in-error .ft-input-label--text {
276
- color: ${Ge.colorError}
276
+ color: ${Qe.colorError}
277
277
  }
278
278
 
279
279
  .ft-input-label--disabled .ft-input-label--text {
280
- color: ${Ge.disabledTextColor};
280
+ color: ${Qe.disabledTextColor};
281
281
  }
282
282
 
283
283
  .ft-input-label--hidden-text {
@@ -294,19 +294,19 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
294
294
  overflow: hidden;
295
295
  white-space: nowrap;
296
296
  text-overflow: ellipsis;
297
- padding: ${Ge.verticalSpacing} 4px;
298
- margin: calc(${Ge.verticalSpacing} * -1) 0;
297
+ padding: ${Qe.verticalSpacing} 4px;
298
+ margin: calc(${Qe.verticalSpacing} * -1) 0;
299
299
  max-width: 100%;
300
300
  box-sizing: border-box;
301
301
  }
302
302
 
303
303
  .ft-input-label--raised .ft-input-label--text {
304
- ${vt(me.fontSize,Ge.raisedFontSize)};
305
- ${vt(me.lineHeight,Ge.raisedFontSize)};
304
+ ${vt(we.fontSize,Qe.raisedFontSize)};
305
+ ${vt(we.lineHeight,Qe.raisedFontSize)};
306
306
  }
307
307
 
308
308
  .ft-input-label--raised .ft-input-label--floating-text {
309
- top: ${Ge.verticalSpacing};
309
+ top: ${Qe.verticalSpacing};
310
310
  }
311
311
 
312
312
  .ft-input-label--outlined .ft-input-label--text,
@@ -319,28 +319,28 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
319
319
  .ft-input-label--outlined:before {
320
320
  border-left-width: 1px;
321
321
  border-left-style: solid;
322
- border-radius: ${Ge.borderRadiusS} 0 0 ${Ge.borderRadiusS};
322
+ border-radius: ${Qe.borderRadiusS} 0 0 ${Qe.borderRadiusS};
323
323
  }
324
324
 
325
325
  .ft-input-label--outlined:after {
326
326
  border-right-width: 1px;
327
327
  border-right-style: solid;
328
- border-radius: 0 ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0;
328
+ border-radius: 0 ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0;
329
329
  }
330
330
 
331
331
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
332
332
  padding: 2px 4px;
333
- z-index: ${Ge.raisedZIndex};
334
- background-color: ${Ge.colorSurface};
335
- border-radius: ${Ge.borderRadiusS};
333
+ z-index: ${Qe.raisedZIndex};
334
+ background-color: ${Qe.colorSurface};
335
+ border-radius: ${Qe.borderRadiusS};
336
336
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
337
337
  }
338
338
 
339
339
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
340
340
  border-top: none;
341
341
  }
342
- `;var ti=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 Et{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
343
- <div class="${jt(t)}">
342
+ `;var ei=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 Et{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
343
+ <div class="${Ft(t)}">
344
344
  ${this.text?X`
345
345
  <div class="ft-input-label--text ft-typography--caption">
346
346
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -348,7 +348,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
348
348
  </div>
349
349
  `:null}
350
350
  </div>
351
- `}}ei.elementDefinitions={},ei.styles=[Ke,Qe],ti([o({type:String})],ei.prototype,"text",void 0),ti([o({type:Boolean})],ei.prototype,"raised",void 0),ti([o({type:Boolean})],ei.prototype,"outlined",void 0),ti([o({type:Boolean})],ei.prototype,"disabled",void 0),ti([o({type:Boolean})],ei.prototype,"error",void 0),h("ft-input-label")(ei);const ii=yt.extend("--ft-ripple-color",bt.colorContent),oi={color:ii,backgroundColor:yt.extend("--ft-ripple-background-color",ii),opacityContentOnSurfacePressed:yt.external(bt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:yt.external(bt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:yt.external(bt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:yt.external(bt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:yt.create("--ft-ripple-border-radius","SIZE","0px")},si=yt.extend("--ft-ripple-color",bt.colorPrimary),ni=si,ri=yt.extend("--ft-ripple-background-color",si),li=yt.extend("--ft-ripple-color",bt.colorSecondary),ai=li,pi=yt.extend("--ft-ripple-background-color",li),fi=v`
351
+ `}}ii.elementDefinitions={},ii.styles=[Ze,ti],ei([o({type:String})],ii.prototype,"text",void 0),ei([o({type:Boolean})],ii.prototype,"raised",void 0),ei([o({type:Boolean})],ii.prototype,"outlined",void 0),ei([o({type:Boolean})],ii.prototype,"disabled",void 0),ei([o({type:Boolean})],ii.prototype,"error",void 0),h("ft-input-label")(ii);const oi=yt.extend("--ft-ripple-color",bt.colorContent),si={color:oi,backgroundColor:yt.extend("--ft-ripple-background-color",oi),opacityContentOnSurfacePressed:yt.external(bt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:yt.external(bt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:yt.external(bt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:yt.external(bt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:yt.create("--ft-ripple-border-radius","SIZE","0px")},ni=yt.extend("--ft-ripple-color",bt.colorPrimary),ri=ni,li=yt.extend("--ft-ripple-background-color",ni),ai=yt.extend("--ft-ripple-color",bt.colorSecondary),pi=ai,fi=yt.extend("--ft-ripple-background-color",ai),hi=v`
352
352
  :host {
353
353
  display: contents;
354
354
  }
@@ -361,7 +361,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
361
361
 
362
362
  .ft-ripple:not(.ft-ripple--unbounded) {
363
363
  overflow: hidden;
364
- border-radius: ${oi.borderRadius};
364
+ border-radius: ${si.borderRadius};
365
365
  }
366
366
 
367
367
  .ft-ripple .ft-ripple--background,
@@ -395,27 +395,27 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
395
395
  }
396
396
 
397
397
  .ft-ripple .ft-ripple--background {
398
- background-color: ${oi.backgroundColor};
398
+ background-color: ${si.backgroundColor};
399
399
  }
400
400
 
401
401
  .ft-ripple .ft-ripple--effect {
402
- background-color: ${oi.color};
402
+ background-color: ${si.color};
403
403
  }
404
404
 
405
405
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
406
- background-color: ${pi};
406
+ background-color: ${fi};
407
407
  }
408
408
 
409
409
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
410
- background-color: ${ai};
410
+ background-color: ${pi};
411
411
  }
412
412
 
413
413
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
414
- background-color: ${ri};
414
+ background-color: ${li};
415
415
  }
416
416
 
417
417
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
418
- background-color: ${ni};
418
+ background-color: ${ri};
419
419
  }
420
420
 
421
421
  .ft-ripple .ft-ripple--background {
@@ -445,39 +445,39 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
445
445
  }
446
446
 
447
447
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
448
- opacity: ${oi.opacityContentOnSurfaceHover};
448
+ opacity: ${si.opacityContentOnSurfaceHover};
449
449
  }
450
450
 
451
451
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
452
- opacity: ${oi.opacityContentOnSurfaceSelected};
452
+ opacity: ${si.opacityContentOnSurfaceSelected};
453
453
  }
454
454
 
455
455
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
456
- opacity: ${oi.opacityContentOnSurfaceFocused};
456
+ opacity: ${si.opacityContentOnSurfaceFocused};
457
457
  }
458
458
 
459
459
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
460
- opacity: ${oi.opacityContentOnSurfacePressed};
460
+ opacity: ${si.opacityContentOnSurfacePressed};
461
461
  transform: translate(-50%, -50%) scale(1);
462
462
  }
463
- `;var hi=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 ci extends Et{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
463
+ `;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 di extends Et{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
464
464
  <style>
465
465
  .ft-ripple .ft-ripple--effect {
466
466
  left: ${this.originX}px;
467
467
  top: ${this.originY}px;
468
468
  }
469
469
  </style>
470
- <div class="${jt(t)}">
470
+ <div class="${Ft(t)}">
471
471
  <div class="ft-ripple--background"></div>
472
472
  <div class="ft-ripple--effect"></div>
473
473
  </div>
474
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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.endRipple()}}ci.elementDefinitions={},ci.styles=fi,hi([o({type:Boolean})],ci.prototype,"primary",void 0),hi([o({type:Boolean})],ci.prototype,"secondary",void 0),hi([o({type:Boolean})],ci.prototype,"unbounded",void 0),hi([o({type:Boolean})],ci.prototype,"activated",void 0),hi([o({type:Boolean})],ci.prototype,"selected",void 0),hi([o({type:Boolean})],ci.prototype,"disabled",void 0),hi([s()],ci.prototype,"hovered",void 0),hi([s()],ci.prototype,"focused",void 0),hi([s()],ci.prototype,"pressed",void 0),hi([s()],ci.prototype,"rippling",void 0),hi([s()],ci.prototype,"originX",void 0),hi([s()],ci.prototype,"originY",void 0),hi([r(".ft-ripple")],ci.prototype,"ripple",void 0),hi([r(".ft-ripple--effect")],ci.prototype,"rippleEffect",void 0),h("ft-ripple")(ci);
474
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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.endRipple()}}di.elementDefinitions={},di.styles=hi,ci([o({type:Boolean})],di.prototype,"primary",void 0),ci([o({type:Boolean})],di.prototype,"secondary",void 0),ci([o({type:Boolean})],di.prototype,"unbounded",void 0),ci([o({type:Boolean})],di.prototype,"activated",void 0),ci([o({type:Boolean})],di.prototype,"selected",void 0),ci([o({type:Boolean})],di.prototype,"disabled",void 0),ci([s()],di.prototype,"hovered",void 0),ci([s()],di.prototype,"focused",void 0),ci([s()],di.prototype,"pressed",void 0),ci([s()],di.prototype,"rippling",void 0),ci([s()],di.prototype,"originX",void 0),ci([s()],di.prototype,"originY",void 0),ci([r(".ft-ripple")],di.prototype,"ripple",void 0),ci([r(".ft-ripple--effect")],di.prototype,"rippleEffect",void 0),h("ft-ripple")(di);
475
475
  /**
476
476
  * @license
477
477
  * Copyright 2017 Google LLC
478
478
  * SPDX-License-Identifier: BSD-3-Clause
479
479
  */
480
- class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)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:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=Ut(di);var xi,gi;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(xi||(xi={})),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;"}(gi||(gi={})),new Map([...["abw"].map((t=>[t,gi.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,gi.AUDIO])),...["avi"].map((t=>[t,gi.AVI])),...["chm","xhs"].map((t=>[t,gi.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,gi.CODE])),...["csv"].map((t=>[t,gi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,gi.DITA])),...["epub"].map((t=>[t,gi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,gi.EXCEL])),...["flac"].map((t=>[t,gi.FLAC])),...["gif"].map((t=>[t,gi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,gi.GZIP])),...["html","htm","xhtml"].map((t=>[t,gi.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,gi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,gi.JPEG])),...["json"].map((t=>[t,gi.JSON])),...["m4a","m4p"].map((t=>[t,gi.M4A])),...["mov","qt"].map((t=>[t,gi.MOV])),...["mp3"].map((t=>[t,gi.MP3])),...["mp4","m4v"].map((t=>[t,gi.MP4])),...["ogg","oga"].map((t=>[t,gi.OGG])),...["pdf","ps"].map((t=>[t,gi.PDF])),...["png"].map((t=>[t,gi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,gi.POWERPOINT])),...["rar"].map((t=>[t,gi.RAR])),...["stp"].map((t=>[t,gi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,gi.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,gi.VIDEO])),...["wav"].map((t=>[t,gi.WAV])),...["wma"].map((t=>[t,gi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,gi.WORD])),...["xml","xsl","rdf"].map((t=>[t,gi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,gi.YAML])),...["zip"].map((t=>[t,gi.ZIP]))]);const yi=yt.create("--ft-icon-font-size","SIZE","24px"),vi=yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),bi=yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),wi=yt.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=v`
480
+ class ui extends jt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)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:[]}}}ui.directiveName="unsafeHTML",ui.resultType=1;const xi=zt(ui);var gi,yi;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(gi||(gi={})),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;"}(yi||(yi={})),new Map([...["abw"].map((t=>[t,yi.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,yi.AUDIO])),...["avi"].map((t=>[t,yi.AVI])),...["chm","xhs"].map((t=>[t,yi.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,yi.CODE])),...["csv"].map((t=>[t,yi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yi.DITA])),...["epub"].map((t=>[t,yi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yi.EXCEL])),...["flac"].map((t=>[t,yi.FLAC])),...["gif"].map((t=>[t,yi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yi.GZIP])),...["html","htm","xhtml"].map((t=>[t,yi.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,yi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yi.JPEG])),...["json"].map((t=>[t,yi.JSON])),...["m4a","m4p"].map((t=>[t,yi.M4A])),...["mov","qt"].map((t=>[t,yi.MOV])),...["mp3"].map((t=>[t,yi.MP3])),...["mp4","m4v"].map((t=>[t,yi.MP4])),...["ogg","oga"].map((t=>[t,yi.OGG])),...["pdf","ps"].map((t=>[t,yi.PDF])),...["png"].map((t=>[t,yi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yi.POWERPOINT])),...["rar"].map((t=>[t,yi.RAR])),...["stp"].map((t=>[t,yi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yi.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,yi.VIDEO])),...["wav"].map((t=>[t,yi.WAV])),...["wma"].map((t=>[t,yi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yi.WORD])),...["xml","xsl","rdf"].map((t=>[t,yi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yi.YAML])),...["zip"].map((t=>[t,yi.ZIP]))]);const vi=yt.create("--ft-icon-font-size","SIZE","24px"),bi=yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),mi=yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),wi=yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),$i=yt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Oi=v`
481
481
  :host, i.ft-icon {
482
482
  display: inline-flex;
483
483
  align-items: center;
@@ -486,14 +486,14 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
486
486
  }
487
487
 
488
488
  :host {
489
- width: ${yi};
490
- height: ${yi};
489
+ width: ${vi};
490
+ height: ${vi};
491
491
  }
492
492
 
493
493
  i.ft-icon {
494
494
  width: 100%;
495
495
  height: 100%;
496
- font-size: ${yi};
496
+ font-size: ${vi};
497
497
  line-height: 1;
498
498
  font-weight: normal;
499
499
  text-transform: none;
@@ -504,33 +504,33 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
504
504
  text-rendering: auto;
505
505
  -webkit-font-smoothing: antialiased;
506
506
  -moz-osx-font-smoothing: grayscale;
507
- vertical-align: ${wi};
507
+ vertical-align: ${$i};
508
508
  }
509
509
 
510
510
  i.ft-icon.ft-icon--fluid-topics {
511
- font-family: ${vi}, ft-icons, fticons, sans-serif;
511
+ font-family: ${bi}, ft-icons, fticons, sans-serif;
512
512
 
513
513
  /* Ugly fix because font is broken */
514
- font-size: calc(0.75 * ${yi});
515
- line-height: ${yi};
514
+ font-size: calc(0.75 * ${vi});
515
+ line-height: ${vi};
516
516
  position: relative;
517
517
  top: -4%;
518
518
  justify-content: center;
519
519
  }
520
520
 
521
521
  .ft-icon--file-format {
522
- font-family: ${bi}, ft-mime, sans-serif;
522
+ font-family: ${mi}, ft-mime, sans-serif;
523
523
  }
524
524
 
525
525
  .ft-icon--material {
526
- font-family: ${mi}, "Material Icons", sans-serif;
526
+ font-family: ${wi}, "Material Icons", sans-serif;
527
527
  }
528
- `;var Oi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));var Si=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 ki extends Et{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Oi).includes(this.variant)?this.variant:Oi.fluid_topics,e=t!==Oi.material||!!this.value;return X`
528
+ `;var Si;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Si||(Si={}));var ki=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 Et{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Si).includes(this.variant)?this.variant:Si.fluid_topics,e=t!==Si.material||!!this.value;return X`
529
529
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
530
- ${ui(this.resolvedIcon)}
530
+ ${xi(this.resolvedIcon)}
531
531
  <slot ?hidden=${e}></slot>
532
532
  </i>
533
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oi.file_format:this.resolvedIcon=null!==(t=gi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=xi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles=$i,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([r("slot")],ki.prototype,"slottedContent",void 0),h("ft-icon")(ki);const Ei={fontSize:yt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:yt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:yt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:yt.extend("--ft-text-field-helper-color",bt.colorOnSurfaceMedium),colorPrimary:yt.external(bt.colorPrimary,"Design system"),colorOnSurface:yt.external(bt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:yt.external(bt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system"),prefixColor:yt.extend("--ft-text-field-prefix-color",bt.colorOnSurfaceMedium),iconColor:yt.extend("--ft-text-field-icon-color",bt.colorOnSurfaceMedium),floatingZIndex:yt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:yt.external(bt.colorSurface,"Design system"),colorOutline:yt.external(bt.colorOutline,"Design system"),elevation02:yt.external(bt.elevation02,"Design system"),suggestSize:yt.create("--ft-text-field-suggest-size","SIZE","300px")},Ni=v`
533
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Si.file_format:this.resolvedIcon=null!==(t=yi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Si.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=gi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ei.elementDefinitions={},Ei.styles=Oi,ki([o()],Ei.prototype,"variant",void 0),ki([o()],Ei.prototype,"value",void 0),ki([s()],Ei.prototype,"resolvedIcon",void 0),ki([r("slot")],Ei.prototype,"slottedContent",void 0),h("ft-icon")(Ei);const Ni={fontSize:yt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:yt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:yt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:yt.extend("--ft-text-field-helper-color",bt.colorOnSurfaceMedium),colorPrimary:yt.external(bt.colorPrimary,"Design system"),colorOnSurface:yt.external(bt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:yt.external(bt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system"),prefixColor:yt.extend("--ft-text-field-prefix-color",bt.colorOnSurfaceMedium),iconColor:yt.extend("--ft-text-field-icon-color",bt.colorOnSurfaceMedium),floatingZIndex:yt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:yt.external(bt.colorSurface,"Design system"),colorOutline:yt.external(bt.colorOutline,"Design system"),elevation02:yt.external(bt.elevation02,"Design system"),suggestSize:yt.create("--ft-text-field-suggest-size","SIZE","300px")},Ci=v`
534
534
  *:focus {
535
535
  outline: none;
536
536
  }
@@ -543,16 +543,16 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
543
543
  }
544
544
 
545
545
  ft-input-label {
546
- ${vt(Ge.fontSize,Ei.fontSize)};
547
- ${vt(Ge.raisedFontSize,Ei.labelSize)};
548
- ${vt(Ge.verticalSpacing,Ei.verticalSpacing)};
549
- ${vt(Ge.horizontalSpacing,Ei.horizontalSpacing)};
546
+ ${vt(Qe.fontSize,Ni.fontSize)};
547
+ ${vt(Qe.raisedFontSize,Ni.labelSize)};
548
+ ${vt(Qe.verticalSpacing,Ni.verticalSpacing)};
549
+ ${vt(Qe.horizontalSpacing,Ni.horizontalSpacing)};
550
550
  }
551
551
 
552
552
  .ft-text-field--main-panel {
553
553
  position: relative;
554
554
  display: flex;
555
- height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.fontSize});
555
+ height: calc(4 * ${Ni.verticalSpacing} + ${Ni.labelSize} + ${Ni.fontSize});
556
556
  }
557
557
 
558
558
  .ft-text-field--input-panel {
@@ -561,24 +561,24 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
561
561
  display: flex;
562
562
  align-items: center;
563
563
  overflow: hidden;
564
- padding: 0 ${Ei.horizontalSpacing};
564
+ padding: 0 ${Ni.horizontalSpacing};
565
565
 
566
- ${vt(de.fontSize,Ei.fontSize)};
567
- ${vt(de.lineHeight,Ei.fontSize)};
566
+ ${vt(ue.fontSize,Ni.fontSize)};
567
+ ${vt(ue.lineHeight,Ni.fontSize)};
568
568
  }
569
569
 
570
570
  .ft-text-field--input-panel ft-ripple {
571
- ${vt(oi.opacityContentOnSurfaceHover,"0.08")};
572
- ${vt(oi.opacityContentOnSurfacePressed,"0.04")};
571
+ ${vt(si.opacityContentOnSurfaceHover,"0.08")};
572
+ ${vt(si.opacityContentOnSurfacePressed,"0.04")};
573
573
  }
574
574
 
575
575
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
576
576
  align-items: flex-end;
577
- padding: 0 ${Ei.horizontalSpacing} ${Ei.verticalSpacing} ${Ei.horizontalSpacing};
577
+ padding: 0 ${Ni.horizontalSpacing} ${Ni.verticalSpacing} ${Ni.horizontalSpacing};
578
578
  }
579
579
 
580
580
  .ft-text-field--prefix {
581
- color: ${Ei.prefixColor};
581
+ color: ${Ni.prefixColor};
582
582
  margin-right: 2px;
583
583
  flex-shrink: 1;
584
584
  overflow: hidden;
@@ -597,15 +597,15 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
597
597
  flex-shrink: 1;
598
598
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
599
599
 
600
- color: ${Ei.colorOnSurface};
601
- padding: calc(2 * ${Ei.verticalSpacing}) 0;
600
+ color: ${Ni.colorOnSurface};
601
+ padding: calc(2 * ${Ni.verticalSpacing}) 0;
602
602
  border: none;
603
603
  background: none;
604
604
  }
605
605
 
606
606
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
607
607
  padding-bottom: 0;
608
- padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
608
+ padding-top: calc(${Ni.labelSize} + 2 * ${Ni.verticalSpacing});
609
609
  }
610
610
 
611
611
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -614,37 +614,37 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
614
614
  }
615
615
 
616
616
  .ft-text-field--disabled .ft-text-field--input {
617
- color: ${Ei.colorOnSurfaceDisabled};
617
+ color: ${Ni.colorOnSurfaceDisabled};
618
618
  }
619
619
 
620
620
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
621
- ${vt(Ge.borderColor,Ei.colorPrimary)};
622
- ${vt(Ge.textColor,Ei.colorPrimary)};
621
+ ${vt(Qe.borderColor,Ni.colorPrimary)};
622
+ ${vt(Qe.textColor,Ni.colorPrimary)};
623
623
  }
624
624
 
625
625
  .ft-text-field--filled .ft-text-field--input-panel {
626
- border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
626
+ border-radius: ${Ni.borderRadiusS} ${Ni.borderRadiusS} 0 0;
627
627
  }
628
628
 
629
629
  .ft-text-field--outlined .ft-text-field--input-panel {
630
- border-radius: ${Ei.borderRadiusS};
630
+ border-radius: ${Ni.borderRadiusS};
631
631
  }
632
632
 
633
633
  .ft-text-field--helper-text {
634
- padding: 0 12px 0 ${Ei.horizontalSpacing};
635
- color: ${Ei.helperColor};
634
+ padding: 0 12px 0 ${Ni.horizontalSpacing};
635
+ color: ${Ni.helperColor};
636
636
  }
637
637
 
638
638
  .ft-text-field--in-error .ft-text-field--input,
639
639
  .ft-text-field--in-error .ft-text-field--helper-text,
640
640
  .ft-text-field--in-error .ft-text-field--prefix {
641
- color: ${Ei.colorError};
641
+ color: ${Ni.colorError};
642
642
  }
643
643
 
644
644
  .ft-text-field--icon {
645
645
  align-self: center;
646
646
  margin-left: 8px;
647
- color: ${Ei.iconColor};
647
+ color: ${Ni.iconColor};
648
648
  }
649
649
 
650
650
  .ft-text-field--container {
@@ -657,13 +657,13 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
657
657
  position: absolute;
658
658
  left: 0;
659
659
  right: 0;
660
- z-index: ${Ei.floatingZIndex};
661
- background: ${Ei.colorSurface};
662
- border: 1px solid ${Ei.colorOutline};
663
- border-radius: 0 0 ${Ei.borderRadiusS} ${Ei.borderRadiusS};
664
- box-shadow: ${Ei.elevation02};
660
+ z-index: ${Ni.floatingZIndex};
661
+ background: ${Ni.colorSurface};
662
+ border: 1px solid ${Ni.colorOutline};
663
+ border-radius: 0 0 ${Ni.borderRadiusS} ${Ni.borderRadiusS};
664
+ box-shadow: ${Ni.elevation02};
665
665
  outline: none;
666
- max-height: ${Ei.suggestSize};
666
+ max-height: ${Ni.suggestSize};
667
667
  overflow-y: auto;
668
668
  }
669
669
 
@@ -680,14 +680,14 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
680
680
  }
681
681
 
682
682
  .ft-text-field--with-icon {
683
- ${vt(Ge.labelMaxWidth,`calc(100% - ${yi} - ${Ge.horizontalSpacing})`)};
683
+ ${vt(Qe.labelMaxWidth,`calc(100% - ${vi} - ${Qe.horizontalSpacing})`)};
684
684
  }
685
685
 
686
686
  .ft-text-field--with-password ft-icon:hover {
687
687
  cursor: pointer;
688
688
  }
689
- `;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 Ri extends Et{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=xi.EYE_SLASH,this.passwordRevealedIcon=xi.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return X`
690
- <div class="${jt(t)}">
689
+ `;var Ri=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 Mi extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Nt].form}constructor(...t){super(t),this[Nt]=this.attachInternals(),this[Nt].role=e}setFormValue(t){this[Nt].setFormValue(t)}}}(Et,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=gi.EYE_SLASH,this.passwordRevealedIcon=gi.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return X`
690
+ <div class="${Ft(t)}">
691
691
  <div class="ft-text-field--main-panel"
692
692
  @keydown=${this.handleKeyboardNavigation}
693
693
  @focusout=${this.onMainPanelBlur}>
@@ -701,10 +701,10 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
701
701
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
702
702
  `}
703
703
  ${this.prefix?X`
704
- <ft-typography class="ft-text-field--prefix" vaiant="body1">
705
- ${this.prefix}
706
- </ft-typography>
707
- `:G}
704
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
705
+ ${this.prefix}
706
+ </ft-typography>
707
+ `:G}
708
708
  <input type=${this.password&&this.hidePassword?"password":"text"}
709
709
  maxlength=${(t=>null!=t?t:G)
710
710
  /**
@@ -742,7 +742,7 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
742
742
  .variant=${this.iconVariant}
743
743
  .value=${this.icon}
744
744
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
745
- `:G}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ri.elementDefinitions={"ft-input-label":ei,"ft-ripple":ci,"ft-typography":Ye,"ft-icon":ki},Ri.styles=[We,Ni],Ci([o()],Ri.prototype,"label",void 0),Ci([o({noAccessor:!0})],Ri.prototype,"value",null),Ci([s()],Ri.prototype,"dispatchedValue",void 0),Ci([o()],Ri.prototype,"helper",void 0),Ci([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ci([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ci([o({type:Boolean})],Ri.prototype,"error",void 0),Ci([o()],Ri.prototype,"prefix",void 0),Ci([o()],Ri.prototype,"icon",void 0),Ci([o()],Ri.prototype,"passwordHiddenIcon",void 0),Ci([o()],Ri.prototype,"passwordRevealedIcon",void 0),Ci([o()],Ri.prototype,"iconVariant",void 0),Ci([o({type:Boolean})],Ri.prototype,"filterSuggestions",void 0),Ci([o({type:Number})],Ri.prototype,"maxLength",void 0),Ci([o({type:Boolean})],Ri.prototype,"password",void 0),Ci([s()],Ri.prototype,"focused",void 0),Ci([s()],Ri.prototype,"hidePassword",void 0),Ci([s()],Ri.prototype,"suggestionsOnTop",void 0),Ci([s()],Ri.prototype,"hideSuggestions",void 0),Ci([s()],Ri.prototype,"visibleSuggestions",void 0),Ci([r(".ft-text-field--main-panel")],Ri.prototype,"mainPanel",void 0),Ci([r(".ft-text-field--input")],Ri.prototype,"input",void 0),Ci([r(".ft-text-field--suggestions")],Ri.prototype,"suggestionsContainer",void 0),Ci([p({selector:"ft-text-field-suggestion"})],Ri.prototype,"suggestions",void 0);const Mi=v`
745
+ `:G}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Mi.elementDefinitions={"ft-input-label":ii,"ft-ripple":di,"ft-typography":Ge,"ft-icon":Ei},Mi.styles=[He,Ci],Ri([o()],Mi.prototype,"label",void 0),Ri([o({noAccessor:!0})],Mi.prototype,"value",null),Ri([s()],Mi.prototype,"dispatchedValue",void 0),Ri([o()],Mi.prototype,"helper",void 0),Ri([o({type:Boolean})],Mi.prototype,"outlined",void 0),Ri([o({type:Boolean})],Mi.prototype,"disabled",void 0),Ri([o({type:Boolean})],Mi.prototype,"error",void 0),Ri([o()],Mi.prototype,"prefix",void 0),Ri([o()],Mi.prototype,"icon",void 0),Ri([o()],Mi.prototype,"passwordHiddenIcon",void 0),Ri([o()],Mi.prototype,"passwordRevealedIcon",void 0),Ri([o()],Mi.prototype,"iconVariant",void 0),Ri([o({type:Boolean})],Mi.prototype,"filterSuggestions",void 0),Ri([o({type:Number})],Mi.prototype,"maxLength",void 0),Ri([o({type:Boolean})],Mi.prototype,"password",void 0),Ri([s()],Mi.prototype,"focused",void 0),Ri([s()],Mi.prototype,"hidePassword",void 0),Ri([s()],Mi.prototype,"suggestionsOnTop",void 0),Ri([s()],Mi.prototype,"hideSuggestions",void 0),Ri([s()],Mi.prototype,"visibleSuggestions",void 0),Ri([r(".ft-text-field--main-panel")],Mi.prototype,"mainPanel",void 0),Ri([r(".ft-text-field--input")],Mi.prototype,"input",void 0),Ri([r(".ft-text-field--suggestions")],Mi.prototype,"suggestionsContainer",void 0),Ri([p({selector:"ft-text-field-suggestion"})],Mi.prototype,"suggestions",void 0);const Ui=v`
746
746
  .ft-text-field-suggestion {
747
747
  position: relative;
748
748
  padding: 8px 16px;
@@ -767,7 +767,7 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
767
767
  slot {
768
768
  pointer-events: none;
769
769
  }
770
- `;var Ui=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 zi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ji extends Et{render(){return X`
770
+ `;var zi=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 ji extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Fi extends Et{render(){return X`
771
771
  <div class="ft-text-field-suggestion"
772
772
  tabindex="-1"
773
773
  @keydown=${this.onKeyDown}
@@ -779,4 +779,4 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
779
779
  <slot></slot>
780
780
  </ft-typography>
781
781
  </div>
782
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new zi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ji.elementDefinitions={"ft-ripple":ci,"ft-typography":Ye,"ft-icon":ki},ji.styles=Mi,Ui([o()],ji.prototype,"value",void 0),Ui([r(".ft-text-field-suggestion")],ji.prototype,"container",void 0),Ui([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?p({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}()],ji.prototype,"assignedNodes",void 0),h("ft-text-field")(Ri),h("ft-text-field-suggestion")(ji),t.FtTextField=Ri,t.FtTextFieldCssVariables=Ei,t.FtTextFieldSuggestion=ji,t.SuggestionSelectedEvent=zi,t.styles=Ni,t.suggestionStyles=Mi}({});
782
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new ji(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Fi.elementDefinitions={"ft-ripple":di,"ft-typography":Ge,"ft-icon":Ei},Fi.styles=Ui,zi([o()],Fi.prototype,"value",void 0),zi([r(".ft-text-field-suggestion")],Fi.prototype,"container",void 0),zi([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?p({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}()],Fi.prototype,"assignedNodes",void 0),h("ft-text-field")(Mi),h("ft-text-field-suggestion")(Fi),t.FtTextField=Mi,t.FtTextFieldCssVariables=Ni,t.FtTextFieldSuggestion=Fi,t.SuggestionSelectedEvent=ji,t.styles=Ci,t.suggestionStyles=Ui}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-text-field",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "description": "A fluidtopics text field",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.0.57",
23
- "@fluid-topics/ft-input-label": "1.0.57",
24
- "@fluid-topics/ft-ripple": "1.0.57",
25
- "@fluid-topics/ft-typography": "1.0.57",
26
- "@fluid-topics/ft-wc-utils": "1.0.57",
22
+ "@fluid-topics/ft-icon": "1.0.59",
23
+ "@fluid-topics/ft-input-label": "1.0.59",
24
+ "@fluid-topics/ft-ripple": "1.0.59",
25
+ "@fluid-topics/ft-typography": "1.0.59",
26
+ "@fluid-topics/ft-wc-utils": "1.0.59",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "f4480503246fb16f02f9e0265e15b7e53e09a23a"
29
+ "gitHead": "9412dc7c29ebc722b1b133bba63b1744f4bfdf60"
30
30
  }