@fluid-topics/ft-reader-feedback 1.1.1 → 1.1.2
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 +10 -10
- package/build/ft-reader-feedback.min.js +342 -338
- package/package.json +5 -5
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${p.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,O=t=>"string"==typeof t?i.unsafeCSS(t):t;class w{static create(t,e,o,r){const n=t=>O(null!=t?t:r),a=i.css`var(${O(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=o,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>i.css`var(${O(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,o,r){const n=t=>o.get(null!=t?t:r),a=i.css`var(${O(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=o.category,a.fallbackVariable=o,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>i.css`var(${O(t)}, ${n(e)})`,a.breadcrumb=()=>[o.name,...o.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),a}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):O(null!=e?e:t.lastResortDefaultValue()),r=i.css`var(${O(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>i.css`var(${O(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const $={colorWhite:w.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:w.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:w.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:w.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:w.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:w.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:w.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:w.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:w.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:w.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:w.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:w.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:w.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:w.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:w.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:w.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:w.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:w.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:w.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:w.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:w.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:w.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:w.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:w.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:w.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:w.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:w.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:w.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:w.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:w.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:w.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:w.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:w.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:w.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:w.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:w.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:w.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:w.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:w.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:w.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:w.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:w.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:w.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:w.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:w.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:w.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:w.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:w.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:w.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:w.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:w.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:w.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:w.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:w.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:w.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:w.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:w.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:w.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:w.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:w.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:w.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:w.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:w.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:w.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:w.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:w.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:w.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:w.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:w.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:w.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:w.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:w.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:w.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:w.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:w.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:w.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:w.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:w.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:w.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:w.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:w.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:w.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:w.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:w.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:w.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:w.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:w.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:w.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:w.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:w.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:w.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:w.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:w.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:w.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:w.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:w.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:w.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:w.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:w.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:w.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:w.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:w.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:w.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:w.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:w.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:w.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:w.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:w.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:w.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:w.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:w.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:w.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:w.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:w.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:w.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:w.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:w.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:w.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:w.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:w.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:w.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:w.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:w.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:w.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:w.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:w.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:w.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:w.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:w.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:w.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:w.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:w.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:w.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:w.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:w.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:w.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:w.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:w.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:w.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:w.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:w.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:w.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:w.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:w.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:w.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:w.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:w.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:w.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:w.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:w.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:w.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:w.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:w.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:w.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:w.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:w.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:w.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:w.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:w.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:w.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:w.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:w.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:w.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:w.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:w.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:w.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:w.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:w.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:w.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:w.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:w.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:w.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:w.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:w.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:w.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:w.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:w.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:w.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:w.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:w.create("--ft-icon-size-6","","SIZE","48px"),opacity0:w.create("--ft-opacity-0","","NUMBER","0"),opacity8:w.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:w.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:w.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:w.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:w.create("--ft-opacity-80","","NUMBER","0.8")},S={display:{fontFamily:w.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:w.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:w.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:w.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:w.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:w.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:w.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:w.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:w.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:w.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:w.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:w.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:w.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:w.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:w.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:w.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:w.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:w.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:w.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:w.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:w.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:w.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:w.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:w.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:w.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:w.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:w.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:w.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:w.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:w.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$.colorBrand0),backgroundErrorPrimary:w.extend("--ft-background-error-primary","Used as background of error components.",$.colorRed0),backgroundErrorSubtle:w.extend("--ft-background-error-subtle","Used as background of subtle error components.",$.colorRed10),backgroundInfoPrimary:w.extend("--ft-background-info-primary","Used as background of information components.",$.colorCyan200),backgroundInfoSubtle:w.extend("--ft-background-info-subtle","Used as background of subtle information components.",$.colorCyan10),backgroundWarningPrimary:w.extend("--ft-background-warning-primary","Used as background of warning components.",$.colorOrange300),backgroundWarningSubtle:w.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$.colorOrange10),backgroundSuccessPrimary:w.extend("--ft-background-success-primary","Used as background of success components.",$.colorGreen200),backgroundSuccessSubtle:w.extend("--ft-background-success-subtle","Used as background of subtle success components.",$.colorGreen10),backgroundGlobalSurface:w.extend("--ft-background-global-surface","Used as app background.",$.colorWhite),backgroundGlobalOnSurface:w.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$.colorGray10),backgroundGlobalOnSurfaceDark:w.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$.colorGray30),contentActionPrimary:w.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$.colorBrand0),contentWarningPrimary:w.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$.colorOrange300),contentWarningIconOnly:w.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$.colorOrange0),contentErrorPrimary:w.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$.colorRed0),contentErrorIconOnly:w.extend("--ft-content-error-icon-only","Used on error status icons alone",$.colorRed0),contentInfoPrimary:w.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$.colorCyan200),contentInfoIconOnly:w.extend("--ft-content-info-icon-only","Used on info status icons alone",$.colorCyan0),contentSuccessIconOnly:w.extend("--ft-content-success-icon-only","Used on success status icons alone",$.colorGreen0),contentSuccessPrimary:w.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$.colorGreen200),contentGlobalPrimary:w.extend("--ft-content-global-primary","Used for main content on the page.",$.colorGray500),contentGlobalSecondary:w.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$.colorGray200),contentGlobalSubtle:w.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$.colorGray0),contentGlobalOnColor:w.extend("--ft-content-global-on-color","Used for content on a dominant color.",$.colorWhite),borderActionPrimary:w.extend("--ft-border-action-primary","Used as border for primary action components.",$.colorBrand0),borderActionFocusRing:w.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$.colorCyan0),borderWarningPrimary:w.extend("--ft-border-warning-primary","Used as border for warning components.",$.colorOrange30),borderSuccessPrimary:w.extend("--ft-border-success-primary","Used as border for success components.",$.colorGreen30),borderErrorPrimary:w.extend("--ft-border-error-primary","Used as border for error components.",$.colorRed30),borderInfoPrimary:w.extend("--ft-border-info-primary","Used as border for information components.",$.colorCyan30),borderGlobalSubtle:w.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$.colorGray30),borderGlobalPrimary:w.extend("--ft-border-global-primary","Used as border for element like input.",$.colorGray50),borderInputPrimary:w.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$.colorGray80)},k={largeHeight:w.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:w.extend("--ft-button-large-horizontal-padding","",$.spacing4),largeGap:w.extend("--ft-button-large-gap","",$.spacing2),largeBorderRadius:w.extend("--ft-button-large-border-radius","",$.borderRadiusS),largeIconSize:w.extend("--ft-button-large-icon-size","",$.iconSize3),largeBorderWidth:w.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:w.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:w.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:w.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:w.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:w.extend("--ft-button-small-horizontal-padding","",$.spacing3),smallGap:w.extend("--ft-button-small-gap","",$.spacing2),smallBorderRadius:w.extend("--ft-button-small-border-radius","",$.borderRadiusS),smallIconSize:w.extend("--ft-button-small-icon-size","",$.iconSize2),smallBorderWidth:w.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:w.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:w.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:w.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:w.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:w.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:w.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:w.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:w.extend("--ft-button-primary-state-layer-opacity-hover","",$.opacity16),primaryStateLayerOpacityFocus:w.extend("--ft-button-primary-state-layer-opacity-focus","",$.opacity16),primaryStateLayerOpacityActive:w.extend("--ft-button-primary-state-layer-opacity-active","",$.opacity24),primaryComponentOpacityDisabled:w.extend("--ft-button-primary-component-opacity-disabled","",$.opacity40),focusFocusRingColor:w.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:w.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:w.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:w.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:w.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:w.extend("--ft-button-tertiary-state-layer-opacity-hover","",$.opacity8),tertiaryStateLayerOpacityFocus:w.extend("--ft-button-tertiary-state-layer-opacity-focus","",$.opacity8),tertiaryStateLayerOpacityActive:w.extend("--ft-button-tertiary-state-layer-opacity-active","",$.opacity16),tertiaryComponentOpacityDisabled:w.extend("--ft-button-tertiary-component-opacity-disabled","",$.opacity40),secondaryBackgroundColor:w.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:w.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:w.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:w.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:w.extend("--ft-button-secondary-state-layer-opacity-hover","",$.opacity8),secondaryStateLayerOpacityFocus:w.extend("--ft-button-secondary-state-layer-opacity-focus","",$.opacity8),secondaryStateLayerOpacityActive:w.extend("--ft-button-secondary-state-layer-opacity-active","",$.opacity16),secondaryComponentOpacityDisabled:w.extend("--ft-button-secondary-component-opacity-disabled","",$.opacity40),secondaryBorderColor:w.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:w.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:w.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:w.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:w.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:w.extend("--ft-button-neutral-state-layer-opacity-hover","",$.opacity8),neutralStateLayerOpacityFocus:w.extend("--ft-button-neutral-state-layer-opacity-focus","",$.opacity8),neutralStateLayerOpacityActive:w.extend("--ft-button-neutral-state-layer-opacity-active","",$.opacity16),neutralComponentOpacityDisabled:w.extend("--ft-button-neutral-component-opacity-disabled","",$.opacity40)};w.extend("--ft-tabs-top-left-border-radius","",$.borderRadiusS),w.extend("--ft-tabs-top-right-border-radius","",$.borderRadiusS),w.extend("--ft-tabs-label-horizontal-padding","",$.spacing4),w.extend("--ft-tabs-label-vertical-padding","",$.spacing3),w.extend("--ft-tabs-label-gap","",$.spacing1),w.extend("--ft-switch-group-horizontal-padding","",$.spacing1),w.extend("--ft-switch-group-vertical-padding","",$.spacing1),w.extend("--ft-switch-group-gap","",$.spacing1),w.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),w.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),w.create("--ft-switch-group-border-radius","","SIZE","6px"),w.extend("--ft-switch-label-horizontal-padding","",$.spacing2),w.extend("--ft-switch-label-vertical-padding","",$.spacing1),w.extend("--ft-switch-icon-horizontal-padding","",$.spacing1),w.extend("--ft-switch-icon-vertical-padding","",$.spacing1),w.create("--ft-switch-focus-outline-width","","SIZE","2px"),w.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),w.extend("--ft-switch-option-border-radius","",$.borderRadiusS),w.extend("--ft-switch-off-state-layer-opacity-hover","",$.opacity8),w.extend("--ft-switch-off-state-layer-opacity-focus","",$.opacity8),w.extend("--ft-switch-off-state-layer-opacity-active","",$.opacity16),w.extend("--ft-switch-off-component-opacity-disabled","",$.opacity40),w.extend("--ft-switch-off-color","",N.contentGlobalSubtle),w.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),w.extend("--ft-chart-1-light","for area color charts",$.colorBrand40),w.extend("--ft-chart-1-base","for line charts",$.colorBrand0),w.extend("--ft-chart-2-light","for area color charts",$.colorYellow60),w.extend("--ft-chart-2-base","for line charts",$.colorYellow100),w.extend("--ft-chart-3-light","",$.colorUltramarine40),w.extend("--ft-chart-3-base","",$.colorUltramarine70),w.extend("--ft-chart-4-light","",$.colorCyan50),w.extend("--ft-chart-4-base","",$.colorCyan100),w.extend("--ft-chart-5-light","",$.colorRed40),w.extend("--ft-chart-5-base","",$.colorRed60),w.extend("--ft-chart-6-light","",$.colorGreen40),w.extend("--ft-chart-6-base","",$.colorGreen70),w.extend("--ft-chart-7-light","",$.colorOrange70),w.extend("--ft-chart-7-base","",$.colorOrange100),w.extend("--ft-chart-8-light","",$.colorAvocado70),w.extend("--ft-chart-8-base","",$.colorAvocado200),w.extend("--ft-chart-9-light","",$.colorBrown50),w.extend("--ft-chart-9-base","",$.colorBrown200),w.extend("--ft-chart-10-light","",$.colorGray50),w.extend("--ft-chart-10-base","",$.colorGray80),w.extend("--ft-chart-monochrome-10","",$.colorBrand10),w.extend("--ft-chart-monochrome-20","",$.colorBrand20),w.extend("--ft-chart-monochrome-30","",$.colorBrand40),w.extend("--ft-chart-monochrome-40","",$.colorBrand60),w.extend("--ft-chart-monochrome-50","",$.colorBrand0),w.extend("--ft-chart-monochrome-60","",$.colorBrand200),w.extend("--ft-chip-large-horizontal-padding","",$.spacing4),w.extend("--ft-chip-large-vertical-padding","",$.spacing2),w.extend("--ft-chip-large-gap","",$.spacing1),w.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-large-border-radius","",$.borderRadiusPill),w.create("--ft-chip-large-border-width","","SIZE","1px"),w.extend("--ft-chip-large-icon-size","",$.iconSize3),w.extend("--ft-chip-medium-horizontal-padding","",$.spacing3),w.extend("--ft-chip-medium-vertical-padding","",$.spacing1),w.extend("--ft-chip-medium-gap","",$.spacing1),w.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-medium-border-radius","",$.borderRadiusPill),w.create("--ft-chip-medium-border-width","","SIZE","1px"),w.extend("--ft-chip-medium-icon-size","",$.iconSize2),w.extend("--ft-chip-small-horizontal-padding","",$.spacing2),w.extend("--ft-chip-small-vertical-padding","",$.spacing05),w.extend("--ft-chip-small-gap","",$.spacing1),w.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-small-border-radius","",$.borderRadiusPill),w.create("--ft-chip-small-border-width","","SIZE","1px"),w.extend("--ft-chip-small-icon-size","",$.iconSize1),w.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),w.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),w.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),w.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-chip-info-color","",N.contentInfoPrimary),w.extend("--ft-chip-info-border-color","",N.borderInfoPrimary),w.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),w.extend("--ft-chip-success-color","",N.contentSuccessPrimary),w.extend("--ft-chip-success-border-color","",N.borderSuccessPrimary),w.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-chip-warning-color","",N.contentWarningPrimary),w.extend("--ft-chip-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),w.extend("--ft-chip-error-color","",N.contentErrorPrimary),w.extend("--ft-chip-error-border-color","",N.borderErrorPrimary),w.create("--ft-notice-border-width","","SIZE","1px"),w.extend("--ft-notice-horizontal-padding","",$.spacing2),w.extend("--ft-notice-vertical-padding","",$.spacing1),w.extend("--ft-notice-border-radius","",$.borderRadiusS),w.extend("--ft-notice-gap","",$.spacing2),w.extend("--ft-notice-icon-size","",$.iconSize3),w.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),w.extend("--ft-notice-info-color","",N.contentInfoPrimary),w.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-notice-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-notice-warning-color","",N.contentWarningPrimary),w.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),w.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),w.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),w.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),w.extend("--ft-checkbox-checked-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-checkbox-checked-state-layer-opacity-active","",$.opacity24),w.extend("--ft-checkbox-checked-component-opacity-disabled","",$.opacity40),w.extend("--ft-checkbox-unchecked-border-color","",$.colorGray80),w.extend("--ft-checkbox-unchecked-state-layer-color","",$.colorGray80),w.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$.opacity24),w.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$.opacity40),w.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),w.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),w.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),w.extend("--ft-checkbox-gap","",$.spacing3),w.extend("--ft-toggle-off-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-toggle-off-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-toggle-off-state-layer-opacity-active","",$.opacity24),w.extend("--ft-toggle-off-component-opacity-disabled","",$.opacity40),w.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-on-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-toggle-on-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-toggle-on-state-layer-opacity-active","",$.opacity24),w.extend("--ft-toggle-on-component-opacity-disabled","",$.opacity40),w.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),w.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),w.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),w.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),w.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),w.extend("--ft-toggle-gap","",$.spacing3),w.extend("--ft-radio-label-color","",N.contentGlobalPrimary),w.extend("--ft-radio-selected-color","",N.contentActionPrimary),w.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),w.extend("--ft-radio-selected-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-radio-selected-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-radio-selected-state-layer-opacity-active","",$.opacity24),w.extend("--ft-radio-selected-component-opacity-disabled","",$.opacity40),w.extend("--ft-radio-unselected-state-layer-color","",$.colorGray80),w.extend("--ft-radio-unselected-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-radio-unselected-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-radio-unselected-state-layer-opacity-active","",$.opacity24),w.extend("--ft-radio-unselected-component-opacity-disabled","",$.opacity40),w.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),w.create("--ft-radio-focus-outline-offset","","SIZE","3px"),w.create("--ft-radio-focus-outline-width","","SIZE","2px"),w.extend("--ft-radio-gap","",$.spacing3),w.extend("--ft-notification-icon-size","",$.iconSize4),w.extend("--ft-notification-horizontal-padding","",$.spacing4),w.extend("--ft-notification-vertical-padding","",$.spacing4),w.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-notification-info-color","",N.contentInfoPrimary),w.extend("--ft-notification-info-border-color","",N.borderInfoPrimary),w.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),w.extend("--ft-notification-success-color","",N.contentSuccessPrimary),w.extend("--ft-notification-success-border-color","",N.borderSuccessPrimary),w.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-notification-warning-color","",N.contentWarningPrimary),w.extend("--ft-notification-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),w.extend("--ft-notification-error-color","",N.contentErrorPrimary),w.extend("--ft-notification-error-border-color","",N.borderErrorPrimary),w.extend("--ft-notification-border-radius","",$.borderRadiusPill),w.create("--ft-notification-border-width","","SIZE","1px"),w.extend("--ft-notification-gap-leading","",$.spacing2),w.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),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",R.fontSize,"16px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",R.fontWeight,"600"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",R.letterSpacing,"0.144px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",R.lineHeight,"1.5"),D=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")},J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),Q=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"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",R.lineHeight,"1.6"),ot=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")},ht=i.css`
|
|
113
|
+
`,O=t=>"string"==typeof t?i.unsafeCSS(t):t;class w{static create(t,e,o,r){const n=t=>O(null!=t?t:r),a=i.css`var(${O(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=o,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>i.css`var(${O(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,o,r){const n=t=>o.get(null!=t?t:r),a=i.css`var(${O(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=o.category,a.fallbackVariable=o,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>i.css`var(${O(t)}, ${n(e)})`,a.breadcrumb=()=>[o.name,...o.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),a}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):O(null!=e?e:t.lastResortDefaultValue()),r=i.css`var(${O(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>i.css`var(${O(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const $={colorWhite:w.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:w.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:w.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:w.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:w.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:w.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:w.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:w.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:w.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:w.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:w.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:w.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:w.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:w.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:w.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:w.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:w.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:w.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:w.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:w.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:w.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:w.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:w.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:w.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:w.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:w.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:w.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:w.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:w.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:w.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:w.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:w.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:w.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:w.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:w.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:w.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:w.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:w.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:w.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:w.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:w.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:w.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:w.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:w.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:w.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:w.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:w.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:w.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:w.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:w.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:w.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:w.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:w.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:w.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:w.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:w.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:w.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:w.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:w.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:w.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:w.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:w.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:w.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:w.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:w.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:w.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:w.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:w.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:w.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:w.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:w.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:w.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:w.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:w.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:w.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:w.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:w.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:w.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:w.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:w.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:w.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:w.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:w.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:w.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:w.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:w.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:w.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:w.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:w.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:w.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:w.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:w.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:w.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:w.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:w.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:w.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:w.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:w.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:w.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:w.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:w.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:w.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:w.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:w.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:w.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:w.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:w.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:w.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:w.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:w.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:w.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:w.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:w.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:w.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:w.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:w.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:w.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:w.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:w.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:w.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:w.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:w.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:w.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:w.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:w.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:w.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:w.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:w.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:w.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:w.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:w.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:w.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:w.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:w.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:w.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:w.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:w.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:w.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:w.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:w.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:w.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:w.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:w.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:w.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:w.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:w.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:w.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:w.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:w.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:w.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:w.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:w.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:w.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:w.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:w.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:w.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:w.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:w.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:w.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:w.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:w.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:w.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:w.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:w.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:w.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:w.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:w.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:w.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:w.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:w.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:w.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:w.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:w.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:w.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:w.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:w.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:w.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:w.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:w.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:w.create("--ft-icon-size-6","","SIZE","48px"),opacity0:w.create("--ft-opacity-0","","NUMBER","0"),opacity8:w.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:w.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:w.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:w.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:w.create("--ft-opacity-80","","NUMBER","0.8")},S={display:{fontFamily:w.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:w.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:w.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:w.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:w.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:w.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:w.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:w.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:w.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:w.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:w.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:w.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:w.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:w.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:w.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:w.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:w.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:w.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:w.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:w.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:w.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:w.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:w.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:w.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:w.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:w.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:w.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:w.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:w.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:w.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:w.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:w.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:w.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:w.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:w.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:w.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:w.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:w.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:w.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:w.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:w.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:w.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:w.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:w.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:w.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:w.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:w.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:w.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:w.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:w.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:w.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$.colorBrand0),backgroundErrorPrimary:w.extend("--ft-background-error-primary","Used as background of error components.",$.colorRed0),backgroundErrorSubtle:w.extend("--ft-background-error-subtle","Used as background of subtle error components.",$.colorRed10),backgroundInfoPrimary:w.extend("--ft-background-info-primary","Used as background of information components.",$.colorCyan200),backgroundInfoSubtle:w.extend("--ft-background-info-subtle","Used as background of subtle information components.",$.colorCyan10),backgroundWarningPrimary:w.extend("--ft-background-warning-primary","Used as background of warning components.",$.colorOrange300),backgroundWarningSubtle:w.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$.colorOrange10),backgroundSuccessPrimary:w.extend("--ft-background-success-primary","Used as background of success components.",$.colorGreen200),backgroundSuccessSubtle:w.extend("--ft-background-success-subtle","Used as background of subtle success components.",$.colorGreen10),backgroundGlobalSurface:w.extend("--ft-background-global-surface","Used as app background.",$.colorWhite),backgroundGlobalOnSurface:w.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$.colorGray10),backgroundGlobalOnSurfaceDark:w.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$.colorGray30),contentActionPrimary:w.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$.colorBrand0),contentWarningPrimary:w.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$.colorOrange300),contentWarningIconOnly:w.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$.colorOrange0),contentErrorPrimary:w.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$.colorRed0),contentErrorIconOnly:w.extend("--ft-content-error-icon-only","Used on error status icons alone",$.colorRed0),contentInfoPrimary:w.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$.colorCyan200),contentInfoIconOnly:w.extend("--ft-content-info-icon-only","Used on info status icons alone",$.colorCyan0),contentSuccessIconOnly:w.extend("--ft-content-success-icon-only","Used on success status icons alone",$.colorGreen0),contentSuccessPrimary:w.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$.colorGreen200),contentGlobalPrimary:w.extend("--ft-content-global-primary","Used for main content on the page.",$.colorGray500),contentGlobalSecondary:w.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$.colorGray200),contentGlobalSubtle:w.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$.colorGray0),contentGlobalOnColor:w.extend("--ft-content-global-on-color","Used for content on a dominant color.",$.colorWhite),borderActionPrimary:w.extend("--ft-border-action-primary","Used as border for primary action components.",$.colorBrand0),borderActionFocusRing:w.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$.colorCyan0),borderWarningPrimary:w.extend("--ft-border-warning-primary","Used as border for warning components.",$.colorOrange30),borderSuccessPrimary:w.extend("--ft-border-success-primary","Used as border for success components.",$.colorGreen30),borderErrorPrimary:w.extend("--ft-border-error-primary","Used as border for error components.",$.colorRed30),borderInfoPrimary:w.extend("--ft-border-info-primary","Used as border for information components.",$.colorCyan30),borderGlobalSubtle:w.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$.colorGray30),borderGlobalPrimary:w.extend("--ft-border-global-primary","Used as border for element like input.",$.colorGray50),borderInputPrimary:w.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$.colorGray80)},k={largeHeight:w.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:w.extend("--ft-button-large-horizontal-padding","",$.spacing4),largeGap:w.extend("--ft-button-large-gap","",$.spacing2),largeBorderRadius:w.extend("--ft-button-large-border-radius","",$.borderRadiusS),largeIconSize:w.extend("--ft-button-large-icon-size","",$.iconSize3),largeBorderWidth:w.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:w.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:w.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:w.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:w.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:w.extend("--ft-button-small-horizontal-padding","",$.spacing3),smallGap:w.extend("--ft-button-small-gap","",$.spacing2),smallBorderRadius:w.extend("--ft-button-small-border-radius","",$.borderRadiusS),smallIconSize:w.extend("--ft-button-small-icon-size","",$.iconSize2),smallBorderWidth:w.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:w.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:w.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:w.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:w.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:w.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:w.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:w.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:w.extend("--ft-button-primary-state-layer-opacity-hover","",$.opacity16),primaryStateLayerOpacityFocus:w.extend("--ft-button-primary-state-layer-opacity-focus","",$.opacity16),primaryStateLayerOpacityActive:w.extend("--ft-button-primary-state-layer-opacity-active","",$.opacity24),primaryComponentOpacityDisabled:w.extend("--ft-button-primary-component-opacity-disabled","",$.opacity40),focusFocusRingColor:w.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:w.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:w.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:w.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:w.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:w.extend("--ft-button-tertiary-state-layer-opacity-hover","",$.opacity8),tertiaryStateLayerOpacityFocus:w.extend("--ft-button-tertiary-state-layer-opacity-focus","",$.opacity8),tertiaryStateLayerOpacityActive:w.extend("--ft-button-tertiary-state-layer-opacity-active","",$.opacity16),tertiaryComponentOpacityDisabled:w.extend("--ft-button-tertiary-component-opacity-disabled","",$.opacity40),secondaryBackgroundColor:w.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:w.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:w.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:w.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:w.extend("--ft-button-secondary-state-layer-opacity-hover","",$.opacity8),secondaryStateLayerOpacityFocus:w.extend("--ft-button-secondary-state-layer-opacity-focus","",$.opacity8),secondaryStateLayerOpacityActive:w.extend("--ft-button-secondary-state-layer-opacity-active","",$.opacity16),secondaryComponentOpacityDisabled:w.extend("--ft-button-secondary-component-opacity-disabled","",$.opacity40),secondaryBorderColor:w.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:w.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:w.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:w.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:w.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:w.extend("--ft-button-neutral-state-layer-opacity-hover","",$.opacity8),neutralStateLayerOpacityFocus:w.extend("--ft-button-neutral-state-layer-opacity-focus","",$.opacity8),neutralStateLayerOpacityActive:w.extend("--ft-button-neutral-state-layer-opacity-active","",$.opacity16),neutralComponentOpacityDisabled:w.extend("--ft-button-neutral-component-opacity-disabled","",$.opacity40)};w.extend("--ft-tabs-top-left-border-radius","",$.borderRadiusS),w.extend("--ft-tabs-top-right-border-radius","",$.borderRadiusS),w.extend("--ft-tabs-label-horizontal-padding","",$.spacing4),w.extend("--ft-tabs-label-vertical-padding","",$.spacing3),w.extend("--ft-tabs-label-gap","",$.spacing1),w.extend("--ft-switch-group-horizontal-padding","",$.spacing1),w.extend("--ft-switch-group-vertical-padding","",$.spacing1),w.extend("--ft-switch-group-gap","",$.spacing1),w.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),w.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),w.create("--ft-switch-group-border-radius","","SIZE","6px"),w.extend("--ft-switch-label-horizontal-padding","",$.spacing2),w.extend("--ft-switch-label-vertical-padding","",$.spacing1),w.extend("--ft-switch-icon-horizontal-padding","",$.spacing1),w.extend("--ft-switch-icon-vertical-padding","",$.spacing1),w.create("--ft-switch-focus-outline-width","","SIZE","2px"),w.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),w.extend("--ft-switch-option-border-radius","",$.borderRadiusS),w.extend("--ft-switch-off-state-layer-opacity-hover","",$.opacity8),w.extend("--ft-switch-off-state-layer-opacity-focus","",$.opacity8),w.extend("--ft-switch-off-state-layer-opacity-active","",$.opacity16),w.extend("--ft-switch-off-component-opacity-disabled","",$.opacity40),w.extend("--ft-switch-off-color","",N.contentGlobalSubtle),w.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),w.extend("--ft-chart-1-light","for area color charts",$.colorBrand40),w.extend("--ft-chart-1-base","for line charts",$.colorBrand0),w.extend("--ft-chart-2-light","for area color charts",$.colorYellow60),w.extend("--ft-chart-2-base","for line charts",$.colorYellow100),w.extend("--ft-chart-3-light","",$.colorUltramarine40),w.extend("--ft-chart-3-base","",$.colorUltramarine70),w.extend("--ft-chart-4-light","",$.colorCyan50),w.extend("--ft-chart-4-base","",$.colorCyan100),w.extend("--ft-chart-5-light","",$.colorRed40),w.extend("--ft-chart-5-base","",$.colorRed60),w.extend("--ft-chart-6-light","",$.colorGreen40),w.extend("--ft-chart-6-base","",$.colorGreen70),w.extend("--ft-chart-7-light","",$.colorOrange70),w.extend("--ft-chart-7-base","",$.colorOrange100),w.extend("--ft-chart-8-light","",$.colorAvocado70),w.extend("--ft-chart-8-base","",$.colorAvocado200),w.extend("--ft-chart-9-light","",$.colorBrown50),w.extend("--ft-chart-9-base","",$.colorBrown200),w.extend("--ft-chart-10-light","",$.colorGray50),w.extend("--ft-chart-10-base","",$.colorGray80),w.extend("--ft-chart-monochrome-10","",$.colorBrand10),w.extend("--ft-chart-monochrome-20","",$.colorBrand20),w.extend("--ft-chart-monochrome-30","",$.colorBrand40),w.extend("--ft-chart-monochrome-40","",$.colorBrand60),w.extend("--ft-chart-monochrome-50","",$.colorBrand0),w.extend("--ft-chart-monochrome-60","",$.colorBrand200),w.extend("--ft-chip-large-horizontal-padding","",$.spacing4),w.extend("--ft-chip-large-vertical-padding","",$.spacing2),w.extend("--ft-chip-large-gap","",$.spacing1),w.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-large-border-radius","",$.borderRadiusPill),w.create("--ft-chip-large-border-width","","SIZE","1px"),w.extend("--ft-chip-large-icon-size","",$.iconSize3),w.extend("--ft-chip-medium-horizontal-padding","",$.spacing3),w.extend("--ft-chip-medium-vertical-padding","",$.spacing1),w.extend("--ft-chip-medium-gap","",$.spacing1),w.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-medium-border-radius","",$.borderRadiusPill),w.create("--ft-chip-medium-border-width","","SIZE","1px"),w.extend("--ft-chip-medium-icon-size","",$.iconSize2),w.extend("--ft-chip-small-horizontal-padding","",$.spacing2),w.extend("--ft-chip-small-vertical-padding","",$.spacing05),w.extend("--ft-chip-small-gap","",$.spacing1),w.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),w.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),w.extend("--ft-chip-small-border-radius","",$.borderRadiusPill),w.create("--ft-chip-small-border-width","","SIZE","1px"),w.extend("--ft-chip-small-icon-size","",$.iconSize1),w.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),w.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),w.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),w.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-chip-info-color","",N.contentInfoPrimary),w.extend("--ft-chip-info-border-color","",N.borderInfoPrimary),w.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),w.extend("--ft-chip-success-color","",N.contentSuccessPrimary),w.extend("--ft-chip-success-border-color","",N.borderSuccessPrimary),w.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-chip-warning-color","",N.contentWarningPrimary),w.extend("--ft-chip-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),w.extend("--ft-chip-error-color","",N.contentErrorPrimary),w.extend("--ft-chip-error-border-color","",N.borderErrorPrimary),w.create("--ft-notice-border-width","","SIZE","1px"),w.extend("--ft-notice-horizontal-padding","",$.spacing2),w.extend("--ft-notice-vertical-padding","",$.spacing1),w.extend("--ft-notice-border-radius","",$.borderRadiusS),w.extend("--ft-notice-gap","",$.spacing2),w.extend("--ft-notice-icon-size","",$.iconSize3),w.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),w.extend("--ft-notice-info-color","",N.contentInfoPrimary),w.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-notice-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-notice-warning-color","",N.contentWarningPrimary),w.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),w.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),w.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),w.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),w.extend("--ft-checkbox-checked-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-checkbox-checked-state-layer-opacity-active","",$.opacity24),w.extend("--ft-checkbox-checked-component-opacity-disabled","",$.opacity40),w.extend("--ft-checkbox-unchecked-border-color","",$.colorGray80),w.extend("--ft-checkbox-unchecked-state-layer-color","",$.colorGray80),w.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$.opacity24),w.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$.opacity40),w.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),w.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),w.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),w.extend("--ft-checkbox-gap","",$.spacing3),w.extend("--ft-toggle-off-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-toggle-off-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-toggle-off-state-layer-opacity-active","",$.opacity24),w.extend("--ft-toggle-off-component-opacity-disabled","",$.opacity40),w.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),w.extend("--ft-toggle-on-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-toggle-on-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-toggle-on-state-layer-opacity-active","",$.opacity24),w.extend("--ft-toggle-on-component-opacity-disabled","",$.opacity40),w.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),w.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),w.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),w.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),w.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),w.extend("--ft-toggle-gap","",$.spacing3),w.extend("--ft-radio-label-color","",N.contentGlobalPrimary),w.extend("--ft-radio-selected-color","",N.contentActionPrimary),w.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),w.extend("--ft-radio-selected-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-radio-selected-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-radio-selected-state-layer-opacity-active","",$.opacity24),w.extend("--ft-radio-selected-component-opacity-disabled","",$.opacity40),w.extend("--ft-radio-unselected-state-layer-color","",$.colorGray80),w.extend("--ft-radio-unselected-state-layer-opacity-hover","",$.opacity16),w.extend("--ft-radio-unselected-state-layer-opacity-focus","",$.opacity16),w.extend("--ft-radio-unselected-state-layer-opacity-active","",$.opacity24),w.extend("--ft-radio-unselected-component-opacity-disabled","",$.opacity40),w.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),w.create("--ft-radio-focus-outline-offset","","SIZE","3px"),w.create("--ft-radio-focus-outline-width","","SIZE","2px"),w.extend("--ft-radio-gap","",$.spacing3),w.extend("--ft-notification-icon-size","",$.iconSize4),w.extend("--ft-notification-horizontal-padding","",$.spacing4),w.extend("--ft-notification-vertical-padding","",$.spacing4),w.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),w.extend("--ft-notification-info-color","",N.contentInfoPrimary),w.extend("--ft-notification-info-border-color","",N.borderInfoPrimary),w.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),w.extend("--ft-notification-success-color","",N.contentSuccessPrimary),w.extend("--ft-notification-success-border-color","",N.borderSuccessPrimary),w.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),w.extend("--ft-notification-warning-color","",N.contentWarningPrimary),w.extend("--ft-notification-warning-border-color","",N.borderWarningPrimary),w.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),w.extend("--ft-notification-error-color","",N.contentErrorPrimary),w.extend("--ft-notification-error-border-color","",N.borderErrorPrimary),w.extend("--ft-notification-border-radius","",$.borderRadiusPill),w.create("--ft-notification-border-width","","SIZE","1px"),w.extend("--ft-notification-gap-leading","",$.spacing2),w.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),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",R.fontSize,"16px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",R.fontWeight,"600"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",R.letterSpacing,"0.144px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",R.lineHeight,"1.5"),D=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"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",R.lineHeight,"1.6"),ot=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")},ht=i.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${E.fontFamily};
|
|
116
116
|
font-size: ${E.fontSize};
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
}
|
|
177
177
|
`,mt=i.css`
|
|
178
178
|
.ft-typography--breadcrumb {
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
179
|
+
font-family: ${Q};
|
|
180
|
+
font-size: ${J};
|
|
181
181
|
font-weight: ${tt};
|
|
182
182
|
letter-spacing: ${et};
|
|
183
183
|
line-height: ${it};
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
${e.setVariable(It.color,Dt.sendFeedbackColor)};
|
|
542
542
|
${e.setVariable(It.backgroundColor,Dt.sendFeedbackBackgroundColor)};
|
|
543
543
|
}
|
|
544
|
-
`;var Bt,Ft,Kt,Zt,Pt,Mt,Ht,jt,Gt,Vt,Yt,qt,Xt,Jt;!function(t){!function(e){var i={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(i.arrayBuffer)var o=["[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&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=d(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(h)}),this.text=function(){var t,e,i,o=c(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=d(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.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 i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var i,o,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=(i=e.method||this.method||"GET",o=i.toUpperCase(),u.indexOf(o)>-1?o:i),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 i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,o){return new Promise((function(r,n){var a=new g(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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"}(Jt||(Jt={}));const Qt={[Jt.PERSONAL_BOOK_SHARE_USER]:[Jt.PERSONAL_BOOK_USER],[Jt.HTML_EXPORT_USER]:[Jt.PERSONAL_BOOK_USER],[Jt.PDF_EXPORT_USER]:[Jt.PERSONAL_BOOK_USER],[Jt.KHUB_ADMIN]:[Jt.CONTENT_PUBLISHER],[Jt.ADMIN]:[Jt.KHUB_ADMIN,Jt.USERS_ADMIN,Jt.PORTAL_ADMIN],[Jt.DEVELOPER]:[Jt.BETA_USER,Jt.DEBUG_USER]};function te(t,e){return t===e||(Qt[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 i={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(i.arrayBuffer)var o=["[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&&o.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 i.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,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=d(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.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(h)}),this.text=function(){var t,e,i,o=c(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,i=d(e),e.readAsText(t),i;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.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 i=this.map[t];this.map[t]=i?i+", "+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 i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),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,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var i,o,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=(i=e.method||this.method||"GET",o=i.toUpperCase(),u.indexOf(o)>-1?o:i),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 i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),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 i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,o){return new Promise((function(r,n){var a=new g(t,o);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,i={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 i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},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&&i.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)))}
|
|
545
545
|
/**
|
|
546
546
|
* @license
|
|
547
547
|
* Copyright 2017 Google LLC
|
|
@@ -564,7 +564,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
564
564
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
565
565
|
<slot ?hidden=${e}></slot>
|
|
566
566
|
</i>
|
|
567
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case je.file_format:this.resolvedIcon=null!==(t=He[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case je.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=Me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}qe.elementDefinitions={},qe.styles=kt,Ye([o.property()],qe.prototype,"variant",void 0),Ye([o.property()],qe.prototype,"value",void 0),Ye([o.state()],qe.prototype,"resolvedIcon",void 0),Ye([o.query("slot")],qe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(qe);const Xe=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),
|
|
567
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case je.file_format:this.resolvedIcon=null!==(t=He[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case je.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=Me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}qe.elementDefinitions={},qe.styles=kt,Ye([o.property()],qe.prototype,"variant",void 0),Ye([o.property()],qe.prototype,"value",void 0),Ye([o.state()],qe.prototype,"resolvedIcon",void 0),Ye([o.query("slot")],qe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(qe);const Xe=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Qe=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Je=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ti=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),ei=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),ii=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),oi=i.css`
|
|
568
568
|
.ft-tooltip--container {
|
|
569
569
|
display: block;
|
|
570
570
|
}
|
|
@@ -588,8 +588,8 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
588
588
|
.ft-tooltip--content {
|
|
589
589
|
padding: 4px 8px;
|
|
590
590
|
border-radius: ${ei};
|
|
591
|
-
background-color: ${
|
|
592
|
-
color: ${
|
|
591
|
+
background-color: ${Je};
|
|
592
|
+
color: ${Qe};
|
|
593
593
|
position: relative;
|
|
594
594
|
word-break: break-word;
|
|
595
595
|
}
|
|
@@ -1325,7 +1325,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1325
1325
|
`,Fi=i.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:i}=Ki.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!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 i=Zi.get(t);if(i)e(i);else{const o=Ki.subscribe((()=>{i=Zi.get(t),i&&(o(),e(i))}))}}))}}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,i){var o;if(t=t.toLowerCase(),Object.keys(i).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...i};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,i,...o){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(i,...o)}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 i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.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,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,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 i.html`
|
|
1327
1327
|
<slot></slot>
|
|
1328
|
-
`}update(t){super.update(t),t.has("baseUrl")&&Ki.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ki.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ki.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ki.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ki.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ki.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ki.actions.setSession(this.session),t.has("availableUiLocales")&&Ki.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ji.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Yi.elementDefinitions={},Yi.styles=Fi,Vi([o.property()],Yi.prototype,"baseUrl",void 0),Vi([o.property()],Yi.prototype,"apiIntegrationIdentifier",void 0),Vi([o.property()],Yi.prototype,"uiLocale",void 0),Vi([e.jsonProperty([])],Yi.prototype,"availableUiLocales",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"editorMode",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"noCustom",void 0),Vi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Yi.prototype,"noCustomComponent",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"withManualResources",void 0),Vi([e.jsonProperty([])],Yi.prototype,"messageContexts",void 0),Vi([e.jsonProperty(void 0)],Yi.prototype,"session",void 0),Vi([o.property({type:Object})],Yi.prototype,"apiProvider",void 0);class qi{async listMySearches(){var t;return(null===(t=Ki.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Zi.await()).listMySearches(Ki.getState().session.profile.userId):[]}}const Xi=new e.CacheRegistry;class
|
|
1328
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Ki.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ki.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ki.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ki.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ki.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ki.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ki.actions.setSession(this.session),t.has("availableUiLocales")&&Ki.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ji.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Yi.elementDefinitions={},Yi.styles=Fi,Vi([o.property()],Yi.prototype,"baseUrl",void 0),Vi([o.property()],Yi.prototype,"apiIntegrationIdentifier",void 0),Vi([o.property()],Yi.prototype,"uiLocale",void 0),Vi([e.jsonProperty([])],Yi.prototype,"availableUiLocales",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"editorMode",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"noCustom",void 0),Vi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Yi.prototype,"noCustomComponent",void 0),Vi([o.property({type:Boolean})],Yi.prototype,"withManualResources",void 0),Vi([e.jsonProperty([])],Yi.prototype,"messageContexts",void 0),Vi([e.jsonProperty(void 0)],Yi.prototype,"session",void 0),Vi([o.property({type:Object})],Yi.prototype,"apiProvider",void 0);class qi{async listMySearches(){var t;return(null===(t=Ki.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Zi.await()).listMySearches(Ki.getState().session.profile.userId):[]}}const Xi=new e.CacheRegistry;class Qi{async listMyBookmarks(){return Xi.get("bookmarks",(async()=>(await Zi.await()).listMyBookmarks(Ki.getState().session.profile.userId)))}clearCache(){Xi.clear("bookmarks")}}const Ji=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const to=new class{constructor(){this.currentSession=Ki.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qi,Ki.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:i}=Ki.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==i?void 0:i.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ji.actions.savedSearches(void 0)}clearMyBookmarks(){Ji.actions.bookmarks(void 0)}async reloadMySearches(){const t=new qi,e=await t.listMySearches();Ji.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ji.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Yi);var eo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const io=Symbol("i18nProperties"),oo=Symbol("i18nUnsubs");function ro(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Gi:ji}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[io])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[io])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[io]&&new Set([...this[io].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[oo].has(t)||this[oo].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[oo].forEach((t=>t())),this[oo].clear()}}return e=oo,eo([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class no extends(ro(e.FtLitElement)){}class ao extends(ro(e.FtLitElementRedux)){}var so=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class lo extends ao{constructor(){super(),this.editorMode=!1,this.addStore(Ki)}render(){return this.key&&this.context?i.html`
|
|
1329
1329
|
<span class="ft-i18n">
|
|
1330
1330
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1331
1331
|
</span>
|
|
@@ -1573,7 +1573,7 @@ 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 wo(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())}}$o.elementDefinitions={"ft-ripple":si,"ft-typography":Ve,"ft-icon":qe},$o.styles=xo,Oo([o.property()],$o.prototype,"value",void 0),Oo([o.query(".ft-text-field-suggestion")],$o.prototype,"container",void 0),Oo([o.queryAssignedNodes()],$o.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(vo),e.customElement("ft-text-field-suggestion")($o);class So{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,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],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:i,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,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"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 No{convertPaginatedToc(t){return new So(t).build()}}class ko{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return 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,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,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!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",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:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}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 i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.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,i){return this.makeRateTopicRequest(t,e,i).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,i){return this.makeTopicFeedbackRequest(t,e,i)}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),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return ee(null!=e?e:[],Jt.FEEDBACK_USER);case s.RATING:return ee(null!=e?e:[],Jt.RATING_USER)&&null!=i&&i!==Zt.NO_RATING;case s.PRINT:return ee(null!=e?e:[],Jt.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return ee(null!=e?e:[],Jt.COLLECTION_USER);case s.PERSONAL_BOOKS:return ee(null!=e?e:[],Jt.PERSONAL_BOOK_USER);default:return!1}}}class Co extends ko{static async build(t){return new Co(new No,await Zi.await(),new e.CacheRegistry,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}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,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Io{static build(t,i){return new Io((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}}))(t.trim()||"context"),null!=i?i:Co.build)}constructor(t,i){this.store=t,this.reloadDebouncer=new e.Debouncer(10),this.initService(i)}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,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.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 i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}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),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,i,o,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===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.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)}}}const Ro=i.css`
|
|
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 wo(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())}}$o.elementDefinitions={"ft-ripple":si,"ft-typography":Ve,"ft-icon":qe},$o.styles=xo,Oo([o.property()],$o.prototype,"value",void 0),Oo([o.query(".ft-text-field-suggestion")],$o.prototype,"container",void 0),Oo([o.queryAssignedNodes()],$o.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(vo),e.customElement("ft-text-field-suggestion")($o);class So{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,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],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:i,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,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"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 No{convertPaginatedToc(t){return new So(t).build()}}class ko{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return 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,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,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!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",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:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}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 i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.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,i){return this.makeRateTopicRequest(t,e,i).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,i){return this.makeTopicFeedbackRequest(t,e,i)}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),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){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!=i&&i!==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 Co extends ko{static async build(t){return new Co(new No,await Zi.await(),new e.CacheRegistry,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}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,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Io{static build(t,i){return new Io((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!=i?i:Co.build)}constructor(t,i){this.store=t,this.reloadDebouncer=new e.Debouncer(10),this.initService(i)}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,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.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 i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}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,i,o,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===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.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 Ro=i.css`
|
|
1577
1577
|
`;class Eo extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Uo extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Lo extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Wo extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class _o extends Event{constructor(){super("ft-reader-map-not-found")}}class To extends Event{constructor(){super("ft-reader-map-unauthorized")}}var zo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Do extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(Ki)}render(){return i.html`
|
|
1578
1578
|
${this.importStyleIfNeeded()}
|
|
1579
1579
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
@@ -1581,7 +1581,7 @@ const Ae=Symbol.for(""),Be=t=>{if(t?.r===Ae)return t?._$litStatic$},Fe=t=>({_$li
|
|
|
1581
1581
|
<style>
|
|
1582
1582
|
@import "${o}"
|
|
1583
1583
|
</style>
|
|
1584
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Io.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),["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 Eo(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 Lo(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 Uo(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 _o):401===e.status?this.dispatchEvent(new To):this.dispatchEvent(new Wo(t))}reloadBookmarks(){to.reloadBookmarks()}}var Ao;Do.styles=Ro,zo([e.redux({store:Ki.name})],Do.prototype,"baseUrl",void 0),zo([o.property()],Do.prototype,"mapId",void 0),zo([o.property()],Do.prototype,"tocId",void 0),zo([o.property()],Do.prototype,"section",void 0),zo([o.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Ao}})],Do.prototype,"page",void 0),zo([e.redux({store:"reader"})],Do.prototype,"map",void 0),zo([e.redux({store:"reader"})],Do.prototype,"toc",void 0),zo([e.redux({store:"reader"})],Do.prototype,"visibleTopics",void 0),zo([e.redux({store:"reader"})],Do.prototype,"currentPage",void 0),zo([e.redux({store:"reader"})],Do.prototype,"scrollTarget",void 0),zo([o.property({attribute:!1})],Do.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Do);var Bo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Fo extends(ro(h)){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(fo,po),this.addI18nContext(uo,go)}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,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,i;const o=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.date;return"string"==typeof o?e.parseDate(o):o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?i.html`
|
|
1584
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Io.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 Eo(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 Lo(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 Uo(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 _o):401===e.status?this.dispatchEvent(new To):this.dispatchEvent(new Wo(t))}reloadBookmarks(){to.reloadBookmarks()}}var Ao;Do.styles=Ro,zo([e.redux({store:Ki.name})],Do.prototype,"baseUrl",void 0),zo([o.property()],Do.prototype,"mapId",void 0),zo([o.property()],Do.prototype,"tocId",void 0),zo([o.property()],Do.prototype,"section",void 0),zo([o.property()],Do.prototype,"searchInDocumentQuery",void 0),zo([o.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Ao}})],Do.prototype,"page",void 0),zo([e.redux({store:"reader"})],Do.prototype,"map",void 0),zo([e.redux({store:"reader"})],Do.prototype,"toc",void 0),zo([e.redux({store:"reader"})],Do.prototype,"visibleTopics",void 0),zo([e.redux({store:"reader"})],Do.prototype,"currentPage",void 0),zo([e.redux({store:"reader"})],Do.prototype,"scrollTarget",void 0),zo([o.property({attribute:!1})],Do.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Do);var Bo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Fo extends(ro(h)){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(fo,po),this.addI18nContext(uo,go)}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,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,i;const o=null===(i=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===i?void 0:i.date;return"string"==typeof o?e.parseDate(o):o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?i.html`
|
|
1585
1585
|
<div class="ft-reader-feedback">
|
|
1586
1586
|
${this.hideTitle?i.nothing:i.html`
|
|
1587
1587
|
<ft-typography variant="title" part="main-title">
|