@fluid-topics/ft-floating-menu 1.1.9 → 1.1.10
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.
|
@@ -10,7 +10,8 @@ import { eventPathContainsMatchingElement, FtLitElement, jsonProperty, } from "@
|
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
11
|
import { FtFloatingMenuItem } from "./ft-floating-menu-item";
|
|
12
12
|
import { FtIconVariants } from "@fluid-topics/ft-icon/build/ft-icon.properties";
|
|
13
|
-
import { autoPlacement, computePosition, shift } from "@floating-ui/dom";
|
|
13
|
+
import { autoPlacement, computePosition, platform, shift } from "@floating-ui/dom";
|
|
14
|
+
import { offsetParent } from "composed-offset-position";
|
|
14
15
|
export class FloatingMenuCloseEvent extends CustomEvent {
|
|
15
16
|
constructor() {
|
|
16
17
|
super("close-ft-floating-menu");
|
|
@@ -119,6 +120,12 @@ class FtBaseFloatingMenu extends FtLitElement {
|
|
|
119
120
|
this.menuWrapper.style.left = "";
|
|
120
121
|
this.menuWrapper.style.top = "";
|
|
121
122
|
computePosition(this.actionButton, this.menuWrapper, {
|
|
123
|
+
platform: {
|
|
124
|
+
...platform,
|
|
125
|
+
getOffsetParent: (element) => {
|
|
126
|
+
return platform.getOffsetParent(element, offsetParent);
|
|
127
|
+
},
|
|
128
|
+
},
|
|
122
129
|
middleware: [
|
|
123
130
|
shift({ crossAxis: true }),
|
|
124
131
|
autoPlacement({ allowedPlacements: [this.convertPlacement()] }),
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
opacity: ${s.opacityContentOnSurfacePressed};
|
|
142
142
|
transform: translate(-50%, -50%) scale(1);
|
|
143
143
|
}
|
|
144
|
-
`,b=t=>"string"==typeof t?e.unsafeCSS(t):t;class m{static create(t,o,r,i){const n=t=>b(null!=t?t:i),a=e.css`var(${b(t)}, ${n(i)})`;return a.name=t,a.description=o,a.category=r,a.defaultValue=i,a.defaultCssValue=n,a.get=o=>e.css`var(${b(t)}, ${n(o)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>i,a}static extend(t,o,r,i){const n=t=>r.get(null!=t?t:i),a=e.css`var(${b(t)}, ${n(i)})`;return a.name=t,a.description=o,a.category=r.category,a.fallbackVariable=r,a.defaultValue=i,a.defaultCssValue=n,a.get=o=>e.css`var(${b(t)}, ${n(o)})`,a.breadcrumb=()=>[r.name,...r.breadcrumb()],a.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),a}static external(t,o){const r=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):b(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${b(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=r,i.get=o=>e.css`var(${b(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const x={colorWhite:m.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:m.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:m.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:m.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:m.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:m.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:m.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:m.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:m.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:m.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:m.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:m.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:m.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:m.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:m.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:m.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:m.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:m.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:m.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:m.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:m.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:m.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:m.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:m.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:m.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:m.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:m.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:m.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:m.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:m.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:m.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:m.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:m.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:m.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:m.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:m.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:m.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:m.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:m.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:m.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:m.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:m.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:m.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:m.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:m.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:m.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:m.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:m.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:m.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:m.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:m.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:m.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:m.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:m.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:m.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:m.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:m.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:m.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:m.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:m.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:m.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:m.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:m.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:m.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:m.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:m.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:m.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:m.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:m.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:m.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:m.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:m.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:m.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:m.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:m.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:m.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:m.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:m.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:m.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:m.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:m.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:m.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:m.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:m.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:m.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:m.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:m.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:m.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:m.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:m.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:m.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:m.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:m.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:m.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:m.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:m.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:m.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:m.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:m.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:m.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:m.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:m.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:m.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:m.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:m.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:m.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:m.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:m.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:m.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:m.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:m.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:m.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:m.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:m.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:m.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:m.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:m.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:m.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:m.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:m.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:m.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:m.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:m.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:m.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:m.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:m.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:m.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:m.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:m.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:m.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:m.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:m.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:m.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:m.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:m.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:m.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:m.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:m.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:m.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:m.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:m.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:m.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:m.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:m.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:m.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:m.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:m.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:m.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:m.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:m.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:m.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:m.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:m.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:m.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:m.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:m.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:m.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:m.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:m.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:m.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:m.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:m.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:m.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:m.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:m.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:m.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:m.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:m.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:m.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:m.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:m.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:m.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:m.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:m.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:m.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:m.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:m.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:m.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:m.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:m.create("--ft-icon-size-6","","SIZE","48px"),opacity0:m.create("--ft-opacity-0","","NUMBER","0"),opacity8:m.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:m.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:m.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:m.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:m.create("--ft-opacity-80","","NUMBER","0.8")},O={display:{fontFamily:m.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:m.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:m.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:m.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:m.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:m.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:m.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:m.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:m.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:m.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:m.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:m.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:m.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:m.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:m.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:m.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:m.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:m.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:m.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:m.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:m.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:m.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:m.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:m.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:m.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:m.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:m.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},v={backgroundActionPrimary:m.extend("--ft-background-action-primary","Used as backgorund of primary action components.",x.colorBrand0),backgroundErrorPrimary:m.extend("--ft-background-error-primary","Used as background of error components.",x.colorRed0),backgroundErrorSubtle:m.extend("--ft-background-error-subtle","Used as background of subtle error components.",x.colorRed10),backgroundInfoPrimary:m.extend("--ft-background-info-primary","Used as background of information components.",x.colorCyan200),backgroundInfoSubtle:m.extend("--ft-background-info-subtle","Used as background of subtle information components.",x.colorCyan10),backgroundWarningPrimary:m.extend("--ft-background-warning-primary","Used as background of warning components.",x.colorOrange300),backgroundWarningSubtle:m.extend("--ft-background-warning-subtle","Used as background of subtle information components.",x.colorOrange10),backgroundSuccessPrimary:m.extend("--ft-background-success-primary","Used as background of success components.",x.colorGreen200),backgroundSuccessSubtle:m.extend("--ft-background-success-subtle","Used as background of subtle success components.",x.colorGreen10),backgroundGlobalSurface:m.extend("--ft-background-global-surface","Used as app background.",x.colorWhite),backgroundGlobalOnSurface:m.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",x.colorGray10),backgroundGlobalOnSurfaceDark:m.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",x.colorGray30),contentActionPrimary:m.extend("--ft-content-action-primary","Used on label of primary action on light surface.",x.colorBrand0),contentWarningPrimary:m.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",x.colorOrange300),contentWarningIconOnly:m.extend("--ft-content-warning-icon-only","Used on warning status icons alone",x.colorOrange0),contentErrorPrimary:m.extend("--ft-content-error-primary","Used on label of error messages on light surface.",x.colorRed0),contentErrorIconOnly:m.extend("--ft-content-error-icon-only","Used on error status icons alone",x.colorRed0),contentInfoPrimary:m.extend("--ft-content-info-primary","Used on label of information messages on light surface.",x.colorCyan200),contentInfoIconOnly:m.extend("--ft-content-info-icon-only","Used on info status icons alone",x.colorCyan0),contentSuccessIconOnly:m.extend("--ft-content-success-icon-only","Used on success status icons alone",x.colorGreen0),contentSuccessPrimary:m.extend("--ft-content-success-primary","Used on label of success messages on light surface.",x.colorGreen200),contentGlobalPrimary:m.extend("--ft-content-global-primary","Used for main content on the page.",x.colorGray500),contentGlobalSecondary:m.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",x.colorGray200),contentGlobalSubtle:m.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",x.colorGray0),contentGlobalOnColor:m.extend("--ft-content-global-on-color","Used for content on a dominant color.",x.colorWhite),borderActionPrimary:m.extend("--ft-border-action-primary","Used as border for primary action components.",x.colorBrand0),borderActionFocusRing:m.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",x.colorCyan0),borderWarningPrimary:m.extend("--ft-border-warning-primary","Used as border for warning components.",x.colorOrange30),borderSuccessPrimary:m.extend("--ft-border-success-primary","Used as border for success components.",x.colorGreen30),borderErrorPrimary:m.extend("--ft-border-error-primary","Used as border for error components.",x.colorRed30),borderInfoPrimary:m.extend("--ft-border-info-primary","Used as border for information components.",x.colorCyan30),borderGlobalSubtle:m.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",x.colorGray30),borderGlobalPrimary:m.extend("--ft-border-global-primary","Used as border for element like input.",x.colorGray50),borderInputPrimary:m.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",x.colorGray80)},N={largeHeight:m.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:m.extend("--ft-button-large-horizontal-padding","",x.spacing4),largeGap:m.extend("--ft-button-large-gap","",x.spacing2),largeBorderRadius:m.extend("--ft-button-large-border-radius","",x.borderRadiusS),largeIconSize:m.extend("--ft-button-large-icon-size","",x.iconSize3),largeBorderWidth:m.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:m.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:m.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:m.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:m.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:m.extend("--ft-button-small-horizontal-padding","",x.spacing3),smallGap:m.extend("--ft-button-small-gap","",x.spacing2),smallBorderRadius:m.extend("--ft-button-small-border-radius","",x.borderRadiusS),smallIconSize:m.extend("--ft-button-small-icon-size","",x.iconSize2),smallBorderWidth:m.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:m.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:m.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:m.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:m.extend("--ft-button-primary-background-color","",v.backgroundActionPrimary),primaryColor:m.extend("--ft-button-primary-color","",v.contentGlobalOnColor),primaryIconColor:m.extend("--ft-button-primary-icon-color","",v.contentGlobalOnColor),primaryStateLayerColor:m.extend("--ft-button-primary-state-layer-color","",v.contentGlobalOnColor),primaryStateLayerOpacityHover:m.extend("--ft-button-primary-state-layer-opacity-hover","",x.opacity16),primaryStateLayerOpacityFocus:m.extend("--ft-button-primary-state-layer-opacity-focus","",x.opacity16),primaryStateLayerOpacityActive:m.extend("--ft-button-primary-state-layer-opacity-active","",x.opacity24),primaryComponentOpacityDisabled:m.extend("--ft-button-primary-component-opacity-disabled","",x.opacity40),focusFocusRingColor:m.extend("--ft-button-focus-focus-ring-color","",v.borderActionFocusRing),tertiaryBackgroundColor:m.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:m.extend("--ft-button-tertiary-color","",v.contentActionPrimary),tertiaryIconColor:m.extend("--ft-button-tertiary-icon-color","",v.contentActionPrimary),tertiaryStateLayerColor:m.extend("--ft-button-tertiary-state-layer-color","",v.contentActionPrimary),tertiaryStateLayerOpacityHover:m.extend("--ft-button-tertiary-state-layer-opacity-hover","",x.opacity8),tertiaryStateLayerOpacityFocus:m.extend("--ft-button-tertiary-state-layer-opacity-focus","",x.opacity8),tertiaryStateLayerOpacityActive:m.extend("--ft-button-tertiary-state-layer-opacity-active","",x.opacity16),tertiaryComponentOpacityDisabled:m.extend("--ft-button-tertiary-component-opacity-disabled","",x.opacity40),secondaryBackgroundColor:m.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:m.extend("--ft-button-secondary-color","",v.contentActionPrimary),secondaryIconColor:m.extend("--ft-button-secondary-icon-color","",v.contentActionPrimary),secondaryStateLayerColor:m.extend("--ft-button-secondary-state-layer-color","",v.contentActionPrimary),secondaryStateLayerOpacityHover:m.extend("--ft-button-secondary-state-layer-opacity-hover","",x.opacity8),secondaryStateLayerOpacityFocus:m.extend("--ft-button-secondary-state-layer-opacity-focus","",x.opacity8),secondaryStateLayerOpacityActive:m.extend("--ft-button-secondary-state-layer-opacity-active","",x.opacity16),secondaryComponentOpacityDisabled:m.extend("--ft-button-secondary-component-opacity-disabled","",x.opacity40),secondaryBorderColor:m.extend("--ft-button-secondary-border-color","",v.borderActionPrimary),neutralBackgroundColor:m.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:m.extend("--ft-button-neutral-icon-color","",v.contentGlobalSecondary),neutralColor:m.extend("--ft-button-neutral-color","",v.contentGlobalSecondary),neutralStateLayerColor:m.extend("--ft-button-neutral-state-layer-color","",v.contentGlobalSecondary),neutralStateLayerOpacityHover:m.extend("--ft-button-neutral-state-layer-opacity-hover","",x.opacity8),neutralStateLayerOpacityFocus:m.extend("--ft-button-neutral-state-layer-opacity-focus","",x.opacity8),neutralStateLayerOpacityActive:m.extend("--ft-button-neutral-state-layer-opacity-active","",x.opacity16),neutralComponentOpacityDisabled:m.extend("--ft-button-neutral-component-opacity-disabled","",x.opacity40)};m.extend("--ft-tabs-top-left-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-top-right-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-label-horizontal-padding","",x.spacing4),m.extend("--ft-tabs-label-vertical-padding","",x.spacing3),m.extend("--ft-tabs-label-gap","",x.spacing1),m.extend("--ft-switch-group-horizontal-padding","",x.spacing1),m.extend("--ft-switch-group-vertical-padding","",x.spacing1),m.extend("--ft-switch-group-gap","",x.spacing1),m.extend("--ft-switch-group-background-color","",v.backgroundGlobalSurface),m.extend("--ft-switch-group-border-color","",v.borderGlobalSubtle),m.create("--ft-switch-group-border-radius","","SIZE","6px"),m.extend("--ft-switch-label-horizontal-padding","",x.spacing2),m.extend("--ft-switch-label-vertical-padding","",x.spacing1),m.extend("--ft-switch-icon-horizontal-padding","",x.spacing1),m.extend("--ft-switch-icon-vertical-padding","",x.spacing1),m.create("--ft-switch-focus-outline-width","","SIZE","2px"),m.extend("--ft-switch-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-switch-option-border-radius","",x.borderRadiusS),m.extend("--ft-switch-off-state-layer-opacity-hover","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-focus","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-active","",x.opacity16),m.extend("--ft-switch-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-switch-off-color","",v.contentGlobalSubtle),m.extend("--ft-switch-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-chart-1-light","for area color charts",x.colorBrand40),m.extend("--ft-chart-1-base","for line charts",x.colorBrand0),m.extend("--ft-chart-2-light","for area color charts",x.colorYellow60),m.extend("--ft-chart-2-base","for line charts",x.colorYellow100),m.extend("--ft-chart-3-light","",x.colorUltramarine40),m.extend("--ft-chart-3-base","",x.colorUltramarine70),m.extend("--ft-chart-4-light","",x.colorCyan50),m.extend("--ft-chart-4-base","",x.colorCyan100),m.extend("--ft-chart-5-light","",x.colorRed40),m.extend("--ft-chart-5-base","",x.colorRed60),m.extend("--ft-chart-6-light","",x.colorGreen40),m.extend("--ft-chart-6-base","",x.colorGreen70),m.extend("--ft-chart-7-light","",x.colorOrange70),m.extend("--ft-chart-7-base","",x.colorOrange100),m.extend("--ft-chart-8-light","",x.colorAvocado70),m.extend("--ft-chart-8-base","",x.colorAvocado200),m.extend("--ft-chart-9-light","",x.colorBrown50),m.extend("--ft-chart-9-base","",x.colorBrown200),m.extend("--ft-chart-10-light","",x.colorGray50),m.extend("--ft-chart-10-base","",x.colorGray80),m.extend("--ft-chart-monochrome-10","",x.colorBrand10),m.extend("--ft-chart-monochrome-20","",x.colorBrand20),m.extend("--ft-chart-monochrome-30","",x.colorBrand40),m.extend("--ft-chart-monochrome-40","",x.colorBrand60),m.extend("--ft-chart-monochrome-50","",x.colorBrand0),m.extend("--ft-chart-monochrome-60","",x.colorBrand200),m.extend("--ft-chip-large-horizontal-padding","",x.spacing4),m.extend("--ft-chip-large-vertical-padding","",x.spacing2),m.extend("--ft-chip-large-gap","",x.spacing1),m.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-large-border-radius","",x.borderRadiusPill),m.create("--ft-chip-large-border-width","","SIZE","1px"),m.extend("--ft-chip-large-icon-size","",x.iconSize3),m.extend("--ft-chip-medium-horizontal-padding","",x.spacing3),m.extend("--ft-chip-medium-vertical-padding","",x.spacing1),m.extend("--ft-chip-medium-gap","",x.spacing1),m.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-medium-border-radius","",x.borderRadiusPill),m.create("--ft-chip-medium-border-width","","SIZE","1px"),m.extend("--ft-chip-medium-icon-size","",x.iconSize2),m.extend("--ft-chip-small-horizontal-padding","",x.spacing2),m.extend("--ft-chip-small-vertical-padding","",x.spacing05),m.extend("--ft-chip-small-gap","",x.spacing1),m.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-small-border-radius","",x.borderRadiusPill),m.create("--ft-chip-small-border-width","","SIZE","1px"),m.extend("--ft-chip-small-icon-size","",x.iconSize1),m.extend("--ft-chip-neutral-background-color","",v.backgroundGlobalOnSurface),m.extend("--ft-chip-neutral-color","",v.contentGlobalPrimary),m.extend("--ft-chip-neutral-border-color","",v.borderGlobalSubtle),m.extend("--ft-chip-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-chip-info-color","",v.contentInfoPrimary),m.extend("--ft-chip-info-border-color","",v.borderInfoPrimary),m.extend("--ft-chip-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-chip-success-color","",v.contentSuccessPrimary),m.extend("--ft-chip-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-chip-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-chip-warning-color","",v.contentWarningPrimary),m.extend("--ft-chip-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-chip-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-chip-error-color","",v.contentErrorPrimary),m.extend("--ft-chip-error-border-color","",v.borderErrorPrimary),m.create("--ft-notice-border-width","","SIZE","1px"),m.extend("--ft-notice-horizontal-padding","",x.spacing2),m.extend("--ft-notice-vertical-padding","",x.spacing1),m.extend("--ft-notice-border-radius","",x.borderRadiusS),m.extend("--ft-notice-gap","",x.spacing2),m.extend("--ft-notice-icon-size","",x.iconSize3),m.extend("--ft-notice-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notice-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notice-info-color","",v.contentInfoPrimary),m.extend("--ft-notice-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notice-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notice-warning-color","",v.contentWarningPrimary),m.extend("--ft-checkbox-label-color","",v.contentGlobalPrimary),m.extend("--ft-checkbox-checked-background-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-state-layer-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-color","",v.contentGlobalOnColor),m.extend("--ft-checkbox-checked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-checked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-unchecked-border-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-unchecked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),m.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),m.extend("--ft-checkbox-gap","",x.spacing3),m.extend("--ft-toggle-off-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-off-background-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-icon-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-on-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-on-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-on-background-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-icon-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-state-layer-color","",v.contentActionPrimary),m.extend("--ft-toggle-label-color","",v.contentGlobalPrimary),m.extend("--ft-toggle-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-toggle-gap","",x.spacing3),m.extend("--ft-radio-label-color","",v.contentGlobalPrimary),m.extend("--ft-radio-selected-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-selected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-unselected-state-layer-color","",x.colorGray80),m.extend("--ft-radio-unselected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-unselected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-radio-focus-outline-offset","","SIZE","3px"),m.create("--ft-radio-focus-outline-width","","SIZE","2px"),m.extend("--ft-radio-gap","",x.spacing3),m.extend("--ft-notification-icon-size","",x.iconSize4),m.extend("--ft-notification-horizontal-padding","",x.spacing4),m.extend("--ft-notification-vertical-padding","",x.spacing4),m.extend("--ft-notification-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notification-info-color","",v.contentInfoPrimary),m.extend("--ft-notification-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notification-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-notification-success-color","",v.contentSuccessPrimary),m.extend("--ft-notification-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-notification-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notification-warning-color","",v.contentWarningPrimary),m.extend("--ft-notification-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notification-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-notification-error-color","",v.contentErrorPrimary),m.extend("--ft-notification-error-border-color","",v.borderErrorPrimary),m.extend("--ft-notification-border-radius","",x.borderRadiusPill),m.create("--ft-notification-border-width","","SIZE","1px"),m.extend("--ft-notification-gap-leading","",x.spacing2),m.extend("--ft-notification-gap-trailing","",x.spacing8);const S=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),$=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),w={fontFamily:$,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},C=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",S),I=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),R=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),k=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),U=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),W=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit"),E=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",S),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),F=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit"),B=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),_=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),Y=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),V=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit"),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$),q=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),J=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),tt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),ot=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit"),et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),it=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),nt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),lt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit"),ct=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$),st=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),dt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),ht=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit"),yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),xt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit"),Ot=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),$t=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),wt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase"),Ct={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase")},It=e.css`
|
|
144
|
+
`,b=t=>"string"==typeof t?e.unsafeCSS(t):t;class m{static create(t,o,r,i){const n=t=>b(null!=t?t:i),a=e.css`var(${b(t)}, ${n(i)})`;return a.name=t,a.description=o,a.category=r,a.defaultValue=i,a.defaultCssValue=n,a.get=o=>e.css`var(${b(t)}, ${n(o)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>i,a}static extend(t,o,r,i){const n=t=>r.get(null!=t?t:i),a=e.css`var(${b(t)}, ${n(i)})`;return a.name=t,a.description=o,a.category=r.category,a.fallbackVariable=r,a.defaultValue=i,a.defaultCssValue=n,a.get=o=>e.css`var(${b(t)}, ${n(o)})`,a.breadcrumb=()=>[r.name,...r.breadcrumb()],a.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),a}static external(t,o){const r=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):b(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${b(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=r,i.get=o=>e.css`var(${b(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const x={colorWhite:m.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:m.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:m.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:m.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:m.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:m.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:m.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:m.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:m.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:m.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:m.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:m.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:m.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:m.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:m.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:m.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:m.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:m.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:m.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:m.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:m.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:m.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:m.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:m.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:m.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:m.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:m.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:m.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:m.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:m.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:m.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:m.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:m.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:m.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:m.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:m.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:m.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:m.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:m.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:m.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:m.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:m.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:m.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:m.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:m.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:m.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:m.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:m.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:m.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:m.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:m.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:m.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:m.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:m.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:m.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:m.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:m.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:m.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:m.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:m.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:m.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:m.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:m.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:m.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:m.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:m.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:m.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:m.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:m.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:m.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:m.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:m.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:m.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:m.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:m.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:m.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:m.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:m.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:m.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:m.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:m.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:m.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:m.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:m.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:m.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:m.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:m.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:m.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:m.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:m.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:m.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:m.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:m.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:m.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:m.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:m.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:m.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:m.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:m.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:m.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:m.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:m.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:m.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:m.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:m.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:m.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:m.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:m.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:m.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:m.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:m.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:m.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:m.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:m.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:m.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:m.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:m.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:m.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:m.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:m.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:m.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:m.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:m.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:m.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:m.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:m.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:m.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:m.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:m.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:m.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:m.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:m.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:m.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:m.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:m.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:m.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:m.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:m.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:m.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:m.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:m.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:m.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:m.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:m.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:m.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:m.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:m.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:m.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:m.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:m.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:m.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:m.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:m.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:m.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:m.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:m.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:m.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:m.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:m.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:m.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:m.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:m.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:m.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:m.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:m.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:m.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:m.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:m.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:m.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:m.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:m.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:m.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:m.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:m.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:m.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:m.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:m.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:m.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:m.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:m.create("--ft-icon-size-6","","SIZE","48px"),opacity0:m.create("--ft-opacity-0","","NUMBER","0"),opacity8:m.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:m.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:m.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:m.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:m.create("--ft-opacity-80","","NUMBER","0.8")},O={display:{fontFamily:m.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:m.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:m.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:m.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:m.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:m.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:m.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:m.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:m.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:m.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:m.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:m.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:m.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:m.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:m.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:m.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:m.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:m.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:m.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:m.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:m.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:m.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:m.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:m.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:m.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:m.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:m.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},v={backgroundActionPrimary:m.extend("--ft-background-action-primary","Used as backgorund of primary action components.",x.colorBrand0),backgroundErrorPrimary:m.extend("--ft-background-error-primary","Used as background of error components.",x.colorRed0),backgroundErrorSubtle:m.extend("--ft-background-error-subtle","Used as background of subtle error components.",x.colorRed10),backgroundInfoPrimary:m.extend("--ft-background-info-primary","Used as background of information components.",x.colorCyan200),backgroundInfoSubtle:m.extend("--ft-background-info-subtle","Used as background of subtle information components.",x.colorCyan10),backgroundWarningPrimary:m.extend("--ft-background-warning-primary","Used as background of warning components.",x.colorOrange300),backgroundWarningSubtle:m.extend("--ft-background-warning-subtle","Used as background of subtle information components.",x.colorOrange10),backgroundSuccessPrimary:m.extend("--ft-background-success-primary","Used as background of success components.",x.colorGreen200),backgroundSuccessSubtle:m.extend("--ft-background-success-subtle","Used as background of subtle success components.",x.colorGreen10),backgroundGlobalSurface:m.extend("--ft-background-global-surface","Used as app background.",x.colorWhite),backgroundGlobalOnSurface:m.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",x.colorGray10),backgroundGlobalOnSurfaceDark:m.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",x.colorGray30),contentActionPrimary:m.extend("--ft-content-action-primary","Used on label of primary action on light surface.",x.colorBrand0),contentWarningPrimary:m.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",x.colorOrange300),contentWarningIconOnly:m.extend("--ft-content-warning-icon-only","Used on warning status icons alone",x.colorOrange0),contentErrorPrimary:m.extend("--ft-content-error-primary","Used on label of error messages on light surface.",x.colorRed0),contentErrorIconOnly:m.extend("--ft-content-error-icon-only","Used on error status icons alone",x.colorRed0),contentInfoPrimary:m.extend("--ft-content-info-primary","Used on label of information messages on light surface.",x.colorCyan200),contentInfoIconOnly:m.extend("--ft-content-info-icon-only","Used on info status icons alone",x.colorCyan0),contentSuccessIconOnly:m.extend("--ft-content-success-icon-only","Used on success status icons alone",x.colorGreen0),contentSuccessPrimary:m.extend("--ft-content-success-primary","Used on label of success messages on light surface.",x.colorGreen200),contentGlobalPrimary:m.extend("--ft-content-global-primary","Used for main content on the page.",x.colorGray500),contentGlobalSecondary:m.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",x.colorGray200),contentGlobalSubtle:m.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",x.colorGray0),contentGlobalOnColor:m.extend("--ft-content-global-on-color","Used for content on a dominant color.",x.colorWhite),borderActionPrimary:m.extend("--ft-border-action-primary","Used as border for primary action components.",x.colorBrand0),borderActionFocusRing:m.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",x.colorCyan0),borderWarningPrimary:m.extend("--ft-border-warning-primary","Used as border for warning components.",x.colorOrange30),borderSuccessPrimary:m.extend("--ft-border-success-primary","Used as border for success components.",x.colorGreen30),borderErrorPrimary:m.extend("--ft-border-error-primary","Used as border for error components.",x.colorRed30),borderInfoPrimary:m.extend("--ft-border-info-primary","Used as border for information components.",x.colorCyan30),borderGlobalSubtle:m.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",x.colorGray30),borderGlobalPrimary:m.extend("--ft-border-global-primary","Used as border for element like input.",x.colorGray50),borderInputPrimary:m.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",x.colorGray80)},N={largeHeight:m.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:m.extend("--ft-button-large-horizontal-padding","",x.spacing4),largeGap:m.extend("--ft-button-large-gap","",x.spacing2),largeBorderRadius:m.extend("--ft-button-large-border-radius","",x.borderRadiusS),largeIconSize:m.extend("--ft-button-large-icon-size","",x.iconSize3),largeBorderWidth:m.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:m.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:m.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:m.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:m.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:m.extend("--ft-button-small-horizontal-padding","",x.spacing3),smallGap:m.extend("--ft-button-small-gap","",x.spacing2),smallBorderRadius:m.extend("--ft-button-small-border-radius","",x.borderRadiusS),smallIconSize:m.extend("--ft-button-small-icon-size","",x.iconSize2),smallBorderWidth:m.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:m.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:m.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:m.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:m.extend("--ft-button-primary-background-color","",v.backgroundActionPrimary),primaryColor:m.extend("--ft-button-primary-color","",v.contentGlobalOnColor),primaryIconColor:m.extend("--ft-button-primary-icon-color","",v.contentGlobalOnColor),primaryStateLayerColor:m.extend("--ft-button-primary-state-layer-color","",v.contentGlobalOnColor),primaryStateLayerOpacityHover:m.extend("--ft-button-primary-state-layer-opacity-hover","",x.opacity16),primaryStateLayerOpacityFocus:m.extend("--ft-button-primary-state-layer-opacity-focus","",x.opacity16),primaryStateLayerOpacityActive:m.extend("--ft-button-primary-state-layer-opacity-active","",x.opacity24),primaryComponentOpacityDisabled:m.extend("--ft-button-primary-component-opacity-disabled","",x.opacity40),focusFocusRingColor:m.extend("--ft-button-focus-focus-ring-color","",v.borderActionFocusRing),tertiaryBackgroundColor:m.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:m.extend("--ft-button-tertiary-color","",v.contentActionPrimary),tertiaryIconColor:m.extend("--ft-button-tertiary-icon-color","",v.contentActionPrimary),tertiaryStateLayerColor:m.extend("--ft-button-tertiary-state-layer-color","",v.contentActionPrimary),tertiaryStateLayerOpacityHover:m.extend("--ft-button-tertiary-state-layer-opacity-hover","",x.opacity8),tertiaryStateLayerOpacityFocus:m.extend("--ft-button-tertiary-state-layer-opacity-focus","",x.opacity8),tertiaryStateLayerOpacityActive:m.extend("--ft-button-tertiary-state-layer-opacity-active","",x.opacity16),tertiaryComponentOpacityDisabled:m.extend("--ft-button-tertiary-component-opacity-disabled","",x.opacity40),secondaryBackgroundColor:m.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:m.extend("--ft-button-secondary-color","",v.contentActionPrimary),secondaryIconColor:m.extend("--ft-button-secondary-icon-color","",v.contentActionPrimary),secondaryStateLayerColor:m.extend("--ft-button-secondary-state-layer-color","",v.contentActionPrimary),secondaryStateLayerOpacityHover:m.extend("--ft-button-secondary-state-layer-opacity-hover","",x.opacity8),secondaryStateLayerOpacityFocus:m.extend("--ft-button-secondary-state-layer-opacity-focus","",x.opacity8),secondaryStateLayerOpacityActive:m.extend("--ft-button-secondary-state-layer-opacity-active","",x.opacity16),secondaryComponentOpacityDisabled:m.extend("--ft-button-secondary-component-opacity-disabled","",x.opacity40),secondaryBorderColor:m.extend("--ft-button-secondary-border-color","",v.borderActionPrimary),neutralBackgroundColor:m.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:m.extend("--ft-button-neutral-icon-color","",v.contentGlobalSecondary),neutralColor:m.extend("--ft-button-neutral-color","",v.contentGlobalSecondary),neutralStateLayerColor:m.extend("--ft-button-neutral-state-layer-color","",v.contentGlobalSecondary),neutralStateLayerOpacityHover:m.extend("--ft-button-neutral-state-layer-opacity-hover","",x.opacity8),neutralStateLayerOpacityFocus:m.extend("--ft-button-neutral-state-layer-opacity-focus","",x.opacity8),neutralStateLayerOpacityActive:m.extend("--ft-button-neutral-state-layer-opacity-active","",x.opacity16),neutralComponentOpacityDisabled:m.extend("--ft-button-neutral-component-opacity-disabled","",x.opacity40)};m.extend("--ft-tabs-top-left-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-top-right-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-label-horizontal-padding","",x.spacing4),m.extend("--ft-tabs-label-vertical-padding","",x.spacing3),m.extend("--ft-tabs-label-gap","",x.spacing1),m.extend("--ft-switch-group-horizontal-padding","",x.spacing1),m.extend("--ft-switch-group-vertical-padding","",x.spacing1),m.extend("--ft-switch-group-gap","",x.spacing1),m.extend("--ft-switch-group-background-color","",v.backgroundGlobalSurface),m.extend("--ft-switch-group-border-color","",v.borderGlobalSubtle),m.create("--ft-switch-group-border-radius","","SIZE","6px"),m.extend("--ft-switch-label-horizontal-padding","",x.spacing2),m.extend("--ft-switch-label-vertical-padding","",x.spacing1),m.extend("--ft-switch-icon-horizontal-padding","",x.spacing1),m.extend("--ft-switch-icon-vertical-padding","",x.spacing1),m.create("--ft-switch-focus-outline-width","","SIZE","2px"),m.extend("--ft-switch-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-switch-option-border-radius","",x.borderRadiusS),m.extend("--ft-switch-off-state-layer-opacity-hover","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-focus","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-active","",x.opacity16),m.extend("--ft-switch-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-switch-off-color","",v.contentGlobalSubtle),m.extend("--ft-switch-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-chart-1-light","for area color charts",x.colorBrand40),m.extend("--ft-chart-1-base","for line charts",x.colorBrand0),m.extend("--ft-chart-2-light","for area color charts",x.colorYellow60),m.extend("--ft-chart-2-base","for line charts",x.colorYellow100),m.extend("--ft-chart-3-light","",x.colorUltramarine40),m.extend("--ft-chart-3-base","",x.colorUltramarine70),m.extend("--ft-chart-4-light","",x.colorCyan50),m.extend("--ft-chart-4-base","",x.colorCyan100),m.extend("--ft-chart-5-light","",x.colorRed40),m.extend("--ft-chart-5-base","",x.colorRed60),m.extend("--ft-chart-6-light","",x.colorGreen40),m.extend("--ft-chart-6-base","",x.colorGreen70),m.extend("--ft-chart-7-light","",x.colorOrange70),m.extend("--ft-chart-7-base","",x.colorOrange100),m.extend("--ft-chart-8-light","",x.colorAvocado70),m.extend("--ft-chart-8-base","",x.colorAvocado200),m.extend("--ft-chart-9-light","",x.colorBrown50),m.extend("--ft-chart-9-base","",x.colorBrown200),m.extend("--ft-chart-10-light","",x.colorGray50),m.extend("--ft-chart-10-base","",x.colorGray80),m.extend("--ft-chart-monochrome-10","",x.colorBrand10),m.extend("--ft-chart-monochrome-20","",x.colorBrand20),m.extend("--ft-chart-monochrome-30","",x.colorBrand40),m.extend("--ft-chart-monochrome-40","",x.colorBrand60),m.extend("--ft-chart-monochrome-50","",x.colorBrand0),m.extend("--ft-chart-monochrome-60","",x.colorBrand200),m.extend("--ft-chip-large-horizontal-padding","",x.spacing4),m.extend("--ft-chip-large-vertical-padding","",x.spacing2),m.extend("--ft-chip-large-gap","",x.spacing1),m.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-large-border-radius","",x.borderRadiusPill),m.create("--ft-chip-large-border-width","","SIZE","1px"),m.extend("--ft-chip-large-icon-size","",x.iconSize3),m.extend("--ft-chip-medium-horizontal-padding","",x.spacing3),m.extend("--ft-chip-medium-vertical-padding","",x.spacing1),m.extend("--ft-chip-medium-gap","",x.spacing1),m.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-medium-border-radius","",x.borderRadiusPill),m.create("--ft-chip-medium-border-width","","SIZE","1px"),m.extend("--ft-chip-medium-icon-size","",x.iconSize2),m.extend("--ft-chip-small-horizontal-padding","",x.spacing2),m.extend("--ft-chip-small-vertical-padding","",x.spacing05),m.extend("--ft-chip-small-gap","",x.spacing1),m.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-small-border-radius","",x.borderRadiusPill),m.create("--ft-chip-small-border-width","","SIZE","1px"),m.extend("--ft-chip-small-icon-size","",x.iconSize1),m.extend("--ft-chip-neutral-background-color","",v.backgroundGlobalOnSurface),m.extend("--ft-chip-neutral-color","",v.contentGlobalPrimary),m.extend("--ft-chip-neutral-border-color","",v.borderGlobalSubtle),m.extend("--ft-chip-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-chip-info-color","",v.contentInfoPrimary),m.extend("--ft-chip-info-border-color","",v.borderInfoPrimary),m.extend("--ft-chip-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-chip-success-color","",v.contentSuccessPrimary),m.extend("--ft-chip-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-chip-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-chip-warning-color","",v.contentWarningPrimary),m.extend("--ft-chip-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-chip-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-chip-error-color","",v.contentErrorPrimary),m.extend("--ft-chip-error-border-color","",v.borderErrorPrimary),m.create("--ft-notice-border-width","","SIZE","1px"),m.extend("--ft-notice-horizontal-padding","",x.spacing2),m.extend("--ft-notice-vertical-padding","",x.spacing1),m.extend("--ft-notice-border-radius","",x.borderRadiusS),m.extend("--ft-notice-gap","",x.spacing2),m.extend("--ft-notice-icon-size","",x.iconSize3),m.extend("--ft-notice-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notice-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notice-info-color","",v.contentInfoPrimary),m.extend("--ft-notice-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notice-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notice-warning-color","",v.contentWarningPrimary),m.extend("--ft-checkbox-label-color","",v.contentGlobalPrimary),m.extend("--ft-checkbox-checked-background-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-state-layer-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-color","",v.contentGlobalOnColor),m.extend("--ft-checkbox-checked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-checked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-unchecked-border-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-unchecked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),m.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),m.extend("--ft-checkbox-gap","",x.spacing3),m.extend("--ft-toggle-off-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-off-background-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-icon-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-on-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-on-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-on-background-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-icon-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-state-layer-color","",v.contentActionPrimary),m.extend("--ft-toggle-label-color","",v.contentGlobalPrimary),m.extend("--ft-toggle-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-toggle-gap","",x.spacing3),m.extend("--ft-radio-label-color","",v.contentGlobalPrimary),m.extend("--ft-radio-selected-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-selected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-unselected-state-layer-color","",x.colorGray80),m.extend("--ft-radio-unselected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-unselected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-radio-focus-outline-offset","","SIZE","3px"),m.create("--ft-radio-focus-outline-width","","SIZE","2px"),m.extend("--ft-radio-gap","",x.spacing3),m.extend("--ft-notification-icon-size","",x.iconSize4),m.extend("--ft-notification-horizontal-padding","",x.spacing4),m.extend("--ft-notification-vertical-padding","",x.spacing4),m.extend("--ft-notification-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notification-info-color","",v.contentInfoPrimary),m.extend("--ft-notification-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notification-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-notification-success-color","",v.contentSuccessPrimary),m.extend("--ft-notification-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-notification-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notification-warning-color","",v.contentWarningPrimary),m.extend("--ft-notification-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notification-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-notification-error-color","",v.contentErrorPrimary),m.extend("--ft-notification-error-border-color","",v.borderErrorPrimary),m.extend("--ft-notification-border-radius","",x.borderRadiusPill),m.create("--ft-notification-border-width","","SIZE","1px"),m.extend("--ft-notification-gap-leading","",x.spacing2),m.extend("--ft-notification-gap-trailing","",x.spacing8);const S=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),w=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),$={fontFamily:w,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},C=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",S),I=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),R=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),k=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),U=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),W=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit"),E=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",S),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),B=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit"),F=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",w),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",w),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),_=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),Y=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),V=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit"),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",w),q=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),J=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),tt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),ot=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit"),et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",w),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),it=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),nt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),lt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit"),ct=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",w),st=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),dt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),ht=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit"),yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",w),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),xt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit"),Ot=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",w),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),wt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),$t=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase"),Ct={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",w),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},It=e.css`
|
|
145
145
|
.ft-typography--title {
|
|
146
146
|
font-family: ${C};
|
|
147
147
|
font-size: ${I};
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
font-weight: ${K};
|
|
158
158
|
letter-spacing: ${Z};
|
|
159
159
|
line-height: ${z};
|
|
160
|
-
text-transform: ${
|
|
160
|
+
text-transform: ${B};
|
|
161
161
|
}
|
|
162
162
|
`,kt=e.css`
|
|
163
163
|
.ft-typography--subtitle1 {
|
|
164
|
-
font-family: ${
|
|
164
|
+
font-family: ${F};
|
|
165
165
|
font-size: ${D};
|
|
166
166
|
font-weight: ${A};
|
|
167
167
|
letter-spacing: ${H};
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
font-size: ${vt};
|
|
221
221
|
font-weight: ${Nt};
|
|
222
222
|
letter-spacing: ${St};
|
|
223
|
-
line-height: ${
|
|
224
|
-
text-transform: ${
|
|
223
|
+
line-height: ${wt};
|
|
224
|
+
text-transform: ${$t};
|
|
225
225
|
}
|
|
226
226
|
`,zt=e.css`
|
|
227
227
|
.ft-typography--button {
|
|
@@ -232,11 +232,11 @@
|
|
|
232
232
|
line-height: ${Ct.lineHeight};
|
|
233
233
|
text-transform: ${Ct.textTransform};
|
|
234
234
|
}
|
|
235
|
-
`,
|
|
235
|
+
`,Bt=e.css`
|
|
236
236
|
.ft-typography {
|
|
237
237
|
vertical-align: inherit;
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,Ft=[Object.keys(O).map((t=>function(t){const o=O[t];return e.css`
|
|
240
240
|
.ft-typography--${e.unsafeCSS(t)} {
|
|
241
241
|
font-family: ${o.fontFamily};
|
|
242
242
|
font-size: ${o.fontSize};
|
|
@@ -516,20 +516,20 @@
|
|
|
516
516
|
* Copyright 2017 Google LLC
|
|
517
517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
518
518
|
*/
|
|
519
|
-
const to=globalThis,oo=to.trustedTypes,eo=oo?oo.createPolicy("lit-html",{createHTML:t=>t}):void 0,ro="$lit$",io=`lit$${(Math.random()+"").slice(9)}$`,no="?"+io,ao=`<${no}>`,lo=document,co=()=>lo.createComment(""),so=t=>null===t||"object"!=typeof t&&"function"!=typeof t,fo=Array.isArray,po="[ \t\n\f\r]",ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,go=/>/g,uo=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,mo=/"/g,xo=/^(?:script|style|textarea|title)$/i,Oo=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),vo=Symbol.for("lit-noChange"),No=Symbol.for("lit-nothing"),So=new WeakMap
|
|
519
|
+
const to=globalThis,oo=to.trustedTypes,eo=oo?oo.createPolicy("lit-html",{createHTML:t=>t}):void 0,ro="$lit$",io=`lit$${(Math.random()+"").slice(9)}$`,no="?"+io,ao=`<${no}>`,lo=document,co=()=>lo.createComment(""),so=t=>null===t||"object"!=typeof t&&"function"!=typeof t,fo=Array.isArray,po="[ \t\n\f\r]",ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,go=/>/g,uo=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,mo=/"/g,xo=/^(?:script|style|textarea|title)$/i,Oo=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),vo=Symbol.for("lit-noChange"),No=Symbol.for("lit-nothing"),So=new WeakMap,wo=lo.createTreeWalker(lo,129);function $o(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==eo?eo.createHTML(o):o}const Co=(t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=ho;for(let o=0;o<e;o++){const e=t[o];let l,c,s=-1,f=0;for(;f<e.length&&(a.lastIndex=f,c=a.exec(e),null!==c);)f=a.lastIndex,a===ho?"!--"===c[1]?a=yo:void 0!==c[1]?a=go:void 0!==c[2]?(xo.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=uo):void 0!==c[3]&&(a=uo):a===uo?">"===c[0]?(a=i??ho,s=-1):void 0===c[1]?s=-2:(s=a.lastIndex-c[2].length,l=c[1],a=void 0===c[3]?uo:'"'===c[3]?mo:bo):a===mo||a===bo?a=uo:a===yo||a===go?a=ho:(a=uo,i=void 0);const p=a===uo&&t[o+1].startsWith("/>")?" ":"";n+=a===ho?e+ao:s>=0?(r.push(l),e.slice(0,s)+ro+e.slice(s)+io+p):e+io+(-2===s?o:p)}return[$o(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class Io{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[c,s]=Co(t,o);if(this.el=Io.createElement(c,e),wo.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=wo.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(ro)){const o=s[n++],e=r.getAttribute(t).split(io),a=/([.?@])?(.*)/.exec(o);l.push({type:1,index:i,name:a[2],strings:e,ctor:"."===a[1]?Eo:"?"===a[1]?Lo:"@"===a[1]?Ko:Wo}),r.removeAttribute(t)}else t.startsWith(io)&&(l.push({type:6,index:i}),r.removeAttribute(t));if(xo.test(r.tagName)){const t=r.textContent.split(io),o=t.length-1;if(o>0){r.textContent=oo?oo.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],co()),wo.nextNode(),l.push({type:2,index:++i});r.append(t[o],co())}}}else if(8===r.nodeType)if(r.data===no)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(io,t+1));)l.push({type:7,index:i}),t+=io.length-1}i++}}static createElement(t,o){const e=lo.createElement("template");return e.innerHTML=t,e}}function Ro(t,o,e=t,r){if(o===vo)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=so(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=Ro(t,i._$AS(t,o.values),i,r)),o}class ko{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??lo).importNode(o,!0);wo.currentNode=r;let i=wo.nextNode(),n=0,a=0,l=e[0];for(;void 0!==l;){if(n===l.index){let o;2===l.type?o=new Uo(i,i.nextSibling,this,t):1===l.type?o=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(o=new Zo(i,this,t)),this._$AV.push(o),l=e[++a]}n!==l?.index&&(i=wo.nextNode(),n++)}return wo.currentNode=lo,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class Uo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=No,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Ro(this,t,o),so(t)?t===No||null==t||""===t?(this._$AH!==No&&this._$AR(),this._$AH=No):t!==this._$AH&&t!==vo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>fo(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==No&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(lo.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=Io.createElement($o(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new ko(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=So.get(t.strings);return void 0===o&&So.set(t.strings,o=new Io(t)),o}T(t){fo(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new Uo(this.k(co()),this.k(co()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Wo{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=No,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=No}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=Ro(this,t,o,0),n=!so(t)||t!==this._$AH&&t!==vo,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=Ro(this,r[e+a],o,a),l===vo&&(l=this._$AH[a]),n||=!so(l)||l!==this._$AH[a],l===No?t=No:t!==No&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.O(t)}O(t){t===No?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Eo extends Wo{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===No?void 0:t}}class Lo extends Wo{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==No)}}class Ko extends Wo{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=Ro(this,t,o,0)??No)===vo)return;const e=this._$AH,r=t===No&&e!==No||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==No&&(e===No||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Zo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Ro(this,t)}}const zo=to.litHtmlPolyfillSupport;zo?.(Io,Uo),(to.litHtmlVersions??=[]).push("3.1.0");
|
|
520
520
|
/**
|
|
521
521
|
* @license
|
|
522
522
|
* Copyright 2020 Google LLC
|
|
523
523
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
524
524
|
*/
|
|
525
|
-
const
|
|
525
|
+
const Bo=Symbol.for(""),Fo=t=>{if(t?.r===Bo)return t?._$litStatic$},Do=t=>({_$litStatic$:t,r:Bo}),Ao=new Map,Ho=(t=>(o,...e)=>{const r=e.length;let i,n;const a=[],l=[];let c,s=0,f=!1;for(;s<r;){for(c=o[s];s<r&&void 0!==(n=e[s],i=Fo(n));)c+=i+o[++s],f=!0;s!==r&&l.push(n),a.push(c),s++}if(s===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=Ao.get(t))&&(a.raw=a,Ao.set(t,o=a)),e=l}return t(o,...e)})(Oo);var Go;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Go||(Go={}));var Po=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class jo extends o.FtLitElement{constructor(){super(...arguments),this.variant=Go.body1}render(){return this.element?Ho`
|
|
526
526
|
<${Do(this.element)}
|
|
527
527
|
class="ft-typography ft-typography--${this.variant}">
|
|
528
528
|
<slot></slot>
|
|
529
529
|
</${Do(this.element)}>
|
|
530
530
|
`:Ho`
|
|
531
531
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
532
|
-
`}}jo.styles=[It,Rt,kt,Ut,Wt,Et,Lt,Kt,Zt,zt,Ft
|
|
532
|
+
`}}jo.styles=[It,Rt,kt,Ut,Wt,Et,Lt,Kt,Zt,zt,Bt,...Ft],Po([r.property()],jo.prototype,"element",void 0),Po([r.property()],jo.prototype,"variant",void 0),o.customElement("ft-typography")(jo);const Mo=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),To=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),_o=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Yo=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Vo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Xo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),qo=e.css`
|
|
533
533
|
.ft-tooltip--container {
|
|
534
534
|
display: block;
|
|
535
535
|
}
|
|
@@ -540,7 +540,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
.ft-tooltip {
|
|
543
|
-
position:
|
|
543
|
+
position: fixed;
|
|
544
544
|
box-sizing: border-box;
|
|
545
545
|
overflow: hidden;
|
|
546
546
|
width: max-content;
|
|
@@ -558,7 +558,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
558
558
|
position: relative;
|
|
559
559
|
word-break: break-word;
|
|
560
560
|
}
|
|
561
|
-
`,Jo=["start","end"],Qo=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Jo[0],o+"-"+Jo[1])),[]),te=Math.min,oe=Math.max,ee=Math.round,re=t=>({x:t,y:t}),ie={left:"right",right:"left",bottom:"top",top:"bottom"},ne={start:"end",end:"start"};function ae(t,o,e){return oe(t,te(o,e))}function le(t,o){return"function"==typeof t?t(o):t}function ce(t){return t.split("-")[0]}function se(t){return t.split("-")[1]}function fe(t){return"x"===t?"y":"x"}function pe(t){return"y"===t?"height":"width"}function de(t){return["top","bottom"].includes(ce(t))?"y":"x"}function he(t){return fe(de(t))}function ye(t){return t.replace(/left|right|bottom|top/g,(t=>ie[t]))}function ge(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ue(t,o,e){let{reference:r,floating:i}=t;const n=de(o),a=he(o),l=pe(a),c=ce(o),s="y"===n,f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(se(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function be(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=le(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===p?"reference":"floating":p],u=ge(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:c})),b="floating"===p?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ge(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function me(t,o,e){return(t?[...e.filter((o=>se(o)===t)),...e.filter((o=>se(o)!==t))]:e.filter((t=>ce(t)===t))).filter((e=>!t||(se(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ne[t]))}(e)!==e)))}const xe=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:d=Qo,autoAlignment:h=!0,...y}=le(t,o),g=void 0!==p||d===Qo?me(p||null,h,d):d,u=await be(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=se(t),i=he(t),n=pe(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ye(a)),[a,ye(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[ce(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=se(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),$=S.filter((t=>t[2].slice(0,se(t[0])?2:3).every((t=>t<=0)))),w=(null==(i=$[0])?void 0:i[0])||S[0][0];return w!==l?{data:{index:b+1,overflows:v},reset:{placement:w}}:{}}}},Oe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=le(t,o),s={x:e,y:r},f=await be(o,c),p=de(ce(i)),d=fe(p);let h=s[d],y=s[p];if(n){const t="y"===d?"bottom":"right";h=ae(h+f["y"===d?"top":"left"],h,h-f[t])}if(a){const t="y"===p?"bottom":"right";y=ae(y+f["y"===p?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[p]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}};function ve(t){return $e(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Se(t){var o;return null==(o=($e(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function $e(t){return t instanceof Node||t instanceof Ne(t).Node}function we(t){return t instanceof Element||t instanceof Ne(t).Element}function Ce(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function Ie(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot)}function Re(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function ke(t){return["table","td","th"].includes(ve(t))}function Ue(t){const o=We(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function We(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ee(t){return["html","body","#document"].includes(ve(t))}function Le(t){return Ne(t).getComputedStyle(t)}function Ke(t){return we(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(t){if("html"===ve(t))return t;const o=t.assignedSlot||t.parentNode||Ie(t)&&t.host||Se(t);return Ie(o)?o.host:o}function ze(t){const o=Ze(t);return Ee(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ce(o)&&Re(o)?o:ze(o)}function Fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=ze(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ne(i);return n?o.concat(a,a.visualViewport||[],Re(i)?i:[],a.frameElement&&e?Fe(a.frameElement):[]):o.concat(i,Fe(i,[],e))}function Be(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ce(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=ee(e)!==n||ee(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function De(t){return we(t)?t:t.contextElement}function Ae(t){const o=De(t);if(!Ce(o))return re(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Be(o);let a=(n?ee(e.width):e.width)/r,l=(n?ee(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const He=re(0);function Ge(t){const o=Ne(t);return We()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:He}function Pe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=De(t);let a=re(1);o&&(r?we(r)&&(a=Ae(r)):a=Ae(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ne(t))&&o}(n,e,r)?Ge(n):re(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(n){const t=Ne(n),o=r&&we(r)?Ne(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ae(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,f*=t.x,p*=t.y,c+=i,s+=n,e=Ne(e).frameElement}}return ge({width:f,height:p,x:c,y:s})}function je(t){return Pe(Se(t)).left+Ke(t).scrollLeft}function Me(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Ne(t),r=Se(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=We();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Se(t),e=Ke(t),r=t.ownerDocument.body,i=oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+je(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=oe(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Se(t));else if(we(o))r=function(t,o){const e=Pe(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ce(t)?Ae(t):re(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ge(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ge(r)}function Te(t,o){const e=Ze(t);return!(e===o||!we(e)||Ee(e))&&("fixed"===Le(e).position||Te(e,o))}function _e(t,o,e){const r=Ce(o),i=Se(o),n="fixed"===e,a=Pe(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=re(0);if(r||!r&&!n)if(("body"!==ve(o)||Re(i))&&(l=Ke(o)),r){const t=Pe(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=je(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ye(t,o){return Ce(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function Ve(t,o){const e=Ne(t);if(!Ce(t))return e;let r=Ye(t,o);for(;r&&ke(r)&&"static"===Le(r).position;)r=Ye(r,o);return r&&("html"===ve(r)||"body"===ve(r)&&"static"===Le(r).position&&!Ue(r))?e:r||function(t){let o=Ze(t);for(;Ce(o)&&!Ee(o);){if(Ue(o))return o;o=Ze(o)}return null}(t)||e}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ce(e),n=Se(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=re(1);const c=re(0);if((i||!i&&"fixed"!==r)&&(("body"!==ve(e)||Re(n))&&(a=Ke(e)),Ce(e))){const t=Pe(e);l=Ae(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Se,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Fe(t,[],!1).filter((t=>we(t)&&"body"!==ve(t))),i=null;const n="fixed"===Le(t).position;let a=n?Ze(t):t;for(;we(a)&&!Ee(a);){const o=Le(a),e=Ue(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Re(a)&&!e&&Te(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ze(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=Me(o,e,i);return t.top=oe(r.top,t.top),t.right=te(r.right,t.right),t.bottom=te(r.bottom,t.bottom),t.left=oe(r.left,t.left),t}),Me(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ve,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Ve,n=this.getDimensions;return{reference:_e(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Be(t)},getScale:Ae,isElement:we,isRTL:function(t){return"rtl"===Le(t).direction}},qe=(t,o,e)=>{const r=new Map,i={platform:Xe,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:f,y:p}=ue(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:f,y:p,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});f=null!=u?u:f,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:f,y:p}=ue(s,d,c))),e=-1)}return{x:f,y:p,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var Je,Qe,tr,or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
561
|
+
`,Jo=["start","end"],Qo=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Jo[0],o+"-"+Jo[1])),[]),te=Math.min,oe=Math.max,ee=Math.round,re=t=>({x:t,y:t}),ie={left:"right",right:"left",bottom:"top",top:"bottom"},ne={start:"end",end:"start"};function ae(t,o,e){return oe(t,te(o,e))}function le(t,o){return"function"==typeof t?t(o):t}function ce(t){return t.split("-")[0]}function se(t){return t.split("-")[1]}function fe(t){return"x"===t?"y":"x"}function pe(t){return"y"===t?"height":"width"}function de(t){return["top","bottom"].includes(ce(t))?"y":"x"}function he(t){return fe(de(t))}function ye(t){return t.replace(/left|right|bottom|top/g,(t=>ie[t]))}function ge(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ue(t,o,e){let{reference:r,floating:i}=t;const n=de(o),a=he(o),l=pe(a),c=ce(o),s="y"===n,f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(se(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function be(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=le(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===p?"reference":"floating":p],u=ge(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:f,strategy:c})),b="floating"===p?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ge(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function me(t,o,e){return(t?[...e.filter((o=>se(o)===t)),...e.filter((o=>se(o)!==t))]:e.filter((t=>ce(t)===t))).filter((e=>!t||(se(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ne[t]))}(e)!==e)))}const xe=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:d=Qo,autoAlignment:h=!0,...y}=le(t,o),g=void 0!==p||d===Qo?me(p||null,h,d):d,u=await be(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=se(t),i=he(t),n=pe(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ye(a)),[a,ye(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[ce(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=se(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,se(t[0])?2:3).every((t=>t<=0)))),$=(null==(i=w[0])?void 0:i[0])||S[0][0];return $!==l?{data:{index:b+1,overflows:v},reset:{placement:$}}:{}}}},Oe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=le(t,o),s={x:e,y:r},f=await be(o,c),p=de(ce(i)),d=fe(p);let h=s[d],y=s[p];if(n){const t="y"===d?"bottom":"right";h=ae(h+f["y"===d?"top":"left"],h,h-f[t])}if(a){const t="y"===p?"bottom":"right";y=ae(y+f["y"===p?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[p]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}};function ve(t){return we(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Se(t){var o;return null==(o=(we(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function we(t){return t instanceof Node||t instanceof Ne(t).Node}function $e(t){return t instanceof Element||t instanceof Ne(t).Element}function Ce(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function Ie(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot)}function Re(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function ke(t){return["table","td","th"].includes(ve(t))}function Ue(t){const o=We(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function We(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ee(t){return["html","body","#document"].includes(ve(t))}function Le(t){return Ne(t).getComputedStyle(t)}function Ke(t){return $e(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(t){if("html"===ve(t))return t;const o=t.assignedSlot||t.parentNode||Ie(t)&&t.host||Se(t);return Ie(o)?o.host:o}function ze(t){const o=Ze(t);return Ee(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ce(o)&&Re(o)?o:ze(o)}function Be(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=ze(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ne(i);return n?o.concat(a,a.visualViewport||[],Re(i)?i:[],a.frameElement&&e?Be(a.frameElement):[]):o.concat(i,Be(i,[],e))}function Fe(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ce(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=ee(e)!==n||ee(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function De(t){return $e(t)?t:t.contextElement}function Ae(t){const o=De(t);if(!Ce(o))return re(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Fe(o);let a=(n?ee(e.width):e.width)/r,l=(n?ee(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const He=re(0);function Ge(t){const o=Ne(t);return We()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:He}function Pe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=De(t);let a=re(1);o&&(r?$e(r)&&(a=Ae(r)):a=Ae(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ne(t))&&o}(n,e,r)?Ge(n):re(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(n){const t=Ne(n),o=r&&$e(r)?Ne(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ae(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,f*=t.x,p*=t.y,c+=i,s+=n,e=Ne(e).frameElement}}return ge({width:f,height:p,x:c,y:s})}function je(t){return Pe(Se(t)).left+Ke(t).scrollLeft}function Me(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Ne(t),r=Se(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=We();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Se(t),e=Ke(t),r=t.ownerDocument.body,i=oe(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=oe(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+je(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=oe(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Se(t));else if($e(o))r=function(t,o){const e=Pe(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ce(t)?Ae(t):re(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ge(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ge(r)}function Te(t,o){const e=Ze(t);return!(e===o||!$e(e)||Ee(e))&&("fixed"===Le(e).position||Te(e,o))}function _e(t,o,e){const r=Ce(o),i=Se(o),n="fixed"===e,a=Pe(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=re(0);if(r||!r&&!n)if(("body"!==ve(o)||Re(i))&&(l=Ke(o)),r){const t=Pe(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=je(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ye(t,o){return Ce(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function Ve(t,o){const e=Ne(t);if(!Ce(t))return e;let r=Ye(t,o);for(;r&&ke(r)&&"static"===Le(r).position;)r=Ye(r,o);return r&&("html"===ve(r)||"body"===ve(r)&&"static"===Le(r).position&&!Ue(r))?e:r||function(t){let o=Ze(t);for(;Ce(o)&&!Ee(o);){if(Ue(o))return o;o=Ze(o)}return null}(t)||e}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ce(e),n=Se(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=re(1);const c=re(0);if((i||!i&&"fixed"!==r)&&(("body"!==ve(e)||Re(n))&&(a=Ke(e)),Ce(e))){const t=Pe(e);l=Ae(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Se,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Be(t,[],!1).filter((t=>$e(t)&&"body"!==ve(t))),i=null;const n="fixed"===Le(t).position;let a=n?Ze(t):t;for(;$e(a)&&!Ee(a);){const o=Le(a),e=Ue(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Re(a)&&!e&&Te(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ze(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=Me(o,e,i);return t.top=oe(r.top,t.top),t.right=te(r.right,t.right),t.bottom=te(r.bottom,t.bottom),t.left=oe(r.left,t.left),t}),Me(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ve,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Ve,n=this.getDimensions;return{reference:_e(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Fe(t)},getScale:Ae,isElement:$e,isRTL:function(t){return"rtl"===Le(t).direction}},qe=(t,o,e)=>{const r=new Map,i={platform:Xe,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:f,y:p}=ue(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:f,y:p,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});f=null!=u?u:f,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:f,y:p}=ue(s,d,c))),e=-1)}return{x:f,y:p,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function Je(t){return function(t){for(let o=t;o;o=Qe(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=Qe(t);o;o=Qe(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function Qe(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var tr,or,er,rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
562
562
|
<div part="container"
|
|
563
563
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
564
564
|
@mouseenter=${this.onHover}
|
|
@@ -566,7 +566,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
566
566
|
@focusin=${this.onHover}
|
|
567
567
|
@focusout=${this.onOut}
|
|
568
568
|
@touchstart=${this.onTouch}>
|
|
569
|
-
<slot></slot>
|
|
569
|
+
<slot part="slot"></slot>
|
|
570
570
|
<div part="tooltip" role="tooltip" inert
|
|
571
571
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
572
572
|
?hidden=${!this.visible}>
|
|
@@ -576,19 +576,19 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
576
576
|
</div>
|
|
577
577
|
</div>
|
|
578
578
|
</div>
|
|
579
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",qe(this.slottedElement,this.tooltip,{middleware:[Oe({crossAxis:!0}),xe({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}
|
|
579
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",qe(this.slottedElement,this.tooltip,{platform:{...Xe,getOffsetParent:t=>Xe.getOffsetParent(t,Je)},middleware:[Oe({crossAxis:!0}),xe({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ir.elementDefinitions={"ft-typography":jo},ir.styles=qo,rr([r.property()],ir.prototype,"text",void 0),rr([r.property({type:Boolean})],ir.prototype,"manual",void 0),rr([r.property({type:Boolean})],ir.prototype,"inline",void 0),rr([r.property({type:Number})],ir.prototype,"delay",void 0),rr([r.property()],ir.prototype,"position",void 0),rr([r.queryAssignedNodes()],ir.prototype,"slotNodes",void 0),rr([r.query(".ft-tooltip--container")],ir.prototype,"container",void 0),rr([r.query(".ft-tooltip")],ir.prototype,"tooltip",void 0),rr([r.query(".ft-tooltip--content")],ir.prototype,"tooltipContent",void 0),rr([r.state()],ir.prototype,"visible",void 0),rr([r.eventOptions({passive:!0})],ir.prototype,"onTouch",null),rr([r.eventOptions({passive:!0})],ir.prototype,"onHover",null),rr([r.eventOptions({passive:!0})],ir.prototype,"onOut",null),o.customElement("ft-tooltip")(ir),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(tr||(tr={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(or||(or={})),new Map([...["abw"].map((t=>[t,or.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,or.AUDIO])),...["avi"].map((t=>[t,or.AVI])),...["chm","xhs"].map((t=>[t,or.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,or.CODE])),...["csv"].map((t=>[t,or.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,or.DITA])),...["epub"].map((t=>[t,or.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,or.EXCEL])),...["flac"].map((t=>[t,or.FLAC])),...["gif"].map((t=>[t,or.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,or.GZIP])),...["html","htm","xhtml"].map((t=>[t,or.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,or.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,or.JPEG])),...["json"].map((t=>[t,or.JSON])),...["m4a","m4p"].map((t=>[t,or.M4A])),...["mov","qt"].map((t=>[t,or.MOV])),...["mp3"].map((t=>[t,or.MP3])),...["mp4","m4v"].map((t=>[t,or.MP4])),...["ogg","oga"].map((t=>[t,or.OGG])),...["pdf","ps"].map((t=>[t,or.PDF])),...["png"].map((t=>[t,or.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,or.POWERPOINT])),...["rar"].map((t=>[t,or.RAR])),...["stp"].map((t=>[t,or.STP])),...["txt","rtf","md","mdown"].map((t=>[t,or.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,or.VIDEO])),...["wav"].map((t=>[t,or.WAV])),...["wma"].map((t=>[t,or.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,or.WORD])),...["xml","xsl","rdf"].map((t=>[t,or.XML])),...["yaml","yml","x-yaml"].map((t=>[t,or.YAML])),...["zip"].map((t=>[t,or.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(er||(er={}));var nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(er).includes(this.variant)?this.variant:er.fluid_topics,o=t!==er.material||!!this.value;return e.html`
|
|
580
580
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
581
581
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
582
582
|
<slot ?hidden=${o}></slot>
|
|
583
583
|
</i>
|
|
584
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case
|
|
584
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case er.file_format:this.resolvedIcon=null!==(t=or[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case er.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=tr[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ar.elementDefinitions={},ar.styles=Gt,nr([r.property()],ar.prototype,"variant",void 0),nr([r.property()],ar.prototype,"value",void 0),nr([r.state()],ar.prototype,"resolvedIcon",void 0),nr([r.query("slot")],ar.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ar);class lr extends o.FtLitElement{render(){return e.html`
|
|
585
585
|
<div class="ft-loader">
|
|
586
586
|
<div></div>
|
|
587
587
|
<div></div>
|
|
588
588
|
<div></div>
|
|
589
589
|
<div></div>
|
|
590
590
|
</div>
|
|
591
|
-
`}}
|
|
591
|
+
`}}lr.styles=At,o.customElement("ft-loader")(lr);var cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
592
592
|
<button part="button"
|
|
593
593
|
class="${i.classMap(this.buttonClasses)}"
|
|
594
594
|
aria-label="${this.getLabel()}"
|
|
@@ -611,7 +611,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
611
611
|
</ft-tooltip>
|
|
612
612
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
613
613
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
614
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
614
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}sr.elementDefinitions={"ft-ripple":Qt,"ft-tooltip":ir,"ft-typography":jo,"ft-icon":ar,"ft-loader":lr},cr([r.property({type:String,reflect:!0})],sr.prototype,"role",void 0),cr([r.property()],sr.prototype,"type",void 0),cr([r.property({type:Boolean})],sr.prototype,"disabled",void 0),cr([r.property()],sr.prototype,"label",void 0),cr([r.property()],sr.prototype,"icon",void 0),cr([r.property()],sr.prototype,"iconVariant",void 0),cr([r.property({type:Boolean})],sr.prototype,"trailingIcon",void 0),cr([r.property({type:Boolean})],sr.prototype,"loading",void 0),cr([r.property()],sr.prototype,"tooltipPosition",void 0),cr([r.property({type:Boolean})],sr.prototype,"hideTooltip",void 0),cr([r.property({type:Boolean})],sr.prototype,"forceTooltip",void 0),cr([r.query(".ft-button")],sr.prototype,"button",void 0),cr([r.query(".ft-button--label slot")],sr.prototype,"slottedContent",void 0);var fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends sr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}pr.styles=[o.safariEllipsisFix,qt],fr([r.property({type:Boolean})],pr.prototype,"primary",void 0),fr([r.property({type:Boolean})],pr.prototype,"outlined",void 0),fr([r.property({type:Boolean})],pr.prototype,"dense",void 0),fr([r.property({type:Boolean})],pr.prototype,"round",void 0);const dr=[e.css`
|
|
615
615
|
:host {
|
|
616
616
|
display: inline-block;
|
|
617
617
|
max-width: 100%;
|
|
@@ -829,7 +829,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
829
829
|
width: ${N.smallIconOnlyWidth};
|
|
830
830
|
padding: unset;
|
|
831
831
|
}
|
|
832
|
-
`,o.noTextSelect];var
|
|
832
|
+
`,o.noTextSelect];var hr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends sr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Go.caption1medium:Go.body2medium}}yr.styles=[o.safariEllipsisFix,dr],hr([r.property({type:Boolean})],yr.prototype,"primary",void 0),hr([r.property({type:Boolean})],yr.prototype,"secondary",void 0),hr([r.property({type:Boolean})],yr.prototype,"tertiary",void 0),hr([r.property({type:Boolean})],yr.prototype,"neutral",void 0),hr([r.property({type:Boolean})],yr.prototype,"small",void 0),o.customElement("ft-button")(pr),o.customElement("ftds-button")(yr);const gr={iconColor:o.FtCssVariableFactory.extend("--ft-floating-menu-icon-color","",o.designSystemVariables.colorOnSurfaceMedium)},ur=e.css`
|
|
833
833
|
.ft-floating-menu-item {
|
|
834
834
|
cursor: pointer;
|
|
835
835
|
display: flex;
|
|
@@ -844,7 +844,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
.ft-floating-menu-item ft-icon {
|
|
847
|
-
color: ${
|
|
847
|
+
color: ${gr.iconColor};
|
|
848
848
|
margin-left: 0;
|
|
849
849
|
flex-shrink: 0;
|
|
850
850
|
flex-grow: 0;
|
|
@@ -859,7 +859,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
859
859
|
word-break: break-word;
|
|
860
860
|
hyphens: auto;
|
|
861
861
|
}
|
|
862
|
-
`;var
|
|
862
|
+
`;var br=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mr extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class xr extends o.FtLitElement{constructor(){super(...arguments),this.value=""}render(){return e.html`
|
|
863
863
|
<div class="ft-floating-menu-item"
|
|
864
864
|
@click=${this.onClick}>
|
|
865
865
|
<ft-ripple></ft-ripple>
|
|
@@ -870,7 +870,7 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
870
870
|
<slot></slot>
|
|
871
871
|
</ft-typography>
|
|
872
872
|
</div>
|
|
873
|
-
`}onClick(t){this.dispatchEvent(new
|
|
873
|
+
`}onClick(t){this.dispatchEvent(new mr(this.value))}}xr.elementDefinitions={"ft-icon":ar,"ft-ripple":Qt,"ft-typography":jo},xr.styles=ur,br([r.property()],xr.prototype,"iconVariant",void 0),br([r.property()],xr.prototype,"icon",void 0),br([r.property()],xr.prototype,"value",void 0);var Or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends o.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=er.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return e.html`
|
|
874
874
|
<div class="${i.classMap(t)}">
|
|
875
875
|
|
|
876
876
|
<slot name="toggle"
|
|
@@ -906,4 +906,4 @@ const Fo=Symbol.for(""),Bo=t=>{if(t?.r===Fo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
906
906
|
</div>
|
|
907
907
|
</div>
|
|
908
908
|
</div>
|
|
909
|
-
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){o.eventPathContainsMatchingElement(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="",qe(this.actionButton,this.menuWrapper,{middleware:[Oe({crossAxis:!0}),xe({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:o})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${o}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}
|
|
909
|
+
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){o.eventPathContainsMatchingElement(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="",qe(this.actionButton,this.menuWrapper,{platform:{...Xe,getOffsetParent:t=>Xe.getOffsetParent(t,Je)},middleware:[Oe({crossAxis:!0}),xe({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:o})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${o}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}vr.elementDefinitions={"ft-floating-menu-item":xr},Or([r.state()],vr.prototype,"menuOpen",void 0),Or([r.state()],vr.prototype,"forceMenuOpen",void 0),Or([r.query(".ft-floating-menu")],vr.prototype,"container",void 0),Or([r.query(".ft-floating-menu--wrapper")],vr.prototype,"menuWrapper",void 0),Or([r.query("#ft-floating-menu-options")],vr.prototype,"menuContent",void 0),Or([r.query("#actions-button")],vr.prototype,"actionButton",void 0),Or([r.property({type:Boolean})],vr.prototype,"primary",void 0),Or([r.property({type:Boolean})],vr.prototype,"secondary",void 0),Or([r.property({type:Boolean})],vr.prototype,"tertiary",void 0),Or([r.property({type:Boolean})],vr.prototype,"neutral",void 0),Or([r.property({type:Boolean})],vr.prototype,"small",void 0),Or([r.property()],vr.prototype,"label",void 0),Or([r.property()],vr.prototype,"tooltipPosition",void 0),Or([r.property()],vr.prototype,"iconVariant",void 0),Or([r.property()],vr.prototype,"icon",void 0),Or([r.property()],vr.prototype,"text",void 0),Or([r.property()],vr.prototype,"horizontalAlignment",void 0),Or([r.property()],vr.prototype,"verticalAlignment",void 0),Or([r.property({type:Boolean})],vr.prototype,"disabled",void 0),Or([o.jsonProperty([])],vr.prototype,"closeMenuMatchers",void 0);class Nr extends vr{}Nr.elementDefinitions={"ft-or-ftds-button":pr},Nr.styles=l;class Sr extends vr{}Sr.elementDefinitions={"ft-or-ftds-button":yr},Sr.styles=l,o.customElement("ft-floating-menu")(Nr),o.customElement("ftds-floating-menu")(Sr),o.customElement("ft-floating-menu-item")(xr),t.FtFloatingMenu=Nr,t.FtFloatingMenuCssVariables=a,t.FtFloatingMenuItem=xr,t.FtFloatingMenuItemCssVariables=gr,t.FtFloatingMenuItemSelect=mr,t.FtdsFloatingMenu=Sr,t.itemStyles=ur,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=e.call(i,t);f||(f=p(t),o.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},p=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=f(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=e.call(i,t);f||(f=p(t),o.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},p=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=f(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(hn){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -663,7 +663,7 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Yi=t=>({_$li
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
.ft-tooltip {
|
|
666
|
-
position:
|
|
666
|
+
position: fixed;
|
|
667
667
|
box-sizing: border-box;
|
|
668
668
|
overflow: hidden;
|
|
669
669
|
width: max-content;
|
|
@@ -681,7 +681,7 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Yi=t=>({_$li
|
|
|
681
681
|
position: relative;
|
|
682
682
|
word-break: break-word;
|
|
683
683
|
}
|
|
684
|
-
`,sr=["start","end"],lr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+sr[0],o+"-"+sr[1])),[]),cr=Math.min,fr=Math.max,pr=Math.round,hr=t=>({x:t,y:t}),dr={left:"right",right:"left",bottom:"top",top:"bottom"},ur={start:"end",end:"start"};function yr(t,o,e){return fr(t,cr(o,e))}function gr(t,o){return"function"==typeof t?t(o):t}function br(t){return t.split("-")[0]}function mr(t){return t.split("-")[1]}function xr(t){return"x"===t?"y":"x"}function Or(t){return"y"===t?"height":"width"}function vr(t){return["top","bottom"].includes(br(t))?"y":"x"}function Nr(t){return xr(vr(t))}function Sr(t){return t.replace(/left|right|bottom|top/g,(t=>dr[t]))}function wr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Cr(t,o,e){let{reference:i,floating:r}=t;const n=vr(o),a=Nr(o),s=Or(a),l=br(o),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(mr(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function $r(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=gr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===p?"reference":"floating":p],g=wr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=wr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Rr(t,o,e){return(t?[...e.filter((o=>mr(o)===t)),...e.filter((o=>mr(o)!==t))]:e.filter((t=>br(t)===t))).filter((e=>!t||(mr(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ur[t]))}(e)!==e)))}const Er=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:h=lr,autoAlignment:d=!0,...u}=gr(t,o),y=void 0!==p||h===lr?Rr(p||null,d,h):h,g=await $r(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=mr(t),r=Nr(t),n=Or(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Sr(a)),[a,Sr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[br(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=mr(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,mr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}},Ur=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=gr(t,o),c={x:e,y:i},f=await $r(o,l),p=vr(br(r)),h=xr(p);let d=c[h],u=c[p];if(n){const t="y"===h?"bottom":"right";d=yr(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===p?"bottom":"right";u=yr(u+f["y"===p?"top":"left"],u,u-f[t])}const y=s.fn({...o,[h]:d,[p]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}};function kr(t){return Lr(t)?(t.nodeName||"").toLowerCase():"#document"}function Ir(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Wr(t){var o;return null==(o=(Lr(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Lr(t){return t instanceof Node||t instanceof Ir(t).Node}function Kr(t){return t instanceof Element||t instanceof Ir(t).Element}function zr(t){return t instanceof HTMLElement||t instanceof Ir(t).HTMLElement}function Fr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ir(t).ShadowRoot)}function Zr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Pr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Br(t){return["table","td","th"].includes(kr(t))}function Ar(t){const o=Mr(),e=Pr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Mr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Dr(t){return["html","body","#document"].includes(kr(t))}function Pr(t){return Ir(t).getComputedStyle(t)}function Hr(t){return Kr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jr(t){if("html"===kr(t))return t;const o=t.assignedSlot||t.parentNode||Fr(t)&&t.host||Wr(t);return Fr(o)?o.host:o}function Tr(t){const o=jr(t);return Dr(o)?t.ownerDocument?t.ownerDocument.body:t.body:zr(o)&&Zr(o)?o:Tr(o)}function _r(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Tr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ir(r);return n?o.concat(a,a.visualViewport||[],Zr(r)?r:[],a.frameElement&&e?_r(a.frameElement):[]):o.concat(r,_r(r,[],e))}function Gr(t){const o=Pr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=zr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=pr(e)!==n||pr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function Yr(t){return Kr(t)?t:t.contextElement}function Vr(t){const o=Yr(t);if(!zr(o))return hr(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=Gr(o);let a=(n?pr(e.width):e.width)/i,s=(n?pr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Jr=hr(0);function qr(t){const o=Ir(t);return Mr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Jr}function Xr(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=Yr(t);let a=hr(1);o&&(i?Kr(i)&&(a=Vr(i)):a=Vr(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ir(t))&&o}(n,e,i)?qr(n):hr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=Ir(n),o=i&&Kr(i)?Ir(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=Vr(e),o=e.getBoundingClientRect(),i=Pr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,p*=t.y,l+=r,c+=n,e=Ir(e).frameElement}}return wr({width:f,height:p,x:l,y:c})}function Qr(t){return Xr(Wr(t)).left+Hr(t).scrollLeft}function tn(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Ir(t),i=Wr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Mr();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Wr(t),e=Hr(t),i=t.ownerDocument.body,r=fr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=fr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+Qr(t);const s=-e.scrollTop;return"rtl"===Pr(i).direction&&(a+=fr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Wr(t));else if(Kr(o))i=function(t,o){const e=Xr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=zr(t)?Vr(t):hr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=qr(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return wr(i)}function on(t,o){const e=jr(t);return!(e===o||!Kr(e)||Dr(e))&&("fixed"===Pr(e).position||on(e,o))}function en(t,o,e){const i=zr(o),r=Wr(o),n="fixed"===e,a=Xr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hr(0);if(i||!i&&!n)if(("body"!==kr(o)||Zr(r))&&(s=Hr(o)),i){const t=Xr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=Qr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rn(t,o){return zr(t)&&"fixed"!==Pr(t).position?o?o(t):t.offsetParent:null}function nn(t,o){const e=Ir(t);if(!zr(t))return e;let i=rn(t,o);for(;i&&Br(i)&&"static"===Pr(i).position;)i=rn(i,o);return i&&("html"===kr(i)||"body"===kr(i)&&"static"===Pr(i).position&&!Ar(i))?e:i||function(t){let o=jr(t);for(;zr(o)&&!Dr(o);){if(Ar(o))return o;o=jr(o)}return null}(t)||e}const an={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=zr(e),n=Wr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=hr(1);const l=hr(0);if((r||!r&&"fixed"!==i)&&(("body"!==kr(e)||Zr(n))&&(a=Hr(e)),zr(e))){const t=Xr(e);s=Vr(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Wr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=_r(t,[],!1).filter((t=>Kr(t)&&"body"!==kr(t))),r=null;const n="fixed"===Pr(t).position;let a=n?jr(t):t;for(;Kr(a)&&!Dr(a);){const o=Pr(a),e=Ar(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Zr(a)&&!e&&on(t,a))?i=i.filter((t=>t!==a)):r=o,a=jr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=tn(o,e,r);return t.top=fr(i.top,t.top),t.right=cr(i.right,t.right),t.bottom=cr(i.bottom,t.bottom),t.left=fr(i.left,t.left),t}),tn(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||nn,n=this.getDimensions;return{reference:en(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Gr(t)},getScale:Vr,isElement:Kr,isRTL:function(t){return"rtl"===Pr(t).direction}},sn=(t,o,e)=>{const i=new Map,r={platform:an,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:f,y:p}=Cr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:f,y:p}=Cr(c,h,l))),e=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var ln=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class cn extends Fo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oo`
|
|
684
|
+
`,sr=["start","end"],lr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+sr[0],o+"-"+sr[1])),[]),cr=Math.min,fr=Math.max,pr=Math.round,hr=t=>({x:t,y:t}),dr={left:"right",right:"left",bottom:"top",top:"bottom"},ur={start:"end",end:"start"};function yr(t,o,e){return fr(t,cr(o,e))}function gr(t,o){return"function"==typeof t?t(o):t}function br(t){return t.split("-")[0]}function mr(t){return t.split("-")[1]}function xr(t){return"x"===t?"y":"x"}function Or(t){return"y"===t?"height":"width"}function vr(t){return["top","bottom"].includes(br(t))?"y":"x"}function Nr(t){return xr(vr(t))}function Sr(t){return t.replace(/left|right|bottom|top/g,(t=>dr[t]))}function wr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Cr(t,o,e){let{reference:i,floating:r}=t;const n=vr(o),a=Nr(o),s=Or(a),l=br(o),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(mr(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function $r(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=gr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===p?"reference":"floating":p],g=wr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=wr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Rr(t,o,e){return(t?[...e.filter((o=>mr(o)===t)),...e.filter((o=>mr(o)!==t))]:e.filter((t=>br(t)===t))).filter((e=>!t||(mr(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ur[t]))}(e)!==e)))}const Er=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:h=lr,autoAlignment:d=!0,...u}=gr(t,o),y=void 0!==p||h===lr?Rr(p||null,d,h):h,g=await $r(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=mr(t),r=Nr(t),n=Or(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Sr(a)),[a,Sr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[br(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=mr(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,mr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}},Ur=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=gr(t,o),c={x:e,y:i},f=await $r(o,l),p=vr(br(r)),h=xr(p);let d=c[h],u=c[p];if(n){const t="y"===h?"bottom":"right";d=yr(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===p?"bottom":"right";u=yr(u+f["y"===p?"top":"left"],u,u-f[t])}const y=s.fn({...o,[h]:d,[p]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}};function kr(t){return Lr(t)?(t.nodeName||"").toLowerCase():"#document"}function Ir(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Wr(t){var o;return null==(o=(Lr(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Lr(t){return t instanceof Node||t instanceof Ir(t).Node}function Kr(t){return t instanceof Element||t instanceof Ir(t).Element}function zr(t){return t instanceof HTMLElement||t instanceof Ir(t).HTMLElement}function Fr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ir(t).ShadowRoot)}function Zr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Pr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Br(t){return["table","td","th"].includes(kr(t))}function Ar(t){const o=Mr(),e=Pr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Mr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Dr(t){return["html","body","#document"].includes(kr(t))}function Pr(t){return Ir(t).getComputedStyle(t)}function Hr(t){return Kr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jr(t){if("html"===kr(t))return t;const o=t.assignedSlot||t.parentNode||Fr(t)&&t.host||Wr(t);return Fr(o)?o.host:o}function Tr(t){const o=jr(t);return Dr(o)?t.ownerDocument?t.ownerDocument.body:t.body:zr(o)&&Zr(o)?o:Tr(o)}function _r(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Tr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ir(r);return n?o.concat(a,a.visualViewport||[],Zr(r)?r:[],a.frameElement&&e?_r(a.frameElement):[]):o.concat(r,_r(r,[],e))}function Gr(t){const o=Pr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=zr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=pr(e)!==n||pr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function Yr(t){return Kr(t)?t:t.contextElement}function Vr(t){const o=Yr(t);if(!zr(o))return hr(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=Gr(o);let a=(n?pr(e.width):e.width)/i,s=(n?pr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Jr=hr(0);function qr(t){const o=Ir(t);return Mr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Jr}function Xr(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=Yr(t);let a=hr(1);o&&(i?Kr(i)&&(a=Vr(i)):a=Vr(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ir(t))&&o}(n,e,i)?qr(n):hr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=Ir(n),o=i&&Kr(i)?Ir(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=Vr(e),o=e.getBoundingClientRect(),i=Pr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,p*=t.y,l+=r,c+=n,e=Ir(e).frameElement}}return wr({width:f,height:p,x:l,y:c})}function Qr(t){return Xr(Wr(t)).left+Hr(t).scrollLeft}function tn(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Ir(t),i=Wr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Mr();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Wr(t),e=Hr(t),i=t.ownerDocument.body,r=fr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=fr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+Qr(t);const s=-e.scrollTop;return"rtl"===Pr(i).direction&&(a+=fr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Wr(t));else if(Kr(o))i=function(t,o){const e=Xr(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=zr(t)?Vr(t):hr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=qr(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return wr(i)}function on(t,o){const e=jr(t);return!(e===o||!Kr(e)||Dr(e))&&("fixed"===Pr(e).position||on(e,o))}function en(t,o,e){const i=zr(o),r=Wr(o),n="fixed"===e,a=Xr(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hr(0);if(i||!i&&!n)if(("body"!==kr(o)||Zr(r))&&(s=Hr(o)),i){const t=Xr(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=Qr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rn(t,o){return zr(t)&&"fixed"!==Pr(t).position?o?o(t):t.offsetParent:null}function nn(t,o){const e=Ir(t);if(!zr(t))return e;let i=rn(t,o);for(;i&&Br(i)&&"static"===Pr(i).position;)i=rn(i,o);return i&&("html"===kr(i)||"body"===kr(i)&&"static"===Pr(i).position&&!Ar(i))?e:i||function(t){let o=jr(t);for(;zr(o)&&!Dr(o);){if(Ar(o))return o;o=jr(o)}return null}(t)||e}const an={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=zr(e),n=Wr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=hr(1);const l=hr(0);if((r||!r&&"fixed"!==i)&&(("body"!==kr(e)||Zr(n))&&(a=Hr(e)),zr(e))){const t=Xr(e);s=Vr(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Wr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=_r(t,[],!1).filter((t=>Kr(t)&&"body"!==kr(t))),r=null;const n="fixed"===Pr(t).position;let a=n?jr(t):t;for(;Kr(a)&&!Dr(a);){const o=Pr(a),e=Ar(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Zr(a)&&!e&&on(t,a))?i=i.filter((t=>t!==a)):r=o,a=jr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=tn(o,e,r);return t.top=fr(i.top,t.top),t.right=cr(i.right,t.right),t.bottom=cr(i.bottom,t.bottom),t.left=fr(i.left,t.left),t}),tn(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||nn,n=this.getDimensions;return{reference:en(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Gr(t)},getScale:Vr,isElement:Kr,isRTL:function(t){return"rtl"===Pr(t).direction}},sn=(t,o,e)=>{const i=new Map,r={platform:an,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:f,y:p}=Cr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:f,y:p}=Cr(c,h,l))),e=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};function ln(t){return function(t){for(let o=t;o;o=cn(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=cn(t);o;o=cn(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function cn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var fn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pn extends Fo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oo`
|
|
685
685
|
<div part="container"
|
|
686
686
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
687
687
|
@mouseenter=${this.onHover}
|
|
@@ -689,7 +689,7 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Yi=t=>({_$li
|
|
|
689
689
|
@focusin=${this.onHover}
|
|
690
690
|
@focusout=${this.onOut}
|
|
691
691
|
@touchstart=${this.onTouch}>
|
|
692
|
-
<slot></slot>
|
|
692
|
+
<slot part="slot"></slot>
|
|
693
693
|
<div part="tooltip" role="tooltip" inert
|
|
694
694
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
695
695
|
?hidden=${!this.visible}>
|
|
@@ -699,25 +699,25 @@ const _i=Symbol.for(""),Gi=t=>{if(t?.r===_i)return t?._$litStatic$},Yi=t=>({_$li
|
|
|
699
699
|
</div>
|
|
700
700
|
</div>
|
|
701
701
|
</div>
|
|
702
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",sn(this.slottedElement,this.tooltip,{middleware:[Ur({crossAxis:!0}),Er({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}
|
|
702
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",sn(this.slottedElement,this.tooltip,{platform:{...an,getOffsetParent:t=>an.getOffsetParent(t,ln)},middleware:[Ur({crossAxis:!0}),Er({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}pn.elementDefinitions={"ft-typography":Qi},pn.styles=ar,fn([w()],pn.prototype,"text",void 0),fn([w({type:Boolean})],pn.prototype,"manual",void 0),fn([w({type:Boolean})],pn.prototype,"inline",void 0),fn([w({type:Number})],pn.prototype,"delay",void 0),fn([w()],pn.prototype,"position",void 0),fn([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],pn.prototype,"slotNodes",void 0),fn([E(".ft-tooltip--container")],pn.prototype,"container",void 0),fn([E(".ft-tooltip")],pn.prototype,"tooltip",void 0),fn([E(".ft-tooltip--content")],pn.prototype,"tooltipContent",void 0),fn([C()],pn.prototype,"visible",void 0),fn([$({passive:!0})],pn.prototype,"onTouch",null),fn([$({passive:!0})],pn.prototype,"onHover",null),fn([$({passive:!0})],pn.prototype,"onOut",null),I("ft-tooltip")(pn);
|
|
703
703
|
/**
|
|
704
704
|
* @license
|
|
705
705
|
* Copyright 2017 Google LLC
|
|
706
706
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
707
707
|
*/
|
|
708
|
-
class
|
|
708
|
+
class hn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}hn.directiveName="unsafeHTML",hn.resultType=1;const dn=Di(hn);var un,yn,gn;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(un||(un={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(yn||(yn={})),new Map([...["abw"].map((t=>[t,yn.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,yn.AUDIO])),...["avi"].map((t=>[t,yn.AVI])),...["chm","xhs"].map((t=>[t,yn.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,yn.CODE])),...["csv"].map((t=>[t,yn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yn.DITA])),...["epub"].map((t=>[t,yn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yn.EXCEL])),...["flac"].map((t=>[t,yn.FLAC])),...["gif"].map((t=>[t,yn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yn.GZIP])),...["html","htm","xhtml"].map((t=>[t,yn.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,yn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yn.JPEG])),...["json"].map((t=>[t,yn.JSON])),...["m4a","m4p"].map((t=>[t,yn.M4A])),...["mov","qt"].map((t=>[t,yn.MOV])),...["mp3"].map((t=>[t,yn.MP3])),...["mp4","m4v"].map((t=>[t,yn.MP4])),...["ogg","oga"].map((t=>[t,yn.OGG])),...["pdf","ps"].map((t=>[t,yn.PDF])),...["png"].map((t=>[t,yn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yn.POWERPOINT])),...["rar"].map((t=>[t,yn.RAR])),...["stp"].map((t=>[t,yn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yn.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,yn.VIDEO])),...["wav"].map((t=>[t,yn.WAV])),...["wma"].map((t=>[t,yn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yn.WORD])),...["xml","xsl","rdf"].map((t=>[t,yn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yn.YAML])),...["zip"].map((t=>[t,yn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(gn||(gn={}));var bn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mn extends Fo{constructor(){super(...arguments),this.resolvedIcon=io}render(){const t=this.variant&&Object.values(gn).includes(this.variant)?this.variant:gn.fluid_topics,o=t!==gn.material||!!this.value;return oo`
|
|
709
709
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
710
|
-
${
|
|
710
|
+
${dn(this.resolvedIcon)}
|
|
711
711
|
<slot ?hidden=${o}></slot>
|
|
712
712
|
</i>
|
|
713
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
713
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case gn.file_format:this.resolvedIcon=null!==(t=yn[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case gn.material:this.resolvedIcon=this.value||io;break;default:this.resolvedIcon=null!==(o=un[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}mn.elementDefinitions={},mn.styles=Ui,bn([w()],mn.prototype,"variant",void 0),bn([w()],mn.prototype,"value",void 0),bn([C()],mn.prototype,"resolvedIcon",void 0),bn([E("slot")],mn.prototype,"slottedContent",void 0),I("ft-icon")(mn);class xn extends Fo{render(){return oo`
|
|
714
714
|
<div class="ft-loader">
|
|
715
715
|
<div></div>
|
|
716
716
|
<div></div>
|
|
717
717
|
<div></div>
|
|
718
718
|
<div></div>
|
|
719
719
|
</div>
|
|
720
|
-
`}}
|
|
720
|
+
`}}xn.styles=Ri,I("ft-loader")(xn);var On=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Yo].form}constructor(...t){super(t),this[Yo]=this.attachInternals(),this[Yo].role=o}setFormValue(t){this[Yo].setFormValue(t)}}}(Fo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(oo`
|
|
721
721
|
<button part="button"
|
|
722
722
|
class="${Hi(this.buttonClasses)}"
|
|
723
723
|
aria-label="${this.getLabel()}"
|
|
@@ -740,7 +740,7 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
740
740
|
</ft-tooltip>
|
|
741
741
|
`:t}resolveIcon(){return this.loading?oo`
|
|
742
742
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?oo`
|
|
743
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:io}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
743
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:io}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}vn.elementDefinitions={"ft-ripple":Ti,"ft-tooltip":pn,"ft-typography":Qi,"ft-icon":mn,"ft-loader":xn},On([w({type:String,reflect:!0})],vn.prototype,"role",void 0),On([w()],vn.prototype,"type",void 0),On([w({type:Boolean})],vn.prototype,"disabled",void 0),On([w()],vn.prototype,"label",void 0),On([w()],vn.prototype,"icon",void 0),On([w()],vn.prototype,"iconVariant",void 0),On([w({type:Boolean})],vn.prototype,"trailingIcon",void 0),On([w({type:Boolean})],vn.prototype,"loading",void 0),On([w()],vn.prototype,"tooltipPosition",void 0),On([w({type:Boolean})],vn.prototype,"hideTooltip",void 0),On([w({type:Boolean})],vn.prototype,"forceTooltip",void 0),On([E(".ft-button")],vn.prototype,"button",void 0),On([E(".ft-button--label slot")],vn.prototype,"slottedContent",void 0);var Nn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sn extends vn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Sn.styles=[Ao,Bi],Nn([w({type:Boolean})],Sn.prototype,"primary",void 0),Nn([w({type:Boolean})],Sn.prototype,"outlined",void 0),Nn([w({type:Boolean})],Sn.prototype,"dense",void 0),Nn([w({type:Boolean})],Sn.prototype,"round",void 0);const wn=[xt`
|
|
744
744
|
:host {
|
|
745
745
|
display: inline-block;
|
|
746
746
|
max-width: 100%;
|
|
@@ -958,7 +958,7 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
958
958
|
width: ${$o.smallIconOnlyWidth};
|
|
959
959
|
padding: unset;
|
|
960
960
|
}
|
|
961
|
-
`,Bo];var
|
|
961
|
+
`,Bo];var Cn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $n extends vn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?qi.caption1medium:qi.body2medium}}$n.styles=[Ao,wn],Cn([w({type:Boolean})],$n.prototype,"primary",void 0),Cn([w({type:Boolean})],$n.prototype,"secondary",void 0),Cn([w({type:Boolean})],$n.prototype,"tertiary",void 0),Cn([w({type:Boolean})],$n.prototype,"neutral",void 0),Cn([w({type:Boolean})],$n.prototype,"small",void 0),I("ft-button")(Sn),I("ftds-button")($n);const Rn={iconColor:vo.extend("--ft-floating-menu-icon-color","",Ro.colorOnSurfaceMedium)},En=xt`
|
|
962
962
|
.ft-floating-menu-item {
|
|
963
963
|
cursor: pointer;
|
|
964
964
|
display: flex;
|
|
@@ -973,7 +973,7 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
.ft-floating-menu-item ft-icon {
|
|
976
|
-
color: ${
|
|
976
|
+
color: ${Rn.iconColor};
|
|
977
977
|
margin-left: 0;
|
|
978
978
|
flex-shrink: 0;
|
|
979
979
|
flex-grow: 0;
|
|
@@ -988,7 +988,7 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
988
988
|
word-break: break-word;
|
|
989
989
|
hyphens: auto;
|
|
990
990
|
}
|
|
991
|
-
`;var
|
|
991
|
+
`;var Un=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class kn extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class In extends Fo{constructor(){super(...arguments),this.value=""}render(){return oo`
|
|
992
992
|
<div class="ft-floating-menu-item"
|
|
993
993
|
@click=${this.onClick}>
|
|
994
994
|
<ft-ripple></ft-ripple>
|
|
@@ -999,7 +999,7 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
999
999
|
<slot></slot>
|
|
1000
1000
|
</ft-typography>
|
|
1001
1001
|
</div>
|
|
1002
|
-
`}onClick(t){this.dispatchEvent(new
|
|
1002
|
+
`}onClick(t){this.dispatchEvent(new kn(this.value))}}In.elementDefinitions={"ft-icon":mn,"ft-ripple":Ti,"ft-typography":Qi},In.styles=En,Un([w()],In.prototype,"iconVariant",void 0),Un([w()],In.prototype,"icon",void 0),Un([w()],In.prototype,"value",void 0);var Wn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ln extends Fo{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=gn.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return oo`
|
|
1003
1003
|
<div class="${Hi(t)}">
|
|
1004
1004
|
|
|
1005
1005
|
<slot name="toggle"
|
|
@@ -1035,4 +1035,4 @@ class fn extends Pi{constructor(t){if(super(t),this.et=tt,t.type!==Mi)throw Erro
|
|
|
1035
1035
|
</div>
|
|
1036
1036
|
</div>
|
|
1037
1037
|
</div>
|
|
1038
|
-
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="",sn(this.actionButton,this.menuWrapper,{middleware:[Ur({crossAxis:!0}),Er({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:o})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${o}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}
|
|
1038
|
+
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,o,e){if(o.length>0){const i=t.composedPath();for(let t of i){if(t===e)return!1;if(t.matches&&o.some((o=>t.matches(o))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="",sn(this.actionButton,this.menuWrapper,{platform:{...an,getOffsetParent:t=>an.getOffsetParent(t,ln)},middleware:[Ur({crossAxis:!0}),Er({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:o})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${o}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}Ln.elementDefinitions={"ft-floating-menu-item":In},Wn([C()],Ln.prototype,"menuOpen",void 0),Wn([C()],Ln.prototype,"forceMenuOpen",void 0),Wn([E(".ft-floating-menu")],Ln.prototype,"container",void 0),Wn([E(".ft-floating-menu--wrapper")],Ln.prototype,"menuWrapper",void 0),Wn([E("#ft-floating-menu-options")],Ln.prototype,"menuContent",void 0),Wn([E("#actions-button")],Ln.prototype,"actionButton",void 0),Wn([w({type:Boolean})],Ln.prototype,"primary",void 0),Wn([w({type:Boolean})],Ln.prototype,"secondary",void 0),Wn([w({type:Boolean})],Ln.prototype,"tertiary",void 0),Wn([w({type:Boolean})],Ln.prototype,"neutral",void 0),Wn([w({type:Boolean})],Ln.prototype,"small",void 0),Wn([w()],Ln.prototype,"label",void 0),Wn([w()],Ln.prototype,"tooltipPosition",void 0),Wn([w()],Ln.prototype,"iconVariant",void 0),Wn([w()],Ln.prototype,"icon",void 0),Wn([w()],Ln.prototype,"text",void 0),Wn([w()],Ln.prototype,"horizontalAlignment",void 0),Wn([w()],Ln.prototype,"verticalAlignment",void 0),Wn([w({type:Boolean})],Ln.prototype,"disabled",void 0),Wn([W([])],Ln.prototype,"closeMenuMatchers",void 0);class Kn extends Ln{}Kn.elementDefinitions={"ft-or-ftds-button":Sn},Kn.styles=te;class zn extends Ln{}zn.elementDefinitions={"ft-or-ftds-button":$n},zn.styles=te,I("ft-floating-menu")(Kn),I("ftds-floating-menu")(zn),I("ft-floating-menu-item")(In),t.FtFloatingMenu=Kn,t.FtFloatingMenuCssVariables=Qo,t.FtFloatingMenuItem=In,t.FtFloatingMenuItemCssVariables=Rn,t.FtFloatingMenuItemSelect=kn,t.FtdsFloatingMenu=zn,t.itemStyles=En,t.styles=te}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-floating-menu",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Floating menu component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@floating-ui/dom": "1.5.3",
|
|
23
|
-
"@fluid-topics/ft-button": "1.1.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
25
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
23
|
+
"@fluid-topics/ft-button": "1.1.10",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.1.10",
|
|
25
|
+
"@fluid-topics/ft-ripple": "1.1.10",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.1.10",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.10",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "dd861ad18248198f16fe78602cb5d72049c15ec2"
|
|
31
31
|
}
|