@fluid-topics/ft-reader-feedback 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-feedback.light.js +32 -32
- package/build/ft-reader-feedback.min.js +423 -418
- package/package.json +6 -6
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${p.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 $={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")},S={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","2rem"),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","600"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),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","600"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),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")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",$.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",$.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",$.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",$.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",$.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",$.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",$.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",$.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",$.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",$.colorCyan0),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",$.colorGreen0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$.colorGreen200),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",$.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",$.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",$.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for warning components.",$.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success components.",$.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for error components.",$.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for information components.",$.colorCyan30),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$.colorGray30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",$.colorGray50),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$.colorGray80)},k={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",$.spacing4),largeGap:O.extend("--ft-button-large-gap","",$.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",$.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",$.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","",$.spacing3),smallGap:O.extend("--ft-button-small-gap","",$.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",$.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",$.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","",$.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",$.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",$.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",$.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","",$.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",$.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",$.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",$.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","",$.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",$.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",$.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",$.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","",$.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",$.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",$.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",$.opacity40)};O.extend("--ft-tabs-top-left-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",$.spacing4),O.extend("--ft-tabs-label-vertical-padding","",$.spacing3),O.extend("--ft-tabs-label-gap","",$.spacing1),O.extend("--ft-switch-group-horizontal-padding","",$.spacing1),O.extend("--ft-switch-group-vertical-padding","",$.spacing1),O.extend("--ft-switch-group-gap","",$.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","",$.spacing2),O.extend("--ft-switch-label-vertical-padding","",$.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",$.spacing1),O.extend("--ft-switch-icon-vertical-padding","",$.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","",$.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",$.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",$.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-chart-1-light","for area color charts",$.colorBrand40),O.extend("--ft-chart-1-base","for line charts",$.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",$.colorYellow60),O.extend("--ft-chart-2-base","for line charts",$.colorYellow100),O.extend("--ft-chart-3-light","",$.colorUltramarine40),O.extend("--ft-chart-3-base","",$.colorUltramarine70),O.extend("--ft-chart-4-light","",$.colorCyan50),O.extend("--ft-chart-4-base","",$.colorCyan100),O.extend("--ft-chart-5-light","",$.colorRed40),O.extend("--ft-chart-5-base","",$.colorRed60),O.extend("--ft-chart-6-light","",$.colorGreen40),O.extend("--ft-chart-6-base","",$.colorGreen70),O.extend("--ft-chart-7-light","",$.colorOrange70),O.extend("--ft-chart-7-base","",$.colorOrange100),O.extend("--ft-chart-8-light","",$.colorAvocado70),O.extend("--ft-chart-8-base","",$.colorAvocado200),O.extend("--ft-chart-9-light","",$.colorBrown50),O.extend("--ft-chart-9-base","",$.colorBrown200),O.extend("--ft-chart-10-light","",$.colorGray50),O.extend("--ft-chart-10-base","",$.colorGray80),O.extend("--ft-chart-monochrome-10","",$.colorBrand10),O.extend("--ft-chart-monochrome-20","",$.colorBrand20),O.extend("--ft-chart-monochrome-30","",$.colorBrand40),O.extend("--ft-chart-monochrome-40","",$.colorBrand60),O.extend("--ft-chart-monochrome-50","",$.colorBrand0),O.extend("--ft-chart-monochrome-60","",$.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",$.spacing4),O.extend("--ft-chip-large-vertical-padding","",$.spacing2),O.extend("--ft-chip-large-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",$.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",$.spacing3),O.extend("--ft-chip-medium-vertical-padding","",$.spacing1),O.extend("--ft-chip-medium-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",$.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",$.spacing2),O.extend("--ft-chip-small-vertical-padding","",$.spacing05),O.extend("--ft-chip-small-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",$.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.borderInfoPrimary),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.borderSuccessPrimary),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.borderWarningPrimary),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.borderErrorPrimary),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",$.spacing2),O.extend("--ft-notice-vertical-padding","",$.spacing1),O.extend("--ft-notice-border-radius","",$.borderRadiusS),O.extend("--ft-notice-gap","",$.spacing2),O.extend("--ft-notice-icon-size","",$.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),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.borderWarningPrimary),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","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",$.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$.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","",$.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",$.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","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",$.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","",$.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","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",$.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",$.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",$.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","",$.spacing3),O.extend("--ft-notification-icon-size","",$.iconSize4),O.extend("--ft-notification-horizontal-padding","",$.spacing4),O.extend("--ft-notification-vertical-padding","",$.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.borderInfoPrimary),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.borderSuccessPrimary),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.borderWarningPrimary),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.borderErrorPrimary),O.extend("--ft-notification-border-radius","",$.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",$.spacing2),O.extend("--ft-notification-gap-trailing","",$.spacing8);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),I=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),R={fontFamily:I,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")},E={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",R.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",R.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",R.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",R.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",R.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",R.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",R.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",R.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",I),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",R.fontSize,"16px"),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",R.fontWeight,"600"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",R.letterSpacing,"0.144px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",R.lineHeight,"1.5"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",R.textTransform,"inherit"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",I),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",R.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",R.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",R.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",R.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",R.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",R.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",R.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",R.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",R.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",I),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",R.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",R.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",R.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",R.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",R.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",R.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",R.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",R.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",R.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",R.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",R.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",R.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",R.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",R.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",I),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",R.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",R.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",R.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",R.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",R.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",R.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",R.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",R.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",R.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",R.textTransform,"uppercase")},ft=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 $={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")},S={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","2rem"),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","600"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),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","600"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),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")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",$.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",$.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",$.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",$.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",$.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",$.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",$.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",$.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",$.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",$.colorCyan0),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",$.colorGreen0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$.colorGreen200),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",$.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",$.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",$.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for warning components.",$.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success components.",$.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for error components.",$.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for information components.",$.colorCyan30),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$.colorGray30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",$.colorGray50),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$.colorGray80)},k={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",$.spacing4),largeGap:O.extend("--ft-button-large-gap","",$.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",$.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",$.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","",$.spacing3),smallGap:O.extend("--ft-button-small-gap","",$.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",$.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",$.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","",$.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",$.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",$.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",$.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","",$.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",$.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",$.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",$.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","",$.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",$.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",$.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",$.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","",$.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",$.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",$.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",$.opacity40)};O.extend("--ft-tabs-top-left-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",$.spacing4),O.extend("--ft-tabs-label-vertical-padding","",$.spacing3),O.extend("--ft-tabs-label-gap","",$.spacing1),O.extend("--ft-switch-group-horizontal-padding","",$.spacing1),O.extend("--ft-switch-group-vertical-padding","",$.spacing1),O.extend("--ft-switch-group-gap","",$.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","",$.spacing2),O.extend("--ft-switch-label-vertical-padding","",$.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",$.spacing1),O.extend("--ft-switch-icon-vertical-padding","",$.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","",$.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",$.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",$.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-chart-1-light","for area color charts",$.colorBrand40),O.extend("--ft-chart-1-base","for line charts",$.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",$.colorYellow60),O.extend("--ft-chart-2-base","for line charts",$.colorYellow100),O.extend("--ft-chart-3-light","",$.colorUltramarine40),O.extend("--ft-chart-3-base","",$.colorUltramarine70),O.extend("--ft-chart-4-light","",$.colorCyan50),O.extend("--ft-chart-4-base","",$.colorCyan100),O.extend("--ft-chart-5-light","",$.colorRed40),O.extend("--ft-chart-5-base","",$.colorRed60),O.extend("--ft-chart-6-light","",$.colorGreen40),O.extend("--ft-chart-6-base","",$.colorGreen70),O.extend("--ft-chart-7-light","",$.colorOrange70),O.extend("--ft-chart-7-base","",$.colorOrange100),O.extend("--ft-chart-8-light","",$.colorAvocado70),O.extend("--ft-chart-8-base","",$.colorAvocado200),O.extend("--ft-chart-9-light","",$.colorBrown50),O.extend("--ft-chart-9-base","",$.colorBrown200),O.extend("--ft-chart-10-light","",$.colorGray50),O.extend("--ft-chart-10-base","",$.colorGray80),O.extend("--ft-chart-monochrome-10","",$.colorBrand10),O.extend("--ft-chart-monochrome-20","",$.colorBrand20),O.extend("--ft-chart-monochrome-30","",$.colorBrand40),O.extend("--ft-chart-monochrome-40","",$.colorBrand60),O.extend("--ft-chart-monochrome-50","",$.colorBrand0),O.extend("--ft-chart-monochrome-60","",$.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",$.spacing4),O.extend("--ft-chip-large-vertical-padding","",$.spacing2),O.extend("--ft-chip-large-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",$.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",$.spacing3),O.extend("--ft-chip-medium-vertical-padding","",$.spacing1),O.extend("--ft-chip-medium-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",$.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",$.spacing2),O.extend("--ft-chip-small-vertical-padding","",$.spacing05),O.extend("--ft-chip-small-gap","",$.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","",$.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",$.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.borderInfoPrimary),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.borderSuccessPrimary),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.borderWarningPrimary),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.borderErrorPrimary),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",$.spacing2),O.extend("--ft-notice-vertical-padding","",$.spacing1),O.extend("--ft-notice-border-radius","",$.borderRadiusS),O.extend("--ft-notice-gap","",$.spacing2),O.extend("--ft-notice-icon-size","",$.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),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.borderWarningPrimary),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","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",$.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$.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","",$.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",$.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","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",$.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","",$.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","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",$.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",$.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",$.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","",$.spacing3),O.extend("--ft-notification-icon-size","",$.iconSize4),O.extend("--ft-notification-horizontal-padding","",$.spacing4),O.extend("--ft-notification-vertical-padding","",$.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.borderInfoPrimary),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.borderSuccessPrimary),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.borderWarningPrimary),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.borderErrorPrimary),O.extend("--ft-notification-border-radius","",$.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",$.spacing2),O.extend("--ft-notification-gap-trailing","",$.spacing8);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),I=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),R={fontFamily:I,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")},E={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",R.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",R.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",R.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",R.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",R.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",R.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",R.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",R.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",I),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",R.fontSize,"16px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",R.fontWeight,"600"),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",R.letterSpacing,"0.144px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",R.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",R.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",I),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",R.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",R.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",R.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",R.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",R.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",R.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",R.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",R.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",R.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",I),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",R.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",R.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",R.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",R.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",R.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",R.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",R.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",R.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",R.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",R.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",R.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",R.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",R.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",R.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",R.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",I),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",R.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",R.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",R.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",R.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",R.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",R.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",R.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",R.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",R.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",R.textTransform,"uppercase")},ft=o.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${E.fontFamily};
|
|
116
116
|
font-size: ${E.fontSize};
|
|
@@ -132,14 +132,14 @@
|
|
|
132
132
|
.ft-typography--subtitle1 {
|
|
133
133
|
font-family: ${L};
|
|
134
134
|
font-size: ${T};
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
135
|
+
font-weight: ${_};
|
|
136
|
+
letter-spacing: ${W};
|
|
137
137
|
line-height: ${D};
|
|
138
|
-
text-transform: ${
|
|
138
|
+
text-transform: ${A};
|
|
139
139
|
}
|
|
140
140
|
`,ut=o.css`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
|
-
font-family: ${
|
|
142
|
+
font-family: ${z};
|
|
143
143
|
font-size: ${B};
|
|
144
144
|
font-weight: ${F};
|
|
145
145
|
letter-spacing: ${K};
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
.ft-icon--material {
|
|
332
332
|
font-family: ${Nt.materialFontFamily}, "Material Icons", sans-serif;
|
|
333
333
|
}
|
|
334
|
-
`,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),It={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")},Rt=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Et={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Rt,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Rt)},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"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),
|
|
334
|
+
`,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),It={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")},Rt=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Et={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Rt,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Rt)},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"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),_t=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Wt=[o.css`
|
|
335
335
|
:host {
|
|
336
336
|
display: inline-block;
|
|
337
337
|
max-width: 100%;
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
.ft-button.ft-button--dense {
|
|
392
392
|
padding: ${Lt} ${Tt};
|
|
393
393
|
border-radius: ${Ut};
|
|
394
|
-
gap: ${
|
|
394
|
+
gap: ${_t};
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
.ft-button--dense .ft-button--label {
|
|
440
|
-
margin: 0 ${
|
|
440
|
+
margin: 0 ${_t};
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
.ft-button--label[hidden] {
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
${e.setVariable($t.size,It.iconSize)};
|
|
469
469
|
${e.setVariable($t.color,"var(--ft-button-internal-color)")};
|
|
470
470
|
}
|
|
471
|
-
`,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},
|
|
471
|
+
`,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(E.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography")},zt=o.css`
|
|
472
472
|
.ft-reader-feedback {
|
|
473
473
|
box-sizing: border-box;
|
|
474
474
|
display: flex;
|
|
@@ -514,14 +514,14 @@
|
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
.ft-reader-feedback--rating {
|
|
517
|
-
${e.setVariable(It.color,
|
|
518
|
-
${e.setVariable(It.rippleColor,
|
|
519
|
-
${e.setVariable(Dt.textColor,
|
|
520
|
-
${e.setVariable(Dt.selectedTextColor,
|
|
517
|
+
${e.setVariable(It.color,At.emptyRatingColor)};
|
|
518
|
+
${e.setVariable(It.rippleColor,At.filledRatingColor)};
|
|
519
|
+
${e.setVariable(Dt.textColor,At.emptyRatingColor)};
|
|
520
|
+
${e.setVariable(Dt.selectedTextColor,At.filledRatingColor)};
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
524
|
-
${e.setVariable(It.color,
|
|
524
|
+
${e.setVariable(It.color,At.filledRatingColor)};
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
.ft-reader-feedback--feedback {
|
|
@@ -529,30 +529,30 @@
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ft-reader-feedback--rating-date {
|
|
532
|
-
color: ${
|
|
532
|
+
color: ${At.ratedDateColor};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ft-reader-feedback--feedback ft-text-area {
|
|
536
|
-
min-width: ${
|
|
536
|
+
min-width: ${At.feedbackInputMinWidth};
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
540
540
|
align-self: flex-end;
|
|
541
|
-
${e.setVariable(It.color,
|
|
542
|
-
${e.setVariable(It.backgroundColor,
|
|
541
|
+
${e.setVariable(It.color,At.sendFeedbackColor)};
|
|
542
|
+
${e.setVariable(It.backgroundColor,At.sendFeedbackBackgroundColor)};
|
|
543
543
|
}
|
|
544
|
-
`;var Bt,Ft,Kt,Zt,Pt,Mt,Ht,jt,Gt,Vt,Yt,qt,Xt,Qt;!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 f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){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=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(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(f)}),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})},p.call(g.prototype),p.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"}(Bt||(Bt={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ft||(Ft={})),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"}(Kt||(Kt={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Zt||(Zt={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Pt||(Pt={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Mt||(Mt={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ht||(Ht={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(jt||(jt={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Gt||(Gt={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Vt||(Vt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Yt||(Yt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(qt||(qt={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Xt||(Xt={})),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.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"}(Qt||(Qt={}));const Jt={[Qt.PERSONAL_BOOK_SHARE_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.HTML_EXPORT_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.PDF_EXPORT_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.KHUB_ADMIN]:[Qt.CONTENT_PUBLISHER],[Qt.ADMIN]:[Qt.KHUB_ADMIN,Qt.USERS_ADMIN,Qt.PORTAL_ADMIN],[Qt.DEVELOPER]:[Qt.BETA_USER,Qt.DEBUG_USER]};function te(t,e){return t===e||(Jt[t]??[]).some((t=>te(t,e)))}function ee(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=>te(t,e)))}
|
|
544
|
+
`;var Bt,Ft,Kt,Zt,Pt,Mt,Ht,jt,Gt,Vt,Yt,qt,Xt,Qt;!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 f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){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=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(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(f)}),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})},p.call(g.prototype),p.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"}(Bt||(Bt={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ft||(Ft={})),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"}(Kt||(Kt={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Zt||(Zt={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Pt||(Pt={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Mt||(Mt={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ht||(Ht={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(jt||(jt={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Gt||(Gt={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Vt||(Vt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Yt||(Yt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(qt||(qt={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Xt||(Xt={})),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.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"}(Qt||(Qt={}));const Jt={[Qt.PERSONAL_BOOK_SHARE_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.HTML_EXPORT_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.PDF_EXPORT_USER]:[Qt.PERSONAL_BOOK_USER],[Qt.KHUB_ADMIN]:[Qt.CONTENT_PUBLISHER],[Qt.ADMIN]:[Qt.KHUB_ADMIN,Qt.USERS_ADMIN,Qt.PORTAL_ADMIN],[Qt.DEVELOPER]:[Qt.BETA_USER,Qt.DEBUG_USER]};function te(t,e){return t===e||(Jt[t]??[]).some((t=>te(t,e)))}function ee(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=>te(t,e)))}
|
|
545
545
|
/**
|
|
546
546
|
* @license
|
|
547
547
|
* Copyright 2017 Google LLC
|
|
548
548
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
549
|
-
*/const oe=globalThis,ie=oe.trustedTypes,re=ie?ie.createPolicy("lit-html",{createHTML:t=>t}):void 0,ne="$lit$",ae=`lit$${(Math.random()+"").slice(9)}$`,se="?"+ae,le=`<${se}>`,ce=document,de=()=>ce.createComment(""),fe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,he=Array.isArray,pe="[ \t\n\f\r]",ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ge=/-->/g,ye=/>/g,be=RegExp(`>|${pe}(?:([^\\s"'>=/]+)(${pe}*=${pe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),me=/'/g,ve=/"/g,xe=/^(?:script|style|textarea|title)$/i,we=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Oe=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),Se=new WeakMap,Ne=ce.createTreeWalker(ce,129);function ke(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==re?re.createHTML(e):e}const Ce=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=ue;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===ue?"!--"===l[1]?a=ge:void 0!==l[1]?a=ye:void 0!==l[2]?(xe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=be):void 0!==l[3]&&(a=be):a===be?">"===l[0]?(a=r??ue,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?be:'"'===l[3]?ve:me):a===ve||a===me?a=be:a===ge||a===ye?a=ue:(a=be,r=void 0);const f=a===be&&t[e+1].startsWith("/>")?" ":"";n+=a===ue?o+le:c>=0?(i.push(s),o.slice(0,c)+ne+o.slice(c)+ae+f):o+ae+(-2===c?e:f)}return[ke(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class Ie{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=Ce(t,e);if(this.el=Ie.createElement(l,o),Ne.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ne.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(ne)){const e=c[n++],o=i.getAttribute(t).split(ae),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?Te:"?"===a[1]?
|
|
549
|
+
*/const oe=globalThis,ie=oe.trustedTypes,re=ie?ie.createPolicy("lit-html",{createHTML:t=>t}):void 0,ne="$lit$",ae=`lit$${(Math.random()+"").slice(9)}$`,se="?"+ae,le=`<${se}>`,ce=document,de=()=>ce.createComment(""),fe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,he=Array.isArray,pe="[ \t\n\f\r]",ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ge=/-->/g,ye=/>/g,be=RegExp(`>|${pe}(?:([^\\s"'>=/]+)(${pe}*=${pe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),me=/'/g,ve=/"/g,xe=/^(?:script|style|textarea|title)$/i,we=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Oe=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),Se=new WeakMap,Ne=ce.createTreeWalker(ce,129);function ke(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==re?re.createHTML(e):e}const Ce=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=ue;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===ue?"!--"===l[1]?a=ge:void 0!==l[1]?a=ye:void 0!==l[2]?(xe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=be):void 0!==l[3]&&(a=be):a===be?">"===l[0]?(a=r??ue,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?be:'"'===l[3]?ve:me):a===ve||a===me?a=be:a===ge||a===ye?a=ue:(a=be,r=void 0);const f=a===be&&t[e+1].startsWith("/>")?" ":"";n+=a===ue?o+le:c>=0?(i.push(s),o.slice(0,c)+ne+o.slice(c)+ae+f):o+ae+(-2===c?e:f)}return[ke(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class Ie{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=Ce(t,e);if(this.el=Ie.createElement(l,o),Ne.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ne.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(ne)){const e=c[n++],o=i.getAttribute(t).split(ae),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?Te:"?"===a[1]?_e:"@"===a[1]?We:Le}),i.removeAttribute(t)}else t.startsWith(ae)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(xe.test(i.tagName)){const t=i.textContent.split(ae),e=t.length-1;if(e>0){i.textContent=ie?ie.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],de()),Ne.nextNode(),s.push({type:2,index:++r});i.append(t[e],de())}}}else if(8===i.nodeType)if(i.data===se)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(ae,t+1));)s.push({type:7,index:r}),t+=ae.length-1}r++}}static createElement(t,e){const o=ce.createElement("template");return o.innerHTML=t,o}}function Re(t,e,o=t,i){if(e===Oe)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=fe(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Re(t,r._$AS(t,e.values),r,i)),e}class Ee{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??ce).importNode(e,!0);Ne.currentNode=i;let r=Ne.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new Ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new De(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=Ne.nextNode(),n++)}return Ne.currentNode=ce,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class Ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Re(this,t,e),fe(t)?t===$e||null==t||""===t?(this._$AH!==$e&&this._$AR(),this._$AH=$e):t!==this._$AH&&t!==Oe&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>he(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$e&&fe(this._$AH)?this._$AA.nextSibling.data=t:this.$(ce.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Ie.createElement(ke(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Ee(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=Se.get(t.strings);return void 0===e&&Se.set(t.strings,e=new Ie(t)),e}T(t){he(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new Ue(this.k(de()),this.k(de()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=$e,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=$e}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Re(this,t,e,0),n=!fe(t)||t!==this._$AH&&t!==Oe,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Re(this,i[o+a],e,a),s===Oe&&(s=this._$AH[a]),n||=!fe(s)||s!==this._$AH[a],s===$e?t=$e:t!==$e&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Te extends Le{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===$e?void 0:t}}class _e extends Le{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==$e)}}class We extends Le{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Re(this,t,e,0)??$e)===Oe)return;const o=this._$AH,i=t===$e&&o!==$e||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==$e&&(o===$e||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class De{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Re(this,t)}}const Ae=oe.litHtmlPolyfillSupport;Ae?.(Ie,Ue),(oe.litHtmlVersions??=[]).push("3.1.0");
|
|
550
550
|
/**
|
|
551
551
|
* @license
|
|
552
552
|
* Copyright 2020 Google LLC
|
|
553
553
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
554
554
|
*/
|
|
555
|
-
const
|
|
555
|
+
const ze=Symbol.for(""),Be=t=>{if(t?.r===ze)return t?._$litStatic$},Fe=t=>({_$litStatic$:t,r:ze}),Ke=new Map,Ze=(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=Be(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=Ke.get(t))&&(a.raw=a,Ke.set(t,e=a)),o=s}return t(e,...o)})(we);var Pe;!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"}(Pe||(Pe={}));var Me,He,je,Ge=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 Ve extends e.FtLitElement{constructor(){super(...arguments),this.variant=Pe.body1}render(){return this.element?Ze`
|
|
556
556
|
<${Fe(this.element)}
|
|
557
557
|
class="ft-typography ft-typography--${this.variant}">
|
|
558
558
|
<slot></slot>
|
|
@@ -593,7 +593,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
593
593
|
position: relative;
|
|
594
594
|
word-break: break-word;
|
|
595
595
|
}
|
|
596
|
-
`,ro=["start","end"],no=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ro[0],e+"-"+ro[1])),[]),ao=Math.min,so=Math.max,lo=Math.round,co=t=>({x:t,y:t}),fo={left:"right",right:"left",bottom:"top",top:"bottom"},ho={start:"end",end:"start"};function po(t,e,o){return so(t,ao(e,o))}function uo(t,e){return"function"==typeof t?t(e):t}function go(t){return t.split("-")[0]}function yo(t){return t.split("-")[1]}function bo(t){return"x"===t?"y":"x"}function mo(t){return"y"===t?"height":"width"}function vo(t){return["top","bottom"].includes(go(t))?"y":"x"}function xo(t){return bo(vo(t))}function wo(t){return t.replace(/left|right|bottom|top/g,(t=>fo[t]))}function Oo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function $o(t,e,o){let{reference:i,floating:r}=t;const n=vo(e),a=xo(e),s=mo(a),l=go(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:d,y:i.y-r.height};break;case"bottom":p={x:d,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-r.width,y:f};break;default:p={x:i.x,y:i.y}}switch(yo(e)){case"start":p[a]-=h*(o&&c?-1:1);break;case"end":p[a]+=h*(o&&c?-1:1)}return p}async function So(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:f="floating",altBoundary:h=!1,padding:p=0}=uo(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}}(p),g=s[h?"floating"===f?"reference":"floating":f],y=Oo(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"===f?{...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=Oo(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 No(t,e,o){return(t?[...o.filter((e=>yo(e)===t)),...o.filter((e=>yo(e)!==t))]:o.filter((t=>go(t)===t))).filter((o=>!t||(yo(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ho[t]))}(o)!==o)))}const ko=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:f,allowedPlacements:h=no,autoAlignment:p=!0,...u}=uo(t,e),g=void 0!==f||h===no?No(f||null,p,h):h,y=await So(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=yo(t),r=xo(t),n=mo(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=wo(a)),[a,wo(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[go(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 $=w.map((t=>{const e=yo(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,yo(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=S[0])?void 0:r[0])||$[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Co(t){return Eo(t)?(t.nodeName||"").toLowerCase():"#document"}function Io(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ro(t){var e;return null==(e=(Eo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Eo(t){return t instanceof Node||t instanceof Io(t).Node}function Uo(t){return t instanceof Element||t instanceof Io(t).Element}function Lo(t){return t instanceof HTMLElement||t instanceof Io(t).HTMLElement}function To(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Io(t).ShadowRoot)}function Wo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Bo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function _o(t){return["table","td","th"].includes(Co(t))}function Do(t){const e=zo(),o=Bo(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 zo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ao(t){return["html","body","#document"].includes(Co(t))}function Bo(t){return Io(t).getComputedStyle(t)}function Fo(t){return Uo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ko(t){if("html"===Co(t))return t;const e=t.assignedSlot||t.parentNode||To(t)&&t.host||Ro(t);return To(e)?e.host:e}function Zo(t){const e=Ko(t);return Ao(e)?t.ownerDocument?t.ownerDocument.body:t.body:Lo(e)&&Wo(e)?e:Zo(e)}function Po(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Zo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Io(r);return n?e.concat(a,a.visualViewport||[],Wo(r)?r:[],a.frameElement&&o?Po(a.frameElement):[]):e.concat(r,Po(r,[],o))}function Mo(t){const e=Bo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Lo(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=lo(o)!==n||lo(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function Ho(t){return Uo(t)?t:t.contextElement}function jo(t){const e=Ho(t);if(!Lo(e))return co(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Mo(e);let a=(n?lo(o.width):o.width)/i,s=(n?lo(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Go=co(0);function Vo(t){const e=Io(t);return zo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Go}function Yo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Ho(t);let a=co(1);e&&(i?Uo(i)&&(a=jo(i)):a=jo(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Io(t))&&e}(n,o,i)?Vo(n):co(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=Io(n),e=i&&Uo(i)?Io(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=jo(o),e=o.getBoundingClientRect(),i=Bo(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,f*=t.y,l+=r,c+=n,o=Io(o).frameElement}}return Oo({width:d,height:f,x:l,y:c})}function qo(t){return Yo(Ro(t)).left+Fo(t).scrollLeft}function Xo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Io(t),i=Ro(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=zo();(!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=Ro(t),o=Fo(t),i=t.ownerDocument.body,r=so(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=so(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+qo(t);const s=-o.scrollTop;return"rtl"===Bo(i).direction&&(a+=so(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ro(t));else if(Uo(e))i=function(t,e){const o=Yo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Lo(t)?jo(t):co(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=Vo(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Oo(i)}function Qo(t,e){const o=Ko(t);return!(o===e||!Uo(o)||Ao(o))&&("fixed"===Bo(o).position||Qo(o,e))}function Jo(t,e,o){const i=Lo(e),r=Ro(e),n="fixed"===o,a=Yo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=co(0);if(i||!i&&!n)if(("body"!==Co(e)||Wo(r))&&(s=Fo(e)),i){const t=Yo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=qo(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ti(t,e){return Lo(t)&&"fixed"!==Bo(t).position?e?e(t):t.offsetParent:null}function ei(t,e){const o=Io(t);if(!Lo(t))return o;let i=ti(t,e);for(;i&&_o(i)&&"static"===Bo(i).position;)i=ti(i,e);return i&&("html"===Co(i)||"body"===Co(i)&&"static"===Bo(i).position&&!Do(i))?o:i||function(t){let e=Ko(t);for(;Lo(e)&&!Ao(e);){if(Do(e))return e;e=Ko(e)}return null}(t)||o}const oi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Lo(o),n=Ro(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=co(1);const l=co(0);if((r||!r&&"fixed"!==i)&&(("body"!==Co(o)||Wo(n))&&(a=Fo(o)),Lo(o))){const t=Yo(o);s=jo(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:Ro,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=Po(t,[],!1).filter((t=>Uo(t)&&"body"!==Co(t))),r=null;const n="fixed"===Bo(t).position;let a=n?Ko(t):t;for(;Uo(a)&&!Ao(a);){const e=Bo(a),o=Do(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Wo(a)&&!o&&Qo(t,a))?i=i.filter((t=>t!==a)):r=e,a=Ko(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=Xo(e,o,r);return t.top=so(i.top,t.top),t.right=ao(i.right,t.right),t.bottom=ao(i.bottom,t.bottom),t.left=so(i.left,t.left),t}),Xo(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ei,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||ei,n=this.getDimensions;return{reference:Jo(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 Mo(t)},getScale:jo,isElement:Uo,isRTL:function(t){return"rtl"===Bo(t).direction}},ii=(t,e,o)=>{const i=new Map,r={platform:oi,...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:f}=$o(c,i,l),h=i,p={},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:f,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,f=null!=b?b:f,p={...p,[n]:{...p[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=$o(c,h,l))),o=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var ri=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 ni 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`
|
|
596
|
+
`,ro=["start","end"],no=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ro[0],e+"-"+ro[1])),[]),ao=Math.min,so=Math.max,lo=Math.round,co=t=>({x:t,y:t}),fo={left:"right",right:"left",bottom:"top",top:"bottom"},ho={start:"end",end:"start"};function po(t,e,o){return so(t,ao(e,o))}function uo(t,e){return"function"==typeof t?t(e):t}function go(t){return t.split("-")[0]}function yo(t){return t.split("-")[1]}function bo(t){return"x"===t?"y":"x"}function mo(t){return"y"===t?"height":"width"}function vo(t){return["top","bottom"].includes(go(t))?"y":"x"}function xo(t){return bo(vo(t))}function wo(t){return t.replace(/left|right|bottom|top/g,(t=>fo[t]))}function Oo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function $o(t,e,o){let{reference:i,floating:r}=t;const n=vo(e),a=xo(e),s=mo(a),l=go(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:d,y:i.y-r.height};break;case"bottom":p={x:d,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-r.width,y:f};break;default:p={x:i.x,y:i.y}}switch(yo(e)){case"start":p[a]-=h*(o&&c?-1:1);break;case"end":p[a]+=h*(o&&c?-1:1)}return p}async function So(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:f="floating",altBoundary:h=!1,padding:p=0}=uo(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}}(p),g=s[h?"floating"===f?"reference":"floating":f],y=Oo(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"===f?{...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=Oo(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 No(t,e,o){return(t?[...o.filter((e=>yo(e)===t)),...o.filter((e=>yo(e)!==t))]:o.filter((t=>go(t)===t))).filter((o=>!t||(yo(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ho[t]))}(o)!==o)))}const ko=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:f,allowedPlacements:h=no,autoAlignment:p=!0,...u}=uo(t,e),g=void 0!==f||h===no?No(f||null,p,h):h,y=await So(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=yo(t),r=xo(t),n=mo(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=wo(a)),[a,wo(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[go(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 $=w.map((t=>{const e=yo(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,yo(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=S[0])?void 0:r[0])||$[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Co(t){return Eo(t)?(t.nodeName||"").toLowerCase():"#document"}function Io(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ro(t){var e;return null==(e=(Eo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Eo(t){return t instanceof Node||t instanceof Io(t).Node}function Uo(t){return t instanceof Element||t instanceof Io(t).Element}function Lo(t){return t instanceof HTMLElement||t instanceof Io(t).HTMLElement}function To(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Io(t).ShadowRoot)}function _o(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Bo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Wo(t){return["table","td","th"].includes(Co(t))}function Do(t){const e=Ao(),o=Bo(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 Ao(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zo(t){return["html","body","#document"].includes(Co(t))}function Bo(t){return Io(t).getComputedStyle(t)}function Fo(t){return Uo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ko(t){if("html"===Co(t))return t;const e=t.assignedSlot||t.parentNode||To(t)&&t.host||Ro(t);return To(e)?e.host:e}function Zo(t){const e=Ko(t);return zo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Lo(e)&&_o(e)?e:Zo(e)}function Po(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Zo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Io(r);return n?e.concat(a,a.visualViewport||[],_o(r)?r:[],a.frameElement&&o?Po(a.frameElement):[]):e.concat(r,Po(r,[],o))}function Mo(t){const e=Bo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Lo(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=lo(o)!==n||lo(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function Ho(t){return Uo(t)?t:t.contextElement}function jo(t){const e=Ho(t);if(!Lo(e))return co(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Mo(e);let a=(n?lo(o.width):o.width)/i,s=(n?lo(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Go=co(0);function Vo(t){const e=Io(t);return Ao()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Go}function Yo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Ho(t);let a=co(1);e&&(i?Uo(i)&&(a=jo(i)):a=jo(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Io(t))&&e}(n,o,i)?Vo(n):co(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=Io(n),e=i&&Uo(i)?Io(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=jo(o),e=o.getBoundingClientRect(),i=Bo(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,f*=t.y,l+=r,c+=n,o=Io(o).frameElement}}return Oo({width:d,height:f,x:l,y:c})}function qo(t){return Yo(Ro(t)).left+Fo(t).scrollLeft}function Xo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Io(t),i=Ro(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=Ao();(!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=Ro(t),o=Fo(t),i=t.ownerDocument.body,r=so(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=so(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+qo(t);const s=-o.scrollTop;return"rtl"===Bo(i).direction&&(a+=so(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ro(t));else if(Uo(e))i=function(t,e){const o=Yo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Lo(t)?jo(t):co(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=Vo(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Oo(i)}function Qo(t,e){const o=Ko(t);return!(o===e||!Uo(o)||zo(o))&&("fixed"===Bo(o).position||Qo(o,e))}function Jo(t,e,o){const i=Lo(e),r=Ro(e),n="fixed"===o,a=Yo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=co(0);if(i||!i&&!n)if(("body"!==Co(e)||_o(r))&&(s=Fo(e)),i){const t=Yo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=qo(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ti(t,e){return Lo(t)&&"fixed"!==Bo(t).position?e?e(t):t.offsetParent:null}function ei(t,e){const o=Io(t);if(!Lo(t))return o;let i=ti(t,e);for(;i&&Wo(i)&&"static"===Bo(i).position;)i=ti(i,e);return i&&("html"===Co(i)||"body"===Co(i)&&"static"===Bo(i).position&&!Do(i))?o:i||function(t){let e=Ko(t);for(;Lo(e)&&!zo(e);){if(Do(e))return e;e=Ko(e)}return null}(t)||o}const oi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Lo(o),n=Ro(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=co(1);const l=co(0);if((r||!r&&"fixed"!==i)&&(("body"!==Co(o)||_o(n))&&(a=Fo(o)),Lo(o))){const t=Yo(o);s=jo(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:Ro,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=Po(t,[],!1).filter((t=>Uo(t)&&"body"!==Co(t))),r=null;const n="fixed"===Bo(t).position;let a=n?Ko(t):t;for(;Uo(a)&&!zo(a);){const e=Bo(a),o=Do(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||_o(a)&&!o&&Qo(t,a))?i=i.filter((t=>t!==a)):r=e,a=Ko(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=Xo(e,o,r);return t.top=so(i.top,t.top),t.right=ao(i.right,t.right),t.bottom=ao(i.bottom,t.bottom),t.left=so(i.left,t.left),t}),Xo(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ei,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||ei,n=this.getDimensions;return{reference:Jo(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 Mo(t)},getScale:jo,isElement:Uo,isRTL:function(t){return"rtl"===Bo(t).direction}},ii=(t,e,o)=>{const i=new Map,r={platform:oi,...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:f}=$o(c,i,l),h=i,p={},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:f,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,f=null!=b?b:f,p={...p,[n]:{...p[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=$o(c,h,l))),o=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var ri=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 ni 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`
|
|
597
597
|
<div part="container"
|
|
598
598
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
599
599
|
@mouseenter=${this.onHover}
|
|
@@ -611,7 +611,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
611
611
|
</div>
|
|
612
612
|
</div>
|
|
613
613
|
</div>
|
|
614
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ii(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=uo(t,e),c={x:o,y:i},d=await So(e,l),f=vo(go(r)),h=bo(f);let p=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";p=po(p+d["y"===h?"top":"left"],p,p-d[t])}if(a){const t="y"===f?"bottom":"right";u=po(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...e,[h]:p,[f]:u});return{...g,data:{x:g.x-o,y:g.y-i}}}}),ko({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ni.elementDefinitions={"ft-typography":Ve},ni.styles=io,ri([i.property()],ni.prototype,"text",void 0),ri([i.property({type:Boolean})],ni.prototype,"manual",void 0),ri([i.property({type:Boolean})],ni.prototype,"inline",void 0),ri([i.property({type:Number})],ni.prototype,"delay",void 0),ri([i.property()],ni.prototype,"position",void 0),ri([i.queryAssignedNodes()],ni.prototype,"slotNodes",void 0),ri([i.query(".ft-tooltip--container")],ni.prototype,"container",void 0),ri([i.query(".ft-tooltip")],ni.prototype,"tooltip",void 0),ri([i.query(".ft-tooltip--content")],ni.prototype,"tooltipContent",void 0),ri([i.state()],ni.prototype,"visible",void 0),e.customElement("ft-tooltip")(ni);var ai=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 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`
|
|
614
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ii(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=uo(t,e),c={x:o,y:i},d=await So(e,l),f=vo(go(r)),h=bo(f);let p=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";p=po(p+d["y"===h?"top":"left"],p,p-d[t])}if(a){const t="y"===f?"bottom":"right";u=po(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...e,[h]:p,[f]:u});return{...g,data:{x:g.x-o,y:g.y-i}}}}),ko({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ni.elementDefinitions={"ft-typography":Ve},ni.styles=io,ri([i.property()],ni.prototype,"text",void 0),ri([i.property({type:Boolean})],ni.prototype,"manual",void 0),ri([i.property({type:Boolean})],ni.prototype,"inline",void 0),ri([i.property({type:Number})],ni.prototype,"delay",void 0),ri([i.property()],ni.prototype,"position",void 0),ri([i.queryAssignedNodes()],ni.prototype,"slotNodes",void 0),ri([i.query(".ft-tooltip--container")],ni.prototype,"container",void 0),ri([i.query(".ft-tooltip")],ni.prototype,"tooltip",void 0),ri([i.query(".ft-tooltip--content")],ni.prototype,"tooltipContent",void 0),ri([i.state()],ni.prototype,"visible",void 0),ri([i.eventOptions({passive:!0})],ni.prototype,"onTouch",null),ri([i.eventOptions({passive:!0})],ni.prototype,"onHover",null),ri([i.eventOptions({passive:!0})],ni.prototype,"onOut",null),e.customElement("ft-tooltip")(ni);var ai=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 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`
|
|
615
615
|
<style>
|
|
616
616
|
.ft-ripple .ft-ripple--effect {
|
|
617
617
|
left: ${this.originX}px;
|
|
@@ -622,7 +622,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
622
622
|
<div class="ft-ripple--background"></div>
|
|
623
623
|
<div class="ft-ripple--effect"></div>
|
|
624
624
|
</div>
|
|
625
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}si.elementDefinitions={},si.styles=x,ai([i.property({type:Boolean})],si.prototype,"primary",void 0),ai([i.property({type:Boolean})],si.prototype,"secondary",void 0),ai([i.property({type:Boolean})],si.prototype,"unbounded",void 0),ai([i.property({type:Boolean})],si.prototype,"activated",void 0),ai([i.property({type:Boolean})],si.prototype,"selected",void 0),ai([i.property({type:Boolean})],si.prototype,"disabled",void 0),ai([i.state()],si.prototype,"hovered",void 0),ai([i.state()],si.prototype,"focused",void 0),ai([i.state()],si.prototype,"pressed",void 0),ai([i.state()],si.prototype,"rippling",void 0),ai([i.state()],si.prototype,"originX",void 0),ai([i.state()],si.prototype,"originY",void 0),ai([i.query(".ft-ripple")],si.prototype,"ripple",void 0),ai([i.query(".ft-ripple--effect")],si.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(si);const li={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")},ci=o.css`
|
|
625
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}si.elementDefinitions={},si.styles=x,ai([i.property({type:Boolean})],si.prototype,"primary",void 0),ai([i.property({type:Boolean})],si.prototype,"secondary",void 0),ai([i.property({type:Boolean})],si.prototype,"unbounded",void 0),ai([i.property({type:Boolean})],si.prototype,"activated",void 0),ai([i.property({type:Boolean})],si.prototype,"selected",void 0),ai([i.property({type:Boolean})],si.prototype,"disabled",void 0),ai([i.state()],si.prototype,"hovered",void 0),ai([i.state()],si.prototype,"focused",void 0),ai([i.state()],si.prototype,"pressed",void 0),ai([i.state()],si.prototype,"rippling",void 0),ai([i.state()],si.prototype,"originX",void 0),ai([i.state()],si.prototype,"originY",void 0),ai([i.query(".ft-ripple")],si.prototype,"ripple",void 0),ai([i.query(".ft-ripple--effect")],si.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(si);const li={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")},ci=o.css`
|
|
626
626
|
.ft-switch-option {
|
|
627
627
|
position: relative;
|
|
628
628
|
display: inline-block;
|
|
@@ -800,7 +800,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
800
800
|
@touchstart=${this.initDragFromTouch}>
|
|
801
801
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
802
802
|
</div>
|
|
803
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new wi(o,i))}}Oi.elementDefinitions={"ft-icon":qe},Oi.styles=[e.noTextSelect,vi],xi([i.property({type:Number})],Oi.prototype,"initialWidth",void 0),xi([i.property({type:Number})],Oi.prototype,"initialHeight",void 0),xi([i.property()],Oi.prototype,"icon",void 0),xi([i.property()],Oi.prototype,"iconVariant",void 0),xi([i.property()],Oi.prototype,"cursor",void 0),xi([i.state()],Oi.prototype,"dragging",void 0),e.customElement("ft-resizer")(Oi);const $i={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Si=o.css`
|
|
803
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new wi(o,i))}}Oi.elementDefinitions={"ft-icon":qe},Oi.styles=[e.noTextSelect,vi],xi([i.property({type:Number})],Oi.prototype,"initialWidth",void 0),xi([i.property({type:Number})],Oi.prototype,"initialHeight",void 0),xi([i.property()],Oi.prototype,"icon",void 0),xi([i.property()],Oi.prototype,"iconVariant",void 0),xi([i.property()],Oi.prototype,"cursor",void 0),xi([i.state()],Oi.prototype,"dragging",void 0),xi([i.eventOptions({passive:!0})],Oi.prototype,"initDragFromMouse",null),xi([i.eventOptions({passive:!0})],Oi.prototype,"initDragFromTouch",null),e.customElement("ft-resizer")(Oi);const $i={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Si=o.css`
|
|
804
804
|
.ft-input-label {
|
|
805
805
|
position: absolute;
|
|
806
806
|
inset: 0;
|
|
@@ -1103,7 +1103,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1103
1103
|
</ft-tooltip>
|
|
1104
1104
|
`:t}resolveIcon(){return this.loading?o.html`
|
|
1105
1105
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
|
|
1106
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ti.elementDefinitions={"ft-ripple":si,"ft-tooltip":ni,"ft-typography":Ve,"ft-icon":qe,"ft-loader":Ui},Li([i.property({type:String,reflect:!0})],Ti.prototype,"role",void 0),Li([i.property()],Ti.prototype,"type",void 0),Li([i.property({type:Boolean})],Ti.prototype,"disabled",void 0),Li([i.property()],Ti.prototype,"label",void 0),Li([i.property()],Ti.prototype,"icon",void 0),Li([i.property()],Ti.prototype,"iconVariant",void 0),Li([i.property({type:Boolean})],Ti.prototype,"trailingIcon",void 0),Li([i.property({type:Boolean})],Ti.prototype,"loading",void 0),Li([i.property()],Ti.prototype,"tooltipPosition",void 0),Li([i.property({type:Boolean})],Ti.prototype,"hideTooltip",void 0),Li([i.property({type:Boolean})],Ti.prototype,"forceTooltip",void 0),Li([i.query(".ft-button")],Ti.prototype,"button",void 0),Li([i.query(".ft-button--label slot")],Ti.prototype,"slottedContent",void 0);var
|
|
1106
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ti.elementDefinitions={"ft-ripple":si,"ft-tooltip":ni,"ft-typography":Ve,"ft-icon":qe,"ft-loader":Ui},Li([i.property({type:String,reflect:!0})],Ti.prototype,"role",void 0),Li([i.property()],Ti.prototype,"type",void 0),Li([i.property({type:Boolean})],Ti.prototype,"disabled",void 0),Li([i.property()],Ti.prototype,"label",void 0),Li([i.property()],Ti.prototype,"icon",void 0),Li([i.property()],Ti.prototype,"iconVariant",void 0),Li([i.property({type:Boolean})],Ti.prototype,"trailingIcon",void 0),Li([i.property({type:Boolean})],Ti.prototype,"loading",void 0),Li([i.property()],Ti.prototype,"tooltipPosition",void 0),Li([i.property({type:Boolean})],Ti.prototype,"hideTooltip",void 0),Li([i.property({type:Boolean})],Ti.prototype,"forceTooltip",void 0),Li([i.query(".ft-button")],Ti.prototype,"button",void 0),Li([i.query(".ft-button--label slot")],Ti.prototype,"slottedContent",void 0);var _i=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 Wi extends Ti{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Wi.styles=[e.safariEllipsisFix,Wt],_i([i.property({type:Boolean})],Wi.prototype,"primary",void 0),_i([i.property({type:Boolean})],Wi.prototype,"outlined",void 0),_i([i.property({type:Boolean})],Wi.prototype,"dense",void 0),_i([i.property({type:Boolean})],Wi.prototype,"round",void 0);const Di=[o.css`
|
|
1107
1107
|
:host {
|
|
1108
1108
|
display: inline-block;
|
|
1109
1109
|
max-width: 100%;
|
|
@@ -1321,7 +1321,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1321
1321
|
width: ${k.smallIconOnlyWidth};
|
|
1322
1322
|
padding: unset;
|
|
1323
1323
|
}
|
|
1324
|
-
`,e.noTextSelect];var
|
|
1324
|
+
`,e.noTextSelect];var Ai=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 zi extends Ti{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?Pe.caption1medium:Pe.body2medium}}zi.styles=[e.safariEllipsisFix,Di],Ai([i.property({type:Boolean})],zi.prototype,"primary",void 0),Ai([i.property({type:Boolean})],zi.prototype,"secondary",void 0),Ai([i.property({type:Boolean})],zi.prototype,"tertiary",void 0),Ai([i.property({type:Boolean})],zi.prototype,"neutral",void 0),Ai([i.property({type:Boolean})],zi.prototype,"small",void 0),e.customElement("ft-button")(Wi),e.customElement("ftds-button")(zi);const Bi=o.css`
|
|
1325
1325
|
`,Fi=o.css`
|
|
1326
1326
|
`,Ki=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Zi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ki.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?Zi.build(t):null!==(e=Zi.API)&&void 0!==e?e:Zi.API=Zi.build()}static await(t){return new Promise((e=>{let o=Zi.get(t);if(o)e(o);else{const i=Ki.subscribe((()=>{o=Zi.get(t),o&&(i(),e(o))}))}}))}}var Pi;const Mi=Symbol("clearAfterUnitTest");class Hi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Pi]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ki.getState().uiLocale,Ki.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ki.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)))))}}Pi=Mi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Hi((async(t,e)=>(await Zi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Hi((async(t,e)=>(await Zi.await()).getCustomMessageContext(t,e))));const ji=window.FluidTopicsI18nService,Gi=window.FluidTopicsCustomI18nService;var Vi=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 Yi extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Zi.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
|
|
1327
1327
|
<slot></slot>
|
|
@@ -1573,15 +1573,15 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1573
1573
|
<slot></slot>
|
|
1574
1574
|
</ft-typography>
|
|
1575
1575
|
</div>
|
|
1576
|
-
`}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 wr(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())}}Or.elementDefinitions={"ft-ripple":si,"ft-typography":Ve,"ft-icon":qe},Or.styles=vr,xr([i.property()],Or.prototype,"value",void 0),xr([i.query(".ft-text-field-suggestion")],Or.prototype,"container",void 0),xr([i.queryAssignedNodes()],Or.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(mr),e.customElement("ft-text-field-suggestion")(Or);class $r{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 Sr{convertPaginatedToc(t){return new $r(t).build()}}class Nr{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o,i){this.converter=t,this.api=e,this.cache=o,this._mapId=i,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 ee(null!==(e=null===(t=Ki.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)))}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")}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=Ki.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 ee(null!=e?e:[],Qt.FEEDBACK_USER);case s.RATING:return ee(null!=e?e:[],Qt.RATING_USER)&&null!=o&&o!==Zt.NO_RATING;case s.PRINT:return ee(null!=e?e:[],Qt.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return ee(null!=e?e:[],Qt.COLLECTION_USER);case s.PERSONAL_BOOKS:return ee(null!=e?e:[],Qt.PERSONAL_BOOK_USER);default:return!1}}}class kr extends Nr{static async build(t){return new kr(new Sr,await Zi.await(),new e.CacheRegistry,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const o=await this.api.getMap(t);return this.fingerprint=null===(e=o.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),o}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)}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 Cr{static build(t,o){return new Cr((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}}))(t.trim()||"context"),null!=o?o:kr.build)}constructor(t,o){this.store=t,this.reloadDebouncer=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(){for(;null==this.service;)await e.delay(5);return 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 reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}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)))])}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Ir=o.css`
|
|
1577
|
-
`;class Rr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Er extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ur extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Lr extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Tr extends Event{constructor(){super("ft-reader-map-not-found")}}class
|
|
1576
|
+
`}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 wr(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())}}Or.elementDefinitions={"ft-ripple":si,"ft-typography":Ve,"ft-icon":qe},Or.styles=vr,xr([i.property()],Or.prototype,"value",void 0),xr([i.query(".ft-text-field-suggestion")],Or.prototype,"container",void 0),xr([i.queryAssignedNodes()],Or.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(mr),e.customElement("ft-text-field-suggestion")(Or);class $r{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 Sr{convertPaginatedToc(t){return new $r(t).build()}}class Nr{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o,i){this.converter=t,this.api=e,this.cache=o,this._mapId=i,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 ee(null!==(e=null===(t=Ki.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)))}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")}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=Ki.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 ee(null!=e?e:[],Qt.FEEDBACK_USER);case s.RATING:return ee(null!=e?e:[],Qt.RATING_USER)&&null!=o&&o!==Zt.NO_RATING;case s.PRINT:return ee(null!=e?e:[],Qt.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return ee(null!=e?e:[],Qt.COLLECTION_USER);case s.PERSONAL_BOOKS:return ee(null!=e?e:[],Qt.PERSONAL_BOOK_USER);default:return!1}}}class kr extends Nr{static async build(t){return new kr(new Sr,await Zi.await(),new e.CacheRegistry,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)}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 Cr{static build(t,o){return new Cr((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}}))(t.trim()||"context"),null!=o?o:kr.build)}constructor(t,o){this.store=t,this.reloadDebouncer=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(){for(;null==this.service;)await e.delay(5);return 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 reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}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)))])}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Ir=o.css`
|
|
1577
|
+
`;class Rr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Er extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ur extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Lr extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Tr extends Event{constructor(){super("ft-reader-map-not-found")}}class _r extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Wr=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 Dr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(Ki)}render(){return o.html`
|
|
1578
1578
|
${this.importStyleIfNeeded()}
|
|
1579
1579
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1580
1580
|
`}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`
|
|
1581
1581
|
<style>
|
|
1582
1582
|
@import "${i}"
|
|
1583
1583
|
</style>
|
|
1584
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Cr.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Rr(this.map,this.toc)),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 Ur(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 Er(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&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;404===e.status?this.dispatchEvent(new Tr):401===e.status?this.dispatchEvent(new
|
|
1584
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Cr.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Rr(this.map,this.toc)),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 Ur(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 Er(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&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;404===e.status?this.dispatchEvent(new Tr):401===e.status?this.dispatchEvent(new _r):this.dispatchEvent(new Lr(t))}reloadBookmarks(){tr.reloadBookmarks()}}var Ar;Dr.styles=Ir,Wr([e.redux({store:Ki.name})],Dr.prototype,"baseUrl",void 0),Wr([i.property()],Dr.prototype,"mapId",void 0),Wr([i.property()],Dr.prototype,"tocId",void 0),Wr([i.property()],Dr.prototype,"section",void 0),Wr([i.property()],Dr.prototype,"searchInDocumentQuery",void 0),Wr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Ar}})],Dr.prototype,"page",void 0),Wr([e.redux({store:"reader"})],Dr.prototype,"map",void 0),Wr([e.redux({store:"reader"})],Dr.prototype,"toc",void 0),Wr([e.redux({store:"reader"})],Dr.prototype,"visibleTopics",void 0),Wr([e.redux({store:"reader"})],Dr.prototype,"currentPage",void 0),Wr([e.redux({store:"reader"})],Dr.prototype,"scrollTarget",void 0),Wr([i.property({attribute:!1})],Dr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Dr);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 Br extends(rr(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!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(fr,hr),this.addI18nContext(pr,ur)}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 userHasRatingRole(){return this.session&&ee(this.session,"RATING_USER")}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.editorMode||this.canAccessFeedback||this.canAccessRating?o.html`
|
|
1585
1585
|
<div class="ft-reader-feedback">
|
|
1586
1586
|
${this.hideTitle?o.nothing:o.html`
|
|
1587
1587
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1686,7 +1686,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1686
1686
|
<ft-icon>INFO</ft-icon>
|
|
1687
1687
|
</ft-tooltip>
|
|
1688
1688
|
</div>
|
|
1689
|
-
`:o.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Br.elementDefinitions={"ft-button":
|
|
1689
|
+
`:o.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Br.elementDefinitions={"ft-button":Wi,"ft-typography":Ve,"ft-icon":qe,"ft-tooltip":ni,"ft-switch":yi,"ft-switch-option":pi,"ft-text-area":Ei,"ft-text-field":mr},Br.styles=zt,zr([i.property({type:Boolean})],Br.prototype,"editorMode",void 0),zr([i.property({type:Boolean})],Br.prototype,"hideTitle",void 0),zr([i.property({type:Boolean})],Br.prototype,"ratingAllowed",void 0),zr([i.property({attribute:!1})],Br.prototype,"i18nProperties",void 0),zr([i.property({attribute:!1})],Br.prototype,"ratingSummary",void 0),zr([i.property({attribute:!1})],Br.prototype,"session",void 0),zr([i.query(".ft-reader-feedback--feedback-input")],Br.prototype,"feedbackInput",void 0),zr([i.state()],Br.prototype,"from",void 0),zr([i.state()],Br.prototype,"feedbackMessage",void 0),zr([i.property()],Br.prototype,"iconVariant",void 0),zr([i.property()],Br.prototype,"emptyStarIcon",void 0),zr([i.property()],Br.prototype,"filledStarIcon",void 0),zr([i.property()],Br.prototype,"emptyLikeIcon",void 0),zr([i.property()],Br.prototype,"filledLikeIcon",void 0),zr([i.property()],Br.prototype,"emptyDislikeIcon",void 0),zr([i.property()],Br.prototype,"filledDislikeIcon",void 0),zr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Br.prototype,"configuration",void 0),zr([i.property()],Br.prototype,"feedbackMailLinkBuilder",void 0);const Fr=cr.fromGwt("server");class Kr{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))}build(t){var e,o,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Fr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}}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 Pr extends(rr(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=je.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 Kr,this.i18nProperties={feedbackMainTitle:fr.properties.mapFeedbackMainTitle(),ratingSectionTitle:fr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:fr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:fr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ki)}render(){return this.map&&(this.editorMode||this.componentVisible)?o.html`
|
|
1690
1690
|
<ft-reader-feedback
|
|
1691
1691
|
ratingAllowed
|
|
1692
1692
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1738,4 +1738,4 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1738
1738
|
display: none !important;
|
|
1739
1739
|
}
|
|
1740
1740
|
</style>
|
|
1741
|
-
`}get componentVisible(){var t,e,o;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(o=this.ratingSummary)||void 0===o?void 0:o.type}))}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["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,o;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)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.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:fr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:pr.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:fr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:pr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:fr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Yr.elementDefinitions={"ft-reader-feedback":Br},Vr([e.redux({store:Ki.name})],Yr.prototype,"session",void 0),Vr([e.redux({store:"reader"})],Yr.prototype,"map",void 0),Vr([e.redux({store:Ki.name})],Yr.prototype,"editorMode",void 0),Vr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Yr.prototype,"configuration",void 0),Vr([i.state()],Yr.prototype,"ratingSummary",void 0),Vr([i.property({type:Boolean})],Yr.prototype,"hideTitle",void 0),Vr([i.property()],Yr.prototype,"iconVariant",void 0),Vr([i.property()],Yr.prototype,"emptyStarIcon",void 0),Vr([i.property()],Yr.prototype,"filledStarIcon",void 0),Vr([i.property()],Yr.prototype,"emptyLikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledLikeIcon",void 0),Vr([i.property()],Yr.prototype,"emptyDislikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledDislikeIcon",void 0),Vr([i.query("ft-reader-feedback")],Yr.prototype,"readerFeedback",void 0),Vr([dr(Fr.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]})))],Yr.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Pr),e.customElement("ft-reader-topic-feedback")(Yr),t.FtReaderFeedbackCssVariables=
|
|
1741
|
+
`}get componentVisible(){var t,e,o;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(o=this.ratingSummary)||void 0===o?void 0:o.type}))}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["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,o;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)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.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:fr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:pr.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:fr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:pr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:fr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Yr.elementDefinitions={"ft-reader-feedback":Br},Vr([e.redux({store:Ki.name})],Yr.prototype,"session",void 0),Vr([e.redux({store:"reader"})],Yr.prototype,"map",void 0),Vr([e.redux({store:Ki.name})],Yr.prototype,"editorMode",void 0),Vr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Yr.prototype,"configuration",void 0),Vr([i.state()],Yr.prototype,"ratingSummary",void 0),Vr([i.property({type:Boolean})],Yr.prototype,"hideTitle",void 0),Vr([i.property()],Yr.prototype,"iconVariant",void 0),Vr([i.property()],Yr.prototype,"emptyStarIcon",void 0),Vr([i.property()],Yr.prototype,"filledStarIcon",void 0),Vr([i.property()],Yr.prototype,"emptyLikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledLikeIcon",void 0),Vr([i.property()],Yr.prototype,"emptyDislikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledDislikeIcon",void 0),Vr([i.query("ft-reader-feedback")],Yr.prototype,"readerFeedback",void 0),Vr([dr(Fr.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]})))],Yr.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Pr),e.customElement("ft-reader-topic-feedback")(Yr),t.FtReaderFeedbackCssVariables=At,t.FtReaderMapFeedback=Pr,t.FtReaderTopicFeedback=Yr,t.styles=zt}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
|