@fluid-topics/ft-reader-feedback 1.1.39 → 1.1.41
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.
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${h.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:O.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:O.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:O.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:O.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:O.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:O.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:O.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:O.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:O.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},$={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:O.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:O.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:O.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",S.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",S.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",S.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",S.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange300),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},C={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:O.extend("--ft-button-primary-state-layer-opacity-hover","",S.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",S.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",S.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:O.extend("--ft-button-tertiary-state-layer-opacity-hover","",S.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",S.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",S.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:O.extend("--ft-button-secondary-state-layer-opacity-hover","",S.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",S.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",S.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:O.extend("--ft-button-neutral-state-layer-opacity-hover","",S.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",S.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",S.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",S.opacity40)};O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-vertical-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-icon-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-floating-menu-state-layer-opacity-active","",S.opacity16),O.extend("--ft-floating-menu-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-floating-menu-component-opacity-disabled","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-tabs-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-off-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-on-color","",N.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-collapsible-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-active","",S.opacity16),O.extend("--ft-collapsible-component-opacity-disabled","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-collapsible-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",N.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-switch-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-on-color","",N.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",N.contentInfoPrimary),O.extend("--ft-chip-info-border-color","",N.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",N.contentSuccessPrimary),O.extend("--ft-chip-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",N.contentWarningPrimary),O.extend("--ft-chip-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",N.contentErrorPrimary),O.extend("--ft-chip-error-border-color","",N.borderErrorSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notice-info-color","",N.contentInfoPrimary),O.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notice-warning-color","",N.contentWarningPrimary),O.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),O.extend("--ft-checkbox-checked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-on-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-label-color","",N.contentGlobalPrimary),O.extend("--ft-radio-selected-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",S.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",N.contentInfoPrimary),O.extend("--ft-notification-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",N.contentSuccessPrimary),O.extend("--ft-notification-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",N.contentWarningPrimary),O.extend("--ft-notification-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",N.contentErrorPrimary),O.extend("--ft-notification-error-border-color","",N.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",S.spacing2),O.extend("--ft-notification-gap-trailing","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-label","",N.contentGlobalOnColor),O.extend("--ft-tooltip-background","",N.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03);const I=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),P={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},pt=o.css`
|
|
113
|
+
`,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:O.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:O.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:O.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:O.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:O.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:O.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:O.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:O.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:O.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},$={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:O.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:O.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:O.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",S.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",S.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",S.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",S.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange300),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},I={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:O.extend("--ft-button-primary-state-layer-opacity-hover","",S.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",S.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",S.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:O.extend("--ft-button-tertiary-state-layer-opacity-hover","",S.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",S.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",S.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:O.extend("--ft-button-secondary-state-layer-opacity-hover","",S.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",S.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",S.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:O.extend("--ft-button-neutral-state-layer-opacity-hover","",S.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",S.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",S.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",S.opacity40)};O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-vertical-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-icon-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-floating-menu-state-layer-opacity-active","",S.opacity16),O.extend("--ft-floating-menu-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-floating-menu-component-opacity-disabled","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-tabs-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-off-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-on-color","",N.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-collapsible-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-active","",S.opacity16),O.extend("--ft-collapsible-component-opacity-disabled","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-collapsible-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",N.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-switch-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-on-color","",N.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",N.contentInfoPrimary),O.extend("--ft-chip-info-border-color","",N.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",N.contentSuccessPrimary),O.extend("--ft-chip-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",N.contentWarningPrimary),O.extend("--ft-chip-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",N.contentErrorPrimary),O.extend("--ft-chip-error-border-color","",N.borderErrorSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notice-info-color","",N.contentInfoPrimary),O.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notice-warning-color","",N.contentWarningPrimary),O.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),O.extend("--ft-checkbox-checked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-on-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-label-color","",N.contentGlobalPrimary),O.extend("--ft-radio-selected-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",S.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",N.contentInfoPrimary),O.extend("--ft-notification-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",N.contentSuccessPrimary),O.extend("--ft-notification-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",N.contentWarningPrimary),O.extend("--ft-notification-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",N.contentErrorPrimary),O.extend("--ft-notification-error-border-color","",N.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",S.spacing2),O.extend("--ft-notification-gap-trailing","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-label","",N.contentGlobalOnColor),O.extend("--ft-tooltip-background","",N.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),P={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},pt=o.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${R.fontFamily};
|
|
116
116
|
font-size: ${R.fontSize};
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
transform: translate(calc(0.35 * ${St.size}), 0);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
`,Nt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},
|
|
286
|
+
`,Nt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},It=o.css`
|
|
287
287
|
:host, i.ft-icon {
|
|
288
288
|
display: inline-flex;
|
|
289
289
|
align-items: center;
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
.ft-icon--material {
|
|
332
332
|
font-family: ${Nt.materialFontFamily}, "Material Icons", sans-serif;
|
|
333
333
|
}
|
|
334
|
-
`,
|
|
334
|
+
`,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),kt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dt=[o.css`
|
|
335
335
|
:host {
|
|
336
336
|
display: inline-block;
|
|
337
337
|
max-width: 100%;
|
|
@@ -535,14 +535,14 @@
|
|
|
535
535
|
* Copyright 2020 Google LLC
|
|
536
536
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
537
537
|
*/
|
|
538
|
-
const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),$e=new Map,Ne=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=$e.get(t))&&(a.raw=a,$e.set(t,e=a)),o=s}return t(e,...o)})(re);var
|
|
538
|
+
const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),$e=new Map,Ne=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=$e.get(t))&&(a.raw=a,$e.set(t,e=a)),o=s}return t(e,...o)})(re);var Ie;!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"}(Ie||(Ie={}));var Ce=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ie.body1}render(){return this.element?Ne`
|
|
539
539
|
<${Se(this.element)}
|
|
540
540
|
class="ft-typography ft-typography--${this.variant}">
|
|
541
541
|
<slot></slot>
|
|
542
542
|
</${Se(this.element)}>
|
|
543
543
|
`:Ne`
|
|
544
544
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
545
|
-
`}}ke.styles=[pt,ft,ht,ut,gt,yt,bt,mt,vt,xt,wt,...Ot],
|
|
545
|
+
`}}ke.styles=[pt,ft,ht,ut,gt,yt,bt,mt,vt,xt,wt,...Ot],Ce([i.property()],ke.prototype,"element",void 0),Ce([i.property()],ke.prototype,"variant",void 0),e.customElement("ft-typography")(ke);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.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 e.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 e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
|
|
546
546
|
<style>
|
|
547
547
|
.ft-ripple .ft-ripple--effect {
|
|
548
548
|
left: ${this.originX}px;
|
|
@@ -582,7 +582,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
582
582
|
position: relative;
|
|
583
583
|
word-break: break-word;
|
|
584
584
|
}
|
|
585
|
-
`,ze=["start","end"],Be=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Fe=Math.min,Ke=Math.max,Ze=Math.round,Me=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Ke(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Pe[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:p};break;case"left":h={x:i.x-r.width,y:p};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=f*(o&&c?-1:1);break;case"end":h[a]+=f*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Ge(e,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}}(h),g=s[f?"floating"===p?"reference":"floating":p],y=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:f=Be,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==p||f===Be?ro(p||null,h,f):f,y=await io(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ve(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function po(t){return t instanceof Element||t instanceof so(t).Element}function fo(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function yo(t){const e=bo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function bo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function $o(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=fo(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ze(o)!==n||Ze(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function No(t){return po(t)?t:t.contextElement}function Co(t){const e=No(t);if(!fo(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=$o(e);let a=(n?Ze(o.width):o.width)/i,s=(n?Ze(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Io=Me(0);function ko(t){const e=so(t);return bo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Io}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=No(t);let a=Me(1);e&&(i?po(i)&&(a=Co(i)):a=Co(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Me(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(n){const t=so(n),e=i&&po(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Co(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:p,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=bo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Ke(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ke(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Ke(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(po(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=fo(t)?Co(t):Me(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!po(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=fo(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function To(t,e){return fo(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Do(t,e){const o=so(t);if(!fo(t))return o;let i=To(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=To(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!yo(i))?o:i||function(t){let e=wo(t);for(;fo(e)&&!mo(e);){if(yo(e))return e;e=wo(e)}return null}(t)||o}const Ao={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=fo(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Me(1);const l=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),fo(o))){const t=Eo(o);s=Co(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>po(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;po(a)&&!mo(a);){const e=vo(a),o=yo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Ke(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Ke(i.left,t.left),t}),Uo(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Do,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Do,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return $o(t)},getScale:Co,isElement:po,isRTL:function(t){return"rtl"===vo(t).direction}},_o=(t,e,o)=>{const i=new Map,r={platform:Ao,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:p}=oo(c,i,l),f=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:p,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:p}=oo(c,f,l))),o=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Fo,Ko,Zo,Mo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Po extends e.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 e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
585
|
+
`,ze=["start","end"],Be=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Fe=Math.min,Ke=Math.max,Ze=Math.round,Me=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Ke(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Pe[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:p};break;case"left":h={x:i.x-r.width,y:p};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=f*(o&&c?-1:1);break;case"end":h[a]+=f*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Ge(e,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}}(h),g=s[f?"floating"===p?"reference":"floating":p],y=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:f=Be,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==p||f===Be?ro(p||null,h,f):f,y=await io(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ve(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function po(t){return t instanceof Element||t instanceof so(t).Element}function fo(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function yo(t){const e=bo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function bo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function $o(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=fo(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ze(o)!==n||Ze(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function No(t){return po(t)?t:t.contextElement}function Io(t){const e=No(t);if(!fo(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=$o(e);let a=(n?Ze(o.width):o.width)/i,s=(n?Ze(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Co=Me(0);function ko(t){const e=so(t);return bo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=No(t);let a=Me(1);e&&(i?po(i)&&(a=Io(i)):a=Io(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Me(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(n){const t=so(n),e=i&&po(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Io(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:p,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=bo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Ke(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ke(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Ke(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(po(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=fo(t)?Io(t):Me(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!po(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=fo(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function To(t,e){return fo(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Do(t,e){const o=so(t);if(!fo(t))return o;let i=To(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=To(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!yo(i))?o:i||function(t){let e=wo(t);for(;fo(e)&&!mo(e);){if(yo(e))return e;e=wo(e)}return null}(t)||o}const Ao={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=fo(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Me(1);const l=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),fo(o))){const t=Eo(o);s=Io(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>po(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;po(a)&&!mo(a);){const e=vo(a),o=yo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Ke(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Ke(i.left,t.left),t}),Uo(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Do,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Do,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return $o(t)},getScale:Io,isElement:po,isRTL:function(t){return"rtl"===vo(t).direction}},_o=(t,e,o)=>{const i=new Map,r={platform:Ao,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:p}=oo(c,i,l),f=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:p,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:p}=oo(c,f,l))),o=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Fo,Ko,Zo,Mo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Po extends e.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 e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
586
586
|
<div part="container"
|
|
587
587
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
588
588
|
@mouseenter=${this.onHover}
|
|
@@ -605,7 +605,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
605
605
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
606
606
|
<slot ?hidden=${e}></slot>
|
|
607
607
|
</i>
|
|
608
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Fo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jo.elementDefinitions={},jo.styles=
|
|
608
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Fo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jo.elementDefinitions={},jo.styles=It,Ho([i.property()],jo.prototype,"variant",void 0),Ho([i.property()],jo.prototype,"value",void 0),Ho([i.state()],jo.prototype,"resolvedIcon",void 0),Ho([i.query("slot")],jo.prototype,"slottedContent",void 0),e.customElement("ft-icon")(jo);const Go={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Vo=o.css`
|
|
609
609
|
.ft-switch-option {
|
|
610
610
|
position: relative;
|
|
611
611
|
display: inline-block;
|
|
@@ -1136,7 +1136,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
.ft-button:focus-visible {
|
|
1139
|
-
outline-color: ${
|
|
1139
|
+
outline-color: ${I.focusFocusRingColor};
|
|
1140
1140
|
outline-style: solid;
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
@@ -1165,150 +1165,150 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1165
1165
|
/** Primary styles **/
|
|
1166
1166
|
|
|
1167
1167
|
.ft-button--primary {
|
|
1168
|
-
${e.setVariable(St.color,
|
|
1168
|
+
${e.setVariable(St.color,I.primaryIconColor)};
|
|
1169
1169
|
|
|
1170
|
-
${e.setVariable(h.color,
|
|
1171
|
-
${e.setVariable(h.opacityContentOnSurfaceHover,
|
|
1172
|
-
${e.setVariable(h.opacityContentOnSurfaceFocused,
|
|
1173
|
-
${e.setVariable(h.opacityContentOnSurfaceSelected,
|
|
1174
|
-
${e.setVariable(h.opacityContentOnSurfacePressed,
|
|
1170
|
+
${e.setVariable(h.color,I.primaryStateLayerColor)};
|
|
1171
|
+
${e.setVariable(h.opacityContentOnSurfaceHover,I.primaryStateLayerOpacityHover)};
|
|
1172
|
+
${e.setVariable(h.opacityContentOnSurfaceFocused,I.primaryStateLayerOpacityFocus)};
|
|
1173
|
+
${e.setVariable(h.opacityContentOnSurfaceSelected,I.primaryStateLayerOpacityActive)};
|
|
1174
|
+
${e.setVariable(h.opacityContentOnSurfacePressed,I.primaryStateLayerOpacityActive)};
|
|
1175
1175
|
|
|
1176
|
-
background-color: ${
|
|
1177
|
-
color: ${
|
|
1176
|
+
background-color: ${I.primaryBackgroundColor};
|
|
1177
|
+
color: ${I.primaryColor};
|
|
1178
1178
|
border-style: none;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
1181
|
.ft-button--primary[disabled] {
|
|
1182
|
-
opacity: ${
|
|
1182
|
+
opacity: ${I.primaryComponentOpacityDisabled};
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
.ft-button--primary ft-icon {
|
|
1186
|
-
color: ${
|
|
1186
|
+
color: ${I.primaryIconColor};
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
/** Secondary styles **/
|
|
1190
1190
|
|
|
1191
1191
|
.ft-button--secondary {
|
|
1192
|
-
${e.setVariable(St.color,
|
|
1192
|
+
${e.setVariable(St.color,I.secondaryIconColor)};
|
|
1193
1193
|
|
|
1194
|
-
${e.setVariable(h.color,
|
|
1195
|
-
${e.setVariable(h.opacityContentOnSurfaceHover,
|
|
1196
|
-
${e.setVariable(h.opacityContentOnSurfaceFocused,
|
|
1197
|
-
${e.setVariable(h.opacityContentOnSurfaceSelected,
|
|
1198
|
-
${e.setVariable(h.opacityContentOnSurfacePressed,
|
|
1194
|
+
${e.setVariable(h.color,I.secondaryStateLayerColor)};
|
|
1195
|
+
${e.setVariable(h.opacityContentOnSurfaceHover,I.secondaryStateLayerOpacityHover)};
|
|
1196
|
+
${e.setVariable(h.opacityContentOnSurfaceFocused,I.secondaryStateLayerOpacityFocus)};
|
|
1197
|
+
${e.setVariable(h.opacityContentOnSurfaceSelected,I.secondaryStateLayerOpacityActive)};
|
|
1198
|
+
${e.setVariable(h.opacityContentOnSurfacePressed,I.secondaryStateLayerOpacityActive)};
|
|
1199
1199
|
|
|
1200
|
-
background-color: ${
|
|
1201
|
-
color: ${
|
|
1202
|
-
border-color: ${
|
|
1200
|
+
background-color: ${I.secondaryBackgroundColor};
|
|
1201
|
+
color: ${I.secondaryColor};
|
|
1202
|
+
border-color: ${I.secondaryBorderColor};
|
|
1203
1203
|
border-style: solid;
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
.ft-button--secondary[disabled] {
|
|
1207
|
-
opacity: ${
|
|
1207
|
+
opacity: ${I.secondaryComponentOpacityDisabled};
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ft-button--secondary ft-icon {
|
|
1211
|
-
color: ${
|
|
1211
|
+
color: ${I.secondaryIconColor};
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
/** Tertiary styles **/
|
|
1215
1215
|
|
|
1216
1216
|
.ft-button--tertiary {
|
|
1217
|
-
${e.setVariable(St.color,
|
|
1217
|
+
${e.setVariable(St.color,I.tertiaryIconColor)};
|
|
1218
1218
|
|
|
1219
|
-
${e.setVariable(h.color,
|
|
1220
|
-
${e.setVariable(h.opacityContentOnSurfaceHover,
|
|
1221
|
-
${e.setVariable(h.opacityContentOnSurfaceFocused,
|
|
1222
|
-
${e.setVariable(h.opacityContentOnSurfaceSelected,
|
|
1223
|
-
${e.setVariable(h.opacityContentOnSurfacePressed,
|
|
1219
|
+
${e.setVariable(h.color,I.tertiaryStateLayerColor)};
|
|
1220
|
+
${e.setVariable(h.opacityContentOnSurfaceHover,I.tertiaryStateLayerOpacityHover)};
|
|
1221
|
+
${e.setVariable(h.opacityContentOnSurfaceFocused,I.tertiaryStateLayerOpacityFocus)};
|
|
1222
|
+
${e.setVariable(h.opacityContentOnSurfaceSelected,I.tertiaryStateLayerOpacityActive)};
|
|
1223
|
+
${e.setVariable(h.opacityContentOnSurfacePressed,I.tertiaryStateLayerOpacityActive)};
|
|
1224
1224
|
|
|
1225
|
-
background-color: ${
|
|
1226
|
-
color: ${
|
|
1225
|
+
background-color: ${I.tertiaryBackgroundColor};
|
|
1226
|
+
color: ${I.tertiaryColor};
|
|
1227
1227
|
border-style: none;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
1230
|
.ft-button--tertiary[disabled] {
|
|
1231
|
-
opacity: ${
|
|
1231
|
+
opacity: ${I.tertiaryComponentOpacityDisabled};
|
|
1232
1232
|
}
|
|
1233
1233
|
|
|
1234
1234
|
.ft-button--tertiary ft-icon {
|
|
1235
|
-
color: ${
|
|
1235
|
+
color: ${I.tertiaryIconColor};
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
/** Neutral styles **/
|
|
1239
1239
|
|
|
1240
1240
|
.ft-button--neutral {
|
|
1241
|
-
${e.setVariable(St.color,
|
|
1241
|
+
${e.setVariable(St.color,I.neutralIconColor)};
|
|
1242
1242
|
|
|
1243
|
-
${e.setVariable(h.backgroundColor,
|
|
1244
|
-
${e.setVariable(h.opacityContentOnSurfaceHover,
|
|
1245
|
-
${e.setVariable(h.opacityContentOnSurfaceFocused,
|
|
1246
|
-
${e.setVariable(h.opacityContentOnSurfaceSelected,
|
|
1247
|
-
${e.setVariable(h.opacityContentOnSurfacePressed,
|
|
1243
|
+
${e.setVariable(h.backgroundColor,I.neutralStateLayerColor)};
|
|
1244
|
+
${e.setVariable(h.opacityContentOnSurfaceHover,I.neutralStateLayerOpacityHover)};
|
|
1245
|
+
${e.setVariable(h.opacityContentOnSurfaceFocused,I.neutralStateLayerOpacityFocus)};
|
|
1246
|
+
${e.setVariable(h.opacityContentOnSurfaceSelected,I.neutralStateLayerOpacityActive)};
|
|
1247
|
+
${e.setVariable(h.opacityContentOnSurfacePressed,I.neutralStateLayerOpacityActive)};
|
|
1248
1248
|
|
|
1249
|
-
background-color: ${
|
|
1250
|
-
color: ${
|
|
1249
|
+
background-color: ${I.neutralBackgroundColor};
|
|
1250
|
+
color: ${I.neutralColor};
|
|
1251
1251
|
border-style: none;
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
1254
|
.ft-button--neutral[disabled] {
|
|
1255
|
-
opacity: ${
|
|
1255
|
+
opacity: ${I.neutralComponentOpacityDisabled};
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
1258
|
.ft-button--neutral ft-icon {
|
|
1259
|
-
color: ${
|
|
1259
|
+
color: ${I.neutralIconColor};
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
/** Large styles **/
|
|
1263
1263
|
|
|
1264
1264
|
.ft-button--large {
|
|
1265
|
-
${e.setVariable(Nt.size,
|
|
1266
|
-
${e.setVariable(St.size,
|
|
1265
|
+
${e.setVariable(Nt.size,I.largeIconSize)};
|
|
1266
|
+
${e.setVariable(St.size,I.largeIconSize)};
|
|
1267
1267
|
|
|
1268
|
-
height: ${
|
|
1269
|
-
padding: 0 ${
|
|
1270
|
-
gap: ${
|
|
1271
|
-
border-radius: ${
|
|
1272
|
-
border-width: ${
|
|
1268
|
+
height: ${I.largeHeight};
|
|
1269
|
+
padding: 0 ${I.largeHorizontalPadding};
|
|
1270
|
+
gap: ${I.largeGap};
|
|
1271
|
+
border-radius: ${I.largeBorderRadius};
|
|
1272
|
+
border-width: ${I.largeBorderWidth};
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
1275
|
.ft-button--large:focus-visible {
|
|
1276
|
-
outline-width: ${
|
|
1277
|
-
outline-offset: ${
|
|
1276
|
+
outline-width: ${I.largeFocusOutlineWidth};
|
|
1277
|
+
outline-offset: ${I.largeFocusOutlineOffset};
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
.ft-button--large.ft-button--icon-only {
|
|
1281
|
-
width: ${
|
|
1281
|
+
width: ${I.largeIconOnlyWidth};
|
|
1282
1282
|
padding: unset;
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
1285
|
/** Small styles **/
|
|
1286
1286
|
|
|
1287
1287
|
.ft-button--small {
|
|
1288
|
-
${e.setVariable(Nt.size,
|
|
1289
|
-
${e.setVariable(St.size,
|
|
1288
|
+
${e.setVariable(Nt.size,I.smallIconSize)};
|
|
1289
|
+
${e.setVariable(St.size,I.smallIconSize)};
|
|
1290
1290
|
|
|
1291
|
-
height: ${
|
|
1292
|
-
padding: 0 ${
|
|
1293
|
-
gap: ${
|
|
1294
|
-
border-radius: ${
|
|
1295
|
-
border-width: ${
|
|
1291
|
+
height: ${I.smallHeight};
|
|
1292
|
+
padding: 0 ${I.smallHorizontalPadding};
|
|
1293
|
+
gap: ${I.smallGap};
|
|
1294
|
+
border-radius: ${I.smallBorderRadius};
|
|
1295
|
+
border-width: ${I.smallBorderWidth};
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
.ft-button--small:focus-visible {
|
|
1299
|
-
outline-width: ${
|
|
1300
|
-
outline-offset: ${
|
|
1299
|
+
outline-width: ${I.smallFocusOutlineWidth};
|
|
1300
|
+
outline-offset: ${I.smallFocusOutlineOffset};
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
1303
|
.ft-button--small.ft-button--icon-only {
|
|
1304
|
-
width: ${
|
|
1304
|
+
width: ${I.smallIconOnlyWidth};
|
|
1305
1305
|
padding: unset;
|
|
1306
1306
|
}
|
|
1307
|
-
`,e.noTextSelect];var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Si extends mi{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?
|
|
1307
|
+
`,e.noTextSelect];var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Si extends mi{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?Ie.caption1medium:Ie.body2medium}}Si.styles=[e.safariEllipsisFix,wi],Oi([i.property({type:Boolean})],Si.prototype,"primary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"secondary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"tertiary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"neutral",void 0),Oi([i.property({type:Boolean})],Si.prototype,"small",void 0),e.customElement("ft-button")(xi),e.customElement("ftds-button")(Si);const $i=o.css`
|
|
1308
1308
|
`,Ni=o.css`
|
|
1309
|
-
`,
|
|
1309
|
+
`,Ii=e.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class Ci{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ii.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Ci.build(t):null!==(e=Ci.API)&&void 0!==e?e:Ci.API=Ci.build()}static await(t){return new Promise((e=>{let o=Ci.get(t);if(o)e(o);else{const i=Ii.subscribe((()=>{o=Ci.get(t),o&&(i(),e(o))}))}}))}}class ki{constructor(t=!0,o){var i;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(i=r.commonCache)&&void 0!==i?i:new e.CacheRegistry,this.cache=t?r.commonCache:new e.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ci.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ci.await()}clearCache(){this.cache.clearAll()}}var Ei;const Ri=Symbol("clearAfterUnitTest");class Ui extends ki{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ei]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ii.getState().uiLocale,Ii.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ii.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}Ei=Ri,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Ui{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Ui{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Li=window.FluidTopicsI18nService,Wi=window.FluidTopicsCustomI18nService;var Ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Di extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ci.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
|
|
1310
1310
|
<slot></slot>
|
|
1311
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(
|
|
1311
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(Ii.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ii.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ii.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ii.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ii.actions.noCustom(this.noCustom),t.has("editorMode")&&Ii.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ii.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ii.actions.session(this.session),t.has("availableUiLocales")&&Ii.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Li.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ii.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Di.elementDefinitions={},Di.styles=Ni,Ti([i.property()],Di.prototype,"baseUrl",void 0),Ti([i.property()],Di.prototype,"apiIntegrationIdentifier",void 0),Ti([i.property()],Di.prototype,"uiLocale",void 0),Ti([e.jsonProperty(null)],Di.prototype,"availableUiLocales",void 0),Ti([e.jsonProperty(null)],Di.prototype,"metadataConfiguration",void 0),Ti([i.property({type:Boolean})],Di.prototype,"editorMode",void 0),Ti([i.property({type:Boolean})],Di.prototype,"noCustom",void 0),Ti([i.property({type:Boolean})],Di.prototype,"openExternalDocumentInNewTab",void 0),Ti([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Di.prototype,"noCustomComponent",void 0),Ti([i.property({type:Boolean})],Di.prototype,"withManualResources",void 0),Ti([e.jsonProperty([])],Di.prototype,"messageContexts",void 0),Ti([e.jsonProperty(void 0)],Di.prototype,"session",void 0),Ti([i.property({type:Object})],Di.prototype,"apiProvider",void 0);class Ai extends ki{async listMySearches(){let t=Ii.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class _i extends ki{async listMyBookmarks(){let t=Ii.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Bi=new class{constructor(){this.currentSession=Ii.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ai,Ii.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ii.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;zi.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Di);var Fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nAttributes"),Zi=Symbol("i18nProperties"),Mi=Symbol("i18nUnsubs");function Pi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Wi:Li}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[Zi])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[Zi])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Zi])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Ki])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Mi].has(t)||this[Mi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Mi].forEach((t=>t())),this[Mi].clear()}}return e=Mi,Fi([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Hi extends(Pi(e.FtLitElement)){}class ji extends(Pi(e.FtLitElementRedux)){}var Gi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vi extends ji{constructor(){super(),this.editorMode=!1,this.addStore(Ii)}render(){return this.key&&this.context?o.html`
|
|
1312
1312
|
<span class="ft-i18n">
|
|
1313
1313
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1314
1314
|
</span>
|
|
@@ -1557,15 +1557,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1557
1557
|
<slot></slot>
|
|
1558
1558
|
</ft-typography>
|
|
1559
1559
|
</div>
|
|
1560
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new nr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ar.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},ar.styles=ir,rr([i.property()],ar.prototype,"value",void 0),rr([i.query(".ft-text-field-suggestion")],ar.prototype,"container",void 0),rr([i.queryAssignedNodes()],ar.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(or),e.customElement("ft-text-field-suggestion")(ar);class sr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class lr{convertPaginatedToc(t){return new sr(t).build()}}var cr,dr,pr,fr,hr,ur,gr,yr,br,mr,vr,xr,wr,Or,Sr,$r,Nr,Cr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(cr||(cr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(pr||(pr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(fr||(fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(hr||(hr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gr||(gr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mr||(mr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(vr||(vr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sr||(Sr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($r||($r={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Nr||(Nr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Cr||(Cr={}));const Ir={[Nr.PERSONAL_BOOK_SHARE_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.HTML_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.PDF_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.KHUB_ADMIN]:[Nr.CONTENT_PUBLISHER],[Nr.ADMIN]:[Nr.KHUB_ADMIN,Nr.USERS_ADMIN,Nr.PORTAL_ADMIN],[Nr.DEVELOPER]:[Nr.BETA_USER,Nr.DEBUG_USER]};function kr(t,e){return t===e||(Ir[t]??[]).some((t=>kr(t,e)))}function Er(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>kr(t,e)))}class Rr extends ki{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Er(null!==(e=null===(t=Ci.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ci.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Er(null!=e?e:[],Nr.FEEDBACK_USER);case s.RATING:return Er(null!=e?e:[],Nr.RATING_USER)&&null!=o&&o!==gr.NO_RATING;case s.PRINT:return Er(null!=e?e:[],Nr.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Er(null!=e?e:[],Nr.COLLECTION_USER);case s.PERSONAL_BOOKS:return Er(null!=e?e:[],Nr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Ur extends Rr{static async build(t){return new Ur(new lr,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Lr{static build(t,o){return new Lr((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=o?o:Ur.build)}constructor(t,o){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,o;this.store.getState().relatives&&(this.clusteringHelper=new e.ClusteringHelper(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(o=null===(t=Ci.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var o,i,r;const n=await e.waitFor((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),a=this.store.getState().mapId,s=await this.awaitService(),l=await s.getRelativesForTopicInMap(a,n,[t]);if(null===(r=null===(i=null===(o=null==l?void 0:l.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Wr=o.css`
|
|
1561
|
-
`;class Tr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Dr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ar extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class _r extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class zr extends Event{constructor(){super("ft-reader-map-not-found")}}class Br extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Fr extends Event{constructor(){super("ft-reader-map-forbidden")}}class Kr extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Zr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(
|
|
1560
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new nr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ar.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},ar.styles=ir,rr([i.property()],ar.prototype,"value",void 0),rr([i.query(".ft-text-field-suggestion")],ar.prototype,"container",void 0),rr([i.queryAssignedNodes()],ar.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(or),e.customElement("ft-text-field-suggestion")(ar);class sr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class lr{convertPaginatedToc(t){return new sr(t).build()}}var cr,dr,pr,fr,hr,ur,gr,yr,br,mr,vr,xr,wr,Or,Sr,$r,Nr,Ir;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(cr||(cr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(pr||(pr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(fr||(fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(hr||(hr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gr||(gr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mr||(mr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(vr||(vr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sr||(Sr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($r||($r={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Nr||(Nr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ir||(Ir={}));const Cr={[Nr.PERSONAL_BOOK_SHARE_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.HTML_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.PDF_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.KHUB_ADMIN]:[Nr.CONTENT_PUBLISHER],[Nr.ADMIN]:[Nr.KHUB_ADMIN,Nr.USERS_ADMIN,Nr.PORTAL_ADMIN],[Nr.DEVELOPER]:[Nr.BETA_USER,Nr.DEBUG_USER]};function kr(t,e){return t===e||(Cr[t]??[]).some((t=>kr(t,e)))}function Er(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>kr(t,e)))}class Rr extends ki{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Er(null!==(e=null===(t=Ii.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ii.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Er(null!=e?e:[],Nr.FEEDBACK_USER);case s.RATING:return Er(null!=e?e:[],Nr.RATING_USER)&&null!=o&&o!==gr.NO_RATING;case s.PRINT:return Er(null!=e?e:[],Nr.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Er(null!=e?e:[],Nr.COLLECTION_USER);case s.PERSONAL_BOOKS:return Er(null!=e?e:[],Nr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Ur extends Rr{static async build(t){return new Ur(new lr,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Lr{static build(t,o){return new Lr((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=o?o:Ur.build)}constructor(t,o){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,o;this.store.getState().relatives&&(this.clusteringHelper=new e.ClusteringHelper(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(o=null===(t=Ii.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var o,i,r;const n=await e.waitFor((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),a=this.store.getState().mapId,s=await this.awaitService(),l=await s.getRelativesForTopicInMap(a,n,[t]);if(null===(r=null===(i=null===(o=null==l?void 0:l.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Wr=o.css`
|
|
1561
|
+
`;class Tr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Dr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ar extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class _r extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class zr extends Event{constructor(){super("ft-reader-map-not-found")}}class Br extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Fr extends Event{constructor(){super("ft-reader-map-forbidden")}}class Kr extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Zr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.mapLoadedEventDebouncer=new e.Debouncer(50),this.addStore(Ii)}render(){return o.html`
|
|
1562
1562
|
${this.importStyleIfNeeded()}
|
|
1563
1563
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1564
1564
|
`}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?o.nothing:o.html`
|
|
1565
1565
|
<style>
|
|
1566
1566
|
@import "${i}"
|
|
1567
1567
|
</style>
|
|
1568
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Lr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.
|
|
1568
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Lr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ar(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Dr(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Kr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new Br):403===e.status?this.dispatchEvent(new Fr):404===e.status?this.dispatchEvent(new zr):this.dispatchEvent(new _r(t))}reloadBookmarks(){Bi.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Tr(this.map,this.toc))}))}}var Pr;Mr.styles=Wr,Zr([e.redux({store:Ii.name})],Mr.prototype,"baseUrl",void 0),Zr([i.property()],Mr.prototype,"mapId",void 0),Zr([i.property()],Mr.prototype,"tocId",void 0),Zr([i.property()],Mr.prototype,"section",void 0),Zr([i.property()],Mr.prototype,"topicPivot",void 0),Zr([i.property()],Mr.prototype,"searchInDocumentQuery",void 0),Zr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Pr}})],Mr.prototype,"page",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"map",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"toc",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"visibleTopics",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"currentPage",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"scrollTarget",void 0),Zr([i.property({attribute:!1})],Mr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Mr);class Hr extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class jr extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class Gr extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class Vr extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class Yr extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var qr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xr extends(Pi(p)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Xi,Qi)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
|
|
1569
1569
|
<div class="ft-reader-feedback">
|
|
1570
1570
|
${this.hideTitle?o.nothing:o.html`
|
|
1571
1571
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1673,7 +1673,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1673
1673
|
${s}
|
|
1674
1674
|
</div>
|
|
1675
1675
|
</form>
|
|
1676
|
-
`}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Hr({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Xr.elementDefinitions={"ft-button":xi,"ft-typography":ke,"ft-switch":ei,"ft-switch-option":Qo,"ft-text-area":gi,"ft-text-field":or},Xr.styles=zt,qr([i.property({type:Boolean})],Xr.prototype,"editorMode",void 0),qr([i.property({type:Boolean})],Xr.prototype,"hideTitle",void 0),qr([i.property({type:Boolean})],Xr.prototype,"withMoreOptionsButton",void 0),qr([i.property({type:Boolean})],Xr.prototype,"ratingAllowed",void 0),qr([i.property({attribute:!1})],Xr.prototype,"i18nProperties",void 0),qr([i.property({attribute:!1})],Xr.prototype,"ratingSummary",void 0),qr([i.property({attribute:!1})],Xr.prototype,"session",void 0),qr([i.query(".ft-reader-feedback--feedback-input")],Xr.prototype,"feedbackInput",void 0),qr([i.state()],Xr.prototype,"from",void 0),qr([i.state()],Xr.prototype,"feedbackMessage",void 0),qr([i.property()],Xr.prototype,"iconVariant",void 0),qr([i.property()],Xr.prototype,"emptyStarIcon",void 0),qr([i.property()],Xr.prototype,"filledStarIcon",void 0),qr([i.property()],Xr.prototype,"emptyLikeIcon",void 0),qr([i.property()],Xr.prototype,"filledLikeIcon",void 0),qr([i.property()],Xr.prototype,"emptyDislikeIcon",void 0),qr([i.property()],Xr.prototype,"filledDislikeIcon",void 0),qr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Xr.prototype,"configuration",void 0),qr([i.property()],Xr.prototype,"feedbackMailLinkBuilder",void 0);const Qr=Yi.fromGwt("server");class Jr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${Qr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const tn=Yi.build("inDesignerFeedbackComponent"),en={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var on=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rn extends(Pi(p)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Jr,this.i18nProperties={feedbackMainTitle:Xi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Xi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Xi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Xi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(
|
|
1676
|
+
`}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Hr({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Xr.elementDefinitions={"ft-button":xi,"ft-typography":ke,"ft-switch":ei,"ft-switch-option":Qo,"ft-text-area":gi,"ft-text-field":or},Xr.styles=zt,qr([i.property({type:Boolean})],Xr.prototype,"editorMode",void 0),qr([i.property({type:Boolean})],Xr.prototype,"hideTitle",void 0),qr([i.property({type:Boolean})],Xr.prototype,"withMoreOptionsButton",void 0),qr([i.property({type:Boolean})],Xr.prototype,"ratingAllowed",void 0),qr([i.property({attribute:!1})],Xr.prototype,"i18nProperties",void 0),qr([i.property({attribute:!1})],Xr.prototype,"ratingSummary",void 0),qr([i.property({attribute:!1})],Xr.prototype,"session",void 0),qr([i.query(".ft-reader-feedback--feedback-input")],Xr.prototype,"feedbackInput",void 0),qr([i.state()],Xr.prototype,"from",void 0),qr([i.state()],Xr.prototype,"feedbackMessage",void 0),qr([i.property()],Xr.prototype,"iconVariant",void 0),qr([i.property()],Xr.prototype,"emptyStarIcon",void 0),qr([i.property()],Xr.prototype,"filledStarIcon",void 0),qr([i.property()],Xr.prototype,"emptyLikeIcon",void 0),qr([i.property()],Xr.prototype,"filledLikeIcon",void 0),qr([i.property()],Xr.prototype,"emptyDislikeIcon",void 0),qr([i.property()],Xr.prototype,"filledDislikeIcon",void 0),qr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Xr.prototype,"configuration",void 0),qr([i.property()],Xr.prototype,"feedbackMailLinkBuilder",void 0);const Qr=Yi.fromGwt("server");class Jr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${Qr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const tn=Yi.build("inDesignerFeedbackComponent"),en={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var on=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rn extends(Pi(p)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Jr,this.i18nProperties={feedbackMainTitle:Xi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Xi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Xi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Xi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ii)}render(){return o.html`
|
|
1677
1677
|
<ft-reader-feedback
|
|
1678
1678
|
ratingAllowed
|
|
1679
1679
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1695,7 +1695,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1695
1695
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1696
1696
|
@open-more-options=${this.openMoreOptions}
|
|
1697
1697
|
></ft-reader-feedback>
|
|
1698
|
-
`}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Yr)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Gr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||gr.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}rn.elementDefinitions={"ft-reader-feedback":Xr},on([e.redux({store:
|
|
1698
|
+
`}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Yr)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Gr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||gr.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}rn.elementDefinitions={"ft-reader-feedback":Xr},on([e.redux({store:Ii.name})],rn.prototype,"session",void 0),on([e.redux({store:"reader"})],rn.prototype,"map",void 0),on([e.redux({store:Ii.name})],rn.prototype,"editorMode",void 0),on([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rn.prototype,"configuration",void 0),on([i.state()],rn.prototype,"ratingSummary",void 0),on([i.property({type:Boolean})],rn.prototype,"hideTitle",void 0),on([i.property({type:Boolean})],rn.prototype,"withMoreOptionsButton",void 0),on([i.property()],rn.prototype,"iconVariant",void 0),on([i.property()],rn.prototype,"emptyStarIcon",void 0),on([i.property()],rn.prototype,"filledStarIcon",void 0),on([i.property()],rn.prototype,"emptyLikeIcon",void 0),on([i.property()],rn.prototype,"filledLikeIcon",void 0),on([i.property()],rn.prototype,"emptyDislikeIcon",void 0),on([i.property()],rn.prototype,"filledDislikeIcon",void 0),on([i.query("ft-reader-feedback")],rn.prototype,"readerFeedback",void 0),on([qi(Qr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],rn.prototype,"mailSubject",void 0),on([e.reduxEventListener({eventName:"rating-changed"})],rn.prototype,"fetchRatingSummary",null);var nn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class an extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const sn=Symbol("registerInterval");class ln extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[sn]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=sn,nn([i.state()],o.prototype,"tocNode",void 0),nn([i.state()],o.prototype,"disableContextInteractions",void 0),o}(p)){}var cn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dn extends(Pi(ln)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Jr,this.i18nProperties={feedbackMainTitle:Xi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Xi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Xi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Xi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ii)}render(){var t;return o.html`
|
|
1699
1699
|
<ft-reader-feedback
|
|
1700
1700
|
.i18nProperties=${this.i18nProperties}
|
|
1701
1701
|
?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
|
|
@@ -1717,4 +1717,4 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
|
|
|
1717
1717
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1718
1718
|
@open-more-options=${this.openMoreOptions}
|
|
1719
1719
|
></ft-reader-feedback>
|
|
1720
|
-
`}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new Vr(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new jr({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:gr.NO_RATING)||gr.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}dn.elementDefinitions={"ft-reader-feedback":Xr},cn([e.redux({store:
|
|
1720
|
+
`}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new Vr(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new jr({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:gr.NO_RATING)||gr.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}dn.elementDefinitions={"ft-reader-feedback":Xr},cn([e.redux({store:Ii.name})],dn.prototype,"session",void 0),cn([e.redux({store:"reader"})],dn.prototype,"map",void 0),cn([e.redux({store:Ii.name})],dn.prototype,"editorMode",void 0),cn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],dn.prototype,"configuration",void 0),cn([i.state()],dn.prototype,"ratingSummary",void 0),cn([i.property({type:Boolean})],dn.prototype,"hideTitle",void 0),cn([i.property({type:Boolean})],dn.prototype,"withMoreOptionsButton",void 0),cn([i.property()],dn.prototype,"iconVariant",void 0),cn([i.property()],dn.prototype,"emptyStarIcon",void 0),cn([i.property()],dn.prototype,"filledStarIcon",void 0),cn([i.property()],dn.prototype,"emptyLikeIcon",void 0),cn([i.property()],dn.prototype,"filledLikeIcon",void 0),cn([i.property()],dn.prototype,"emptyDislikeIcon",void 0),cn([i.property()],dn.prototype,"filledDislikeIcon",void 0),cn([i.query("ft-reader-feedback")],dn.prototype,"readerFeedback",void 0),cn([qi(Qr.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],dn.prototype,"mailSubject",void 0),cn([e.reduxEventListener({eventName:"rating-changed"})],dn.prototype,"fetchRatingSummary",null),e.customElement("ft-reader-map-feedback")(rn),e.customElement("ft-reader-topic-feedback")(dn),t.FtReaderFeedbackCssVariables=_t,t.FtReaderMapFeedback=rn,t.FtReaderTopicFeedback=dn,t.styles=zt}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
|