@fluid-topics/ft-reader-feedback 1.0.60 → 1.0.61
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 +184 -182
- package/build/ft-reader-feedback.min.js +245 -243
- package/package.json +6 -6
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${p.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,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=t,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.extend("--ft-button-secondary-background-color","",$.colorWhite),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),E={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")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",I),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",I),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",I),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",I),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},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=t,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.extend("--ft-button-secondary-background-color","",$.colorWhite),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),E={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")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",I),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",I),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",I),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",I),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ht=i.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${R.fontFamily};
|
|
116
116
|
font-size: ${R.fontSize};
|
|
@@ -131,15 +131,15 @@
|
|
|
131
131
|
`,pt=i.css`
|
|
132
132
|
.ft-typography--subtitle1 {
|
|
133
133
|
font-family: ${L};
|
|
134
|
-
font-size: ${
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
134
|
+
font-size: ${W};
|
|
135
|
+
font-weight: ${_};
|
|
136
|
+
letter-spacing: ${T};
|
|
137
|
+
line-height: ${z};
|
|
138
|
+
text-transform: ${D};
|
|
139
139
|
}
|
|
140
140
|
`,ut=i.css`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
|
-
font-family: ${
|
|
142
|
+
font-family: ${A};
|
|
143
143
|
font-size: ${B};
|
|
144
144
|
font-weight: ${F};
|
|
145
145
|
letter-spacing: ${K};
|
|
@@ -206,12 +206,14 @@
|
|
|
206
206
|
vertical-align: inherit;
|
|
207
207
|
}
|
|
208
208
|
`,wt=[Object.keys(S).map((t=>function(t){const e=S[t];return i.css`
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
209
|
+
.ft-typography--${i.unsafeCSS(t)} {
|
|
210
|
+
font-family: ${e.fontFamily};
|
|
211
|
+
font-size: ${e.fontSize};
|
|
212
|
+
font-weight: ${e.fontWeight};
|
|
213
|
+
letter-spacing: ${e.letterSpacing};
|
|
214
|
+
line-height: ${e.lineHeight};
|
|
215
|
+
text-transform: ${e.textCase};
|
|
216
|
+
}
|
|
215
217
|
`}(t)))],$t={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},St=i.css`
|
|
216
218
|
:host {
|
|
217
219
|
line-height: 0;
|
|
@@ -329,7 +331,7 @@
|
|
|
329
331
|
.ft-icon--material {
|
|
330
332
|
font-family: ${Nt.materialFontFamily}, "Material Icons", sans-serif;
|
|
331
333
|
}
|
|
332
|
-
`,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),It={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),
|
|
334
|
+
`,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),It={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),_t=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Tt=[i.css`
|
|
333
335
|
:host {
|
|
334
336
|
display: inline-block;
|
|
335
337
|
max-width: 100%;
|
|
@@ -387,13 +389,13 @@
|
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
.ft-button.ft-button--dense {
|
|
390
|
-
padding: ${Lt} ${
|
|
392
|
+
padding: ${Lt} ${Wt};
|
|
391
393
|
border-radius: ${Ut};
|
|
392
|
-
gap: ${
|
|
394
|
+
gap: ${_t};
|
|
393
395
|
}
|
|
394
396
|
|
|
395
397
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
396
|
-
padding: calc(${Lt} - 1px) calc(${
|
|
398
|
+
padding: calc(${Lt} - 1px) calc(${Wt} - 1px);
|
|
397
399
|
}
|
|
398
400
|
|
|
399
401
|
.ft-button:not([disabled]):hover {
|
|
@@ -435,7 +437,7 @@
|
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
.ft-button--dense .ft-button--label {
|
|
438
|
-
margin: 0 ${
|
|
440
|
+
margin: 0 ${_t};
|
|
439
441
|
}
|
|
440
442
|
|
|
441
443
|
.ft-button--label[hidden] {
|
|
@@ -453,7 +455,7 @@
|
|
|
453
455
|
}
|
|
454
456
|
|
|
455
457
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
456
|
-
margin: 0 calc(${
|
|
458
|
+
margin: 0 calc(${Wt} * -1);
|
|
457
459
|
padding: 0 ${Lt};
|
|
458
460
|
}
|
|
459
461
|
|
|
@@ -466,7 +468,7 @@
|
|
|
466
468
|
${e.setVariable($t.size,It.iconSize)};
|
|
467
469
|
${e.setVariable($t.color,"var(--ft-button-internal-color)")};
|
|
468
470
|
}
|
|
469
|
-
`,e.noTextSelect],
|
|
471
|
+
`,e.noTextSelect],zt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},Dt={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography")},At=i.css`
|
|
470
472
|
.ft-reader-feedback {
|
|
471
473
|
box-sizing: border-box;
|
|
472
474
|
display: flex;
|
|
@@ -512,14 +514,14 @@
|
|
|
512
514
|
}
|
|
513
515
|
|
|
514
516
|
.ft-reader-feedback--rating {
|
|
515
|
-
${e.setVariable(It.color,
|
|
516
|
-
${e.setVariable(It.rippleColor,
|
|
517
|
-
${e.setVariable(
|
|
518
|
-
${e.setVariable(
|
|
517
|
+
${e.setVariable(It.color,Dt.emptyRatingColor)};
|
|
518
|
+
${e.setVariable(It.rippleColor,Dt.filledRatingColor)};
|
|
519
|
+
${e.setVariable(zt.textColor,Dt.emptyRatingColor)};
|
|
520
|
+
${e.setVariable(zt.selectedTextColor,Dt.filledRatingColor)};
|
|
519
521
|
}
|
|
520
522
|
|
|
521
523
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
522
|
-
${e.setVariable(It.color,
|
|
524
|
+
${e.setVariable(It.color,Dt.filledRatingColor)};
|
|
523
525
|
}
|
|
524
526
|
|
|
525
527
|
.ft-reader-feedback--feedback {
|
|
@@ -527,42 +529,42 @@
|
|
|
527
529
|
}
|
|
528
530
|
|
|
529
531
|
.ft-reader-feedback--rating-date {
|
|
530
|
-
color: ${
|
|
532
|
+
color: ${Dt.ratedDateColor};
|
|
531
533
|
}
|
|
532
534
|
|
|
533
535
|
.ft-reader-feedback--feedback ft-text-area {
|
|
534
|
-
min-width: ${
|
|
536
|
+
min-width: ${Dt.feedbackInputMinWidth};
|
|
535
537
|
}
|
|
536
538
|
|
|
537
539
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
538
540
|
align-self: flex-end;
|
|
539
|
-
${e.setVariable(It.color,
|
|
540
|
-
${e.setVariable(It.backgroundColor,
|
|
541
|
+
${e.setVariable(It.color,Dt.sendFeedbackColor)};
|
|
542
|
+
${e.setVariable(It.backgroundColor,Dt.sendFeedbackBackgroundColor)};
|
|
541
543
|
}
|
|
542
|
-
`;!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);const Bt=t=>"object"==typeof t&&null!=t,Ft=t=>"string"==typeof t;var Kt,Zt,Pt,Mt,Ht,jt,Gt,Vt,Yt,qt,Xt,Jt;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Kt||(Kt={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Zt||(Zt={})),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"}(Pt||(Pt={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Mt||(Mt={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ht||(Ht={})),function(t){t.ASC="ASC",t.DESC="DESC"}(jt||(jt={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Gt||(Gt={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(Vt||(Vt={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Yt||(Yt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(qt||(qt={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(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=t=>Bt(t)&&(null==t.authenticationIdentifier||(t=>Bt(t)&&Ft(t.identifier)&&Ft(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&te(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),te=t=>Bt(t)&&(null==t.emailAddress||Ft(t.emailAddress))&&(null==t.displayName||Ft(t.displayName))&&Array.isArray(t.roles)&&t.roles.every((t=>(t=>["PERSONAL_BOOK_USER","PERSONAL_BOOK_SHARE_USER","HTML_EXPORT_USER","PDF_EXPORT_USER","SAVED_SEARCH_USER","COLLECTION_USER","OFFLINE_USER","ANALYTICS_USER","BETA_USER","DEBUG_USER","PRINT_USER","RATING_USER","FEEDBACK_USER","CONTENT_PUBLISHER","KHUB_ADMIN","USERS_ADMIN","PORTAL_ADMIN","ADMIN","DEVELOPER"].includes(t))(t)))&&(null==t.userId||Ft(t.userId)),ee={[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 ie(t,e){return t===e||(ee[t]??[]).some((t=>ie(t,e)))}function oe(t,e){return(Qt(t)?t.profile.roles:te(t)?t.roles:t).some((t=>ie(t,e)))}
|
|
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)))}
|
|
543
545
|
/**
|
|
544
546
|
* @license
|
|
545
547
|
* Copyright 2017 Google LLC
|
|
546
548
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
547
|
-
*/var
|
|
549
|
+
*/var ie;const oe=window,re=oe.trustedTypes,ne=re?re.createPolicy("lit-html",{createHTML:t=>t}):void 0,ae="$lit$",se=`lit$${(Math.random()+"").slice(9)}$`,le="?"+se,ce=`<${le}>`,de=document,he=()=>de.createComment(""),fe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,pe=Array.isArray,ue="[ \t\n\f\r]",ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,be=/>/g,me=RegExp(`>|${ue}(?:([^\\s"'>=/]+)(${ue}*=${ue}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,xe=/"/g,Oe=/^(?:script|style|textarea|title)$/i,we=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),$e=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Ne=new WeakMap,ke=de.createTreeWalker(de,129,null,!1),Ce=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=ge;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,d=0;for(;d<i.length&&(a.lastIndex=d,l=a.exec(i),null!==l);)d=a.lastIndex,a===ge?"!--"===l[1]?a=ye:void 0!==l[1]?a=be:void 0!==l[2]?(Oe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=me):void 0!==l[3]&&(a=me):a===me?">"===l[0]?(a=null!=r?r:ge,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?me:'"'===l[3]?xe:ve):a===xe||a===ve?a=me:a===ye||a===be?a=ge:(a=me,r=void 0);const h=a===me&&t[e+1].startsWith("/>")?" ":"";n+=a===ge?i+ce:c>=0?(o.push(s),i.slice(0,c)+ae+i.slice(c)+se+h):i+se+(-2===c?(o.push(void 0),e):h)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==ne?ne.createHTML(s):s,o]};class Ie{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=Ce(t,e);if(this.el=Ie.createElement(l,i),ke.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ke.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(ae)||e.startsWith(se)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+ae).split(se),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?We:"?"===e[1]?Te:"@"===e[1]?ze:Le})}else s.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(Oe.test(o.tagName)){const t=o.textContent.split(se),e=t.length-1;if(e>0){o.textContent=re?re.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],he()),ke.nextNode(),s.push({type:2,index:++r});o.append(t[e],he())}}}else if(8===o.nodeType)if(o.data===le)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(se,t+1));)s.push({type:7,index:r}),t+=se.length-1}r++}}static createElement(t,e){const i=de.createElement("template");return i.innerHTML=t,i}}function Ee(t,e,i=t,o){var r,n,a,s;if(e===$e)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const c=fe(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(a=(s=i)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Ee(t,l._$AS(t,e.values),l,o)),e}class Re{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:de).importNode(i,!0);ke.currentNode=r;let n=ke.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new Ue(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new De(n,this,t)),this._$AV.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(n=ke.nextNode(),a++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ue{constructor(t,e,i,o){var r;this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ee(this,t,e),fe(t)?t===Se||null==t||""===t?(this._$AH!==Se&&this._$AR(),this._$AH=Se):t!==this._$AH&&t!==$e&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>pe(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Se&&fe(this._$AH)?this._$AA.nextSibling.data=t:this.$(de.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Ie.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new Re(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Ne.get(t.strings);return void 0===e&&Ne.set(t.strings,e=new Ie(t)),e}T(t){pe(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Ue(this.k(he()),this.k(he()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Le{constructor(t,e,i,o,r){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=Ee(this,t,e,0),n=!fe(t)||t!==this._$AH&&t!==$e,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Ee(this,o[i+a],e,a),s===$e&&(s=this._$AH[a]),n||(n=!fe(s)||s!==this._$AH[a]),s===Se?t=Se:t!==Se&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.j(t)}j(t){t===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class We extends Le{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Se?void 0:t}}const _e=re?re.emptyScript:"";class Te extends Le{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Se?this.element.setAttribute(this.name,_e):this.element.removeAttribute(this.name)}}class ze extends Le{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Ee(this,t,e,0))&&void 0!==i?i:Se)===$e)return;const o=this._$AH,r=t===Se&&o!==Se||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Se&&(o===Se||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class De{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Ee(this,t)}}const Ae=oe.litHtmlPolyfillSupport;null==Ae||Ae(Ie,Ue),(null!==(ie=oe.litHtmlVersions)&&void 0!==ie?ie:oe.litHtmlVersions=[]).push("2.7.3");
|
|
548
550
|
/**
|
|
549
551
|
* @license
|
|
550
552
|
* Copyright 2020 Google LLC
|
|
551
553
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
554
|
*/
|
|
553
|
-
const
|
|
554
|
-
<${
|
|
555
|
+
const Be=Symbol.for(""),Fe=t=>{if((null==t?void 0:t.r)===Be)return null==t?void 0:t._$litStatic$},Ke=t=>({_$litStatic$:t,r:Be}),Ze=new Map,Pe=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Fe(n));)l+=r+e[++c],d=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),d){const t=a.join("$$lit$$");void 0===(e=Ze.get(t))&&(a.raw=a,Ze.set(t,e=a)),i=s}return t(e,...i)})(we);var Me;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Me||(Me={}));var He,je,Ge,Ve=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 Ye extends e.FtLitElement{constructor(){super(...arguments),this.variant=Me.body1}render(){return this.element?Pe`
|
|
556
|
+
<${Ke(this.element)}
|
|
555
557
|
class="ft-typography ft-typography--${this.variant}">
|
|
556
558
|
<slot></slot>
|
|
557
|
-
</${
|
|
558
|
-
`:
|
|
559
|
+
</${Ke(this.element)}>
|
|
560
|
+
`:Pe`
|
|
559
561
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
560
|
-
`}}
|
|
562
|
+
`}}Ye.styles=[ht,ft,pt,ut,gt,yt,bt,mt,vt,xt,Ot,...wt],Ve([o.property()],Ye.prototype,"element",void 0),Ve([o.property()],Ye.prototype,"variant",void 0),e.customElement("ft-typography")(Ye),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(He||(He={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(je||(je={})),new Map([...["abw"].map((t=>[t,je.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,je.AUDIO])),...["avi"].map((t=>[t,je.AVI])),...["chm","xhs"].map((t=>[t,je.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,je.CODE])),...["csv"].map((t=>[t,je.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,je.DITA])),...["epub"].map((t=>[t,je.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,je.EXCEL])),...["flac"].map((t=>[t,je.FLAC])),...["gif"].map((t=>[t,je.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,je.GZIP])),...["html","htm","xhtml"].map((t=>[t,je.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,je.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,je.JPEG])),...["json"].map((t=>[t,je.JSON])),...["m4a","m4p"].map((t=>[t,je.M4A])),...["mov","qt"].map((t=>[t,je.MOV])),...["mp3"].map((t=>[t,je.MP3])),...["mp4","m4v"].map((t=>[t,je.MP4])),...["ogg","oga"].map((t=>[t,je.OGG])),...["pdf","ps"].map((t=>[t,je.PDF])),...["png"].map((t=>[t,je.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,je.POWERPOINT])),...["rar"].map((t=>[t,je.RAR])),...["stp"].map((t=>[t,je.STP])),...["txt","rtf","md","mdown"].map((t=>[t,je.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,je.VIDEO])),...["wav"].map((t=>[t,je.WAV])),...["wma"].map((t=>[t,je.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,je.WORD])),...["xml","xsl","rdf"].map((t=>[t,je.XML])),...["yaml","yml","x-yaml"].map((t=>[t,je.YAML])),...["zip"].map((t=>[t,je.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ge||(Ge={}));var qe=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 Xe extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,e=t!==Ge.material||!!this.value;return i.html`
|
|
561
563
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
562
564
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
563
565
|
<slot ?hidden=${e}></slot>
|
|
564
566
|
</i>
|
|
565
|
-
`}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
|
|
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 Ge.file_format:this.resolvedIcon=null!==(t=je[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ge.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=He[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Xe.elementDefinitions={},Xe.styles=kt,qe([o.property()],Xe.prototype,"variant",void 0),qe([o.property()],Xe.prototype,"value",void 0),qe([o.state()],Xe.prototype,"resolvedIcon",void 0),qe([o.query("slot")],Xe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Xe);const Je=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Qe=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ti=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ei=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),ii=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),oi=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),ri=i.css`
|
|
566
568
|
.ft-tooltip--container {
|
|
567
569
|
display: block;
|
|
568
570
|
}
|
|
@@ -577,21 +579,21 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
577
579
|
box-sizing: border-box;
|
|
578
580
|
overflow: hidden;
|
|
579
581
|
width: max-content;
|
|
580
|
-
max-width: ${
|
|
582
|
+
max-width: ${oi};
|
|
581
583
|
text-align: center;
|
|
582
|
-
padding: ${
|
|
583
|
-
z-index: ${
|
|
584
|
+
padding: ${Je};
|
|
585
|
+
z-index: ${ei};
|
|
584
586
|
}
|
|
585
587
|
|
|
586
588
|
.ft-tooltip--content {
|
|
587
589
|
padding: 4px 8px;
|
|
588
|
-
border-radius: ${
|
|
589
|
-
background-color: ${
|
|
590
|
-
color: ${
|
|
590
|
+
border-radius: ${ii};
|
|
591
|
+
background-color: ${ti};
|
|
592
|
+
color: ${Qe};
|
|
591
593
|
position: relative;
|
|
592
594
|
word-break: break-word;
|
|
593
595
|
}
|
|
594
|
-
`;var
|
|
596
|
+
`;var ni=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 ai extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return i.html`
|
|
595
597
|
<div part="container"
|
|
596
598
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
597
599
|
@mouseenter=${this.onHover}
|
|
@@ -609,7 +611,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
609
611
|
</div>
|
|
610
612
|
</div>
|
|
611
613
|
</div>
|
|
612
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,d=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,d))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${
|
|
614
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,d=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,d))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${oi})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ai.elementDefinitions={"ft-typography":Ye},ai.styles=ri,ni([o.property()],ai.prototype,"text",void 0),ni([o.property({type:Boolean})],ai.prototype,"manual",void 0),ni([o.property({type:Boolean})],ai.prototype,"inline",void 0),ni([o.property({type:Number})],ai.prototype,"delay",void 0),ni([o.property()],ai.prototype,"position",void 0),ni([o.queryAssignedNodes("",!0)],ai.prototype,"slotNodes",void 0),ni([o.query(".ft-tooltip--container")],ai.prototype,"container",void 0),ni([o.query(".ft-tooltip")],ai.prototype,"tooltip",void 0),ni([o.query(".ft-tooltip--content")],ai.prototype,"tooltipContent",void 0),ni([o.state()],ai.prototype,"visible",void 0),e.customElement("ft-tooltip")(ai);var si=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 li extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
613
615
|
<style>
|
|
614
616
|
.ft-ripple .ft-ripple--effect {
|
|
615
617
|
left: ${this.originX}px;
|
|
@@ -620,7 +622,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
620
622
|
<div class="ft-ripple--background"></div>
|
|
621
623
|
<div class="ft-ripple--effect"></div>
|
|
622
624
|
</div>
|
|
623
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
625
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}li.elementDefinitions={},li.styles=x,si([o.property({type:Boolean})],li.prototype,"primary",void 0),si([o.property({type:Boolean})],li.prototype,"secondary",void 0),si([o.property({type:Boolean})],li.prototype,"unbounded",void 0),si([o.property({type:Boolean})],li.prototype,"activated",void 0),si([o.property({type:Boolean})],li.prototype,"selected",void 0),si([o.property({type:Boolean})],li.prototype,"disabled",void 0),si([o.state()],li.prototype,"hovered",void 0),si([o.state()],li.prototype,"focused",void 0),si([o.state()],li.prototype,"pressed",void 0),si([o.state()],li.prototype,"rippling",void 0),si([o.state()],li.prototype,"originX",void 0),si([o.state()],li.prototype,"originY",void 0),si([o.query(".ft-ripple")],li.prototype,"ripple",void 0),si([o.query(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(li);const ci={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},di=i.css`
|
|
624
626
|
.ft-switch-option {
|
|
625
627
|
position: relative;
|
|
626
628
|
display: inline-block;
|
|
@@ -634,20 +636,20 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
634
636
|
}
|
|
635
637
|
|
|
636
638
|
.ft-switch-option--content {
|
|
637
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
638
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
639
|
+
--ft-switch-option-internal-line-height: calc(${zt.fontSize} + 2px);
|
|
640
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${zt.iconSize});
|
|
639
641
|
|
|
640
642
|
border-style: solid;
|
|
641
|
-
border-color: ${
|
|
642
|
-
border-width: ${
|
|
643
|
-
border-radius: ${
|
|
643
|
+
border-color: ${zt.borderColor};
|
|
644
|
+
border-width: ${ci.borderWidthVertical} ${ci.borderWidthRight} ${ci.borderWidthVertical} ${ci.borderWidthLeft};
|
|
645
|
+
border-radius: ${ci.borderRadiusLeft} ${ci.borderRadiusRight} ${ci.borderRadiusRight} ${ci.borderRadiusLeft};
|
|
644
646
|
display: flex;
|
|
645
647
|
align-items: center;
|
|
646
648
|
justify-content: center;
|
|
647
649
|
overflow: hidden;
|
|
648
|
-
${e.setVariable(Nt.size,
|
|
650
|
+
${e.setVariable(Nt.size,zt.iconSize)};
|
|
649
651
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
650
|
-
background-color: ${
|
|
652
|
+
background-color: ${zt.backgroundColor};
|
|
651
653
|
-webkit-mask-image: radial-gradient(white, black);
|
|
652
654
|
}
|
|
653
655
|
|
|
@@ -656,8 +658,8 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
656
658
|
}
|
|
657
659
|
|
|
658
660
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
659
|
-
background-color: ${
|
|
660
|
-
border-radius: ${
|
|
661
|
+
background-color: ${zt.selectedBackgroundColor};
|
|
662
|
+
border-radius: ${ci.borderRadiusLeft} ${ci.borderRadiusRight} ${ci.borderRadiusRight} ${ci.borderRadiusLeft};
|
|
661
663
|
position: absolute;
|
|
662
664
|
inset: 0;
|
|
663
665
|
content: "";
|
|
@@ -666,18 +668,18 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
666
668
|
}
|
|
667
669
|
|
|
668
670
|
.ft-switch-option--label {
|
|
669
|
-
color: ${
|
|
671
|
+
color: ${zt.textColor};
|
|
670
672
|
overflow: hidden;
|
|
671
673
|
white-space: nowrap;
|
|
672
674
|
text-overflow: ellipsis;
|
|
673
675
|
display: block;
|
|
674
676
|
margin: 0 8px;
|
|
675
|
-
${e.setVariable(dt.fontSize,
|
|
677
|
+
${e.setVariable(dt.fontSize,zt.fontSize)};
|
|
676
678
|
${e.setVariable(dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
677
679
|
}
|
|
678
680
|
|
|
679
681
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
680
|
-
color: ${
|
|
682
|
+
color: ${zt.selectedTextColor};
|
|
681
683
|
}
|
|
682
684
|
|
|
683
685
|
.ft-switch-option--label[hidden] {
|
|
@@ -685,7 +687,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
685
687
|
}
|
|
686
688
|
|
|
687
689
|
.ft-switch-option--ripple {
|
|
688
|
-
${e.setVariable(p.color,
|
|
690
|
+
${e.setVariable(p.color,zt.rippleColor)};
|
|
689
691
|
}
|
|
690
692
|
|
|
691
693
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -698,13 +700,13 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
698
700
|
|
|
699
701
|
ft-icon {
|
|
700
702
|
flex-shrink: 0;
|
|
701
|
-
color: ${
|
|
703
|
+
color: ${zt.iconColor};
|
|
702
704
|
}
|
|
703
705
|
|
|
704
706
|
.ft-switch-option--selected ft-icon {
|
|
705
|
-
color: ${
|
|
707
|
+
color: ${zt.selectedTextColor};
|
|
706
708
|
}
|
|
707
|
-
`;var
|
|
709
|
+
`;var hi=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 fi extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class pi extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class ui extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new pi(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(i.html`
|
|
708
710
|
<label part="label" for="input" class=${n.classMap(t)}
|
|
709
711
|
@click=${this.onChange}>
|
|
710
712
|
<div class="ft-switch-option--content">
|
|
@@ -726,23 +728,23 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
726
728
|
position="${this.tooltipPosition}">
|
|
727
729
|
${t}
|
|
728
730
|
</ft-tooltip>
|
|
729
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
731
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new fi(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?i.html`
|
|
730
732
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
731
|
-
`:i.nothing}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}
|
|
733
|
+
`:i.nothing}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}ui.elementDefinitions={"ft-ripple":li,"ft-typography":Ye,"ft-tooltip":ai,"ft-icon":Xe},ui.styles=[e.safariEllipsisFix,di],hi([o.property()],ui.prototype,"value",void 0),hi([o.property()],ui.prototype,"icon",void 0),hi([o.property()],ui.prototype,"iconVariant",void 0),hi([o.property()],ui.prototype,"label",void 0),hi([o.property()],ui.prototype,"tooltipPosition",void 0),hi([o.property({type:Boolean,reflect:!0})],ui.prototype,"selected",void 0),hi([o.property({type:Boolean})],ui.prototype,"trailingIcon",void 0),hi([o.property({type:Boolean})],ui.prototype,"unselectable",void 0),hi([o.query(".ft-switch-option--content slot")],ui.prototype,"slottedContent",void 0),hi([o.query(".ft-switch-option--input")],ui.prototype,"input",void 0);var gi=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 CustomEvent{constructor(t){super("change",{detail:t})}}class bi extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return i.html`
|
|
732
734
|
<div @keydown=${this.onKeyDown} tabindex="0" class="${n.classMap(t)}">
|
|
733
735
|
<slot @slotchange=${this.onSlotchange}
|
|
734
736
|
@option-change=${this.onOptionChangeByScript}
|
|
735
737
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
736
738
|
></slot>
|
|
737
739
|
</div>
|
|
738
|
-
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof
|
|
740
|
+
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof ui&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new yi(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}bi.elementDefinitions={},bi.styles=i.css`
|
|
739
741
|
:host {
|
|
740
742
|
display: inline-block;
|
|
741
743
|
}
|
|
742
744
|
|
|
743
745
|
.ft-switch {
|
|
744
|
-
border-radius: ${
|
|
745
|
-
outline-color: ${
|
|
746
|
+
border-radius: ${zt.borderRadius};
|
|
747
|
+
outline-color: ${zt.outlineColor};
|
|
746
748
|
}
|
|
747
749
|
|
|
748
750
|
.ft-switch slot {
|
|
@@ -751,25 +753,25 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
751
753
|
}
|
|
752
754
|
|
|
753
755
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
754
|
-
${e.setVariable(
|
|
755
|
-
${e.setVariable(
|
|
756
|
-
${e.setVariable(
|
|
756
|
+
${e.setVariable(ci.borderRadiusLeft,"0")};
|
|
757
|
+
${e.setVariable(ci.borderRadiusRight,"0")};
|
|
758
|
+
${e.setVariable(ci.borderWidthLeft,"0")};
|
|
757
759
|
}
|
|
758
760
|
|
|
759
761
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
760
|
-
${e.setVariable(
|
|
761
|
-
${e.setVariable(
|
|
762
|
+
${e.setVariable(ci.borderRadiusLeft,zt.borderRadius)};
|
|
763
|
+
${e.setVariable(ci.borderWidthLeft,"1px")};
|
|
762
764
|
}
|
|
763
765
|
|
|
764
766
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
765
|
-
${e.setVariable(
|
|
767
|
+
${e.setVariable(ci.borderRadiusRight,zt.borderRadius)};
|
|
766
768
|
}
|
|
767
769
|
|
|
768
770
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
769
771
|
--ft-switch-internal-vertical-padding: 2px;
|
|
770
772
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
771
773
|
}
|
|
772
|
-
`,
|
|
774
|
+
`,gi([o.property({type:Boolean})],bi.prototype,"dense",void 0),gi([o.property({type:Boolean})],bi.prototype,"unselectable",void 0),gi([o.query(".ft-switch slot")],bi.prototype,"slottedContent",void 0),gi([o.state()],bi.prototype,"selectedOption",void 0),gi([o.query(".ft-switch")],bi.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(bi),e.customElement("ft-switch-option")(ui);const mi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),xi=i.css`
|
|
773
775
|
:host {
|
|
774
776
|
display: block;
|
|
775
777
|
}
|
|
@@ -780,14 +782,14 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
780
782
|
|
|
781
783
|
ft-icon {
|
|
782
784
|
transform: rotate(-45deg);
|
|
783
|
-
color: ${
|
|
785
|
+
color: ${mi};
|
|
784
786
|
}
|
|
785
787
|
|
|
786
788
|
.ft-resizer--dragging ft-icon,
|
|
787
789
|
.ft-resizer:hover ft-icon {
|
|
788
|
-
color: ${
|
|
790
|
+
color: ${vi};
|
|
789
791
|
}
|
|
790
|
-
`;var
|
|
792
|
+
`;var Oi=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 wi extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class $i extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ge.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
|
|
791
793
|
<style>
|
|
792
794
|
.ft-resizer {
|
|
793
795
|
cursor: ${i.unsafeCSS(this.cursor)}
|
|
@@ -798,25 +800,25 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
798
800
|
@touchstart=${this.initDragFromTouch}>
|
|
799
801
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
800
802
|
</div>
|
|
801
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
803
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new wi(i,o))}}$i.elementDefinitions={"ft-icon":Xe},$i.styles=[e.noTextSelect,xi],Oi([o.property({type:Number})],$i.prototype,"initialWidth",void 0),Oi([o.property({type:Number})],$i.prototype,"initialHeight",void 0),Oi([o.property()],$i.prototype,"icon",void 0),Oi([o.property()],$i.prototype,"iconVariant",void 0),Oi([o.property()],$i.prototype,"cursor",void 0),Oi([o.state()],$i.prototype,"dragging",void 0),e.customElement("ft-resizer")($i);const Si={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Ni=i.css`
|
|
802
804
|
.ft-input-label {
|
|
803
805
|
position: absolute;
|
|
804
806
|
inset: 0;
|
|
805
807
|
display: flex;
|
|
806
|
-
background-color: ${
|
|
807
|
-
border-radius: ${
|
|
808
|
+
background-color: ${Si.colorSurface};
|
|
809
|
+
border-radius: ${Si.borderRadiusS} ${Si.borderRadiusS} 0 0;
|
|
808
810
|
}
|
|
809
811
|
|
|
810
812
|
.ft-input-label--outlined {
|
|
811
|
-
border-radius: ${
|
|
813
|
+
border-radius: ${Si.borderRadiusS};
|
|
812
814
|
}
|
|
813
815
|
|
|
814
816
|
.ft-input-label {
|
|
815
|
-
border-color: ${
|
|
817
|
+
border-color: ${Si.borderColor};
|
|
816
818
|
}
|
|
817
819
|
|
|
818
820
|
.ft-input-label.ft-input-label--in-error {
|
|
819
|
-
border-color: ${
|
|
821
|
+
border-color: ${Si.colorError}
|
|
820
822
|
}
|
|
821
823
|
|
|
822
824
|
.ft-input-label:before,
|
|
@@ -829,7 +831,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
829
831
|
}
|
|
830
832
|
|
|
831
833
|
.ft-input-label:before {
|
|
832
|
-
width: calc(${
|
|
834
|
+
width: calc(${Si.horizontalSpacing} - 4px);
|
|
833
835
|
flex-shrink: 0;
|
|
834
836
|
}
|
|
835
837
|
|
|
@@ -845,20 +847,20 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
845
847
|
border-bottom-width: 1px;
|
|
846
848
|
border-bottom-style: solid;
|
|
847
849
|
border-color: inherit;
|
|
848
|
-
color: ${
|
|
850
|
+
color: ${Si.textColor};
|
|
849
851
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
850
|
-
max-width: calc(${
|
|
852
|
+
max-width: calc(${Si.labelMaxWidth} - 2 * (${Si.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
851
853
|
text-overflow: ellipsis;
|
|
852
|
-
${e.setVariable(X.fontSize,
|
|
853
|
-
${e.setVariable(X.lineHeight,
|
|
854
|
+
${e.setVariable(X.fontSize,Si.fontSize)};
|
|
855
|
+
${e.setVariable(X.lineHeight,Si.fontSize)};
|
|
854
856
|
}
|
|
855
857
|
|
|
856
858
|
.ft-input-label--in-error .ft-input-label--text {
|
|
857
|
-
color: ${
|
|
859
|
+
color: ${Si.colorError}
|
|
858
860
|
}
|
|
859
861
|
|
|
860
862
|
.ft-input-label--disabled .ft-input-label--text {
|
|
861
|
-
color: ${
|
|
863
|
+
color: ${Si.disabledTextColor};
|
|
862
864
|
}
|
|
863
865
|
|
|
864
866
|
.ft-input-label--hidden-text {
|
|
@@ -875,19 +877,19 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
875
877
|
overflow: hidden;
|
|
876
878
|
white-space: nowrap;
|
|
877
879
|
text-overflow: ellipsis;
|
|
878
|
-
padding: ${
|
|
879
|
-
margin: calc(${
|
|
880
|
+
padding: ${Si.verticalSpacing} 4px;
|
|
881
|
+
margin: calc(${Si.verticalSpacing} * -1) 0;
|
|
880
882
|
max-width: 100%;
|
|
881
883
|
box-sizing: border-box;
|
|
882
884
|
}
|
|
883
885
|
|
|
884
886
|
.ft-input-label--raised .ft-input-label--text {
|
|
885
|
-
${e.setVariable(X.fontSize,
|
|
886
|
-
${e.setVariable(X.lineHeight,
|
|
887
|
+
${e.setVariable(X.fontSize,Si.raisedFontSize)};
|
|
888
|
+
${e.setVariable(X.lineHeight,Si.raisedFontSize)};
|
|
887
889
|
}
|
|
888
890
|
|
|
889
891
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
890
|
-
top: ${
|
|
892
|
+
top: ${Si.verticalSpacing};
|
|
891
893
|
}
|
|
892
894
|
|
|
893
895
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -900,27 +902,27 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
900
902
|
.ft-input-label--outlined:before {
|
|
901
903
|
border-left-width: 1px;
|
|
902
904
|
border-left-style: solid;
|
|
903
|
-
border-radius: ${
|
|
905
|
+
border-radius: ${Si.borderRadiusS} 0 0 ${Si.borderRadiusS};
|
|
904
906
|
}
|
|
905
907
|
|
|
906
908
|
.ft-input-label--outlined:after {
|
|
907
909
|
border-right-width: 1px;
|
|
908
910
|
border-right-style: solid;
|
|
909
|
-
border-radius: 0 ${
|
|
911
|
+
border-radius: 0 ${Si.borderRadiusS} ${Si.borderRadiusS} 0;
|
|
910
912
|
}
|
|
911
913
|
|
|
912
914
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
913
915
|
padding: 2px 4px;
|
|
914
|
-
z-index: ${
|
|
915
|
-
background-color: ${
|
|
916
|
-
border-radius: ${
|
|
916
|
+
z-index: ${Si.raisedZIndex};
|
|
917
|
+
background-color: ${Si.colorSurface};
|
|
918
|
+
border-radius: ${Si.borderRadiusS};
|
|
917
919
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
918
920
|
}
|
|
919
921
|
|
|
920
922
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
921
923
|
border-top: none;
|
|
922
924
|
}
|
|
923
|
-
`;var
|
|
925
|
+
`;var ki=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 Ci extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
|
|
924
926
|
<div class="${n.classMap(t)}">
|
|
925
927
|
${this.text?i.html`
|
|
926
928
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -929,7 +931,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
929
931
|
</div>
|
|
930
932
|
`:null}
|
|
931
933
|
</div>
|
|
932
|
-
`}}
|
|
934
|
+
`}}Ci.elementDefinitions={},Ci.styles=[bt,Ni],ki([o.property({type:String})],Ci.prototype,"text",void 0),ki([o.property({type:Boolean})],Ci.prototype,"raised",void 0),ki([o.property({type:Boolean})],Ci.prototype,"outlined",void 0),ki([o.property({type:Boolean})],Ci.prototype,"disabled",void 0),ki([o.property({type:Boolean})],Ci.prototype,"error",void 0),e.customElement("ft-input-label")(Ci);const Ii={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Ei=i.css`
|
|
933
935
|
*:focus {
|
|
934
936
|
outline: none;
|
|
935
937
|
}
|
|
@@ -941,10 +943,10 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
941
943
|
}
|
|
942
944
|
|
|
943
945
|
ft-input-label {
|
|
944
|
-
${e.setVariable(
|
|
945
|
-
${e.setVariable(
|
|
946
|
-
${e.setVariable(
|
|
947
|
-
${e.setVariable(
|
|
946
|
+
${e.setVariable(Si.fontSize,Ii.fontSize)};
|
|
947
|
+
${e.setVariable(Si.raisedFontSize,Ii.labelSize)};
|
|
948
|
+
${e.setVariable(Si.verticalSpacing,Ii.verticalSpacing)};
|
|
949
|
+
${e.setVariable(Si.horizontalSpacing,Ii.horizontalSpacing)};
|
|
948
950
|
}
|
|
949
951
|
|
|
950
952
|
.ft-text-area--main-panel {
|
|
@@ -975,12 +977,12 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
975
977
|
align-self: stretch;
|
|
976
978
|
resize: none;
|
|
977
979
|
|
|
978
|
-
${e.setVariable(M.fontSize,
|
|
979
|
-
${e.setVariable(M.lineHeight,
|
|
980
|
-
color: ${
|
|
980
|
+
${e.setVariable(M.fontSize,Ii.fontSize)};
|
|
981
|
+
${e.setVariable(M.lineHeight,Ii.fontSize)};
|
|
982
|
+
color: ${Ii.colorOnSurface};
|
|
981
983
|
|
|
982
|
-
padding: 0 ${
|
|
983
|
-
margin: calc(${
|
|
984
|
+
padding: 0 ${Ii.horizontalSpacing};
|
|
985
|
+
margin: calc(${Ii.verticalSpacing} + ${Ii.labelSize} / 2) 0 ${Ii.verticalSpacing} 0;
|
|
984
986
|
|
|
985
987
|
border: none;
|
|
986
988
|
background: none;
|
|
@@ -989,7 +991,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
989
991
|
}
|
|
990
992
|
|
|
991
993
|
.ft-text-area--disabled .ft-text-area--input {
|
|
992
|
-
color: ${
|
|
994
|
+
color: ${Ii.colorOnSurfaceDisabled};
|
|
993
995
|
}
|
|
994
996
|
|
|
995
997
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -997,42 +999,42 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
997
999
|
}
|
|
998
1000
|
|
|
999
1001
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1000
|
-
${e.setVariable(
|
|
1001
|
-
${e.setVariable(
|
|
1002
|
+
${e.setVariable(Si.borderColor,Ii.colorPrimary)};
|
|
1003
|
+
${e.setVariable(Si.textColor,Ii.colorPrimary)};
|
|
1002
1004
|
}
|
|
1003
1005
|
|
|
1004
1006
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1005
|
-
border-radius: ${
|
|
1007
|
+
border-radius: ${Ii.borderRadiusS} ${Ii.borderRadiusS} 0 0;
|
|
1006
1008
|
}
|
|
1007
1009
|
|
|
1008
1010
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1009
1011
|
align-self: stretch;
|
|
1010
|
-
margin-bottom: ${
|
|
1011
|
-
margin-top: calc(${
|
|
1012
|
+
margin-bottom: ${Ii.verticalSpacing};
|
|
1013
|
+
margin-top: calc(${Ii.labelSize} + 2 * ${Ii.verticalSpacing});
|
|
1012
1014
|
}
|
|
1013
1015
|
|
|
1014
1016
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1015
|
-
border-radius: ${
|
|
1017
|
+
border-radius: ${Ii.borderRadiusS};
|
|
1016
1018
|
}
|
|
1017
1019
|
|
|
1018
1020
|
.ft-text-area--helper-text {
|
|
1019
|
-
padding: 0 12px 0 ${
|
|
1020
|
-
color: ${
|
|
1021
|
+
padding: 0 12px 0 ${Ii.horizontalSpacing};
|
|
1022
|
+
color: ${Ii.helperColor};
|
|
1021
1023
|
}
|
|
1022
1024
|
|
|
1023
1025
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1024
1026
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1025
|
-
color: ${
|
|
1027
|
+
color: ${Ii.colorError};
|
|
1026
1028
|
}
|
|
1027
1029
|
|
|
1028
1030
|
ft-resizer {
|
|
1029
1031
|
position: absolute;
|
|
1030
1032
|
bottom: 0;
|
|
1031
1033
|
}
|
|
1032
|
-
`;var
|
|
1034
|
+
`;var Ri=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 Ui extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return i.html`
|
|
1033
1035
|
<style>
|
|
1034
1036
|
.ft-text-area--main-panel {
|
|
1035
|
-
height: calc(4 * ${
|
|
1037
|
+
height: calc(4 * ${Ii.verticalSpacing} + ${Ii.labelSize} + ${Ii.fontSize} + ${this.height}px);
|
|
1036
1038
|
}
|
|
1037
1039
|
|
|
1038
1040
|
ft-resizer {
|
|
@@ -1071,14 +1073,14 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1071
1073
|
${this.helper}
|
|
1072
1074
|
</ft-typography>`:void 0}
|
|
1073
1075
|
</div>
|
|
1074
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1076
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ui.elementDefinitions={"ft-input-label":Ci,"ft-resizer":$i,"ft-ripple":li,"ft-typography":Ye},Ui.styles=[gt,Ei],Ri([o.property({type:String})],Ui.prototype,"label",void 0),Ri([o.property({reflect:!0})],Ui.prototype,"value",void 0),Ri([o.property({type:String})],Ui.prototype,"helper",void 0),Ri([o.property({type:Boolean})],Ui.prototype,"outlined",void 0),Ri([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),Ri([o.property({type:Boolean})],Ui.prototype,"error",void 0),Ri([o.property({type:Number,reflect:!0})],Ui.prototype,"height",void 0),Ri([o.query("textarea")],Ui.prototype,"textarea",void 0),Ri([o.state()],Ui.prototype,"focused",void 0),e.customElement("ft-text-area")(Ui);class Li extends e.FtLitElement{render(){return i.html`
|
|
1075
1077
|
<div class="ft-loader">
|
|
1076
1078
|
<div></div>
|
|
1077
1079
|
<div></div>
|
|
1078
1080
|
<div></div>
|
|
1079
1081
|
<div></div>
|
|
1080
1082
|
</div>
|
|
1081
|
-
`}}
|
|
1083
|
+
`}}Li.styles=St,e.customElement("ft-loader")(Li);var Wi=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 _i extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(i.html`
|
|
1082
1084
|
<button part="button"
|
|
1083
1085
|
class="${n.classMap(this.buttonClasses)}"
|
|
1084
1086
|
aria-label="${this.getLabel()}"
|
|
@@ -1101,7 +1103,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1101
1103
|
</ft-tooltip>
|
|
1102
1104
|
`:t}resolveIcon(){return this.loading?i.html`
|
|
1103
1105
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?i.html`
|
|
1104
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
1106
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:i.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}_i.elementDefinitions={"ft-ripple":li,"ft-tooltip":ai,"ft-typography":Ye,"ft-icon":Xe,"ft-loader":Li},Wi([o.property({type:String,reflect:!0})],_i.prototype,"role",void 0),Wi([o.property()],_i.prototype,"type",void 0),Wi([o.property({type:Boolean})],_i.prototype,"disabled",void 0),Wi([o.property()],_i.prototype,"label",void 0),Wi([o.property()],_i.prototype,"icon",void 0),Wi([o.property()],_i.prototype,"iconVariant",void 0),Wi([o.property({type:Boolean})],_i.prototype,"trailingIcon",void 0),Wi([o.property({type:Boolean})],_i.prototype,"loading",void 0),Wi([o.property()],_i.prototype,"tooltipPosition",void 0),Wi([o.property({type:Boolean})],_i.prototype,"hideTooltip",void 0),Wi([o.property({type:Boolean})],_i.prototype,"forceTooltip",void 0),Wi([o.query(".ft-button")],_i.prototype,"button",void 0),Wi([o.query(".ft-button--label slot")],_i.prototype,"slottedContent",void 0);var Ti=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 zi extends _i{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}zi.styles=[e.safariEllipsisFix,Tt],Ti([o.property({type:Boolean})],zi.prototype,"primary",void 0),Ti([o.property({type:Boolean})],zi.prototype,"outlined",void 0),Ti([o.property({type:Boolean})],zi.prototype,"disabled",void 0),Ti([o.property({type:Boolean})],zi.prototype,"dense",void 0),Ti([o.property({type:Boolean})],zi.prototype,"round",void 0);const Di=[i.css`
|
|
1105
1107
|
:host {
|
|
1106
1108
|
display: inline-block;
|
|
1107
1109
|
max-width: 100%;
|
|
@@ -1319,15 +1321,15 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1319
1321
|
width: ${k.smallIconOnlyWidth};
|
|
1320
1322
|
padding: unset;
|
|
1321
1323
|
}
|
|
1322
|
-
`,e.noTextSelect];var
|
|
1323
|
-
`,
|
|
1324
|
-
`,
|
|
1324
|
+
`,e.noTextSelect];var Ai=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 Bi extends _i{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Me.caption1medium:Me.body2medium}}Bi.styles=[e.safariEllipsisFix,Di],Ai([o.property({type:Boolean})],Bi.prototype,"primary",void 0),Ai([o.property({type:Boolean})],Bi.prototype,"secondary",void 0),Ai([o.property({type:Boolean})],Bi.prototype,"tertiary",void 0),Ai([o.property({type:Boolean})],Bi.prototype,"neutral",void 0),Ai([o.property({type:Boolean})],Bi.prototype,"small",void 0),e.customElement("ft-button")(zi),e.customElement("ftds-button")(Bi);const Fi=i.css`
|
|
1325
|
+
`,Ki=i.css`
|
|
1326
|
+
`,Zi=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 Pi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Zi.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?Pi.build(t):null!==(e=Pi.API)&&void 0!==e?e:Pi.API=Pi.build()}static await(t){return new Promise((e=>{let i=Pi.get(t);if(i)e(i);else{const o=Zi.subscribe((()=>{i=Pi.get(t),i&&(o(),e(i))}))}}))}}var Mi;const Hi=Symbol("clearAfterUnitTest");class ji{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Mi]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Zi.getState().uiLocale,Zi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Zi.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)))))}}Mi=Hi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ji((async(t,e)=>(await Pi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new ji((async(t,e)=>(await Pi.await()).getCustomMessageContext(t,e))));const Gi=window.FluidTopicsI18nService,Vi=window.FluidTopicsCustomI18nService;var Yi=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 qi 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=()=>Pi.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
|
|
1325
1327
|
<slot></slot>
|
|
1326
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
1328
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Zi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Zi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Zi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Zi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Zi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Zi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Zi.actions.setSession(this.session),t.has("availableUiLocales")&&Zi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Gi.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()))))}}qi.elementDefinitions={},qi.styles=Ki,Yi([o.property()],qi.prototype,"baseUrl",void 0),Yi([o.property()],qi.prototype,"apiIntegrationIdentifier",void 0),Yi([o.property()],qi.prototype,"uiLocale",void 0),Yi([e.jsonProperty([])],qi.prototype,"availableUiLocales",void 0),Yi([o.property({type:Boolean})],qi.prototype,"editorMode",void 0),Yi([o.property({type:Boolean})],qi.prototype,"noCustom",void 0),Yi([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],qi.prototype,"noCustomComponent",void 0),Yi([o.property({type:Boolean})],qi.prototype,"withManualResources",void 0),Yi([e.jsonProperty([])],qi.prototype,"messageContexts",void 0),Yi([e.jsonProperty(void 0)],qi.prototype,"session",void 0),Yi([o.property({type:Object})],qi.prototype,"apiProvider",void 0);class Xi{async listMySearches(){var t;return(null===(t=Zi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Pi.await()).listMySearches(Zi.getState().session.profile.userId):[]}}const Ji=new e.CacheRegistry;class Qi{async listMyBookmarks(){return Ji.get("bookmarks",(async()=>(await Pi.await()).listMyBookmarks(Zi.getState().session.profile.userId)))}clearCache(){Ji.clear("bookmarks")}}const to=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const eo=new class{constructor(){this.currentSession=Zi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qi,Zi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:i}=Zi.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(){to.actions.savedSearches(void 0)}clearMyBookmarks(){to.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Xi,e=await t.listMySearches();to.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;to.actions.bookmarks(e)}}};e.customElement("ft-app-context")(qi);var io=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 oo=Symbol("i18nProperties"),ro=Symbol("i18nUnsubs");function no(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Vi:Gi}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[oo])||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[oo])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[oo]&&new Set([...this[oo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ro].has(t)||this[ro].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[ro].forEach((t=>t())),this[ro].clear()}}return e=ro,io([o.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ao extends(no(e.FtLitElement)){}class so extends(no(e.FtLitElementRedux)){}var lo=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 co extends so{constructor(){super(),this.editorMode=!1,this.addStore(Zi)}render(){return this.key&&this.context?i.html`
|
|
1327
1329
|
<span class="ft-i18n">
|
|
1328
1330
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1329
1331
|
</span>
|
|
1330
|
-
`:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
1332
|
+
`:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}co.elementDefinitions={},co.styles=Fi,lo([e.redux()],co.prototype,"editorMode",void 0),lo([o.property()],co.prototype,"context",void 0),lo([o.property()],co.prototype,"key",void 0),lo([e.jsonProperty([])],co.prototype,"args",void 0),lo([o.property()],co.prototype,"defaultMessage",void 0);class ho{static build(t){return new ho(t)}static fromGwt(t){return new ho(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Gi.resolveMessage(this.name,e,...t)})}}const fo=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[oo]=null!==(n=i[oo])&&void 0!==n?n:new Map,i[oo].set(o,a)};e.customElement("ft-i18n")(co);const po=ho.build("integratedFeedbackComponent"),uo={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},go=ho.build("inDesignerFeedbackComponent"),yo={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},bo={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},mo=i.css`
|
|
1331
1333
|
*:focus {
|
|
1332
1334
|
outline: none;
|
|
1333
1335
|
}
|
|
@@ -1340,16 +1342,16 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1340
1342
|
}
|
|
1341
1343
|
|
|
1342
1344
|
ft-input-label {
|
|
1343
|
-
${e.setVariable(
|
|
1344
|
-
${e.setVariable(
|
|
1345
|
-
${e.setVariable(
|
|
1346
|
-
${e.setVariable(
|
|
1345
|
+
${e.setVariable(Si.fontSize,bo.fontSize)};
|
|
1346
|
+
${e.setVariable(Si.raisedFontSize,bo.labelSize)};
|
|
1347
|
+
${e.setVariable(Si.verticalSpacing,bo.verticalSpacing)};
|
|
1348
|
+
${e.setVariable(Si.horizontalSpacing,bo.horizontalSpacing)};
|
|
1347
1349
|
}
|
|
1348
1350
|
|
|
1349
1351
|
.ft-text-field--main-panel {
|
|
1350
1352
|
position: relative;
|
|
1351
1353
|
display: flex;
|
|
1352
|
-
height: calc(4 * ${
|
|
1354
|
+
height: calc(4 * ${bo.verticalSpacing} + ${bo.labelSize} + ${bo.fontSize});
|
|
1353
1355
|
}
|
|
1354
1356
|
|
|
1355
1357
|
.ft-text-field--input-panel {
|
|
@@ -1358,10 +1360,10 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1358
1360
|
display: flex;
|
|
1359
1361
|
align-items: center;
|
|
1360
1362
|
overflow: hidden;
|
|
1361
|
-
padding: 0 ${
|
|
1363
|
+
padding: 0 ${bo.horizontalSpacing};
|
|
1362
1364
|
|
|
1363
|
-
${e.setVariable(M.fontSize,
|
|
1364
|
-
${e.setVariable(M.lineHeight,
|
|
1365
|
+
${e.setVariable(M.fontSize,bo.fontSize)};
|
|
1366
|
+
${e.setVariable(M.lineHeight,bo.fontSize)};
|
|
1365
1367
|
}
|
|
1366
1368
|
|
|
1367
1369
|
.ft-text-field--input-panel ft-ripple {
|
|
@@ -1371,11 +1373,11 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1371
1373
|
|
|
1372
1374
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1373
1375
|
align-items: flex-end;
|
|
1374
|
-
padding: 0 ${
|
|
1376
|
+
padding: 0 ${bo.horizontalSpacing} ${bo.verticalSpacing} ${bo.horizontalSpacing};
|
|
1375
1377
|
}
|
|
1376
1378
|
|
|
1377
1379
|
.ft-text-field--prefix {
|
|
1378
|
-
color: ${
|
|
1380
|
+
color: ${bo.prefixColor};
|
|
1379
1381
|
margin-right: 2px;
|
|
1380
1382
|
flex-shrink: 1;
|
|
1381
1383
|
overflow: hidden;
|
|
@@ -1394,15 +1396,15 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1394
1396
|
flex-shrink: 1;
|
|
1395
1397
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1396
1398
|
|
|
1397
|
-
color: ${
|
|
1398
|
-
padding: calc(2 * ${
|
|
1399
|
+
color: ${bo.colorOnSurface};
|
|
1400
|
+
padding: calc(2 * ${bo.verticalSpacing}) 0;
|
|
1399
1401
|
border: none;
|
|
1400
1402
|
background: none;
|
|
1401
1403
|
}
|
|
1402
1404
|
|
|
1403
1405
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1404
1406
|
padding-bottom: 0;
|
|
1405
|
-
padding-top: calc(${
|
|
1407
|
+
padding-top: calc(${bo.labelSize} + 2 * ${bo.verticalSpacing});
|
|
1406
1408
|
}
|
|
1407
1409
|
|
|
1408
1410
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1411,37 +1413,37 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1411
1413
|
}
|
|
1412
1414
|
|
|
1413
1415
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1414
|
-
color: ${
|
|
1416
|
+
color: ${bo.colorOnSurfaceDisabled};
|
|
1415
1417
|
}
|
|
1416
1418
|
|
|
1417
1419
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1418
|
-
${e.setVariable(
|
|
1419
|
-
${e.setVariable(
|
|
1420
|
+
${e.setVariable(Si.borderColor,bo.colorPrimary)};
|
|
1421
|
+
${e.setVariable(Si.textColor,bo.colorPrimary)};
|
|
1420
1422
|
}
|
|
1421
1423
|
|
|
1422
1424
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1423
|
-
border-radius: ${
|
|
1425
|
+
border-radius: ${bo.borderRadiusS} ${bo.borderRadiusS} 0 0;
|
|
1424
1426
|
}
|
|
1425
1427
|
|
|
1426
1428
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1427
|
-
border-radius: ${
|
|
1429
|
+
border-radius: ${bo.borderRadiusS};
|
|
1428
1430
|
}
|
|
1429
1431
|
|
|
1430
1432
|
.ft-text-field--helper-text {
|
|
1431
|
-
padding: 0 12px 0 ${
|
|
1432
|
-
color: ${
|
|
1433
|
+
padding: 0 12px 0 ${bo.horizontalSpacing};
|
|
1434
|
+
color: ${bo.helperColor};
|
|
1433
1435
|
}
|
|
1434
1436
|
|
|
1435
1437
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1436
1438
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1437
1439
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1438
|
-
color: ${
|
|
1440
|
+
color: ${bo.colorError};
|
|
1439
1441
|
}
|
|
1440
1442
|
|
|
1441
1443
|
.ft-text-field--icon {
|
|
1442
1444
|
align-self: center;
|
|
1443
1445
|
margin-left: 8px;
|
|
1444
|
-
color: ${
|
|
1446
|
+
color: ${bo.iconColor};
|
|
1445
1447
|
}
|
|
1446
1448
|
|
|
1447
1449
|
.ft-text-field--container {
|
|
@@ -1454,13 +1456,13 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1454
1456
|
position: absolute;
|
|
1455
1457
|
left: 0;
|
|
1456
1458
|
right: 0;
|
|
1457
|
-
z-index: ${
|
|
1458
|
-
background: ${
|
|
1459
|
-
border: 1px solid ${
|
|
1460
|
-
border-radius: 0 0 ${
|
|
1461
|
-
box-shadow: ${
|
|
1459
|
+
z-index: ${bo.floatingZIndex};
|
|
1460
|
+
background: ${bo.colorSurface};
|
|
1461
|
+
border: 1px solid ${bo.colorOutline};
|
|
1462
|
+
border-radius: 0 0 ${bo.borderRadiusS} ${bo.borderRadiusS};
|
|
1463
|
+
box-shadow: ${bo.elevation02};
|
|
1462
1464
|
outline: none;
|
|
1463
|
-
max-height: ${
|
|
1465
|
+
max-height: ${bo.suggestSize};
|
|
1464
1466
|
overflow-y: auto;
|
|
1465
1467
|
}
|
|
1466
1468
|
|
|
@@ -1477,13 +1479,13 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1477
1479
|
}
|
|
1478
1480
|
|
|
1479
1481
|
.ft-text-field--with-icon {
|
|
1480
|
-
${e.setVariable(
|
|
1482
|
+
${e.setVariable(Si.labelMaxWidth,`calc(100% - ${Nt.size} - ${Si.horizontalSpacing})`)};
|
|
1481
1483
|
}
|
|
1482
1484
|
|
|
1483
1485
|
.ft-text-field--with-password ft-icon:hover {
|
|
1484
1486
|
cursor: pointer;
|
|
1485
1487
|
}
|
|
1486
|
-
`;var
|
|
1488
|
+
`;var vo=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 xo extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=He.EYE_SLASH,this.passwordRevealedIcon=He.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
|
|
1487
1489
|
<div class="${n.classMap(t)}">
|
|
1488
1490
|
<div class="ft-text-field--main-panel"
|
|
1489
1491
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -1503,7 +1505,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1503
1505
|
</ft-typography>
|
|
1504
1506
|
`:i.nothing}
|
|
1505
1507
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
1506
|
-
maxlength=${(t=>null!=t?t:
|
|
1508
|
+
maxlength=${(t=>null!=t?t:Se)(this.maxLength||void 0)}
|
|
1507
1509
|
aria-label="${this.label}"
|
|
1508
1510
|
class="ft-typography--body1 ft-text-field--input"
|
|
1509
1511
|
?disabled=${this.disabled}
|
|
@@ -1534,7 +1536,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1534
1536
|
.variant=${this.iconVariant}
|
|
1535
1537
|
.value=${this.icon}
|
|
1536
1538
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1537
|
-
`:i.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}
|
|
1539
|
+
`:i.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}xo.elementDefinitions={"ft-input-label":Ci,"ft-ripple":li,"ft-typography":Ye,"ft-icon":Xe},xo.styles=[gt,mo],vo([o.property()],xo.prototype,"label",void 0),vo([o.property({noAccessor:!0})],xo.prototype,"value",null),vo([o.state()],xo.prototype,"dispatchedValue",void 0),vo([o.property()],xo.prototype,"helper",void 0),vo([o.property({type:Boolean})],xo.prototype,"outlined",void 0),vo([o.property({type:Boolean})],xo.prototype,"disabled",void 0),vo([o.property({type:Boolean})],xo.prototype,"error",void 0),vo([o.property()],xo.prototype,"prefix",void 0),vo([o.property()],xo.prototype,"icon",void 0),vo([o.property()],xo.prototype,"passwordHiddenIcon",void 0),vo([o.property()],xo.prototype,"passwordRevealedIcon",void 0),vo([o.property()],xo.prototype,"iconVariant",void 0),vo([o.property({type:Boolean})],xo.prototype,"filterSuggestions",void 0),vo([o.property({type:Number})],xo.prototype,"maxLength",void 0),vo([o.property({type:Boolean})],xo.prototype,"password",void 0),vo([o.state()],xo.prototype,"focused",void 0),vo([o.state()],xo.prototype,"hidePassword",void 0),vo([o.state()],xo.prototype,"suggestionsOnTop",void 0),vo([o.state()],xo.prototype,"hideSuggestions",void 0),vo([o.state()],xo.prototype,"visibleSuggestions",void 0),vo([o.query(".ft-text-field--main-panel")],xo.prototype,"mainPanel",void 0),vo([o.query(".ft-text-field--input")],xo.prototype,"input",void 0),vo([o.query(".ft-text-field--suggestions")],xo.prototype,"suggestionsContainer",void 0),vo([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],xo.prototype,"suggestions",void 0);const Oo=i.css`
|
|
1538
1540
|
.ft-text-field-suggestion {
|
|
1539
1541
|
position: relative;
|
|
1540
1542
|
padding: 8px 16px;
|
|
@@ -1559,7 +1561,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1559
1561
|
slot {
|
|
1560
1562
|
pointer-events: none;
|
|
1561
1563
|
}
|
|
1562
|
-
`;var
|
|
1564
|
+
`;var wo=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 $o extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class So extends e.FtLitElement{render(){return i.html`
|
|
1563
1565
|
<div class="ft-text-field-suggestion"
|
|
1564
1566
|
tabindex="-1"
|
|
1565
1567
|
@keydown=${this.onKeyDown}
|
|
@@ -1571,15 +1573,15 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1571
1573
|
<slot></slot>
|
|
1572
1574
|
</ft-typography>
|
|
1573
1575
|
</div>
|
|
1574
|
-
`}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 No(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())}}ko.elementDefinitions={"ft-ripple":di,"ft-typography":Xe,"ft-icon":Qe},ko.styles=$o,So([o.property()],ko.prototype,"value",void 0),So([o.query(".ft-text-field-suggestion")],ko.prototype,"container",void 0),So([o.queryAssignedNodes()],ko.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(wo),e.customElement("ft-text-field-suggestion")(ko);class Co{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 Io{convertPaginatedToc(t){return new Co(t).build()}}class Eo{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 oe(null!==(e=null===(t=Mi.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=Mi.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 oe(null!=e?e:[],Jt.FEEDBACK_USER);case s.RATING:return oe(null!=e?e:[],Jt.RATING_USER)&&null!=i&&i!==Mt.NO_RATING;case s.PRINT:return oe(null!=e?e:[],Jt.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return oe(null!=e?e:[],Jt.COLLECTION_USER);default:return!1}}}class Ro extends Eo{static async build(t){return new Ro(new Io,await Hi.await(),new e.CacheRegistry,t)}fetchMap(t){return this.api.getMap(t)}fetchMapRating(t){return this.api.getMapRating(t)}fetchPages(t){return this.api.getPages(t)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER")}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId)}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 Uo{static build(t,i){return new Uo((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:Ro.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 Lo=i.css`
|
|
1575
|
-
`;class
|
|
1576
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new $o(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())}}So.elementDefinitions={"ft-ripple":li,"ft-typography":Ye,"ft-icon":Xe},So.styles=Oo,wo([o.property()],So.prototype,"value",void 0),wo([o.query(".ft-text-field-suggestion")],So.prototype,"container",void 0),wo([o.queryAssignedNodes()],So.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(xo),e.customElement("ft-text-field-suggestion")(So);class No{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 ko{convertPaginatedToc(t){return new No(t).build()}}class Co{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=Zi.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=Zi.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);default:return!1}}}class Io extends Co{static async build(t){return new Io(new ko,await Pi.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 Eo{static build(t,i){return new Eo((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:Io.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`
|
|
1577
|
+
`;class Uo extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Lo extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Wo extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class _o extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class To extends Event{constructor(){super("ft-reader-map-not-found")}}class zo extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Do=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 Ao extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(Zi)}render(){return i.html`
|
|
1576
1578
|
${this.importStyleIfNeeded()}
|
|
1577
1579
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1578
1580
|
`}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?i.nothing:i.html`
|
|
1579
1581
|
<style>
|
|
1580
1582
|
@import "${o}"
|
|
1581
1583
|
</style>
|
|
1582
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=
|
|
1584
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Eo.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 Uo(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 Wo(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 Lo(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 To):401===e.status?this.dispatchEvent(new zo):this.dispatchEvent(new _o(t))}reloadBookmarks(){eo.reloadBookmarks()}}var Bo;Ao.styles=Ro,Do([e.redux({store:Zi.name})],Ao.prototype,"baseUrl",void 0),Do([o.property()],Ao.prototype,"mapId",void 0),Do([o.property()],Ao.prototype,"tocId",void 0),Do([o.property()],Ao.prototype,"section",void 0),Do([o.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Bo}})],Ao.prototype,"page",void 0),Do([e.redux({store:"reader"})],Ao.prototype,"map",void 0),Do([e.redux({store:"reader"})],Ao.prototype,"toc",void 0),Do([e.redux({store:"reader"})],Ao.prototype,"visibleTopics",void 0),Do([e.redux({store:"reader"})],Ao.prototype,"currentPage",void 0),Do([e.redux({store:"reader"})],Ao.prototype,"scrollTarget",void 0),Do([o.property({attribute:!1})],Ao.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Ao);var Fo=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 Ko extends(no(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(po,uo),this.addI18nContext(go,yo)}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`
|
|
1583
1585
|
<div class="ft-reader-feedback">
|
|
1584
1586
|
${this.hideTitle?i.nothing:i.html`
|
|
1585
1587
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1599,11 +1601,11 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1599
1601
|
${this.renderRatingDate()}
|
|
1600
1602
|
</ft-typography>
|
|
1601
1603
|
</div>
|
|
1602
|
-
`:this.placeholderInEditor(this.userHasRatingRole?
|
|
1604
|
+
`:this.placeholderInEditor(this.userHasRatingRole?go.messages.ratingNotConfigured():go.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return po.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return po.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?po.messages.ratedToday():po.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return i.html`
|
|
1603
1605
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1604
1606
|
${a.repeat(new Array(5),((t,e)=>e),((t,e)=>{let o="STARS"===this.ratingType&&this.ratingValue>e;const r=e+1;return i.html`
|
|
1605
1607
|
<ft-button round part="rating-stars-${r}"
|
|
1606
|
-
label="${
|
|
1608
|
+
label="${po.messages.starsRating(r)}"
|
|
1607
1609
|
tooltipPosition="top"
|
|
1608
1610
|
.iconVariant=${this.iconVariant}
|
|
1609
1611
|
icon="${o?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1620,13 +1622,13 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1620
1622
|
?selected=${e}
|
|
1621
1623
|
.iconVariant=${this.iconVariant}
|
|
1622
1624
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1623
|
-
${
|
|
1625
|
+
${po.messages.like()}
|
|
1624
1626
|
</ft-switch-option>
|
|
1625
1627
|
<ft-switch-option .value=${0}
|
|
1626
1628
|
?selected=${t}
|
|
1627
1629
|
.iconVariant=${this.iconVariant}
|
|
1628
1630
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1629
|
-
${
|
|
1631
|
+
${po.messages.dislike()}
|
|
1630
1632
|
</ft-switch-option>
|
|
1631
1633
|
</ft-switch>
|
|
1632
1634
|
`;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,r="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return i.html`
|
|
@@ -1635,11 +1637,11 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1635
1637
|
part="rating rating-dichotomous">
|
|
1636
1638
|
<ft-switch-option .value=${1}
|
|
1637
1639
|
?selected=${r}>
|
|
1638
|
-
${
|
|
1640
|
+
${po.messages.dichotomousYes()}
|
|
1639
1641
|
</ft-switch-option>
|
|
1640
1642
|
<ft-switch-option .value=${0}
|
|
1641
1643
|
?selected=${o}>
|
|
1642
|
-
${
|
|
1644
|
+
${po.messages.dichotomousNo()}
|
|
1643
1645
|
</ft-switch-option>
|
|
1644
1646
|
</ft-switch>
|
|
1645
1647
|
`}return i.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,o;if(this.canAccessFeedback){const r=this.feedbackMailLinkBuilder(this.feedbackMessage);let n=i.html`
|
|
@@ -1648,7 +1650,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1648
1650
|
class="ft-reader-feedback--send-feedback"
|
|
1649
1651
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1650
1652
|
part="send-feedback">
|
|
1651
|
-
${
|
|
1653
|
+
${po.messages.okButton()}
|
|
1652
1654
|
</ft-button>
|
|
1653
1655
|
`;return r&&(n=i.html`
|
|
1654
1656
|
<a class="ft-reader-feedback--feedback-link" href="${r}">
|
|
@@ -1663,28 +1665,28 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1663
1665
|
${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers)?i.html`
|
|
1664
1666
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1665
1667
|
class="ft-reader-feedback--from-input"
|
|
1666
|
-
label=${
|
|
1668
|
+
label=${po.messages.feedbackfromEmail()}
|
|
1667
1669
|
@change=${t=>this.from=t.detail.trim()}
|
|
1668
1670
|
?error=${this.from&&!this.validFromEmail()}
|
|
1669
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1671
|
+
helper=${this.from&&!this.validFromEmail()?po.messages.feedbackfromEmailInvalid():""}
|
|
1670
1672
|
/>
|
|
1671
1673
|
`:i.nothing}
|
|
1672
1674
|
<ft-text-area outlined
|
|
1673
1675
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1674
|
-
label="${
|
|
1676
|
+
label="${po.messages.feedbackInputLabel()}"
|
|
1675
1677
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1676
1678
|
></ft-text-area>
|
|
1677
1679
|
${n}
|
|
1678
1680
|
</form>
|
|
1679
|
-
`}return this.placeholderInEditor(
|
|
1681
|
+
`}return this.placeholderInEditor(go.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?i.html`
|
|
1680
1682
|
<div class="ft-reader-feedback--placeholder">
|
|
1681
1683
|
<ft-typography variant="caption">${t}</ft-typography>
|
|
1682
1684
|
<ft-tooltip position="left"
|
|
1683
|
-
text="${
|
|
1685
|
+
text="${go.messages.inDesignerOnlyNotice()}">
|
|
1684
1686
|
<ft-icon>INFO</ft-icon>
|
|
1685
1687
|
</ft-tooltip>
|
|
1686
1688
|
</div>
|
|
1687
|
-
`:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}
|
|
1689
|
+
`:i.nothing}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ko.elementDefinitions={"ft-button":zi,"ft-typography":Ye,"ft-icon":Xe,"ft-tooltip":ai,"ft-switch":bi,"ft-switch-option":ui,"ft-text-area":Ui,"ft-text-field":xo},Ko.styles=At,Fo([o.property({type:Boolean})],Ko.prototype,"editorMode",void 0),Fo([o.property({type:Boolean})],Ko.prototype,"hideTitle",void 0),Fo([o.property({type:Boolean})],Ko.prototype,"ratingAllowed",void 0),Fo([o.property({attribute:!1})],Ko.prototype,"i18nProperties",void 0),Fo([o.property({attribute:!1})],Ko.prototype,"ratingSummary",void 0),Fo([o.property({attribute:!1})],Ko.prototype,"session",void 0),Fo([o.query(".ft-reader-feedback--feedback-input")],Ko.prototype,"feedbackInput",void 0),Fo([o.state()],Ko.prototype,"from",void 0),Fo([o.state()],Ko.prototype,"feedbackMessage",void 0),Fo([o.property()],Ko.prototype,"iconVariant",void 0),Fo([o.property()],Ko.prototype,"emptyStarIcon",void 0),Fo([o.property()],Ko.prototype,"filledStarIcon",void 0),Fo([o.property()],Ko.prototype,"emptyLikeIcon",void 0),Fo([o.property()],Ko.prototype,"filledLikeIcon",void 0),Fo([o.property()],Ko.prototype,"emptyDislikeIcon",void 0),Fo([o.property()],Ko.prototype,"filledDislikeIcon",void 0),Fo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ko.prototype,"configuration",void 0),Fo([o.property()],Ko.prototype,"feedbackMailLinkBuilder",void 0);const Zo=ho.fromGwt("server");class Po{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Zo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var Mo=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 Ho extends(no(h)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Ge.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Po,this.i18nProperties={feedbackMainTitle:po.properties.mapFeedbackMainTitle(),ratingSectionTitle:po.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:po.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:po.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Zi)}render(){return this.map&&(this.editorMode||this.componentVisible)?i.html`
|
|
1688
1690
|
<ft-reader-feedback
|
|
1689
1691
|
ratingAllowed
|
|
1690
1692
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1710,7 +1712,7 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1710
1712
|
display: none !important;
|
|
1711
1713
|
}
|
|
1712
1714
|
</style>
|
|
1713
|
-
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:
|
|
1715
|
+
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:po.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:go.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:go.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(i=this.service)||void 0===i?void 0:i.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:po.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:po.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Ho.elementDefinitions={"ft-reader-feedback":Ko},Mo([e.redux({store:Zi.name})],Ho.prototype,"session",void 0),Mo([e.redux({store:"reader"})],Ho.prototype,"map",void 0),Mo([e.redux({store:Zi.name})],Ho.prototype,"editorMode",void 0),Mo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ho.prototype,"configuration",void 0),Mo([o.state()],Ho.prototype,"ratingSummary",void 0),Mo([o.property({type:Boolean})],Ho.prototype,"hideTitle",void 0),Mo([o.property()],Ho.prototype,"iconVariant",void 0),Mo([o.property()],Ho.prototype,"emptyStarIcon",void 0),Mo([o.property()],Ho.prototype,"filledStarIcon",void 0),Mo([o.property()],Ho.prototype,"emptyLikeIcon",void 0),Mo([o.property()],Ho.prototype,"filledLikeIcon",void 0),Mo([o.property()],Ho.prototype,"emptyDislikeIcon",void 0),Mo([o.property()],Ho.prototype,"filledDislikeIcon",void 0),Mo([o.query("ft-reader-feedback")],Ho.prototype,"readerFeedback",void 0),Mo([fo(Zo.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Ho.prototype,"mailSubject",void 0);var jo=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 Go extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Vo=Symbol("registerInterval");class Yo extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Vo]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Vo]):this.dispatchEvent(new Go)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Vo,jo([o.state()],i.prototype,"tocNode",void 0),jo([o.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}var qo=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 Xo extends(no(Yo)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Ge.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Po,this.i18nProperties={feedbackMainTitle:po.properties.topicFeedbackMainTitle(),ratingSectionTitle:po.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:po.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:po.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Zi)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?i.html`
|
|
1714
1716
|
<ft-reader-feedback
|
|
1715
1717
|
.i18nProperties=${this.i18nProperties}
|
|
1716
1718
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1736,4 +1738,4 @@ const Ke=Symbol.for(""),Ze=t=>{if((null==t?void 0:t.r)===Ke)return null==t?void
|
|
|
1736
1738
|
display: none !important;
|
|
1737
1739
|
}
|
|
1738
1740
|
</style>
|
|
1739
|
-
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:
|
|
1741
|
+
`}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var i,o,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(i=this.service)||void 0===i?void 0:i.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:po.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:go.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var i;try{!this.editorMode&&this.tocNode?(await(null===(i=this.service)||void 0===i?void 0:i.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:po.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:go.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:po.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Xo.elementDefinitions={"ft-reader-feedback":Ko},qo([e.redux({store:Zi.name})],Xo.prototype,"session",void 0),qo([e.redux({store:"reader"})],Xo.prototype,"map",void 0),qo([e.redux({store:Zi.name})],Xo.prototype,"editorMode",void 0),qo([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Xo.prototype,"configuration",void 0),qo([o.state()],Xo.prototype,"ratingSummary",void 0),qo([o.property({type:Boolean})],Xo.prototype,"hideTitle",void 0),qo([o.property()],Xo.prototype,"iconVariant",void 0),qo([o.property()],Xo.prototype,"emptyStarIcon",void 0),qo([o.property()],Xo.prototype,"filledStarIcon",void 0),qo([o.property()],Xo.prototype,"emptyLikeIcon",void 0),qo([o.property()],Xo.prototype,"filledLikeIcon",void 0),qo([o.property()],Xo.prototype,"emptyDislikeIcon",void 0),qo([o.property()],Xo.prototype,"filledDislikeIcon",void 0),qo([o.query("ft-reader-feedback")],Xo.prototype,"readerFeedback",void 0),qo([fo(Zo.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Xo.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Ho),e.customElement("ft-reader-topic-feedback")(Xo),t.FtReaderFeedbackCssVariables=Dt,t.FtReaderMapFeedback=Ho,t.FtReaderTopicFeedback=Xo,t.styles=At}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap,ftGlobals.litRepeat);
|