@fluid-topics/ft-button 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-button.light.js +20 -20
- package/build/ft-button.min.js +11 -11
- package/package.json +8 -8
package/build/ft-button.light.js
CHANGED
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,g=t=>"string"==typeof t?r.unsafeCSS(t):t;class u{static create(t,o,e,a){const i=t=>g(null!=t?t:a),n=r.css`var(${g(t)}, ${i(a)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=a,n.defaultCssValue=i,n.get=o=>r.css`var(${g(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>a,n}static extend(t,o,e,a){const i=t=>e.get(null!=t?t:a),n=r.css`var(${g(t)}, ${i(a)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=a,n.defaultCssValue=i,n.get=o=>r.css`var(${g(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=a?a:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):g(null!=o?o:t.lastResortDefaultValue()),a=r.css`var(${g(t.name)}, ${e(t.defaultValue)})`;return a.name=t.name,a.category=t.category,a.fallbackVariable=t.fallbackVariable,a.defaultValue=t.defaultValue,a.context=o,a.defaultCssValue=e,a.get=o=>r.css`var(${g(t.name)}, ${e(o)})`,a.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>t.lastResortDefaultValue(),a}}const b={colorWhite:u.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:u.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:u.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:u.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:u.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:u.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:u.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:u.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:u.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:u.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:u.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:u.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:u.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:u.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:u.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:u.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:u.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:u.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:u.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:u.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:u.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:u.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:u.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:u.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:u.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:u.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:u.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:u.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:u.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:u.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:u.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:u.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:u.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:u.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:u.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:u.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:u.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:u.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:u.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:u.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:u.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:u.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:u.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:u.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:u.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:u.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:u.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:u.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:u.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:u.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:u.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:u.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:u.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:u.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:u.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:u.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:u.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:u.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:u.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:u.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:u.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:u.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:u.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:u.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:u.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:u.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:u.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:u.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:u.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:u.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:u.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:u.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:u.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:u.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:u.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:u.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:u.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:u.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:u.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:u.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:u.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:u.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:u.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:u.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:u.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:u.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:u.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:u.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:u.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:u.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:u.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:u.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:u.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:u.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:u.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:u.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:u.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:u.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:u.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:u.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:u.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:u.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:u.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:u.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:u.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:u.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:u.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:u.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:u.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:u.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:u.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:u.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:u.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:u.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:u.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:u.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:u.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:u.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:u.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:u.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:u.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:u.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:u.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:u.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:u.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:u.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:u.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:u.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:u.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:u.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:u.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:u.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:u.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:u.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:u.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:u.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:u.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:u.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:u.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:u.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:u.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:u.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:u.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:u.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:u.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:u.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:u.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:u.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:u.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:u.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:u.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:u.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:u.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:u.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:u.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:u.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:u.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:u.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:u.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:u.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:u.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:u.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:u.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:u.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:u.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:u.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:u.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:u.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:u.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:u.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:u.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:u.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:u.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:u.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:u.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:u.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:u.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:u.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:u.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:u.create("--ft-icon-size-6","","SIZE","48px"),opacity0:u.create("--ft-opacity-0","","NUMBER","0"),opacity8:u.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:u.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:u.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:u.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:u.create("--ft-opacity-80","","NUMBER","0.8")},m={display:{fontFamily:u.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:u.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:u.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:u.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:u.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:u.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:u.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:u.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:u.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:u.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:u.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:u.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:u.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:u.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:u.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:u.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:u.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:u.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:u.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:u.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:u.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:u.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:u.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:u.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:u.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:u.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:u.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:u.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:u.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},x={backgroundActionPrimary:u.extend("--ft-background-action-primary","Used as backgorund of primary action components.",b.colorBrand0),backgroundErrorPrimary:u.extend("--ft-background-error-primary","Used as background of error components.",b.colorRed0),backgroundErrorSubtle:u.extend("--ft-background-error-subtle","Used as background of subtle error components.",b.colorRed10),backgroundInfoPrimary:u.extend("--ft-background-info-primary","Used as background of information components.",b.colorCyan200),backgroundInfoSubtle:u.extend("--ft-background-info-subtle","Used as background of subtle information components.",b.colorCyan10),backgroundWarningPrimary:u.extend("--ft-background-warning-primary","Used as background of warning components.",b.colorOrange300),backgroundWarningSubtle:u.extend("--ft-background-warning-subtle","Used as background of subtle information components.",b.colorOrange10),backgroundSuccessPrimary:u.extend("--ft-background-success-primary","Used as background of success components.",b.colorGreen200),backgroundSuccessSubtle:u.extend("--ft-background-success-subtle","Used as background of subtle success components.",b.colorGreen10),backgroundGlobalSurface:u.extend("--ft-background-global-surface","Used as app background.",b.colorWhite),backgroundGlobalOnSurface:u.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",b.colorGray10),backgroundGlobalOnSurfaceDark:u.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",b.colorGray30),contentActionPrimary:u.extend("--ft-content-action-primary","Used on label of primary action on light surface.",b.colorBrand0),contentWarningPrimary:u.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",b.colorOrange300),contentWarningIconOnly:u.extend("--ft-content-warning-icon-only","Used on warning status icons alone",b.colorOrange0),contentErrorPrimary:u.extend("--ft-content-error-primary","Used on label of error messages on light surface.",b.colorRed0),contentErrorIconOnly:u.extend("--ft-content-error-icon-only","Used on error status icons alone",b.colorRed0),contentInfoPrimary:u.extend("--ft-content-info-primary","Used on label of information messages on light surface.",b.colorCyan200),contentInfoIconOnly:u.extend("--ft-content-info-icon-only","Used on info status icons alone",b.colorCyan0),contentSuccessIconOnly:u.extend("--ft-content-success-icon-only","Used on success status icons alone",b.colorGreen0),contentSuccessPrimary:u.extend("--ft-content-success-primary","Used on label of success messages on light surface.",b.colorGreen200),contentGlobalPrimary:u.extend("--ft-content-global-primary","Used for main content on the page.",b.colorGray500),contentGlobalSecondary:u.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",b.colorGray200),contentGlobalSubtle:u.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",b.colorGray0),contentGlobalOnColor:u.extend("--ft-content-global-on-color","Used for content on a dominant color.",b.colorWhite),borderActionPrimary:u.extend("--ft-border-action-primary","Used as border for primary action components.",b.colorBrand0),borderActionFocusRing:u.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",b.colorCyan0),borderWarningPrimary:u.extend("--ft-border-warning-primary","Used as border for warning components.",b.colorOrange30),borderSuccessPrimary:u.extend("--ft-border-success-primary","Used as border for success components.",b.colorGreen30),borderErrorPrimary:u.extend("--ft-border-error-primary","Used as border for error components.",b.colorRed30),borderInfoPrimary:u.extend("--ft-border-info-primary","Used as border for information components.",b.colorCyan30),borderGlobalSubtle:u.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",b.colorGray30),borderGlobalPrimary:u.extend("--ft-border-global-primary","Used as border for element like input.",b.colorGray50),borderInputPrimary:u.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",b.colorGray80)},O={largeHeight:u.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:u.extend("--ft-button-large-horizontal-padding","",b.spacing4),largeGap:u.extend("--ft-button-large-gap","",b.spacing2),largeBorderRadius:u.extend("--ft-button-large-border-radius","",b.borderRadiusS),largeIconSize:u.extend("--ft-button-large-icon-size","",b.iconSize3),largeBorderWidth:u.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:u.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:u.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:u.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:u.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:u.extend("--ft-button-small-horizontal-padding","",b.spacing3),smallGap:u.extend("--ft-button-small-gap","",b.spacing2),smallBorderRadius:u.extend("--ft-button-small-border-radius","",b.borderRadiusS),smallIconSize:u.extend("--ft-button-small-icon-size","",b.iconSize2),smallBorderWidth:u.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:u.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:u.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:u.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:u.extend("--ft-button-primary-background-color","",x.backgroundActionPrimary),primaryColor:u.extend("--ft-button-primary-color","",x.contentGlobalOnColor),primaryIconColor:u.extend("--ft-button-primary-icon-color","",x.contentGlobalOnColor),primaryStateLayerColor:u.extend("--ft-button-primary-state-layer-color","",x.contentGlobalOnColor),primaryStateLayerOpacityHover:u.extend("--ft-button-primary-state-layer-opacity-hover","",b.opacity16),primaryStateLayerOpacityFocus:u.extend("--ft-button-primary-state-layer-opacity-focus","",b.opacity16),primaryStateLayerOpacityActive:u.extend("--ft-button-primary-state-layer-opacity-active","",b.opacity24),primaryComponentOpacityDisabled:u.extend("--ft-button-primary-component-opacity-disabled","",b.opacity40),focusFocusRingColor:u.extend("--ft-button-focus-focus-ring-color","",x.borderActionFocusRing),tertiaryBackgroundColor:u.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:u.extend("--ft-button-tertiary-color","",x.contentActionPrimary),tertiaryIconColor:u.extend("--ft-button-tertiary-icon-color","",x.contentActionPrimary),tertiaryStateLayerColor:u.extend("--ft-button-tertiary-state-layer-color","",x.contentActionPrimary),tertiaryStateLayerOpacityHover:u.extend("--ft-button-tertiary-state-layer-opacity-hover","",b.opacity8),tertiaryStateLayerOpacityFocus:u.extend("--ft-button-tertiary-state-layer-opacity-focus","",b.opacity8),tertiaryStateLayerOpacityActive:u.extend("--ft-button-tertiary-state-layer-opacity-active","",b.opacity16),tertiaryComponentOpacityDisabled:u.extend("--ft-button-tertiary-component-opacity-disabled","",b.opacity40),secondaryBackgroundColor:u.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:u.extend("--ft-button-secondary-color","",x.contentActionPrimary),secondaryIconColor:u.extend("--ft-button-secondary-icon-color","",x.contentActionPrimary),secondaryStateLayerColor:u.extend("--ft-button-secondary-state-layer-color","",x.contentActionPrimary),secondaryStateLayerOpacityHover:u.extend("--ft-button-secondary-state-layer-opacity-hover","",b.opacity8),secondaryStateLayerOpacityFocus:u.extend("--ft-button-secondary-state-layer-opacity-focus","",b.opacity8),secondaryStateLayerOpacityActive:u.extend("--ft-button-secondary-state-layer-opacity-active","",b.opacity16),secondaryComponentOpacityDisabled:u.extend("--ft-button-secondary-component-opacity-disabled","",b.opacity40),secondaryBorderColor:u.extend("--ft-button-secondary-border-color","",x.borderActionPrimary),neutralBackgroundColor:u.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:u.extend("--ft-button-neutral-icon-color","",x.contentGlobalSecondary),neutralColor:u.extend("--ft-button-neutral-color","",x.contentGlobalSecondary),neutralStateLayerColor:u.extend("--ft-button-neutral-state-layer-color","",x.contentGlobalSecondary),neutralStateLayerOpacityHover:u.extend("--ft-button-neutral-state-layer-opacity-hover","",b.opacity8),neutralStateLayerOpacityFocus:u.extend("--ft-button-neutral-state-layer-opacity-focus","",b.opacity8),neutralStateLayerOpacityActive:u.extend("--ft-button-neutral-state-layer-opacity-active","",b.opacity16),neutralComponentOpacityDisabled:u.extend("--ft-button-neutral-component-opacity-disabled","",b.opacity40)};u.extend("--ft-tabs-top-left-border-radius","",b.borderRadiusS),u.extend("--ft-tabs-top-right-border-radius","",b.borderRadiusS),u.extend("--ft-tabs-label-horizontal-padding","",b.spacing4),u.extend("--ft-tabs-label-vertical-padding","",b.spacing3),u.extend("--ft-tabs-label-gap","",b.spacing1),u.extend("--ft-switch-group-horizontal-padding","",b.spacing1),u.extend("--ft-switch-group-vertical-padding","",b.spacing1),u.extend("--ft-switch-group-gap","",b.spacing1),u.extend("--ft-switch-group-background-color","",x.backgroundGlobalSurface),u.extend("--ft-switch-group-border-color","",x.borderGlobalSubtle),u.create("--ft-switch-group-border-radius","","SIZE","6px"),u.extend("--ft-switch-label-horizontal-padding","",b.spacing2),u.extend("--ft-switch-label-vertical-padding","",b.spacing1),u.extend("--ft-switch-icon-horizontal-padding","",b.spacing1),u.extend("--ft-switch-icon-vertical-padding","",b.spacing1),u.create("--ft-switch-focus-outline-width","","SIZE","2px"),u.extend("--ft-switch-focus-focus-ring-color","",x.borderActionFocusRing),u.extend("--ft-switch-option-border-radius","",b.borderRadiusS),u.extend("--ft-switch-off-state-layer-opacity-hover","",b.opacity8),u.extend("--ft-switch-off-state-layer-opacity-focus","",b.opacity8),u.extend("--ft-switch-off-state-layer-opacity-active","",b.opacity16),u.extend("--ft-switch-off-component-opacity-disabled","",b.opacity40),u.extend("--ft-switch-off-color","",x.contentGlobalSubtle),u.extend("--ft-switch-off-state-layer-color","",x.contentGlobalSubtle),u.extend("--ft-chart-1-light","for area color charts",b.colorBrand40),u.extend("--ft-chart-1-base","for line charts",b.colorBrand0),u.extend("--ft-chart-2-light","for area color charts",b.colorYellow60),u.extend("--ft-chart-2-base","for line charts",b.colorYellow100),u.extend("--ft-chart-3-light","",b.colorUltramarine40),u.extend("--ft-chart-3-base","",b.colorUltramarine70),u.extend("--ft-chart-4-light","",b.colorCyan50),u.extend("--ft-chart-4-base","",b.colorCyan100),u.extend("--ft-chart-5-light","",b.colorRed40),u.extend("--ft-chart-5-base","",b.colorRed60),u.extend("--ft-chart-6-light","",b.colorGreen40),u.extend("--ft-chart-6-base","",b.colorGreen70),u.extend("--ft-chart-7-light","",b.colorOrange70),u.extend("--ft-chart-7-base","",b.colorOrange100),u.extend("--ft-chart-8-light","",b.colorAvocado70),u.extend("--ft-chart-8-base","",b.colorAvocado200),u.extend("--ft-chart-9-light","",b.colorBrown50),u.extend("--ft-chart-9-base","",b.colorBrown200),u.extend("--ft-chart-10-light","",b.colorGray50),u.extend("--ft-chart-10-base","",b.colorGray80),u.extend("--ft-chart-monochrome-10","",b.colorBrand10),u.extend("--ft-chart-monochrome-20","",b.colorBrand20),u.extend("--ft-chart-monochrome-30","",b.colorBrand40),u.extend("--ft-chart-monochrome-40","",b.colorBrand60),u.extend("--ft-chart-monochrome-50","",b.colorBrand0),u.extend("--ft-chart-monochrome-60","",b.colorBrand200),u.extend("--ft-chip-large-horizontal-padding","",b.spacing4),u.extend("--ft-chip-large-vertical-padding","",b.spacing2),u.extend("--ft-chip-large-gap","",b.spacing1),u.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-large-border-radius","",b.borderRadiusPill),u.create("--ft-chip-large-border-width","","SIZE","1px"),u.extend("--ft-chip-large-icon-size","",b.iconSize3),u.extend("--ft-chip-medium-horizontal-padding","",b.spacing3),u.extend("--ft-chip-medium-vertical-padding","",b.spacing1),u.extend("--ft-chip-medium-gap","",b.spacing1),u.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-medium-border-radius","",b.borderRadiusPill),u.create("--ft-chip-medium-border-width","","SIZE","1px"),u.extend("--ft-chip-medium-icon-size","",b.iconSize2),u.extend("--ft-chip-small-horizontal-padding","",b.spacing2),u.extend("--ft-chip-small-vertical-padding","",b.spacing05),u.extend("--ft-chip-small-gap","",b.spacing1),u.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-small-border-radius","",b.borderRadiusPill),u.create("--ft-chip-small-border-width","","SIZE","1px"),u.extend("--ft-chip-small-icon-size","",b.iconSize1),u.extend("--ft-chip-neutral-background-color","",x.backgroundGlobalOnSurface),u.extend("--ft-chip-neutral-color","",x.contentGlobalPrimary),u.extend("--ft-chip-neutral-border-color","",x.borderGlobalSubtle),u.extend("--ft-chip-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-chip-info-color","",x.contentInfoPrimary),u.extend("--ft-chip-info-border-color","",x.borderInfoPrimary),u.extend("--ft-chip-success-background-color","",x.backgroundSuccessSubtle),u.extend("--ft-chip-success-color","",x.contentSuccessPrimary),u.extend("--ft-chip-success-border-color","",x.borderSuccessPrimary),u.extend("--ft-chip-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-chip-warning-color","",x.contentWarningPrimary),u.extend("--ft-chip-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-chip-error-background-color","",x.backgroundErrorSubtle),u.extend("--ft-chip-error-color","",x.contentErrorPrimary),u.extend("--ft-chip-error-border-color","",x.borderErrorPrimary),u.create("--ft-notice-border-width","","SIZE","1px"),u.extend("--ft-notice-horizontal-padding","",b.spacing2),u.extend("--ft-notice-vertical-padding","",b.spacing1),u.extend("--ft-notice-border-radius","",b.borderRadiusS),u.extend("--ft-notice-gap","",b.spacing2),u.extend("--ft-notice-icon-size","",b.iconSize3),u.extend("--ft-notice-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-notice-info-border-color","",x.borderInfoPrimary),u.extend("--ft-notice-info-color","",x.contentInfoPrimary),u.extend("--ft-notice-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-notice-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-notice-warning-color","",x.contentWarningPrimary),u.extend("--ft-checkbox-label-color","",x.contentGlobalPrimary),u.extend("--ft-checkbox-checked-background-color","",x.contentActionPrimary),u.extend("--ft-checkbox-checked-state-layer-color","",x.contentActionPrimary),u.extend("--ft-checkbox-checked-color","",x.contentGlobalOnColor),u.extend("--ft-checkbox-checked-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-checkbox-checked-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-checkbox-checked-state-layer-opacity-active","",b.opacity24),u.extend("--ft-checkbox-checked-component-opacity-disabled","",b.opacity40),u.extend("--ft-checkbox-unchecked-border-color","",b.colorGray80),u.extend("--ft-checkbox-unchecked-state-layer-color","",b.colorGray80),u.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",b.opacity24),u.extend("--ft-checkbox-unchecked-component-opacity-disabled","",b.opacity40),u.extend("--ft-checkbox-focus-focus-ring-color","",x.borderActionFocusRing),u.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),u.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),u.extend("--ft-checkbox-gap","",b.spacing3),u.extend("--ft-toggle-off-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-toggle-off-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-toggle-off-state-layer-opacity-active","",b.opacity24),u.extend("--ft-toggle-off-component-opacity-disabled","",b.opacity40),u.extend("--ft-toggle-off-background-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-off-icon-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-off-state-layer-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-on-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-toggle-on-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-toggle-on-state-layer-opacity-active","",b.opacity24),u.extend("--ft-toggle-on-component-opacity-disabled","",b.opacity40),u.extend("--ft-toggle-on-background-color","",x.contentActionPrimary),u.extend("--ft-toggle-on-icon-color","",x.contentActionPrimary),u.extend("--ft-toggle-on-state-layer-color","",x.contentActionPrimary),u.extend("--ft-toggle-label-color","",x.contentGlobalPrimary),u.extend("--ft-toggle-focus-focus-ring-color","",x.borderActionFocusRing),u.extend("--ft-toggle-gap","",b.spacing3),u.extend("--ft-radio-label-color","",x.contentGlobalPrimary),u.extend("--ft-radio-selected-color","",x.contentActionPrimary),u.extend("--ft-radio-selected-state-layer-color","",x.contentActionPrimary),u.extend("--ft-radio-selected-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-radio-selected-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-radio-selected-state-layer-opacity-active","",b.opacity24),u.extend("--ft-radio-selected-component-opacity-disabled","",b.opacity40),u.extend("--ft-radio-unselected-state-layer-color","",b.colorGray80),u.extend("--ft-radio-unselected-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-radio-unselected-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-radio-unselected-state-layer-opacity-active","",b.opacity24),u.extend("--ft-radio-unselected-component-opacity-disabled","",b.opacity40),u.extend("--ft-radio-focus-focus-ring-color","",x.borderActionFocusRing),u.create("--ft-radio-focus-outline-offset","","SIZE","3px"),u.create("--ft-radio-focus-outline-width","","SIZE","2px"),u.extend("--ft-radio-gap","",b.spacing3),u.extend("--ft-notification-icon-size","",b.iconSize4),u.extend("--ft-notification-horizontal-padding","",b.spacing4),u.extend("--ft-notification-vertical-padding","",b.spacing4),u.extend("--ft-notification-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-notification-info-color","",x.contentInfoPrimary),u.extend("--ft-notification-info-border-color","",x.borderInfoPrimary),u.extend("--ft-notification-success-background-color","",x.backgroundSuccessSubtle),u.extend("--ft-notification-success-color","",x.contentSuccessPrimary),u.extend("--ft-notification-success-border-color","",x.borderSuccessPrimary),u.extend("--ft-notification-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-notification-warning-color","",x.contentWarningPrimary),u.extend("--ft-notification-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-notification-error-background-color","",x.backgroundErrorSubtle),u.extend("--ft-notification-error-color","",x.contentErrorPrimary),u.extend("--ft-notification-error-border-color","",x.borderErrorPrimary),u.extend("--ft-notification-border-radius","",b.borderRadiusPill),u.create("--ft-notification-border-width","","SIZE","1px"),u.extend("--ft-notification-gap-leading","",b.spacing2),u.extend("--ft-notification-gap-trailing","",b.spacing8);const N=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),v=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),S={fontFamily:v,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","",N),w=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),$=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),I=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),R=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),U=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit"),W=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",N),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),E=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),k=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit"),z=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",v),F=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),B=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",v),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),_=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit"),Y=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",v),V=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),q=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),J=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit"),tt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",v),ot=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),it=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit"),nt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",v),lt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),ct=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),st=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit"),dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",v),ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit"),mt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",v),xt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase"),Ct={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",v),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},wt=r.css`
|
|
113
|
+
`,g=t=>"string"==typeof t?r.unsafeCSS(t):t;class u{static create(t,o,e,a){const i=t=>g(null!=t?t:a),n=r.css`var(${g(t)}, ${i(a)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=a,n.defaultCssValue=i,n.get=o=>r.css`var(${g(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>a,n}static extend(t,o,e,a){const i=t=>e.get(null!=t?t:a),n=r.css`var(${g(t)}, ${i(a)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=a,n.defaultCssValue=i,n.get=o=>r.css`var(${g(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=a?a:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):g(null!=o?o:t.lastResortDefaultValue()),a=r.css`var(${g(t.name)}, ${e(t.defaultValue)})`;return a.name=t.name,a.category=t.category,a.fallbackVariable=t.fallbackVariable,a.defaultValue=t.defaultValue,a.context=o,a.defaultCssValue=e,a.get=o=>r.css`var(${g(t.name)}, ${e(o)})`,a.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>t.lastResortDefaultValue(),a}}const b={colorWhite:u.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:u.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:u.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:u.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:u.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:u.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:u.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:u.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:u.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:u.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:u.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:u.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:u.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:u.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:u.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:u.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:u.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:u.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:u.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:u.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:u.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:u.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:u.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:u.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:u.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:u.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:u.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:u.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:u.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:u.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:u.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:u.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:u.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:u.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:u.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:u.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:u.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:u.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:u.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:u.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:u.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:u.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:u.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:u.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:u.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:u.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:u.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:u.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:u.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:u.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:u.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:u.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:u.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:u.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:u.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:u.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:u.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:u.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:u.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:u.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:u.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:u.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:u.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:u.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:u.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:u.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:u.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:u.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:u.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:u.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:u.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:u.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:u.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:u.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:u.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:u.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:u.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:u.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:u.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:u.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:u.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:u.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:u.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:u.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:u.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:u.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:u.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:u.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:u.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:u.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:u.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:u.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:u.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:u.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:u.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:u.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:u.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:u.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:u.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:u.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:u.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:u.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:u.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:u.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:u.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:u.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:u.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:u.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:u.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:u.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:u.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:u.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:u.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:u.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:u.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:u.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:u.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:u.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:u.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:u.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:u.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:u.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:u.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:u.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:u.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:u.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:u.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:u.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:u.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:u.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:u.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:u.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:u.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:u.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:u.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:u.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:u.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:u.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:u.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:u.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:u.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:u.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:u.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:u.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:u.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:u.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:u.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:u.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:u.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:u.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:u.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:u.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:u.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:u.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:u.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:u.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:u.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:u.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:u.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:u.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:u.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:u.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:u.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:u.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:u.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:u.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:u.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:u.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:u.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:u.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:u.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:u.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:u.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:u.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:u.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:u.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:u.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:u.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:u.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:u.create("--ft-icon-size-6","","SIZE","48px"),opacity0:u.create("--ft-opacity-0","","NUMBER","0"),opacity8:u.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:u.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:u.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:u.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:u.create("--ft-opacity-80","","NUMBER","0.8")},m={display:{fontFamily:u.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:u.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:u.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:u.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:u.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:u.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:u.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:u.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:u.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:u.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:u.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:u.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:u.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:u.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:u.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:u.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:u.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:u.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:u.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:u.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:u.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:u.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:u.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:u.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:u.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:u.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:u.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:u.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:u.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:u.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:u.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:u.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:u.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:u.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:u.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:u.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:u.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:u.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:u.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:u.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:u.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:u.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:u.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:u.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:u.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:u.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:u.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:u.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:u.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:u.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},x={backgroundActionPrimary:u.extend("--ft-background-action-primary","Used as backgorund of primary action components.",b.colorBrand0),backgroundErrorPrimary:u.extend("--ft-background-error-primary","Used as background of error components.",b.colorRed0),backgroundErrorSubtle:u.extend("--ft-background-error-subtle","Used as background of subtle error components.",b.colorRed10),backgroundInfoPrimary:u.extend("--ft-background-info-primary","Used as background of information components.",b.colorCyan200),backgroundInfoSubtle:u.extend("--ft-background-info-subtle","Used as background of subtle information components.",b.colorCyan10),backgroundWarningPrimary:u.extend("--ft-background-warning-primary","Used as background of warning components.",b.colorOrange300),backgroundWarningSubtle:u.extend("--ft-background-warning-subtle","Used as background of subtle information components.",b.colorOrange10),backgroundSuccessPrimary:u.extend("--ft-background-success-primary","Used as background of success components.",b.colorGreen200),backgroundSuccessSubtle:u.extend("--ft-background-success-subtle","Used as background of subtle success components.",b.colorGreen10),backgroundGlobalSurface:u.extend("--ft-background-global-surface","Used as app background.",b.colorWhite),backgroundGlobalOnSurface:u.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",b.colorGray10),backgroundGlobalOnSurfaceDark:u.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",b.colorGray30),contentActionPrimary:u.extend("--ft-content-action-primary","Used on label of primary action on light surface.",b.colorBrand0),contentWarningPrimary:u.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",b.colorOrange300),contentWarningIconOnly:u.extend("--ft-content-warning-icon-only","Used on warning status icons alone",b.colorOrange0),contentErrorPrimary:u.extend("--ft-content-error-primary","Used on label of error messages on light surface.",b.colorRed0),contentErrorIconOnly:u.extend("--ft-content-error-icon-only","Used on error status icons alone",b.colorRed0),contentInfoPrimary:u.extend("--ft-content-info-primary","Used on label of information messages on light surface.",b.colorCyan200),contentInfoIconOnly:u.extend("--ft-content-info-icon-only","Used on info status icons alone",b.colorCyan0),contentSuccessIconOnly:u.extend("--ft-content-success-icon-only","Used on success status icons alone",b.colorGreen0),contentSuccessPrimary:u.extend("--ft-content-success-primary","Used on label of success messages on light surface.",b.colorGreen200),contentGlobalPrimary:u.extend("--ft-content-global-primary","Used for main content on the page.",b.colorGray500),contentGlobalSecondary:u.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",b.colorGray200),contentGlobalSubtle:u.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",b.colorGray0),contentGlobalOnColor:u.extend("--ft-content-global-on-color","Used for content on a dominant color.",b.colorWhite),borderActionPrimary:u.extend("--ft-border-action-primary","Used as border for primary action components.",b.colorBrand0),borderActionFocusRing:u.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",b.colorCyan0),borderWarningPrimary:u.extend("--ft-border-warning-primary","Used as border for warning components.",b.colorOrange30),borderSuccessPrimary:u.extend("--ft-border-success-primary","Used as border for success components.",b.colorGreen30),borderErrorPrimary:u.extend("--ft-border-error-primary","Used as border for error components.",b.colorRed30),borderInfoPrimary:u.extend("--ft-border-info-primary","Used as border for information components.",b.colorCyan30),borderGlobalSubtle:u.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",b.colorGray30),borderGlobalPrimary:u.extend("--ft-border-global-primary","Used as border for element like input.",b.colorGray50),borderInputPrimary:u.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",b.colorGray80)},O={largeHeight:u.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:u.extend("--ft-button-large-horizontal-padding","",b.spacing4),largeGap:u.extend("--ft-button-large-gap","",b.spacing2),largeBorderRadius:u.extend("--ft-button-large-border-radius","",b.borderRadiusS),largeIconSize:u.extend("--ft-button-large-icon-size","",b.iconSize3),largeBorderWidth:u.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:u.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:u.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:u.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:u.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:u.extend("--ft-button-small-horizontal-padding","",b.spacing3),smallGap:u.extend("--ft-button-small-gap","",b.spacing2),smallBorderRadius:u.extend("--ft-button-small-border-radius","",b.borderRadiusS),smallIconSize:u.extend("--ft-button-small-icon-size","",b.iconSize2),smallBorderWidth:u.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:u.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:u.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:u.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:u.extend("--ft-button-primary-background-color","",x.backgroundActionPrimary),primaryColor:u.extend("--ft-button-primary-color","",x.contentGlobalOnColor),primaryIconColor:u.extend("--ft-button-primary-icon-color","",x.contentGlobalOnColor),primaryStateLayerColor:u.extend("--ft-button-primary-state-layer-color","",x.contentGlobalOnColor),primaryStateLayerOpacityHover:u.extend("--ft-button-primary-state-layer-opacity-hover","",b.opacity16),primaryStateLayerOpacityFocus:u.extend("--ft-button-primary-state-layer-opacity-focus","",b.opacity16),primaryStateLayerOpacityActive:u.extend("--ft-button-primary-state-layer-opacity-active","",b.opacity24),primaryComponentOpacityDisabled:u.extend("--ft-button-primary-component-opacity-disabled","",b.opacity40),focusFocusRingColor:u.extend("--ft-button-focus-focus-ring-color","",x.borderActionFocusRing),tertiaryBackgroundColor:u.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:u.extend("--ft-button-tertiary-color","",x.contentActionPrimary),tertiaryIconColor:u.extend("--ft-button-tertiary-icon-color","",x.contentActionPrimary),tertiaryStateLayerColor:u.extend("--ft-button-tertiary-state-layer-color","",x.contentActionPrimary),tertiaryStateLayerOpacityHover:u.extend("--ft-button-tertiary-state-layer-opacity-hover","",b.opacity8),tertiaryStateLayerOpacityFocus:u.extend("--ft-button-tertiary-state-layer-opacity-focus","",b.opacity8),tertiaryStateLayerOpacityActive:u.extend("--ft-button-tertiary-state-layer-opacity-active","",b.opacity16),tertiaryComponentOpacityDisabled:u.extend("--ft-button-tertiary-component-opacity-disabled","",b.opacity40),secondaryBackgroundColor:u.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:u.extend("--ft-button-secondary-color","",x.contentActionPrimary),secondaryIconColor:u.extend("--ft-button-secondary-icon-color","",x.contentActionPrimary),secondaryStateLayerColor:u.extend("--ft-button-secondary-state-layer-color","",x.contentActionPrimary),secondaryStateLayerOpacityHover:u.extend("--ft-button-secondary-state-layer-opacity-hover","",b.opacity8),secondaryStateLayerOpacityFocus:u.extend("--ft-button-secondary-state-layer-opacity-focus","",b.opacity8),secondaryStateLayerOpacityActive:u.extend("--ft-button-secondary-state-layer-opacity-active","",b.opacity16),secondaryComponentOpacityDisabled:u.extend("--ft-button-secondary-component-opacity-disabled","",b.opacity40),secondaryBorderColor:u.extend("--ft-button-secondary-border-color","",x.borderActionPrimary),neutralBackgroundColor:u.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:u.extend("--ft-button-neutral-icon-color","",x.contentGlobalSecondary),neutralColor:u.extend("--ft-button-neutral-color","",x.contentGlobalSecondary),neutralStateLayerColor:u.extend("--ft-button-neutral-state-layer-color","",x.contentGlobalSecondary),neutralStateLayerOpacityHover:u.extend("--ft-button-neutral-state-layer-opacity-hover","",b.opacity8),neutralStateLayerOpacityFocus:u.extend("--ft-button-neutral-state-layer-opacity-focus","",b.opacity8),neutralStateLayerOpacityActive:u.extend("--ft-button-neutral-state-layer-opacity-active","",b.opacity16),neutralComponentOpacityDisabled:u.extend("--ft-button-neutral-component-opacity-disabled","",b.opacity40)};u.extend("--ft-tabs-top-left-border-radius","",b.borderRadiusS),u.extend("--ft-tabs-top-right-border-radius","",b.borderRadiusS),u.extend("--ft-tabs-label-horizontal-padding","",b.spacing4),u.extend("--ft-tabs-label-vertical-padding","",b.spacing3),u.extend("--ft-tabs-label-gap","",b.spacing1),u.extend("--ft-switch-group-horizontal-padding","",b.spacing1),u.extend("--ft-switch-group-vertical-padding","",b.spacing1),u.extend("--ft-switch-group-gap","",b.spacing1),u.extend("--ft-switch-group-background-color","",x.backgroundGlobalSurface),u.extend("--ft-switch-group-border-color","",x.borderGlobalSubtle),u.create("--ft-switch-group-border-radius","","SIZE","6px"),u.extend("--ft-switch-label-horizontal-padding","",b.spacing2),u.extend("--ft-switch-label-vertical-padding","",b.spacing1),u.extend("--ft-switch-icon-horizontal-padding","",b.spacing1),u.extend("--ft-switch-icon-vertical-padding","",b.spacing1),u.create("--ft-switch-focus-outline-width","","SIZE","2px"),u.extend("--ft-switch-focus-focus-ring-color","",x.borderActionFocusRing),u.extend("--ft-switch-option-border-radius","",b.borderRadiusS),u.extend("--ft-switch-off-state-layer-opacity-hover","",b.opacity8),u.extend("--ft-switch-off-state-layer-opacity-focus","",b.opacity8),u.extend("--ft-switch-off-state-layer-opacity-active","",b.opacity16),u.extend("--ft-switch-off-component-opacity-disabled","",b.opacity40),u.extend("--ft-switch-off-color","",x.contentGlobalSubtle),u.extend("--ft-switch-off-state-layer-color","",x.contentGlobalSubtle),u.extend("--ft-chart-1-light","for area color charts",b.colorBrand40),u.extend("--ft-chart-1-base","for line charts",b.colorBrand0),u.extend("--ft-chart-2-light","for area color charts",b.colorYellow60),u.extend("--ft-chart-2-base","for line charts",b.colorYellow100),u.extend("--ft-chart-3-light","",b.colorUltramarine40),u.extend("--ft-chart-3-base","",b.colorUltramarine70),u.extend("--ft-chart-4-light","",b.colorCyan50),u.extend("--ft-chart-4-base","",b.colorCyan100),u.extend("--ft-chart-5-light","",b.colorRed40),u.extend("--ft-chart-5-base","",b.colorRed60),u.extend("--ft-chart-6-light","",b.colorGreen40),u.extend("--ft-chart-6-base","",b.colorGreen70),u.extend("--ft-chart-7-light","",b.colorOrange70),u.extend("--ft-chart-7-base","",b.colorOrange100),u.extend("--ft-chart-8-light","",b.colorAvocado70),u.extend("--ft-chart-8-base","",b.colorAvocado200),u.extend("--ft-chart-9-light","",b.colorBrown50),u.extend("--ft-chart-9-base","",b.colorBrown200),u.extend("--ft-chart-10-light","",b.colorGray50),u.extend("--ft-chart-10-base","",b.colorGray80),u.extend("--ft-chart-monochrome-10","",b.colorBrand10),u.extend("--ft-chart-monochrome-20","",b.colorBrand20),u.extend("--ft-chart-monochrome-30","",b.colorBrand40),u.extend("--ft-chart-monochrome-40","",b.colorBrand60),u.extend("--ft-chart-monochrome-50","",b.colorBrand0),u.extend("--ft-chart-monochrome-60","",b.colorBrand200),u.extend("--ft-chip-large-horizontal-padding","",b.spacing4),u.extend("--ft-chip-large-vertical-padding","",b.spacing2),u.extend("--ft-chip-large-gap","",b.spacing1),u.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-large-border-radius","",b.borderRadiusPill),u.create("--ft-chip-large-border-width","","SIZE","1px"),u.extend("--ft-chip-large-icon-size","",b.iconSize3),u.extend("--ft-chip-medium-horizontal-padding","",b.spacing3),u.extend("--ft-chip-medium-vertical-padding","",b.spacing1),u.extend("--ft-chip-medium-gap","",b.spacing1),u.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-medium-border-radius","",b.borderRadiusPill),u.create("--ft-chip-medium-border-width","","SIZE","1px"),u.extend("--ft-chip-medium-icon-size","",b.iconSize2),u.extend("--ft-chip-small-horizontal-padding","",b.spacing2),u.extend("--ft-chip-small-vertical-padding","",b.spacing05),u.extend("--ft-chip-small-gap","",b.spacing1),u.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),u.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),u.extend("--ft-chip-small-border-radius","",b.borderRadiusPill),u.create("--ft-chip-small-border-width","","SIZE","1px"),u.extend("--ft-chip-small-icon-size","",b.iconSize1),u.extend("--ft-chip-neutral-background-color","",x.backgroundGlobalOnSurface),u.extend("--ft-chip-neutral-color","",x.contentGlobalPrimary),u.extend("--ft-chip-neutral-border-color","",x.borderGlobalSubtle),u.extend("--ft-chip-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-chip-info-color","",x.contentInfoPrimary),u.extend("--ft-chip-info-border-color","",x.borderInfoPrimary),u.extend("--ft-chip-success-background-color","",x.backgroundSuccessSubtle),u.extend("--ft-chip-success-color","",x.contentSuccessPrimary),u.extend("--ft-chip-success-border-color","",x.borderSuccessPrimary),u.extend("--ft-chip-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-chip-warning-color","",x.contentWarningPrimary),u.extend("--ft-chip-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-chip-error-background-color","",x.backgroundErrorSubtle),u.extend("--ft-chip-error-color","",x.contentErrorPrimary),u.extend("--ft-chip-error-border-color","",x.borderErrorPrimary),u.create("--ft-notice-border-width","","SIZE","1px"),u.extend("--ft-notice-horizontal-padding","",b.spacing2),u.extend("--ft-notice-vertical-padding","",b.spacing1),u.extend("--ft-notice-border-radius","",b.borderRadiusS),u.extend("--ft-notice-gap","",b.spacing2),u.extend("--ft-notice-icon-size","",b.iconSize3),u.extend("--ft-notice-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-notice-info-border-color","",x.borderInfoPrimary),u.extend("--ft-notice-info-color","",x.contentInfoPrimary),u.extend("--ft-notice-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-notice-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-notice-warning-color","",x.contentWarningPrimary),u.extend("--ft-checkbox-label-color","",x.contentGlobalPrimary),u.extend("--ft-checkbox-checked-background-color","",x.contentActionPrimary),u.extend("--ft-checkbox-checked-state-layer-color","",x.contentActionPrimary),u.extend("--ft-checkbox-checked-color","",x.contentGlobalOnColor),u.extend("--ft-checkbox-checked-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-checkbox-checked-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-checkbox-checked-state-layer-opacity-active","",b.opacity24),u.extend("--ft-checkbox-checked-component-opacity-disabled","",b.opacity40),u.extend("--ft-checkbox-unchecked-border-color","",b.colorGray80),u.extend("--ft-checkbox-unchecked-state-layer-color","",b.colorGray80),u.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",b.opacity24),u.extend("--ft-checkbox-unchecked-component-opacity-disabled","",b.opacity40),u.extend("--ft-checkbox-focus-focus-ring-color","",x.borderActionFocusRing),u.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),u.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),u.extend("--ft-checkbox-gap","",b.spacing3),u.extend("--ft-toggle-off-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-toggle-off-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-toggle-off-state-layer-opacity-active","",b.opacity24),u.extend("--ft-toggle-off-component-opacity-disabled","",b.opacity40),u.extend("--ft-toggle-off-background-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-off-icon-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-off-state-layer-color","",x.contentGlobalSubtle),u.extend("--ft-toggle-on-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-toggle-on-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-toggle-on-state-layer-opacity-active","",b.opacity24),u.extend("--ft-toggle-on-component-opacity-disabled","",b.opacity40),u.extend("--ft-toggle-on-background-color","",x.contentActionPrimary),u.extend("--ft-toggle-on-icon-color","",x.contentActionPrimary),u.extend("--ft-toggle-on-state-layer-color","",x.contentActionPrimary),u.extend("--ft-toggle-label-color","",x.contentGlobalPrimary),u.extend("--ft-toggle-focus-focus-ring-color","",x.borderActionFocusRing),u.extend("--ft-toggle-gap","",b.spacing3),u.extend("--ft-radio-label-color","",x.contentGlobalPrimary),u.extend("--ft-radio-selected-color","",x.contentActionPrimary),u.extend("--ft-radio-selected-state-layer-color","",x.contentActionPrimary),u.extend("--ft-radio-selected-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-radio-selected-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-radio-selected-state-layer-opacity-active","",b.opacity24),u.extend("--ft-radio-selected-component-opacity-disabled","",b.opacity40),u.extend("--ft-radio-unselected-state-layer-color","",b.colorGray80),u.extend("--ft-radio-unselected-state-layer-opacity-hover","",b.opacity16),u.extend("--ft-radio-unselected-state-layer-opacity-focus","",b.opacity16),u.extend("--ft-radio-unselected-state-layer-opacity-active","",b.opacity24),u.extend("--ft-radio-unselected-component-opacity-disabled","",b.opacity40),u.extend("--ft-radio-focus-focus-ring-color","",x.borderActionFocusRing),u.create("--ft-radio-focus-outline-offset","","SIZE","3px"),u.create("--ft-radio-focus-outline-width","","SIZE","2px"),u.extend("--ft-radio-gap","",b.spacing3),u.extend("--ft-notification-icon-size","",b.iconSize4),u.extend("--ft-notification-horizontal-padding","",b.spacing4),u.extend("--ft-notification-vertical-padding","",b.spacing4),u.extend("--ft-notification-info-background-color","",x.backgroundInfoSubtle),u.extend("--ft-notification-info-color","",x.contentInfoPrimary),u.extend("--ft-notification-info-border-color","",x.borderInfoPrimary),u.extend("--ft-notification-success-background-color","",x.backgroundSuccessSubtle),u.extend("--ft-notification-success-color","",x.contentSuccessPrimary),u.extend("--ft-notification-success-border-color","",x.borderSuccessPrimary),u.extend("--ft-notification-warning-background-color","",x.backgroundWarningSubtle),u.extend("--ft-notification-warning-color","",x.contentWarningPrimary),u.extend("--ft-notification-warning-border-color","",x.borderWarningPrimary),u.extend("--ft-notification-error-background-color","",x.backgroundErrorSubtle),u.extend("--ft-notification-error-color","",x.contentErrorPrimary),u.extend("--ft-notification-error-border-color","",x.borderErrorPrimary),u.extend("--ft-notification-border-radius","",b.borderRadiusPill),u.create("--ft-notification-border-width","","SIZE","1px"),u.extend("--ft-notification-gap-leading","",b.spacing2),u.extend("--ft-notification-gap-trailing","",b.spacing8);const N=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),v=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),S={fontFamily:v,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","",N),w=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),$=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),I=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),R=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),U=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit"),W=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",N),E=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),k=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit"),z=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",v),F=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),B=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",v),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),Y=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit"),_=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",v),V=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),q=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),J=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit"),tt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",v),ot=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),it=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit"),nt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",v),lt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),ct=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),st=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit"),dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",v),ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit"),mt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",v),xt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase"),Ct={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",v),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},wt=r.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${C};
|
|
116
116
|
font-size: ${w};
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
`,$t=r.css`
|
|
123
123
|
.ft-typography--title-dense {
|
|
124
124
|
font-family: ${W};
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
125
|
+
font-size: ${E};
|
|
126
|
+
font-weight: ${L};
|
|
127
127
|
letter-spacing: ${k};
|
|
128
128
|
line-height: ${K};
|
|
129
129
|
text-transform: ${Z};
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
font-weight: ${j};
|
|
145
145
|
letter-spacing: ${T};
|
|
146
146
|
line-height: ${M};
|
|
147
|
-
text-transform: ${
|
|
147
|
+
text-transform: ${Y};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
`,Ut=r.css`
|
|
151
151
|
.ft-typography--body1 {
|
|
152
|
-
font-family: ${
|
|
152
|
+
font-family: ${_};
|
|
153
153
|
font-size: ${V};
|
|
154
154
|
font-weight: ${X};
|
|
155
155
|
letter-spacing: ${q};
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
line-height: ${at};
|
|
166
166
|
text-transform: ${it};
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,Et=r.css`
|
|
169
169
|
.ft-typography--caption {
|
|
170
170
|
font-family: ${nt};
|
|
171
171
|
font-size: ${lt};
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
line-height: ${ft};
|
|
175
175
|
text-transform: ${st};
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,Lt=r.css`
|
|
178
178
|
.ft-typography--breadcrumb {
|
|
179
179
|
font-family: ${dt};
|
|
180
180
|
font-size: ${ht};
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
${o.setVariable(Ft.size,Gt.iconSize)};
|
|
469
469
|
${o.setVariable(Ft.color,"var(--ft-button-internal-color)")};
|
|
470
470
|
}
|
|
471
|
-
`,o.noTextSelect];var
|
|
471
|
+
`,o.noTextSelect];var Yt=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class _t extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:a}=this.getCoordinates(t),i=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-i.x:i.width/2),this.originY=Math.round(null!=a?a-i.y:i.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return r.html`
|
|
472
472
|
<style>
|
|
473
473
|
.ft-ripple .ft-ripple--effect {
|
|
474
474
|
left: ${this.originX}px;
|
|
@@ -479,26 +479,26 @@
|
|
|
479
479
|
<div class="ft-ripple--background"></div>
|
|
480
480
|
<div class="ft-ripple--effect"></div>
|
|
481
481
|
</div>
|
|
482
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},i={passive:!0};t.addEventListener("mouseover",this.startHover,i),t.addEventListener("mousemove",this.moveRipple,i),t.addEventListener("mouseleave",this.endHover,i),t.addEventListener("mousedown",e,i),t.addEventListener("touchstart",r,i),t.addEventListener("touchmove",this.moveRipple,i),t.addEventListener("keydown",a,i),t.addEventListener("focus",this.startFocus,i),t.addEventListener("blur",this.endFocus,i),t.addEventListener("focusin",this.startFocus,i),t.addEventListener("focusout",this.endFocus,i),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,i),t.removeEventListener("mousemove",this.moveRipple,i),t.removeEventListener("mouseleave",this.endHover,i),t.removeEventListener("mousedown",e,i),t.removeEventListener("touchstart",r,i),t.removeEventListener("touchmove",this.moveRipple,i),t.removeEventListener("keydown",a,i),t.removeEventListener("focus",this.startFocus,i),t.removeEventListener("blur",this.endFocus,i),t.removeEventListener("focusin",this.startFocus,i),t.removeEventListener("focusout",this.endFocus,i),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,a;return null!=o.x?({x:r,y:a}=o):null!=e.touches&&(r=e.touches[0].clientX,a=e.touches[0].clientY),{x:r,y:a}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
482
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},i={passive:!0};t.addEventListener("mouseover",this.startHover,i),t.addEventListener("mousemove",this.moveRipple,i),t.addEventListener("mouseleave",this.endHover,i),t.addEventListener("mousedown",e,i),t.addEventListener("touchstart",r,i),t.addEventListener("touchmove",this.moveRipple,i),t.addEventListener("keydown",a,i),t.addEventListener("focus",this.startFocus,i),t.addEventListener("blur",this.endFocus,i),t.addEventListener("focusin",this.startFocus,i),t.addEventListener("focusout",this.endFocus,i),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,i),t.removeEventListener("mousemove",this.moveRipple,i),t.removeEventListener("mouseleave",this.endHover,i),t.removeEventListener("mousedown",e,i),t.removeEventListener("touchstart",r,i),t.removeEventListener("touchmove",this.moveRipple,i),t.removeEventListener("keydown",a,i),t.removeEventListener("focus",this.startFocus,i),t.removeEventListener("blur",this.endFocus,i),t.removeEventListener("focusin",this.startFocus,i),t.removeEventListener("focusout",this.endFocus,i),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,a;return null!=o.x?({x:r,y:a}=o):null!=e.touches&&(r=e.touches[0].clientX,a=e.touches[0].clientY),{x:r,y:a}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}_t.elementDefinitions={},_t.styles=y,Yt([e.property({type:Boolean})],_t.prototype,"primary",void 0),Yt([e.property({type:Boolean})],_t.prototype,"secondary",void 0),Yt([e.property({type:Boolean})],_t.prototype,"unbounded",void 0),Yt([e.property({type:Boolean})],_t.prototype,"activated",void 0),Yt([e.property({type:Boolean})],_t.prototype,"selected",void 0),Yt([e.property({type:Boolean})],_t.prototype,"disabled",void 0),Yt([e.state()],_t.prototype,"hovered",void 0),Yt([e.state()],_t.prototype,"focused",void 0),Yt([e.state()],_t.prototype,"pressed",void 0),Yt([e.state()],_t.prototype,"rippling",void 0),Yt([e.state()],_t.prototype,"originX",void 0),Yt([e.state()],_t.prototype,"originY",void 0),Yt([e.query(".ft-ripple")],_t.prototype,"ripple",void 0),Yt([e.query(".ft-ripple--effect")],_t.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(_t);
|
|
483
483
|
/**
|
|
484
484
|
* @license
|
|
485
485
|
* Copyright 2017 Google LLC
|
|
486
486
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
487
487
|
*/
|
|
488
|
-
const Vt=globalThis,Xt=Vt.trustedTypes,qt=Xt?Xt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Jt="$lit$",Qt=`lit$${(Math.random()+"").slice(9)}$`,to="?"+Qt,oo=`<${to}>`,eo=document,ro=()=>eo.createComment(""),ao=t=>null===t||"object"!=typeof t&&"function"!=typeof t,io=Array.isArray,no="[ \t\n\f\r]",lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,co=/-->/g,po=/>/g,fo=RegExp(`>|${no}(?:([^\\s"'>=/]+)(${no}*=${no}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),so=/'/g,ho=/"/g,yo=/^(?:script|style|textarea|title)$/i,go=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),uo=Symbol.for("lit-noChange"),bo=Symbol.for("lit-nothing"),mo=new WeakMap,xo=eo.createTreeWalker(eo,129);function Oo(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==qt?qt.createHTML(o):o}const No=(t,o)=>{const e=t.length-1,r=[];let a,i=2===o?"<svg>":"",n=lo;for(let o=0;o<e;o++){const e=t[o];let l,c,p=-1,f=0;for(;f<e.length&&(n.lastIndex=f,c=n.exec(e),null!==c);)f=n.lastIndex,n===lo?"!--"===c[1]?n=co:void 0!==c[1]?n=po:void 0!==c[2]?(yo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=fo):void 0!==c[3]&&(n=fo):n===fo?">"===c[0]?(n=a??lo,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?fo:'"'===c[3]?ho:so):n===ho||n===so?n=fo:n===co||n===po?n=lo:(n=fo,a=void 0);const s=n===fo&&t[o+1].startsWith("/>")?" ":"";i+=n===lo?e+oo:p>=0?(r.push(l),e.slice(0,p)+Jt+e.slice(p)+Qt+s):e+Qt+(-2===p?o:s)}return[Oo(t,i+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class vo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let a=0,i=0;const n=t.length-1,l=this.parts,[c,p]=No(t,o);if(this.el=vo.createElement(c,e),xo.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=xo.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Jt)){const o=p[i++],e=r.getAttribute(t).split(Qt),n=/([.?@])?(.*)/.exec(o);l.push({type:1,index:a,name:n[2],strings:e,ctor:"."===n[1]?Io:"?"===n[1]?Ro:"@"===n[1]?Uo:$o}),r.removeAttribute(t)}else t.startsWith(Qt)&&(l.push({type:6,index:a}),r.removeAttribute(t));if(yo.test(r.tagName)){const t=r.textContent.split(Qt),o=t.length-1;if(o>0){r.textContent=Xt?Xt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],ro()),xo.nextNode(),l.push({type:2,index:++a});r.append(t[o],ro())}}}else if(8===r.nodeType)if(r.data===to)l.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(Qt,t+1));)l.push({type:7,index:a}),t+=Qt.length-1}a++}}static createElement(t,o){const e=eo.createElement("template");return e.innerHTML=t,e}}function So(t,o,e=t,r){if(o===uo)return o;let a=void 0!==r?e._$Co?.[r]:e._$Cl;const i=ao(o)?void 0:o._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=a:e._$Cl=a),void 0!==a&&(o=So(t,a._$AS(t,o.values),a,r)),o}class Co{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??eo).importNode(o,!0);xo.currentNode=r;let a=xo.nextNode(),i=0,n=0,l=e[0];for(;void 0!==l;){if(i===l.index){let o;2===l.type?o=new wo(a,a.nextSibling,this,t):1===l.type?o=new l.ctor(a,l.name,l.strings,this,t):6===l.type&&(o=new Wo(a,this,t)),this._$AV.push(o),l=e[++n]}i!==l?.index&&(a=xo.nextNode(),i++)}return xo.currentNode=eo,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 wo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=bo,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=So(this,t,o),ao(t)?t===bo||null==t||""===t?(this._$AH!==bo&&this._$AR(),this._$AH=bo):t!==this._$AH&&t!==uo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>io(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!==bo&&ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(eo.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=vo.createElement(Oo(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new Co(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=mo.get(t.strings);return void 0===o&&mo.set(t.strings,o=new vo(t)),o}T(t){io(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const a of t)r===o.length?o.push(e=new wo(this.k(ro()),this.k(ro()),this,this.options)):e=o[r],e._$AI(a),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 $o{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,a){this.type=1,this._$AH=bo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=a,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=bo}_$AI(t,o=this,e,r){const a=this.strings;let i=!1;if(void 0===a)t=So(this,t,o,0),i=!ao(t)||t!==this._$AH&&t!==uo,i&&(this._$AH=t);else{const r=t;let n,l;for(t=a[0],n=0;n<a.length-1;n++)l=So(this,r[e+n],o,n),l===uo&&(l=this._$AH[n]),i||=!ao(l)||l!==this._$AH[n],l===bo?t=bo:t!==bo&&(t+=(l??"")+a[n+1]),this._$AH[n]=l}i&&!r&&this.O(t)}O(t){t===bo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Io extends $o{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===bo?void 0:t}}class Ro extends $o{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==bo)}}class Uo extends $o{constructor(t,o,e,r,a){super(t,o,e,r,a),this.type=5}_$AI(t,o=this){if((t=So(this,t,o,0)??bo)===uo)return;const e=this._$AH,r=t===bo&&e!==bo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,a=t!==bo&&(e===bo||r);r&&this.element.removeEventListener(this.name,this,e),a&&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 Wo{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){So(this,t)}}const
|
|
488
|
+
const Vt=globalThis,Xt=Vt.trustedTypes,qt=Xt?Xt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Jt="$lit$",Qt=`lit$${(Math.random()+"").slice(9)}$`,to="?"+Qt,oo=`<${to}>`,eo=document,ro=()=>eo.createComment(""),ao=t=>null===t||"object"!=typeof t&&"function"!=typeof t,io=Array.isArray,no="[ \t\n\f\r]",lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,co=/-->/g,po=/>/g,fo=RegExp(`>|${no}(?:([^\\s"'>=/]+)(${no}*=${no}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),so=/'/g,ho=/"/g,yo=/^(?:script|style|textarea|title)$/i,go=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),uo=Symbol.for("lit-noChange"),bo=Symbol.for("lit-nothing"),mo=new WeakMap,xo=eo.createTreeWalker(eo,129);function Oo(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==qt?qt.createHTML(o):o}const No=(t,o)=>{const e=t.length-1,r=[];let a,i=2===o?"<svg>":"",n=lo;for(let o=0;o<e;o++){const e=t[o];let l,c,p=-1,f=0;for(;f<e.length&&(n.lastIndex=f,c=n.exec(e),null!==c);)f=n.lastIndex,n===lo?"!--"===c[1]?n=co:void 0!==c[1]?n=po:void 0!==c[2]?(yo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=fo):void 0!==c[3]&&(n=fo):n===fo?">"===c[0]?(n=a??lo,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?fo:'"'===c[3]?ho:so):n===ho||n===so?n=fo:n===co||n===po?n=lo:(n=fo,a=void 0);const s=n===fo&&t[o+1].startsWith("/>")?" ":"";i+=n===lo?e+oo:p>=0?(r.push(l),e.slice(0,p)+Jt+e.slice(p)+Qt+s):e+Qt+(-2===p?o:s)}return[Oo(t,i+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class vo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let a=0,i=0;const n=t.length-1,l=this.parts,[c,p]=No(t,o);if(this.el=vo.createElement(c,e),xo.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=xo.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Jt)){const o=p[i++],e=r.getAttribute(t).split(Qt),n=/([.?@])?(.*)/.exec(o);l.push({type:1,index:a,name:n[2],strings:e,ctor:"."===n[1]?Io:"?"===n[1]?Ro:"@"===n[1]?Uo:$o}),r.removeAttribute(t)}else t.startsWith(Qt)&&(l.push({type:6,index:a}),r.removeAttribute(t));if(yo.test(r.tagName)){const t=r.textContent.split(Qt),o=t.length-1;if(o>0){r.textContent=Xt?Xt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],ro()),xo.nextNode(),l.push({type:2,index:++a});r.append(t[o],ro())}}}else if(8===r.nodeType)if(r.data===to)l.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(Qt,t+1));)l.push({type:7,index:a}),t+=Qt.length-1}a++}}static createElement(t,o){const e=eo.createElement("template");return e.innerHTML=t,e}}function So(t,o,e=t,r){if(o===uo)return o;let a=void 0!==r?e._$Co?.[r]:e._$Cl;const i=ao(o)?void 0:o._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=a:e._$Cl=a),void 0!==a&&(o=So(t,a._$AS(t,o.values),a,r)),o}class Co{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??eo).importNode(o,!0);xo.currentNode=r;let a=xo.nextNode(),i=0,n=0,l=e[0];for(;void 0!==l;){if(i===l.index){let o;2===l.type?o=new wo(a,a.nextSibling,this,t):1===l.type?o=new l.ctor(a,l.name,l.strings,this,t):6===l.type&&(o=new Wo(a,this,t)),this._$AV.push(o),l=e[++n]}i!==l?.index&&(a=xo.nextNode(),i++)}return xo.currentNode=eo,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 wo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=bo,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=So(this,t,o),ao(t)?t===bo||null==t||""===t?(this._$AH!==bo&&this._$AR(),this._$AH=bo):t!==this._$AH&&t!==uo&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>io(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!==bo&&ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(eo.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=vo.createElement(Oo(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new Co(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=mo.get(t.strings);return void 0===o&&mo.set(t.strings,o=new vo(t)),o}T(t){io(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const a of t)r===o.length?o.push(e=new wo(this.k(ro()),this.k(ro()),this,this.options)):e=o[r],e._$AI(a),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 $o{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,a){this.type=1,this._$AH=bo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=a,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=bo}_$AI(t,o=this,e,r){const a=this.strings;let i=!1;if(void 0===a)t=So(this,t,o,0),i=!ao(t)||t!==this._$AH&&t!==uo,i&&(this._$AH=t);else{const r=t;let n,l;for(t=a[0],n=0;n<a.length-1;n++)l=So(this,r[e+n],o,n),l===uo&&(l=this._$AH[n]),i||=!ao(l)||l!==this._$AH[n],l===bo?t=bo:t!==bo&&(t+=(l??"")+a[n+1]),this._$AH[n]=l}i&&!r&&this.O(t)}O(t){t===bo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Io extends $o{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===bo?void 0:t}}class Ro extends $o{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==bo)}}class Uo extends $o{constructor(t,o,e,r,a){super(t,o,e,r,a),this.type=5}_$AI(t,o=this){if((t=So(this,t,o,0)??bo)===uo)return;const e=this._$AH,r=t===bo&&e!==bo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,a=t!==bo&&(e===bo||r);r&&this.element.removeEventListener(this.name,this,e),a&&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 Wo{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){So(this,t)}}const Eo=Vt.litHtmlPolyfillSupport;Eo?.(vo,wo),(Vt.litHtmlVersions??=[]).push("3.1.0");
|
|
489
489
|
/**
|
|
490
490
|
* @license
|
|
491
491
|
* Copyright 2020 Google LLC
|
|
492
492
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
493
493
|
*/
|
|
494
|
-
const
|
|
494
|
+
const Lo=Symbol.for(""),ko=t=>{if(t?.r===Lo)return t?._$litStatic$},Ko=t=>({_$litStatic$:t,r:Lo}),Zo=new Map,zo=(t=>(o,...e)=>{const r=e.length;let a,i;const n=[],l=[];let c,p=0,f=!1;for(;p<r;){for(c=o[p];p<r&&void 0!==(i=e[p],a=ko(i));)c+=a+o[++p],f=!0;p!==r&&l.push(i),n.push(c),p++}if(p===r&&n.push(o[r]),f){const t=n.join("$$lit$$");void 0===(o=Zo.get(t))&&(n.raw=n,Zo.set(t,o=n)),e=l}return t(o,...e)})(go);var Fo;!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"}(Fo||(Fo={}));var Bo=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Do extends o.FtLitElement{constructor(){super(...arguments),this.variant=Fo.body1}render(){return this.element?zo`
|
|
495
495
|
<${Ko(this.element)}
|
|
496
496
|
class="ft-typography ft-typography--${this.variant}">
|
|
497
497
|
<slot></slot>
|
|
498
498
|
</${Ko(this.element)}>
|
|
499
499
|
`:zo`
|
|
500
500
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
501
|
-
`}}Do.styles=[wt,$t,It,Rt,Ut,Wt,Lt,
|
|
501
|
+
`}}Do.styles=[wt,$t,It,Rt,Ut,Wt,Et,Lt,kt,Kt,Zt,...zt],Bo([e.property()],Do.prototype,"element",void 0),Bo([e.property()],Do.prototype,"variant",void 0),o.customElement("ft-typography")(Do);const Ao=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Ho=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Go=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Po=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),jo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),To=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Mo=r.css`
|
|
502
502
|
.ft-tooltip--container {
|
|
503
503
|
display: block;
|
|
504
504
|
}
|
|
@@ -509,7 +509,7 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
.ft-tooltip {
|
|
512
|
-
position:
|
|
512
|
+
position: fixed;
|
|
513
513
|
box-sizing: border-box;
|
|
514
514
|
overflow: hidden;
|
|
515
515
|
width: max-content;
|
|
@@ -527,7 +527,7 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
527
527
|
position: relative;
|
|
528
528
|
word-break: break-word;
|
|
529
529
|
}
|
|
530
|
-
`,_o=["start","end"],Yo=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+_o[0],o+"-"+_o[1])),[]),Vo=Math.min,Xo=Math.max,qo=Math.round,Jo=t=>({x:t,y:t}),Qo={left:"right",right:"left",bottom:"top",top:"bottom"},te={start:"end",end:"start"};function oe(t,o,e){return Xo(t,Vo(o,e))}function ee(t,o){return"function"==typeof t?t(o):t}function re(t){return t.split("-")[0]}function ae(t){return t.split("-")[1]}function ie(t){return"x"===t?"y":"x"}function ne(t){return"y"===t?"height":"width"}function le(t){return["top","bottom"].includes(re(t))?"y":"x"}function ce(t){return ie(le(t))}function pe(t){return t.replace(/left|right|bottom|top/g,(t=>Qo[t]))}function fe(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function se(t,o,e){let{reference:r,floating:a}=t;const i=le(o),n=ce(o),l=ne(n),c=re(o),p="y"===i,f=r.x+r.width/2-a.width/2,s=r.y+r.height/2-a.height/2,d=r[l]/2-a[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-a.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-a.width,y:s};break;default:h={x:r.x,y:r.y}}switch(ae(o)){case"start":h[n]-=d*(e&&p?-1:1);break;case"end":h[n]+=d*(e&&p?-1:1)}return h}async function de(t,o){var e;void 0===o&&(o={});const{x:r,y:a,platform:i,rects:n,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:s="floating",altBoundary:d=!1,padding:h=0}=ee(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"===s?"reference":"floating":s],u=fe(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:c})),b="floating"===s?{...n.floating,x:r,y:a}:n.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},O=fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.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 he(t,o,e){return(t?[...e.filter((o=>ae(o)===t)),...e.filter((o=>ae(o)!==t))]:e.filter((t=>re(t)===t))).filter((e=>!t||(ae(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>te[t]))}(e)!==e)))}const ye=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,a;const{rects:i,middlewareData:n,placement:l,platform:c,elements:p}=o,{crossAxis:f=!1,alignment:s,allowedPlacements:d=Yo,autoAlignment:h=!0,...y}=ee(t,o),g=void 0!==s||d===Yo?he(s||null,h,d):d,u=await de(o,y),b=(null==(e=n.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=ae(t),a=ce(t),i=ne(a);let n="x"===a?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[i]>o.floating[i]&&(n=pe(n)),[n,pe(n)]}(m,i,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[re(m)],u[x[0]],u[x[1]]],N=[...(null==(r=n.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],v=g[b+1];if(v)return{data:{index:b+1,overflows:N},reset:{placement:v}};const S=N.map((t=>{const o=ae(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])),C=S.filter((t=>t[2].slice(0,ae(t[0])?2:3).every((t=>t<=0)))),w=(null==(a=C[0])?void 0:a[0])||S[0][0];return w!==l?{data:{index:b+1,overflows:N},reset:{placement:w}}:{}}}};function ge(t){return me(t)?(t.nodeName||"").toLowerCase():"#document"}function ue(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function be(t){var o;return null==(o=(me(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function me(t){return t instanceof Node||t instanceof ue(t).Node}function xe(t){return t instanceof Element||t instanceof ue(t).Element}function Oe(t){return t instanceof HTMLElement||t instanceof ue(t).HTMLElement}function Ne(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ue(t).ShadowRoot)}function ve(t){const{overflow:o,overflowX:e,overflowY:r,display:a}=Ie(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(a)}function Se(t){return["table","td","th"].includes(ge(t))}function Ce(t){const o=we(),e=Ie(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 $e(t){return["html","body","#document"].includes(ge(t))}function Ie(t){return ue(t).getComputedStyle(t)}function Re(t){return xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ue(t){if("html"===ge(t))return t;const o=t.assignedSlot||t.parentNode||Ne(t)&&t.host||be(t);return Ne(o)?o.host:o}function We(t){const o=Ue(t);return $e(o)?t.ownerDocument?t.ownerDocument.body:t.body:Oe(o)&&ve(o)?o:We(o)}function Le(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const a=We(t),i=a===(null==(r=t.ownerDocument)?void 0:r.body),n=ue(a);return i?o.concat(n,n.visualViewport||[],ve(a)?a:[],n.frameElement&&e?Le(n.frameElement):[]):o.concat(a,Le(a,[],e))}function Ee(t){const o=Ie(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const a=Oe(t),i=a?t.offsetWidth:e,n=a?t.offsetHeight:r,l=qo(e)!==i||qo(r)!==n;return l&&(e=i,r=n),{width:e,height:r,$:l}}function ke(t){return xe(t)?t:t.contextElement}function Ke(t){const o=ke(t);if(!Oe(o))return Jo(1);const e=o.getBoundingClientRect(),{width:r,height:a,$:i}=Ee(o);let n=(i?qo(e.width):e.width)/r,l=(i?qo(e.height):e.height)/a;return n&&Number.isFinite(n)||(n=1),l&&Number.isFinite(l)||(l=1),{x:n,y:l}}const Ze=Jo(0);function ze(t){const o=ue(t);return we()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ze}function Fe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const a=t.getBoundingClientRect(),i=ke(t);let n=Jo(1);o&&(r?xe(r)&&(n=Ke(r)):n=Ke(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ue(t))&&o}(i,e,r)?ze(i):Jo(0);let c=(a.left+l.x)/n.x,p=(a.top+l.y)/n.y,f=a.width/n.x,s=a.height/n.y;if(i){const t=ue(i),o=r&&xe(r)?ue(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ke(e),o=e.getBoundingClientRect(),r=Ie(e),a=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,i=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,f*=t.x,s*=t.y,c+=a,p+=i,e=ue(e).frameElement}}return fe({width:f,height:s,x:c,y:p})}function Be(t){return Fe(be(t)).left+Re(t).scrollLeft}function De(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ue(t),r=be(t),a=e.visualViewport;let i=r.clientWidth,n=r.clientHeight,l=0,c=0;if(a){i=a.width,n=a.height;const t=we();(!t||t&&"fixed"===o)&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:n,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=be(t),e=Re(t),r=t.ownerDocument.body,a=Xo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),i=Xo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let n=-e.scrollLeft+Be(t);const l=-e.scrollTop;return"rtl"===Ie(r).direction&&(n+=Xo(o.clientWidth,r.clientWidth)-a),{width:a,height:i,x:n,y:l}}(be(t));else if(xe(o))r=function(t,o){const e=Fe(t,!0,"fixed"===o),r=e.top+t.clientTop,a=e.left+t.clientLeft,i=Oe(t)?Ke(t):Jo(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:a*i.x,y:r*i.y}}(o,e);else{const e=ze(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return fe(r)}function Ae(t,o){const e=Ue(t);return!(e===o||!xe(e)||$e(e))&&("fixed"===Ie(e).position||Ae(e,o))}function He(t,o,e){const r=Oe(o),a=be(o),i="fixed"===e,n=Fe(t,!0,i,o);let l={scrollLeft:0,scrollTop:0};const c=Jo(0);if(r||!r&&!i)if(("body"!==ge(o)||ve(a))&&(l=Re(o)),r){const t=Fe(o,!0,i,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else a&&(c.x=Be(a));return{x:n.left+l.scrollLeft-c.x,y:n.top+l.scrollTop-c.y,width:n.width,height:n.height}}function Ge(t,o){return Oe(t)&&"fixed"!==Ie(t).position?o?o(t):t.offsetParent:null}function Pe(t,o){const e=ue(t);if(!Oe(t))return e;let r=Ge(t,o);for(;r&&Se(r)&&"static"===Ie(r).position;)r=Ge(r,o);return r&&("html"===ge(r)||"body"===ge(r)&&"static"===Ie(r).position&&!Ce(r))?e:r||function(t){let o=Ue(t);for(;Oe(o)&&!$e(o);){if(Ce(o))return o;o=Ue(o)}return null}(t)||e}const je={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const a=Oe(e),i=be(e);if(e===i)return o;let n={scrollLeft:0,scrollTop:0},l=Jo(1);const c=Jo(0);if((a||!a&&"fixed"!==r)&&(("body"!==ge(e)||ve(i))&&(n=Re(e)),Oe(e))){const t=Fe(e);l=Ke(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-n.scrollLeft*l.x+c.x,y:o.y*l.y-n.scrollTop*l.y+c.y}},getDocumentElement:be,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:a}=t;const i=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Le(t,[],!1).filter((t=>xe(t)&&"body"!==ge(t))),a=null;const i="fixed"===Ie(t).position;let n=i?Ue(t):t;for(;xe(n)&&!$e(n);){const o=Ie(n),e=Ce(n);e||"fixed"!==o.position||(a=null),(i?!e&&!a:!e&&"static"===o.position&&a&&["absolute","fixed"].includes(a.position)||ve(n)&&!e&&Ae(t,n))?r=r.filter((t=>t!==n)):a=o,n=Ue(n)}return o.set(t,r),r}(o,this._c):[].concat(e),r],n=i[0],l=i.reduce(((t,e)=>{const r=De(o,e,a);return t.top=Xo(r.top,t.top),t.right=Vo(r.right,t.right),t.bottom=Vo(r.bottom,t.bottom),t.left=Xo(r.left,t.left),t}),De(o,n,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Pe,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const a=this.getOffsetParent||Pe,i=this.getDimensions;return{reference:He(o,await a(e),r),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ee(t)},getScale:Ke,isElement:xe,isRTL:function(t){return"rtl"===Ie(t).direction}},Te=(t,o,e)=>{const r=new Map,a={platform:je,...e},i={...a.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:n}=e,l=i.filter(Boolean),c=await(null==n.isRTL?void 0:n.isRTL(o));let p=await n.getElementRects({reference:t,floating:o,strategy:a}),{x:f,y:s}=se(p,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:i,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:f,y:s,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:p,platform:n,elements:{reference:t,floating:o}});f=null!=u?u:f,s=null!=b?b:s,h={...h,[i]:{...h[i],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await n.getElementRects({reference:t,floating:o,strategy:a}):x.rects),({x:f,y:s}=se(p,d,c))),e=-1)}return{x:f,y:s,placement:d,strategy:a,middlewareData:h}})(t,o,{...a,platform:i})};var Me,_e,Ye,Ve=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Xe 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 r.html`
|
|
530
|
+
`,Yo=["start","end"],_o=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Yo[0],o+"-"+Yo[1])),[]),Vo=Math.min,Xo=Math.max,qo=Math.round,Jo=t=>({x:t,y:t}),Qo={left:"right",right:"left",bottom:"top",top:"bottom"},te={start:"end",end:"start"};function oe(t,o,e){return Xo(t,Vo(o,e))}function ee(t,o){return"function"==typeof t?t(o):t}function re(t){return t.split("-")[0]}function ae(t){return t.split("-")[1]}function ie(t){return"x"===t?"y":"x"}function ne(t){return"y"===t?"height":"width"}function le(t){return["top","bottom"].includes(re(t))?"y":"x"}function ce(t){return ie(le(t))}function pe(t){return t.replace(/left|right|bottom|top/g,(t=>Qo[t]))}function fe(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function se(t,o,e){let{reference:r,floating:a}=t;const i=le(o),n=ce(o),l=ne(n),c=re(o),p="y"===i,f=r.x+r.width/2-a.width/2,s=r.y+r.height/2-a.height/2,d=r[l]/2-a[l]/2;let h;switch(c){case"top":h={x:f,y:r.y-a.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-a.width,y:s};break;default:h={x:r.x,y:r.y}}switch(ae(o)){case"start":h[n]-=d*(e&&p?-1:1);break;case"end":h[n]+=d*(e&&p?-1:1)}return h}async function de(t,o){var e;void 0===o&&(o={});const{x:r,y:a,platform:i,rects:n,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:s="floating",altBoundary:d=!1,padding:h=0}=ee(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"===s?"reference":"floating":s],u=fe(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:c})),b="floating"===s?{...n.floating,x:r,y:a}:n.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},O=fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.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 he(t,o,e){return(t?[...e.filter((o=>ae(o)===t)),...e.filter((o=>ae(o)!==t))]:e.filter((t=>re(t)===t))).filter((e=>!t||(ae(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>te[t]))}(e)!==e)))}const ye=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,a;const{rects:i,middlewareData:n,placement:l,platform:c,elements:p}=o,{crossAxis:f=!1,alignment:s,allowedPlacements:d=_o,autoAlignment:h=!0,...y}=ee(t,o),g=void 0!==s||d===_o?he(s||null,h,d):d,u=await de(o,y),b=(null==(e=n.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=ae(t),a=ce(t),i=ne(a);let n="x"===a?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[i]>o.floating[i]&&(n=pe(n)),[n,pe(n)]}(m,i,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[re(m)],u[x[0]],u[x[1]]],N=[...(null==(r=n.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],v=g[b+1];if(v)return{data:{index:b+1,overflows:N},reset:{placement:v}};const S=N.map((t=>{const o=ae(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])),C=S.filter((t=>t[2].slice(0,ae(t[0])?2:3).every((t=>t<=0)))),w=(null==(a=C[0])?void 0:a[0])||S[0][0];return w!==l?{data:{index:b+1,overflows:N},reset:{placement:w}}:{}}}};function ge(t){return me(t)?(t.nodeName||"").toLowerCase():"#document"}function ue(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function be(t){var o;return null==(o=(me(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function me(t){return t instanceof Node||t instanceof ue(t).Node}function xe(t){return t instanceof Element||t instanceof ue(t).Element}function Oe(t){return t instanceof HTMLElement||t instanceof ue(t).HTMLElement}function Ne(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ue(t).ShadowRoot)}function ve(t){const{overflow:o,overflowX:e,overflowY:r,display:a}=Ie(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(a)}function Se(t){return["table","td","th"].includes(ge(t))}function Ce(t){const o=we(),e=Ie(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 $e(t){return["html","body","#document"].includes(ge(t))}function Ie(t){return ue(t).getComputedStyle(t)}function Re(t){return xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ue(t){if("html"===ge(t))return t;const o=t.assignedSlot||t.parentNode||Ne(t)&&t.host||be(t);return Ne(o)?o.host:o}function We(t){const o=Ue(t);return $e(o)?t.ownerDocument?t.ownerDocument.body:t.body:Oe(o)&&ve(o)?o:We(o)}function Ee(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const a=We(t),i=a===(null==(r=t.ownerDocument)?void 0:r.body),n=ue(a);return i?o.concat(n,n.visualViewport||[],ve(a)?a:[],n.frameElement&&e?Ee(n.frameElement):[]):o.concat(a,Ee(a,[],e))}function Le(t){const o=Ie(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const a=Oe(t),i=a?t.offsetWidth:e,n=a?t.offsetHeight:r,l=qo(e)!==i||qo(r)!==n;return l&&(e=i,r=n),{width:e,height:r,$:l}}function ke(t){return xe(t)?t:t.contextElement}function Ke(t){const o=ke(t);if(!Oe(o))return Jo(1);const e=o.getBoundingClientRect(),{width:r,height:a,$:i}=Le(o);let n=(i?qo(e.width):e.width)/r,l=(i?qo(e.height):e.height)/a;return n&&Number.isFinite(n)||(n=1),l&&Number.isFinite(l)||(l=1),{x:n,y:l}}const Ze=Jo(0);function ze(t){const o=ue(t);return we()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ze}function Fe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const a=t.getBoundingClientRect(),i=ke(t);let n=Jo(1);o&&(r?xe(r)&&(n=Ke(r)):n=Ke(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ue(t))&&o}(i,e,r)?ze(i):Jo(0);let c=(a.left+l.x)/n.x,p=(a.top+l.y)/n.y,f=a.width/n.x,s=a.height/n.y;if(i){const t=ue(i),o=r&&xe(r)?ue(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ke(e),o=e.getBoundingClientRect(),r=Ie(e),a=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,i=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,f*=t.x,s*=t.y,c+=a,p+=i,e=ue(e).frameElement}}return fe({width:f,height:s,x:c,y:p})}function Be(t){return Fe(be(t)).left+Re(t).scrollLeft}function De(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ue(t),r=be(t),a=e.visualViewport;let i=r.clientWidth,n=r.clientHeight,l=0,c=0;if(a){i=a.width,n=a.height;const t=we();(!t||t&&"fixed"===o)&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:n,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=be(t),e=Re(t),r=t.ownerDocument.body,a=Xo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),i=Xo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let n=-e.scrollLeft+Be(t);const l=-e.scrollTop;return"rtl"===Ie(r).direction&&(n+=Xo(o.clientWidth,r.clientWidth)-a),{width:a,height:i,x:n,y:l}}(be(t));else if(xe(o))r=function(t,o){const e=Fe(t,!0,"fixed"===o),r=e.top+t.clientTop,a=e.left+t.clientLeft,i=Oe(t)?Ke(t):Jo(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:a*i.x,y:r*i.y}}(o,e);else{const e=ze(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return fe(r)}function Ae(t,o){const e=Ue(t);return!(e===o||!xe(e)||$e(e))&&("fixed"===Ie(e).position||Ae(e,o))}function He(t,o,e){const r=Oe(o),a=be(o),i="fixed"===e,n=Fe(t,!0,i,o);let l={scrollLeft:0,scrollTop:0};const c=Jo(0);if(r||!r&&!i)if(("body"!==ge(o)||ve(a))&&(l=Re(o)),r){const t=Fe(o,!0,i,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else a&&(c.x=Be(a));return{x:n.left+l.scrollLeft-c.x,y:n.top+l.scrollTop-c.y,width:n.width,height:n.height}}function Ge(t,o){return Oe(t)&&"fixed"!==Ie(t).position?o?o(t):t.offsetParent:null}function Pe(t,o){const e=ue(t);if(!Oe(t))return e;let r=Ge(t,o);for(;r&&Se(r)&&"static"===Ie(r).position;)r=Ge(r,o);return r&&("html"===ge(r)||"body"===ge(r)&&"static"===Ie(r).position&&!Ce(r))?e:r||function(t){let o=Ue(t);for(;Oe(o)&&!$e(o);){if(Ce(o))return o;o=Ue(o)}return null}(t)||e}const je={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const a=Oe(e),i=be(e);if(e===i)return o;let n={scrollLeft:0,scrollTop:0},l=Jo(1);const c=Jo(0);if((a||!a&&"fixed"!==r)&&(("body"!==ge(e)||ve(i))&&(n=Re(e)),Oe(e))){const t=Fe(e);l=Ke(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-n.scrollLeft*l.x+c.x,y:o.y*l.y-n.scrollTop*l.y+c.y}},getDocumentElement:be,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:a}=t;const i=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Ee(t,[],!1).filter((t=>xe(t)&&"body"!==ge(t))),a=null;const i="fixed"===Ie(t).position;let n=i?Ue(t):t;for(;xe(n)&&!$e(n);){const o=Ie(n),e=Ce(n);e||"fixed"!==o.position||(a=null),(i?!e&&!a:!e&&"static"===o.position&&a&&["absolute","fixed"].includes(a.position)||ve(n)&&!e&&Ae(t,n))?r=r.filter((t=>t!==n)):a=o,n=Ue(n)}return o.set(t,r),r}(o,this._c):[].concat(e),r],n=i[0],l=i.reduce(((t,e)=>{const r=De(o,e,a);return t.top=Xo(r.top,t.top),t.right=Vo(r.right,t.right),t.bottom=Vo(r.bottom,t.bottom),t.left=Xo(r.left,t.left),t}),De(o,n,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Pe,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const a=this.getOffsetParent||Pe,i=this.getDimensions;return{reference:He(o,await a(e),r),floating:{x:0,y:0,...await i(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Le(t)},getScale:Ke,isElement:xe,isRTL:function(t){return"rtl"===Ie(t).direction}},Te=(t,o,e)=>{const r=new Map,a={platform:je,...e},i={...a.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:n}=e,l=i.filter(Boolean),c=await(null==n.isRTL?void 0:n.isRTL(o));let p=await n.getElementRects({reference:t,floating:o,strategy:a}),{x:f,y:s}=se(p,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:i,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:f,y:s,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:p,platform:n,elements:{reference:t,floating:o}});f=null!=u?u:f,s=null!=b?b:s,h={...h,[i]:{...h[i],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await n.getElementRects({reference:t,floating:o,strategy:a}):x.rects),({x:f,y:s}=se(p,d,c))),e=-1)}return{x:f,y:s,placement:d,strategy:a,middlewareData:h}})(t,o,{...a,platform:i})};function Me(t){return function(t){for(let o=t;o;o=Ye(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=Ye(t);o;o=Ye(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 Ye(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var _e,Ve,Xe,qe=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Je 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 r.html`
|
|
531
531
|
<div part="container"
|
|
532
532
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
533
533
|
@mouseenter=${this.onHover}
|
|
@@ -535,7 +535,7 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
535
535
|
@focusin=${this.onHover}
|
|
536
536
|
@focusout=${this.onOut}
|
|
537
537
|
@touchstart=${this.onTouch}>
|
|
538
|
-
<slot></slot>
|
|
538
|
+
<slot part="slot"></slot>
|
|
539
539
|
<div part="tooltip" role="tooltip" inert
|
|
540
540
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
541
541
|
?hidden=${!this.visible}>
|
|
@@ -545,19 +545,19 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
545
545
|
</div>
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
|
-
`}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Te(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:a}=o,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ee(t,o),p={x:e,y:r},f=await de(o,c),s=le(re(a)),d=ie(s);let h=p[d],y=p[s];if(i){const t="y"===d?"bottom":"right";h=oe(h+f["y"===d?"top":"left"],h,h-f[t])}if(n){const t="y"===s?"bottom":"right";y=oe(y+f["y"===s?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[s]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),ye({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))}}Xe.elementDefinitions={"ft-typography":Do},Xe.styles=Mo,Ve([e.property()],Xe.prototype,"text",void 0),Ve([e.property({type:Boolean})],Xe.prototype,"manual",void 0),Ve([e.property({type:Boolean})],Xe.prototype,"inline",void 0),Ve([e.property({type:Number})],Xe.prototype,"delay",void 0),Ve([e.property()],Xe.prototype,"position",void 0),Ve([e.queryAssignedNodes()],Xe.prototype,"slotNodes",void 0),Ve([e.query(".ft-tooltip--container")],Xe.prototype,"container",void 0),Ve([e.query(".ft-tooltip")],Xe.prototype,"tooltip",void 0),Ve([e.query(".ft-tooltip--content")],Xe.prototype,"tooltipContent",void 0),Ve([e.state()],Xe.prototype,"visible",void 0),Ve([e.eventOptions({passive:!0})],Xe.prototype,"onTouch",null),Ve([e.eventOptions({passive:!0})],Xe.prototype,"onHover",null),Ve([e.eventOptions({passive:!0})],Xe.prototype,"onOut",null),o.customElement("ft-tooltip")(Xe),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=""}(Me||(Me={})),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=""}(_e||(_e={})),new Map([...["abw"].map((t=>[t,_e.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,_e.AUDIO])),...["avi"].map((t=>[t,_e.AVI])),...["chm","xhs"].map((t=>[t,_e.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,_e.CODE])),...["csv"].map((t=>[t,_e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_e.DITA])),...["epub"].map((t=>[t,_e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_e.EXCEL])),...["flac"].map((t=>[t,_e.FLAC])),...["gif"].map((t=>[t,_e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_e.GZIP])),...["html","htm","xhtml"].map((t=>[t,_e.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,_e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_e.JPEG])),...["json"].map((t=>[t,_e.JSON])),...["m4a","m4p"].map((t=>[t,_e.M4A])),...["mov","qt"].map((t=>[t,_e.MOV])),...["mp3"].map((t=>[t,_e.MP3])),...["mp4","m4v"].map((t=>[t,_e.MP4])),...["ogg","oga"].map((t=>[t,_e.OGG])),...["pdf","ps"].map((t=>[t,_e.PDF])),...["png"].map((t=>[t,_e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_e.POWERPOINT])),...["rar"].map((t=>[t,_e.RAR])),...["stp"].map((t=>[t,_e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_e.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,_e.VIDEO])),...["wav"].map((t=>[t,_e.WAV])),...["wma"].map((t=>[t,_e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_e.WORD])),...["xml","xsl","rdf"].map((t=>[t,_e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_e.YAML])),...["zip"].map((t=>[t,_e.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ye||(Ye={}));var qe=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Je extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=r.nothing}render(){const t=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,o=t!==Ye.material||!!this.value;return r.html`
|
|
548
|
+
`}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Te(this.slottedElement,this.tooltip,{platform:{...je,getOffsetParent:t=>je.getOffsetParent(t,Me)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:a}=o,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ee(t,o),p={x:e,y:r},f=await de(o,c),s=le(re(a)),d=ie(s);let h=p[d],y=p[s];if(i){const t="y"===d?"bottom":"right";h=oe(h+f["y"===d?"top":"left"],h,h-f[t])}if(n){const t="y"===s?"bottom":"right";y=oe(y+f["y"===s?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[s]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),ye({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))}}Je.elementDefinitions={"ft-typography":Do},Je.styles=Mo,qe([e.property()],Je.prototype,"text",void 0),qe([e.property({type:Boolean})],Je.prototype,"manual",void 0),qe([e.property({type:Boolean})],Je.prototype,"inline",void 0),qe([e.property({type:Number})],Je.prototype,"delay",void 0),qe([e.property()],Je.prototype,"position",void 0),qe([e.queryAssignedNodes()],Je.prototype,"slotNodes",void 0),qe([e.query(".ft-tooltip--container")],Je.prototype,"container",void 0),qe([e.query(".ft-tooltip")],Je.prototype,"tooltip",void 0),qe([e.query(".ft-tooltip--content")],Je.prototype,"tooltipContent",void 0),qe([e.state()],Je.prototype,"visible",void 0),qe([e.eventOptions({passive:!0})],Je.prototype,"onTouch",null),qe([e.eventOptions({passive:!0})],Je.prototype,"onHover",null),qe([e.eventOptions({passive:!0})],Je.prototype,"onOut",null),o.customElement("ft-tooltip")(Je),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=""}(_e||(_e={})),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=""}(Ve||(Ve={})),new Map([...["abw"].map((t=>[t,Ve.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,Ve.AUDIO])),...["avi"].map((t=>[t,Ve.AVI])),...["chm","xhs"].map((t=>[t,Ve.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,Ve.CODE])),...["csv"].map((t=>[t,Ve.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ve.DITA])),...["epub"].map((t=>[t,Ve.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ve.EXCEL])),...["flac"].map((t=>[t,Ve.FLAC])),...["gif"].map((t=>[t,Ve.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ve.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ve.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,Ve.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ve.JPEG])),...["json"].map((t=>[t,Ve.JSON])),...["m4a","m4p"].map((t=>[t,Ve.M4A])),...["mov","qt"].map((t=>[t,Ve.MOV])),...["mp3"].map((t=>[t,Ve.MP3])),...["mp4","m4v"].map((t=>[t,Ve.MP4])),...["ogg","oga"].map((t=>[t,Ve.OGG])),...["pdf","ps"].map((t=>[t,Ve.PDF])),...["png"].map((t=>[t,Ve.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ve.POWERPOINT])),...["rar"].map((t=>[t,Ve.RAR])),...["stp"].map((t=>[t,Ve.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ve.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,Ve.VIDEO])),...["wav"].map((t=>[t,Ve.WAV])),...["wma"].map((t=>[t,Ve.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ve.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ve.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ve.YAML])),...["zip"].map((t=>[t,Ve.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xe||(Xe={}));var Qe=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class tr extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=r.nothing}render(){const t=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,o=t!==Xe.material||!!this.value;return r.html`
|
|
549
549
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
550
550
|
${i.unsafeHTML(this.resolvedIcon)}
|
|
551
551
|
<slot ?hidden=${o}></slot>
|
|
552
552
|
</i>
|
|
553
|
-
`}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
|
|
553
|
+
`}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 Xe.file_format:this.resolvedIcon=null!==(t=Ve[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Xe.material:this.resolvedIcon=this.value||r.nothing;break;default:this.resolvedIcon=null!==(o=_e[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}tr.elementDefinitions={},tr.styles=At,Qe([e.property()],tr.prototype,"variant",void 0),Qe([e.property()],tr.prototype,"value",void 0),Qe([e.state()],tr.prototype,"resolvedIcon",void 0),Qe([e.query("slot")],tr.prototype,"slottedContent",void 0),o.customElement("ft-icon")(tr);class or extends o.FtLitElement{render(){return r.html`
|
|
554
554
|
<div class="ft-loader">
|
|
555
555
|
<div></div>
|
|
556
556
|
<div></div>
|
|
557
557
|
<div></div>
|
|
558
558
|
<div></div>
|
|
559
559
|
</div>
|
|
560
|
-
`}}
|
|
560
|
+
`}}or.styles=Bt,o.customElement("ft-loader")(or);var er=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class rr 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(r.html`
|
|
561
561
|
<button part="button"
|
|
562
562
|
class="${a.classMap(this.buttonClasses)}"
|
|
563
563
|
aria-label="${this.getLabel()}"
|
|
@@ -580,7 +580,7 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
580
580
|
</ft-tooltip>
|
|
581
581
|
`:t}resolveIcon(){return this.loading?r.html`
|
|
582
582
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?r.html`
|
|
583
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:r.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}}
|
|
583
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:r.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}}rr.elementDefinitions={"ft-ripple":_t,"ft-tooltip":Je,"ft-typography":Do,"ft-icon":tr,"ft-loader":or},er([e.property({type:String,reflect:!0})],rr.prototype,"role",void 0),er([e.property()],rr.prototype,"type",void 0),er([e.property({type:Boolean})],rr.prototype,"disabled",void 0),er([e.property()],rr.prototype,"label",void 0),er([e.property()],rr.prototype,"icon",void 0),er([e.property()],rr.prototype,"iconVariant",void 0),er([e.property({type:Boolean})],rr.prototype,"trailingIcon",void 0),er([e.property({type:Boolean})],rr.prototype,"loading",void 0),er([e.property()],rr.prototype,"tooltipPosition",void 0),er([e.property({type:Boolean})],rr.prototype,"hideTooltip",void 0),er([e.property({type:Boolean})],rr.prototype,"forceTooltip",void 0),er([e.query(".ft-button")],rr.prototype,"button",void 0),er([e.query(".ft-button--label slot")],rr.prototype,"slottedContent",void 0);var ar=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class ir extends rr{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"}}ir.styles=[o.safariEllipsisFix,Mt],ar([e.property({type:Boolean})],ir.prototype,"primary",void 0),ar([e.property({type:Boolean})],ir.prototype,"outlined",void 0),ar([e.property({type:Boolean})],ir.prototype,"dense",void 0),ar([e.property({type:Boolean})],ir.prototype,"round",void 0);const nr=[r.css`
|
|
584
584
|
:host {
|
|
585
585
|
display: inline-block;
|
|
586
586
|
max-width: 100%;
|
|
@@ -798,4 +798,4 @@ const Eo=Symbol.for(""),ko=t=>{if(t?.r===Eo)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
798
798
|
width: ${O.smallIconOnlyWidth};
|
|
799
799
|
padding: unset;
|
|
800
800
|
}
|
|
801
|
-
`,o.noTextSelect];var
|
|
801
|
+
`,o.noTextSelect];var lr=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class cr extends rr{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?Fo.caption1medium:Fo.body2medium}}cr.styles=[o.safariEllipsisFix,nr],lr([e.property({type:Boolean})],cr.prototype,"primary",void 0),lr([e.property({type:Boolean})],cr.prototype,"secondary",void 0),lr([e.property({type:Boolean})],cr.prototype,"tertiary",void 0),lr([e.property({type:Boolean})],cr.prototype,"neutral",void 0),lr([e.property({type:Boolean})],cr.prototype,"small",void 0),o.customElement("ft-button")(ir),o.customElement("ftds-button")(cr),t.FtButton=ir,t.FtButtonCssVariables=Gt,t.FtButtonDenseCssVariables=Tt,t.FtButtonPrimaryCssVariables=jt,t.FtdsButton=cr,t.FtdsButtonCssVariables=O,t.classicStyles=Mt,t.designSystemStyles=nr}({},ftGlobals.wcUtils,ftGlobals.litDecorators,ftGlobals.lit,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
package/build/ft-button.min.js
CHANGED
|
@@ -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,r=window.customElements,i=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,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,c),c.standInClass=p);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(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,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 r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.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),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=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},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},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),i.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 r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.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 r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(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=i.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,r=window.customElements,i=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,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,c),c.standInClass=p);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(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,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 r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.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),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=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},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},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),i.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 r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.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 r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(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=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(nn){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -633,7 +633,7 @@ const Mr=Symbol.for(""),Dr=t=>{if(t?.r===Mr)return t?._$litStatic$},Pr=t=>({_$li
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.ft-tooltip {
|
|
636
|
-
position:
|
|
636
|
+
position: fixed;
|
|
637
637
|
box-sizing: border-box;
|
|
638
638
|
overflow: hidden;
|
|
639
639
|
width: max-content;
|
|
@@ -651,7 +651,7 @@ const Mr=Symbol.for(""),Dr=t=>{if(t?.r===Mr)return t?._$litStatic$},Pr=t=>({_$li
|
|
|
651
651
|
position: relative;
|
|
652
652
|
word-break: break-word;
|
|
653
653
|
}
|
|
654
|
-
`,oi=["start","end"],ei=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+oi[0],o+"-"+oi[1])),[]),ri=Math.min,ii=Math.max,ni=Math.round,ai=t=>({x:t,y:t}),si={left:"right",right:"left",bottom:"top",top:"bottom"},li={start:"end",end:"start"};function ci(t,o,e){return ii(t,ri(o,e))}function pi(t,o){return"function"==typeof t?t(o):t}function fi(t){return t.split("-")[0]}function hi(t){return t.split("-")[1]}function di(t){return"x"===t?"y":"x"}function ui(t){return"y"===t?"height":"width"}function yi(t){return["top","bottom"].includes(fi(t))?"y":"x"}function gi(t){return di(yi(t))}function bi(t){return t.replace(/left|right|bottom|top/g,(t=>si[t]))}function mi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xi(t,o,e){let{reference:r,floating:i}=t;const n=yi(o),a=gi(o),s=ui(a),l=fi(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:p,y:r.y-i.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-i.width,y:f};break;default:d={x:r.x,y:r.y}}switch(hi(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function Oi(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=pi(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"===f?"reference":"floating":f],g=mi(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:p,strategy:l})),b="floating"===f?{...a.floating,x:r,y:i}: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=mi(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 vi(t,o,e){return(t?[...e.filter((o=>hi(o)===t)),...e.filter((o=>hi(o)!==t))]:e.filter((t=>fi(t)===t))).filter((e=>!t||(hi(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>li[t]))}(e)!==e)))}const Ni=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=ei,autoAlignment:d=!0,...u}=pi(t,o),y=void 0!==f||h===ei?vi(f||null,d,h):h,g=await Oi(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 r=hi(t),i=gi(t),n=ui(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=bi(a)),[a,bi(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[fi(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.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=hi(t.placement);return[t.placement,o&&p?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,hi(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Si(t){return $i(t)?(t.nodeName||"").toLowerCase():"#document"}function wi(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ci(t){var o;return null==(o=($i(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function $i(t){return t instanceof Node||t instanceof wi(t).Node}function Ri(t){return t instanceof Element||t instanceof wi(t).Element}function Ei(t){return t instanceof HTMLElement||t instanceof wi(t).HTMLElement}function Ui(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof wi(t).ShadowRoot)}function ki(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Fi(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ii(t){return["table","td","th"].includes(Si(t))}function Li(t){const o=Wi(),e=Fi(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 Wi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ki(t){return["html","body","#document"].includes(Si(t))}function Fi(t){return wi(t).getComputedStyle(t)}function zi(t){return Ri(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zi(t){if("html"===Si(t))return t;const o=t.assignedSlot||t.parentNode||Ui(t)&&t.host||Ci(t);return Ui(o)?o.host:o}function Bi(t){const o=Zi(t);return Ki(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ei(o)&&ki(o)?o:Bi(o)}function Ai(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Bi(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=wi(i);return n?o.concat(a,a.visualViewport||[],ki(i)?i:[],a.frameElement&&e?Ai(a.frameElement):[]):o.concat(i,Ai(i,[],e))}function Mi(t){const o=Fi(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ei(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,s=ni(e)!==n||ni(r)!==a;return s&&(e=n,r=a),{width:e,height:r,$:s}}function Di(t){return Ri(t)?t:t.contextElement}function Pi(t){const o=Di(t);if(!Ei(o))return ai(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Mi(o);let a=(n?ni(e.width):e.width)/r,s=(n?ni(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Hi=ai(0);function ji(t){const o=wi(t);return Wi()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Hi}function Ti(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Di(t);let a=ai(1);o&&(r?Ri(r)&&(a=Pi(r)):a=Pi(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==wi(t))&&o}(n,e,r)?ji(n):ai(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=wi(n),o=r&&Ri(r)?wi(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Pi(e),o=e.getBoundingClientRect(),r=Fi(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=i,c+=n,e=wi(e).frameElement}}return mi({width:p,height:f,x:l,y:c})}function _i(t){return Ti(Ci(t)).left+zi(t).scrollLeft}function Gi(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=wi(t),r=Ci(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const t=Wi();(!t||t&&"fixed"===o)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)r=function(t){const o=Ci(t),e=zi(t),r=t.ownerDocument.body,i=ii(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ii(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+_i(t);const s=-e.scrollTop;return"rtl"===Fi(r).direction&&(a+=ii(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ci(t));else if(Ri(o))r=function(t,o){const e=Ti(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ei(t)?Pi(t):ai(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=ji(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return mi(r)}function Yi(t,o){const e=Zi(t);return!(e===o||!Ri(e)||Ki(e))&&("fixed"===Fi(e).position||Yi(e,o))}function Vi(t,o,e){const r=Ei(o),i=Ci(o),n="fixed"===e,a=Ti(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=ai(0);if(r||!r&&!n)if(("body"!==Si(o)||ki(i))&&(s=zi(o)),r){const t=Ti(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else i&&(l.x=_i(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ji(t,o){return Ei(t)&&"fixed"!==Fi(t).position?o?o(t):t.offsetParent:null}function qi(t,o){const e=wi(t);if(!Ei(t))return e;let r=Ji(t,o);for(;r&&Ii(r)&&"static"===Fi(r).position;)r=Ji(r,o);return r&&("html"===Si(r)||"body"===Si(r)&&"static"===Fi(r).position&&!Li(r))?e:r||function(t){let o=Zi(t);for(;Ei(o)&&!Ki(o);){if(Li(o))return o;o=Zi(o)}return null}(t)||e}const Xi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ei(e),n=Ci(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=ai(1);const l=ai(0);if((i||!i&&"fixed"!==r)&&(("body"!==Si(e)||ki(n))&&(a=zi(e)),Ei(e))){const t=Ti(e);s=Pi(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:Ci,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=Ai(t,[],!1).filter((t=>Ri(t)&&"body"!==Si(t))),i=null;const n="fixed"===Fi(t).position;let a=n?Zi(t):t;for(;Ri(a)&&!Ki(a);){const o=Fi(a),e=Li(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ki(a)&&!e&&Yi(t,a))?r=r.filter((t=>t!==a)):i=o,a=Zi(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],s=n.reduce(((t,e)=>{const r=Gi(o,e,i);return t.top=ii(r.top,t.top),t.right=ri(r.right,t.right),t.bottom=ri(r.bottom,t.bottom),t.left=ii(r.left,t.left),t}),Gi(o,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:qi,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||qi,n=this.getDimensions;return{reference:Vi(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 Mi(t)},getScale:Pi,isElement:Ri,isRTL:function(t){return"rtl"===Fi(t).direction}},Qi=(t,o,e)=>{const r=new Map,i={platform:Xi,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="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:i}),{x:p,y:f}=xi(c,r,l),h=r,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:p,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,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:i}):x.rects),({x:p,y:f}=xi(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:i,middlewareData:d}})(t,o,{...i,platform:n})};var tn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 on 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 to`
|
|
654
|
+
`,oi=["start","end"],ei=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+oi[0],o+"-"+oi[1])),[]),ri=Math.min,ii=Math.max,ni=Math.round,ai=t=>({x:t,y:t}),si={left:"right",right:"left",bottom:"top",top:"bottom"},li={start:"end",end:"start"};function ci(t,o,e){return ii(t,ri(o,e))}function pi(t,o){return"function"==typeof t?t(o):t}function fi(t){return t.split("-")[0]}function hi(t){return t.split("-")[1]}function di(t){return"x"===t?"y":"x"}function ui(t){return"y"===t?"height":"width"}function yi(t){return["top","bottom"].includes(fi(t))?"y":"x"}function gi(t){return di(yi(t))}function bi(t){return t.replace(/left|right|bottom|top/g,(t=>si[t]))}function mi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xi(t,o,e){let{reference:r,floating:i}=t;const n=yi(o),a=gi(o),s=ui(a),l=fi(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:p,y:r.y-i.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-i.width,y:f};break;default:d={x:r.x,y:r.y}}switch(hi(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function Oi(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=pi(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"===f?"reference":"floating":f],g=mi(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:p,strategy:l})),b="floating"===f?{...a.floating,x:r,y:i}: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=mi(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 vi(t,o,e){return(t?[...e.filter((o=>hi(o)===t)),...e.filter((o=>hi(o)!==t))]:e.filter((t=>fi(t)===t))).filter((e=>!t||(hi(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>li[t]))}(e)!==e)))}const Ni=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=ei,autoAlignment:d=!0,...u}=pi(t,o),y=void 0!==f||h===ei?vi(f||null,d,h):h,g=await Oi(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 r=hi(t),i=gi(t),n=ui(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=bi(a)),[a,bi(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[fi(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.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=hi(t.placement);return[t.placement,o&&p?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,hi(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Si(t){return $i(t)?(t.nodeName||"").toLowerCase():"#document"}function wi(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ci(t){var o;return null==(o=($i(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function $i(t){return t instanceof Node||t instanceof wi(t).Node}function Ri(t){return t instanceof Element||t instanceof wi(t).Element}function Ei(t){return t instanceof HTMLElement||t instanceof wi(t).HTMLElement}function Ui(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof wi(t).ShadowRoot)}function ki(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Fi(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ii(t){return["table","td","th"].includes(Si(t))}function Li(t){const o=Wi(),e=Fi(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 Wi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ki(t){return["html","body","#document"].includes(Si(t))}function Fi(t){return wi(t).getComputedStyle(t)}function zi(t){return Ri(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zi(t){if("html"===Si(t))return t;const o=t.assignedSlot||t.parentNode||Ui(t)&&t.host||Ci(t);return Ui(o)?o.host:o}function Bi(t){const o=Zi(t);return Ki(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ei(o)&&ki(o)?o:Bi(o)}function Ai(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Bi(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=wi(i);return n?o.concat(a,a.visualViewport||[],ki(i)?i:[],a.frameElement&&e?Ai(a.frameElement):[]):o.concat(i,Ai(i,[],e))}function Mi(t){const o=Fi(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ei(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,s=ni(e)!==n||ni(r)!==a;return s&&(e=n,r=a),{width:e,height:r,$:s}}function Di(t){return Ri(t)?t:t.contextElement}function Pi(t){const o=Di(t);if(!Ei(o))return ai(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Mi(o);let a=(n?ni(e.width):e.width)/r,s=(n?ni(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Hi=ai(0);function ji(t){const o=wi(t);return Wi()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Hi}function Ti(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Di(t);let a=ai(1);o&&(r?Ri(r)&&(a=Pi(r)):a=Pi(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==wi(t))&&o}(n,e,r)?ji(n):ai(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=wi(n),o=r&&Ri(r)?wi(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Pi(e),o=e.getBoundingClientRect(),r=Fi(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=i,c+=n,e=wi(e).frameElement}}return mi({width:p,height:f,x:l,y:c})}function _i(t){return Ti(Ci(t)).left+zi(t).scrollLeft}function Gi(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=wi(t),r=Ci(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const t=Wi();(!t||t&&"fixed"===o)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)r=function(t){const o=Ci(t),e=zi(t),r=t.ownerDocument.body,i=ii(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ii(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+_i(t);const s=-e.scrollTop;return"rtl"===Fi(r).direction&&(a+=ii(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ci(t));else if(Ri(o))r=function(t,o){const e=Ti(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ei(t)?Pi(t):ai(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=ji(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return mi(r)}function Yi(t,o){const e=Zi(t);return!(e===o||!Ri(e)||Ki(e))&&("fixed"===Fi(e).position||Yi(e,o))}function Vi(t,o,e){const r=Ei(o),i=Ci(o),n="fixed"===e,a=Ti(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=ai(0);if(r||!r&&!n)if(("body"!==Si(o)||ki(i))&&(s=zi(o)),r){const t=Ti(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else i&&(l.x=_i(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ji(t,o){return Ei(t)&&"fixed"!==Fi(t).position?o?o(t):t.offsetParent:null}function qi(t,o){const e=wi(t);if(!Ei(t))return e;let r=Ji(t,o);for(;r&&Ii(r)&&"static"===Fi(r).position;)r=Ji(r,o);return r&&("html"===Si(r)||"body"===Si(r)&&"static"===Fi(r).position&&!Li(r))?e:r||function(t){let o=Zi(t);for(;Ei(o)&&!Ki(o);){if(Li(o))return o;o=Zi(o)}return null}(t)||e}const Xi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ei(e),n=Ci(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=ai(1);const l=ai(0);if((i||!i&&"fixed"!==r)&&(("body"!==Si(e)||ki(n))&&(a=zi(e)),Ei(e))){const t=Ti(e);s=Pi(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:Ci,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=Ai(t,[],!1).filter((t=>Ri(t)&&"body"!==Si(t))),i=null;const n="fixed"===Fi(t).position;let a=n?Zi(t):t;for(;Ri(a)&&!Ki(a);){const o=Fi(a),e=Li(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ki(a)&&!e&&Yi(t,a))?r=r.filter((t=>t!==a)):i=o,a=Zi(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],s=n.reduce(((t,e)=>{const r=Gi(o,e,i);return t.top=ii(r.top,t.top),t.right=ri(r.right,t.right),t.bottom=ri(r.bottom,t.bottom),t.left=ii(r.left,t.left),t}),Gi(o,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:qi,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||qi,n=this.getDimensions;return{reference:Vi(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 Mi(t)},getScale:Pi,isElement:Ri,isRTL:function(t){return"rtl"===Fi(t).direction}},Qi=(t,o,e)=>{const r=new Map,i={platform:Xi,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="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:i}),{x:p,y:f}=xi(c,r,l),h=r,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:p,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,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:i}):x.rects),({x:p,y:f}=xi(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:i,middlewareData:d}})(t,o,{...i,platform:n})};function tn(t){return function(t){for(let o=t;o;o=on(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=on(t);o;o=on(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 on(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var en=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 rn 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 to`
|
|
655
655
|
<div part="container"
|
|
656
656
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
657
657
|
@mouseenter=${this.onHover}
|
|
@@ -659,7 +659,7 @@ const Mr=Symbol.for(""),Dr=t=>{if(t?.r===Mr)return t?._$litStatic$},Pr=t=>({_$li
|
|
|
659
659
|
@focusin=${this.onHover}
|
|
660
660
|
@focusout=${this.onOut}
|
|
661
661
|
@touchstart=${this.onTouch}>
|
|
662
|
-
<slot></slot>
|
|
662
|
+
<slot part="slot"></slot>
|
|
663
663
|
<div part="tooltip" role="tooltip" inert
|
|
664
664
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
665
665
|
?hidden=${!this.visible}>
|
|
@@ -669,25 +669,25 @@ const Mr=Symbol.for(""),Dr=t=>{if(t?.r===Mr)return t?._$litStatic$},Pr=t=>({_$li
|
|
|
669
669
|
</div>
|
|
670
670
|
</div>
|
|
671
671
|
</div>
|
|
672
|
-
`}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Qi(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},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:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=pi(t,o),c={x:e,y:r},p=await Oi(o,l),f=yi(fi(i)),h=di(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=ci(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=ci(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Ni({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))}}
|
|
672
|
+
`}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Qi(this.slottedElement,this.tooltip,{platform:{...Xi,getOffsetParent:t=>Xi.getOffsetParent(t,tn)},middleware:[(t={crossAxis:!0},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:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=pi(t,o),c={x:e,y:r},p=await Oi(o,l),f=yi(fi(i)),h=di(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=ci(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=ci(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Ni({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))}}rn.elementDefinitions={"ft-typography":Gr},rn.styles=ti,en([w()],rn.prototype,"text",void 0),en([w({type:Boolean})],rn.prototype,"manual",void 0),en([w({type:Boolean})],rn.prototype,"inline",void 0),en([w({type:Number})],rn.prototype,"delay",void 0),en([w()],rn.prototype,"position",void 0),en([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],rn.prototype,"slotNodes",void 0),en([E(".ft-tooltip--container")],rn.prototype,"container",void 0),en([E(".ft-tooltip")],rn.prototype,"tooltip",void 0),en([E(".ft-tooltip--content")],rn.prototype,"tooltipContent",void 0),en([C()],rn.prototype,"visible",void 0),en([$({passive:!0})],rn.prototype,"onTouch",null),en([$({passive:!0})],rn.prototype,"onHover",null),en([$({passive:!0})],rn.prototype,"onOut",null),I("ft-tooltip")(rn);
|
|
673
673
|
/**
|
|
674
674
|
* @license
|
|
675
675
|
* Copyright 2017 Google LLC
|
|
676
676
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
677
677
|
*/
|
|
678
|
-
class
|
|
678
|
+
class nn extends zr{constructor(t){if(super(t),this.et=Q,t.type!==Kr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)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:[]}}}nn.directiveName="unsafeHTML",nn.resultType=1;const an=Fr(nn);var sn,ln,cn;!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=""}(sn||(sn={})),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=""}(ln||(ln={})),new Map([...["abw"].map((t=>[t,ln.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,ln.AUDIO])),...["avi"].map((t=>[t,ln.AVI])),...["chm","xhs"].map((t=>[t,ln.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,ln.CODE])),...["csv"].map((t=>[t,ln.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ln.DITA])),...["epub"].map((t=>[t,ln.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ln.EXCEL])),...["flac"].map((t=>[t,ln.FLAC])),...["gif"].map((t=>[t,ln.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ln.GZIP])),...["html","htm","xhtml"].map((t=>[t,ln.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,ln.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ln.JPEG])),...["json"].map((t=>[t,ln.JSON])),...["m4a","m4p"].map((t=>[t,ln.M4A])),...["mov","qt"].map((t=>[t,ln.MOV])),...["mp3"].map((t=>[t,ln.MP3])),...["mp4","m4v"].map((t=>[t,ln.MP4])),...["ogg","oga"].map((t=>[t,ln.OGG])),...["pdf","ps"].map((t=>[t,ln.PDF])),...["png"].map((t=>[t,ln.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ln.POWERPOINT])),...["rar"].map((t=>[t,ln.RAR])),...["stp"].map((t=>[t,ln.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ln.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,ln.VIDEO])),...["wav"].map((t=>[t,ln.WAV])),...["wma"].map((t=>[t,ln.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ln.WORD])),...["xml","xsl","rdf"].map((t=>[t,ln.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ln.YAML])),...["zip"].map((t=>[t,ln.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(cn||(cn={}));var pn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 fn extends Fo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(cn).includes(this.variant)?this.variant:cn.fluid_topics,o=t!==cn.material||!!this.value;return to`
|
|
679
679
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
680
|
-
${
|
|
680
|
+
${an(this.resolvedIcon)}
|
|
681
681
|
<slot ?hidden=${o}></slot>
|
|
682
682
|
</i>
|
|
683
|
-
`}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
|
|
683
|
+
`}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 cn.file_format:this.resolvedIcon=null!==(t=ln[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case cn.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=sn[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}fn.elementDefinitions={},fn.styles=$r,pn([w()],fn.prototype,"variant",void 0),pn([w()],fn.prototype,"value",void 0),pn([C()],fn.prototype,"resolvedIcon",void 0),pn([E("slot")],fn.prototype,"slottedContent",void 0),I("ft-icon")(fn);class hn extends Fo{render(){return to`
|
|
684
684
|
<div class="ft-loader">
|
|
685
685
|
<div></div>
|
|
686
686
|
<div></div>
|
|
687
687
|
<div></div>
|
|
688
688
|
<div></div>
|
|
689
689
|
</div>
|
|
690
|
-
`}}
|
|
690
|
+
`}}hn.styles=wr,I("ft-loader")(hn);var dn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 un extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].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(to`
|
|
691
691
|
<button part="button"
|
|
692
692
|
class="${Zr(this.buttonClasses)}"
|
|
693
693
|
aria-label="${this.getLabel()}"
|
|
@@ -710,7 +710,7 @@ class en extends zr{constructor(t){if(super(t),this.et=Q,t.type!==Kr)throw Error
|
|
|
710
710
|
</ft-tooltip>
|
|
711
711
|
`:t}resolveIcon(){return this.loading?to`
|
|
712
712
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?to`
|
|
713
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}
|
|
713
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}un.elementDefinitions={"ft-ripple":Ar,"ft-tooltip":rn,"ft-typography":Gr,"ft-icon":fn,"ft-loader":hn},dn([w({type:String,reflect:!0})],un.prototype,"role",void 0),dn([w()],un.prototype,"type",void 0),dn([w({type:Boolean})],un.prototype,"disabled",void 0),dn([w()],un.prototype,"label",void 0),dn([w()],un.prototype,"icon",void 0),dn([w()],un.prototype,"iconVariant",void 0),dn([w({type:Boolean})],un.prototype,"trailingIcon",void 0),dn([w({type:Boolean})],un.prototype,"loading",void 0),dn([w()],un.prototype,"tooltipPosition",void 0),dn([w({type:Boolean})],un.prototype,"hideTooltip",void 0),dn([w({type:Boolean})],un.prototype,"forceTooltip",void 0),dn([E(".ft-button")],un.prototype,"button",void 0),dn([E(".ft-button--label slot")],un.prototype,"slottedContent",void 0);var yn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 gn extends un{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"}}gn.styles=[Bo,Lr],yn([w({type:Boolean})],gn.prototype,"primary",void 0),yn([w({type:Boolean})],gn.prototype,"outlined",void 0),yn([w({type:Boolean})],gn.prototype,"dense",void 0),yn([w({type:Boolean})],gn.prototype,"round",void 0);const bn=[mt`
|
|
714
714
|
:host {
|
|
715
715
|
display: inline-block;
|
|
716
716
|
max-width: 100%;
|
|
@@ -928,4 +928,4 @@ class en extends zr{constructor(t){if(super(t),this.et=Q,t.type!==Kr)throw Error
|
|
|
928
928
|
width: ${Co.smallIconOnlyWidth};
|
|
929
929
|
padding: unset;
|
|
930
930
|
}
|
|
931
|
-
`,Zo];var
|
|
931
|
+
`,Zo];var mn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 xn extends un{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?Tr.caption1medium:Tr.body2medium}}xn.styles=[Bo,bn],mn([w({type:Boolean})],xn.prototype,"primary",void 0),mn([w({type:Boolean})],xn.prototype,"secondary",void 0),mn([w({type:Boolean})],xn.prototype,"tertiary",void 0),mn([w({type:Boolean})],xn.prototype,"neutral",void 0),mn([w({type:Boolean})],xn.prototype,"small",void 0),I("ft-button")(gn),I("ftds-button")(xn),t.FtButton=gn,t.FtButtonCssVariables=Er,t.FtButtonDenseCssVariables=Ir,t.FtButtonPrimaryCssVariables=kr,t.FtdsButton=xn,t.FtdsButtonCssVariables=Co,t.classicStyles=Lr,t.designSystemStyles=bn}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-loader": "1.1.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.11",
|
|
23
|
+
"@fluid-topics/ft-loader": "1.1.11",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.1.11",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.11",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.1.11",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.11",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "077ec0dd3948ed41aa130d5a4cdc3d77f0dd2e6c"
|
|
31
31
|
}
|