@fluid-topics/ft-reader-search-in-document 1.1.1
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/README.md +19 -0
- package/build/ft-reader-search-in-document.css.d.ts +18 -0
- package/build/ft-reader-search-in-document.css.js +89 -0
- package/build/ft-reader-search-in-document.d.ts +26 -0
- package/build/ft-reader-search-in-document.js +124 -0
- package/build/ft-reader-search-in-document.light.js +1234 -0
- package/build/ft-reader-search-in-document.min.js +1364 -0
- package/build/ft-reader-search-in-document.properties.d.ts +2 -0
- package/build/ft-reader-search-in-document.properties.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +6 -0
- package/package.json +27 -0
|
@@ -0,0 +1,1234 @@
|
|
|
1
|
+
!function(t,e,o,r,i,a,n){const s=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),l={color:s,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",s),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},c=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),p=c,h=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",c),f=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),d=f,u=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",f),g=o.css`
|
|
2
|
+
:host {
|
|
3
|
+
display: contents;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ft-ripple {
|
|
7
|
+
position: absolute;
|
|
8
|
+
inset: 0;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
border-radius: ${l.borderRadius};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ft-ripple .ft-ripple--background,
|
|
18
|
+
.ft-ripple .ft-ripple--effect {
|
|
19
|
+
position: absolute;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ft-ripple .ft-ripple--effect {
|
|
24
|
+
aspect-ratio: 1;
|
|
25
|
+
width: auto;
|
|
26
|
+
height: auto;
|
|
27
|
+
min-width: 170%;
|
|
28
|
+
min-height: 170%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ft-ripple .ft-ripple--background{
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
37
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
38
|
+
aspect-ratio: 1;
|
|
39
|
+
width: auto;
|
|
40
|
+
height: auto;
|
|
41
|
+
max-width: unset;
|
|
42
|
+
max-height: unset;
|
|
43
|
+
min-width: 100%;
|
|
44
|
+
min-height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ft-ripple .ft-ripple--background {
|
|
48
|
+
background-color: ${l.backgroundColor};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ft-ripple .ft-ripple--effect {
|
|
52
|
+
background-color: ${l.color};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
+
background-color: ${u};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
+
background-color: ${d};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
+
background-color: ${h};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
68
|
+
background-color: ${p};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ft-ripple .ft-ripple--background {
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
transition: opacity 75ms linear;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ft-ripple .ft-ripple--effect,
|
|
78
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ft-ripple .ft-ripple--effect {
|
|
83
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
84
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
88
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
89
|
+
left: 50%;
|
|
90
|
+
top: 50%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
94
|
+
transform: translate(-50%, -50%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
98
|
+
opacity: ${l.opacityContentOnSurfaceHover};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
102
|
+
opacity: ${l.opacityContentOnSurfaceSelected};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
106
|
+
opacity: ${l.opacityContentOnSurfaceFocused};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
110
|
+
opacity: ${l.opacityContentOnSurfacePressed};
|
|
111
|
+
transform: translate(-50%, -50%) scale(1);
|
|
112
|
+
}
|
|
113
|
+
`,y={padding:e.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:e.FtCssVariableFactory.extend("--ft-card-border-radius","",e.designSystemVariables.borderRadiusM),borderStyle:e.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:e.FtCssVariableFactory.extend("--ft-card-border-color","",e.designSystemVariables.colorOutline),hoverBorderColor:e.FtCssVariableFactory.extend("--ft-card-hover-border-color","",e.designSystemVariables.colorPrimary),outlineStyle:e.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:e.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:e.FtCssVariableFactory.extend("--ft-card-outline-color","",e.designSystemVariables.colorPrimary),selectedOutlineStyle:e.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:e.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:e.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",e.designSystemVariables.colorPrimary),selectedBorderRadius:e.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",e.designSystemVariables.borderRadiusM),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceHigh,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),elevation04:e.FtCssVariableFactory.external(e.designSystemVariables.elevation04,"Design system")},b=o.css`
|
|
114
|
+
:host {
|
|
115
|
+
display: block;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
#container {
|
|
119
|
+
padding: ${y.padding};
|
|
120
|
+
outline-style: ${y.outlineStyle};
|
|
121
|
+
outline-width: ${y.outlineWidth};
|
|
122
|
+
outline-color: ${y.outlineColor};
|
|
123
|
+
border-color: ${y.borderColor};
|
|
124
|
+
border-style: ${y.borderStyle};
|
|
125
|
+
border-width: 1px;
|
|
126
|
+
border-radius: ${y.borderRadius};
|
|
127
|
+
${e.setVariable(l.borderRadius,y.borderRadius)};
|
|
128
|
+
box-shadow: ${y.elevation02};
|
|
129
|
+
position: relative;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
display: grid;
|
|
133
|
+
grid-template:
|
|
134
|
+
"header actions"
|
|
135
|
+
"content content";
|
|
136
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
137
|
+
grid-template-rows: max-content minmax(0, 1fr);
|
|
138
|
+
grid-gap: 8px;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
background-color: ${y.colorSurface};
|
|
141
|
+
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#container.no-header {
|
|
145
|
+
grid-template: "content";
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#container.no-header #header, #container.no-header #action {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#container.selected {
|
|
153
|
+
outline-style: ${y.selectedOutlineStyle};
|
|
154
|
+
outline-width: ${y.selectedOutlineWidth};
|
|
155
|
+
outline-color: ${y.selectedOutlineColor};
|
|
156
|
+
border-radius: ${y.selectedBorderRadius};
|
|
157
|
+
${e.setVariable(l.borderRadius,y.selectedBorderRadius)};
|
|
158
|
+
box-shadow: ${y.elevation04};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
#container.clickable {
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#container.clickable:hover {
|
|
166
|
+
box-shadow: ${y.elevation04};
|
|
167
|
+
border-color: ${y.hoverBorderColor};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#header {
|
|
171
|
+
grid-area: header;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.title {
|
|
175
|
+
text-overflow: ellipsis;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
word-break: break-word;
|
|
178
|
+
color: ${y.colorOnSurfaceHigh};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
#content {
|
|
182
|
+
word-break: break-word;
|
|
183
|
+
min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
|
|
184
|
+
grid-area: content;
|
|
185
|
+
color: ${y.colorOnSurfaceMedium};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
#action {
|
|
189
|
+
grid-area: actions;
|
|
190
|
+
}
|
|
191
|
+
`,m=t=>"string"==typeof t?o.unsafeCSS(t):t;class v{static create(t,e,r,i){const a=t=>m(null!=t?t:i),n=o.css`var(${m(t)}, ${a(i)})`;return n.name=t,n.description=e,n.category=r,n.defaultValue=i,n.defaultCssValue=a,n.get=e=>o.css`var(${m(t)}, ${a(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,r,i){const a=t=>r.get(null!=t?t:i),n=o.css`var(${m(t)}, ${a(i)})`;return n.name=t,n.description=e,n.category=r.category,n.fallbackVariable=r,n.defaultValue=i,n.defaultCssValue=a,n.get=e=>o.css`var(${m(t)}, ${a(e)})`,n.breadcrumb=()=>[r.name,...r.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),n}static external(t,e){const r=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):m(null!=e?e:t.lastResortDefaultValue()),i=o.css`var(${m(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=r,i.get=e=>o.css`var(${m(t.name)}, ${r(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const x={colorWhite:v.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:v.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:v.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:v.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:v.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:v.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:v.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:v.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:v.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:v.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:v.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:v.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:v.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:v.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:v.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:v.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:v.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:v.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:v.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:v.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:v.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:v.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:v.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:v.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:v.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:v.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:v.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:v.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:v.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:v.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:v.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:v.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:v.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:v.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:v.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:v.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:v.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:v.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:v.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:v.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:v.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:v.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:v.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:v.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:v.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:v.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:v.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:v.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:v.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:v.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:v.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:v.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:v.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:v.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:v.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:v.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:v.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:v.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:v.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:v.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:v.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:v.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:v.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:v.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:v.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:v.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:v.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:v.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:v.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:v.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:v.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:v.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:v.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:v.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:v.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:v.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:v.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:v.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:v.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:v.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:v.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:v.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:v.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:v.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:v.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:v.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:v.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:v.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:v.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:v.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:v.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:v.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:v.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:v.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:v.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:v.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:v.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:v.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:v.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:v.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:v.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:v.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:v.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:v.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:v.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:v.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:v.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:v.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:v.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:v.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:v.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:v.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:v.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:v.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:v.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:v.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:v.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:v.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:v.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:v.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:v.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:v.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:v.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:v.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:v.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:v.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:v.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:v.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:v.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:v.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:v.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:v.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:v.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:v.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:v.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:v.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:v.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:v.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:v.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:v.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:v.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:v.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:v.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:v.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:v.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:v.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:v.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:v.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:v.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:v.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:v.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:v.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:v.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:v.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:v.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:v.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:v.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:v.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:v.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:v.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:v.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:v.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:v.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:v.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:v.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:v.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:v.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:v.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:v.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:v.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:v.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:v.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:v.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:v.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:v.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:v.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:v.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:v.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:v.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:v.create("--ft-icon-size-6","","SIZE","48px"),opacity0:v.create("--ft-opacity-0","","NUMBER","0"),opacity8:v.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:v.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:v.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:v.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:v.create("--ft-opacity-80","","NUMBER","0.8")},O={display:{fontFamily:v.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:v.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:v.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:v.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:v.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:v.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:v.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:v.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:v.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:v.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:v.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:v.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:v.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:v.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:v.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:v.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:v.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:v.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:v.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:v.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:v.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:v.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:v.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:v.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:v.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:v.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:v.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:v.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:v.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:v.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:v.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:v.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:v.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:v.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:v.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:v.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:v.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:v.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:v.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:v.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:v.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:v.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:v.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:v.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:v.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:v.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:v.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:v.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:v.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:v.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:v.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:v.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:v.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:v.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:v.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:v.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:v.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:v.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:v.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:v.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:v.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:v.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:v.extend("--ft-background-action-primary","Used as backgorund of primary action components.",x.colorBrand0),backgroundErrorPrimary:v.extend("--ft-background-error-primary","Used as background of error components.",x.colorRed0),backgroundErrorSubtle:v.extend("--ft-background-error-subtle","Used as background of subtle error components.",x.colorRed10),backgroundInfoPrimary:v.extend("--ft-background-info-primary","Used as background of information components.",x.colorCyan200),backgroundInfoSubtle:v.extend("--ft-background-info-subtle","Used as background of subtle information components.",x.colorCyan10),backgroundWarningPrimary:v.extend("--ft-background-warning-primary","Used as background of warning components.",x.colorOrange300),backgroundWarningSubtle:v.extend("--ft-background-warning-subtle","Used as background of subtle information components.",x.colorOrange10),backgroundSuccessPrimary:v.extend("--ft-background-success-primary","Used as background of success components.",x.colorGreen200),backgroundSuccessSubtle:v.extend("--ft-background-success-subtle","Used as background of subtle success components.",x.colorGreen10),backgroundGlobalSurface:v.extend("--ft-background-global-surface","Used as app background.",x.colorWhite),backgroundGlobalOnSurface:v.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",x.colorGray10),backgroundGlobalOnSurfaceDark:v.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",x.colorGray30),contentActionPrimary:v.extend("--ft-content-action-primary","Used on label of primary action on light surface.",x.colorBrand0),contentWarningPrimary:v.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",x.colorOrange300),contentWarningIconOnly:v.extend("--ft-content-warning-icon-only","Used on warning status icons alone",x.colorOrange0),contentErrorPrimary:v.extend("--ft-content-error-primary","Used on label of error messages on light surface.",x.colorRed0),contentErrorIconOnly:v.extend("--ft-content-error-icon-only","Used on error status icons alone",x.colorRed0),contentInfoPrimary:v.extend("--ft-content-info-primary","Used on label of information messages on light surface.",x.colorCyan200),contentInfoIconOnly:v.extend("--ft-content-info-icon-only","Used on info status icons alone",x.colorCyan0),contentSuccessIconOnly:v.extend("--ft-content-success-icon-only","Used on success status icons alone",x.colorGreen0),contentSuccessPrimary:v.extend("--ft-content-success-primary","Used on label of success messages on light surface.",x.colorGreen200),contentGlobalPrimary:v.extend("--ft-content-global-primary","Used for main content on the page.",x.colorGray500),contentGlobalSecondary:v.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",x.colorGray200),contentGlobalSubtle:v.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",x.colorGray0),contentGlobalOnColor:v.extend("--ft-content-global-on-color","Used for content on a dominant color.",x.colorWhite),borderActionPrimary:v.extend("--ft-border-action-primary","Used as border for primary action components.",x.colorBrand0),borderActionFocusRing:v.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",x.colorCyan0),borderWarningPrimary:v.extend("--ft-border-warning-primary","Used as border for warning components.",x.colorOrange30),borderSuccessPrimary:v.extend("--ft-border-success-primary","Used as border for success components.",x.colorGreen30),borderErrorPrimary:v.extend("--ft-border-error-primary","Used as border for error components.",x.colorRed30),borderInfoPrimary:v.extend("--ft-border-info-primary","Used as border for information components.",x.colorCyan30),borderGlobalSubtle:v.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",x.colorGray30),borderGlobalPrimary:v.extend("--ft-border-global-primary","Used as border for element like input.",x.colorGray50),borderInputPrimary:v.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",x.colorGray80)},S={largeHeight:v.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:v.extend("--ft-button-large-horizontal-padding","",x.spacing4),largeGap:v.extend("--ft-button-large-gap","",x.spacing2),largeBorderRadius:v.extend("--ft-button-large-border-radius","",x.borderRadiusS),largeIconSize:v.extend("--ft-button-large-icon-size","",x.iconSize3),largeBorderWidth:v.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:v.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:v.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:v.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:v.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:v.extend("--ft-button-small-horizontal-padding","",x.spacing3),smallGap:v.extend("--ft-button-small-gap","",x.spacing2),smallBorderRadius:v.extend("--ft-button-small-border-radius","",x.borderRadiusS),smallIconSize:v.extend("--ft-button-small-icon-size","",x.iconSize2),smallBorderWidth:v.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:v.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:v.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:v.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:v.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:v.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:v.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:v.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:v.extend("--ft-button-primary-state-layer-opacity-hover","",x.opacity16),primaryStateLayerOpacityFocus:v.extend("--ft-button-primary-state-layer-opacity-focus","",x.opacity16),primaryStateLayerOpacityActive:v.extend("--ft-button-primary-state-layer-opacity-active","",x.opacity24),primaryComponentOpacityDisabled:v.extend("--ft-button-primary-component-opacity-disabled","",x.opacity40),focusFocusRingColor:v.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:v.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:v.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:v.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:v.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:v.extend("--ft-button-tertiary-state-layer-opacity-hover","",x.opacity8),tertiaryStateLayerOpacityFocus:v.extend("--ft-button-tertiary-state-layer-opacity-focus","",x.opacity8),tertiaryStateLayerOpacityActive:v.extend("--ft-button-tertiary-state-layer-opacity-active","",x.opacity16),tertiaryComponentOpacityDisabled:v.extend("--ft-button-tertiary-component-opacity-disabled","",x.opacity40),secondaryBackgroundColor:v.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:v.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:v.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:v.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:v.extend("--ft-button-secondary-state-layer-opacity-hover","",x.opacity8),secondaryStateLayerOpacityFocus:v.extend("--ft-button-secondary-state-layer-opacity-focus","",x.opacity8),secondaryStateLayerOpacityActive:v.extend("--ft-button-secondary-state-layer-opacity-active","",x.opacity16),secondaryComponentOpacityDisabled:v.extend("--ft-button-secondary-component-opacity-disabled","",x.opacity40),secondaryBorderColor:v.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:v.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:v.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:v.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:v.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:v.extend("--ft-button-neutral-state-layer-opacity-hover","",x.opacity8),neutralStateLayerOpacityFocus:v.extend("--ft-button-neutral-state-layer-opacity-focus","",x.opacity8),neutralStateLayerOpacityActive:v.extend("--ft-button-neutral-state-layer-opacity-active","",x.opacity16),neutralComponentOpacityDisabled:v.extend("--ft-button-neutral-component-opacity-disabled","",x.opacity40)};v.extend("--ft-tabs-top-left-border-radius","",x.borderRadiusS),v.extend("--ft-tabs-top-right-border-radius","",x.borderRadiusS),v.extend("--ft-tabs-label-horizontal-padding","",x.spacing4),v.extend("--ft-tabs-label-vertical-padding","",x.spacing3),v.extend("--ft-tabs-label-gap","",x.spacing1),v.extend("--ft-switch-group-horizontal-padding","",x.spacing1),v.extend("--ft-switch-group-vertical-padding","",x.spacing1),v.extend("--ft-switch-group-gap","",x.spacing1),v.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),v.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),v.create("--ft-switch-group-border-radius","","SIZE","6px"),v.extend("--ft-switch-label-horizontal-padding","",x.spacing2),v.extend("--ft-switch-label-vertical-padding","",x.spacing1),v.extend("--ft-switch-icon-horizontal-padding","",x.spacing1),v.extend("--ft-switch-icon-vertical-padding","",x.spacing1),v.create("--ft-switch-focus-outline-width","","SIZE","2px"),v.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),v.extend("--ft-switch-option-border-radius","",x.borderRadiusS),v.extend("--ft-switch-off-state-layer-opacity-hover","",x.opacity8),v.extend("--ft-switch-off-state-layer-opacity-focus","",x.opacity8),v.extend("--ft-switch-off-state-layer-opacity-active","",x.opacity16),v.extend("--ft-switch-off-component-opacity-disabled","",x.opacity40),v.extend("--ft-switch-off-color","",N.contentGlobalSubtle),v.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),v.extend("--ft-chart-1-light","for area color charts",x.colorBrand40),v.extend("--ft-chart-1-base","for line charts",x.colorBrand0),v.extend("--ft-chart-2-light","for area color charts",x.colorYellow60),v.extend("--ft-chart-2-base","for line charts",x.colorYellow100),v.extend("--ft-chart-3-light","",x.colorUltramarine40),v.extend("--ft-chart-3-base","",x.colorUltramarine70),v.extend("--ft-chart-4-light","",x.colorCyan50),v.extend("--ft-chart-4-base","",x.colorCyan100),v.extend("--ft-chart-5-light","",x.colorRed40),v.extend("--ft-chart-5-base","",x.colorRed60),v.extend("--ft-chart-6-light","",x.colorGreen40),v.extend("--ft-chart-6-base","",x.colorGreen70),v.extend("--ft-chart-7-light","",x.colorOrange70),v.extend("--ft-chart-7-base","",x.colorOrange100),v.extend("--ft-chart-8-light","",x.colorAvocado70),v.extend("--ft-chart-8-base","",x.colorAvocado200),v.extend("--ft-chart-9-light","",x.colorBrown50),v.extend("--ft-chart-9-base","",x.colorBrown200),v.extend("--ft-chart-10-light","",x.colorGray50),v.extend("--ft-chart-10-base","",x.colorGray80),v.extend("--ft-chart-monochrome-10","",x.colorBrand10),v.extend("--ft-chart-monochrome-20","",x.colorBrand20),v.extend("--ft-chart-monochrome-30","",x.colorBrand40),v.extend("--ft-chart-monochrome-40","",x.colorBrand60),v.extend("--ft-chart-monochrome-50","",x.colorBrand0),v.extend("--ft-chart-monochrome-60","",x.colorBrand200),v.extend("--ft-chip-large-horizontal-padding","",x.spacing4),v.extend("--ft-chip-large-vertical-padding","",x.spacing2),v.extend("--ft-chip-large-gap","",x.spacing1),v.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),v.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),v.extend("--ft-chip-large-border-radius","",x.borderRadiusPill),v.create("--ft-chip-large-border-width","","SIZE","1px"),v.extend("--ft-chip-large-icon-size","",x.iconSize3),v.extend("--ft-chip-medium-horizontal-padding","",x.spacing3),v.extend("--ft-chip-medium-vertical-padding","",x.spacing1),v.extend("--ft-chip-medium-gap","",x.spacing1),v.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),v.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),v.extend("--ft-chip-medium-border-radius","",x.borderRadiusPill),v.create("--ft-chip-medium-border-width","","SIZE","1px"),v.extend("--ft-chip-medium-icon-size","",x.iconSize2),v.extend("--ft-chip-small-horizontal-padding","",x.spacing2),v.extend("--ft-chip-small-vertical-padding","",x.spacing05),v.extend("--ft-chip-small-gap","",x.spacing1),v.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),v.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),v.extend("--ft-chip-small-border-radius","",x.borderRadiusPill),v.create("--ft-chip-small-border-width","","SIZE","1px"),v.extend("--ft-chip-small-icon-size","",x.iconSize1),v.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),v.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),v.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),v.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),v.extend("--ft-chip-info-color","",N.contentInfoPrimary),v.extend("--ft-chip-info-border-color","",N.borderInfoPrimary),v.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),v.extend("--ft-chip-success-color","",N.contentSuccessPrimary),v.extend("--ft-chip-success-border-color","",N.borderSuccessPrimary),v.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),v.extend("--ft-chip-warning-color","",N.contentWarningPrimary),v.extend("--ft-chip-warning-border-color","",N.borderWarningPrimary),v.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),v.extend("--ft-chip-error-color","",N.contentErrorPrimary),v.extend("--ft-chip-error-border-color","",N.borderErrorPrimary),v.create("--ft-notice-border-width","","SIZE","1px"),v.extend("--ft-notice-horizontal-padding","",x.spacing2),v.extend("--ft-notice-vertical-padding","",x.spacing1),v.extend("--ft-notice-border-radius","",x.borderRadiusS),v.extend("--ft-notice-gap","",x.spacing2),v.extend("--ft-notice-icon-size","",x.iconSize3),v.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),v.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),v.extend("--ft-notice-info-color","",N.contentInfoPrimary),v.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),v.extend("--ft-notice-warning-border-color","",N.borderWarningPrimary),v.extend("--ft-notice-warning-color","",N.contentWarningPrimary),v.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),v.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),v.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),v.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),v.extend("--ft-checkbox-checked-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-checkbox-checked-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-checkbox-checked-state-layer-opacity-active","",x.opacity24),v.extend("--ft-checkbox-checked-component-opacity-disabled","",x.opacity40),v.extend("--ft-checkbox-unchecked-border-color","",x.colorGray80),v.extend("--ft-checkbox-unchecked-state-layer-color","",x.colorGray80),v.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",x.opacity24),v.extend("--ft-checkbox-unchecked-component-opacity-disabled","",x.opacity40),v.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),v.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),v.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),v.extend("--ft-checkbox-gap","",x.spacing3),v.extend("--ft-toggle-off-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-toggle-off-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-toggle-off-state-layer-opacity-active","",x.opacity24),v.extend("--ft-toggle-off-component-opacity-disabled","",x.opacity40),v.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),v.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),v.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),v.extend("--ft-toggle-on-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-toggle-on-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-toggle-on-state-layer-opacity-active","",x.opacity24),v.extend("--ft-toggle-on-component-opacity-disabled","",x.opacity40),v.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),v.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),v.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),v.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),v.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),v.extend("--ft-toggle-gap","",x.spacing3),v.extend("--ft-radio-label-color","",N.contentGlobalPrimary),v.extend("--ft-radio-selected-color","",N.contentActionPrimary),v.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),v.extend("--ft-radio-selected-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-radio-selected-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-radio-selected-state-layer-opacity-active","",x.opacity24),v.extend("--ft-radio-selected-component-opacity-disabled","",x.opacity40),v.extend("--ft-radio-unselected-state-layer-color","",x.colorGray80),v.extend("--ft-radio-unselected-state-layer-opacity-hover","",x.opacity16),v.extend("--ft-radio-unselected-state-layer-opacity-focus","",x.opacity16),v.extend("--ft-radio-unselected-state-layer-opacity-active","",x.opacity24),v.extend("--ft-radio-unselected-component-opacity-disabled","",x.opacity40),v.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),v.create("--ft-radio-focus-outline-offset","","SIZE","3px"),v.create("--ft-radio-focus-outline-width","","SIZE","2px"),v.extend("--ft-radio-gap","",x.spacing3),v.extend("--ft-notification-icon-size","",x.iconSize4),v.extend("--ft-notification-horizontal-padding","",x.spacing4),v.extend("--ft-notification-vertical-padding","",x.spacing4),v.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),v.extend("--ft-notification-info-color","",N.contentInfoPrimary),v.extend("--ft-notification-info-border-color","",N.borderInfoPrimary),v.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),v.extend("--ft-notification-success-color","",N.contentSuccessPrimary),v.extend("--ft-notification-success-border-color","",N.borderSuccessPrimary),v.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),v.extend("--ft-notification-warning-color","",N.contentWarningPrimary),v.extend("--ft-notification-warning-border-color","",N.borderWarningPrimary),v.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),v.extend("--ft-notification-error-color","",N.contentErrorPrimary),v.extend("--ft-notification-error-border-color","",N.borderErrorPrimary),v.extend("--ft-notification-border-radius","",x.borderRadiusPill),v.create("--ft-notification-border-width","","SIZE","1px"),v.extend("--ft-notification-gap-leading","",x.spacing2),v.extend("--ft-notification-gap-trailing","",x.spacing8);const w=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),$={fontFamily:C,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},E=e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",w),R=e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),I=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),k=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),U=e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),L=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit"),W=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",w),K=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),B=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),A=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),z=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),Z=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",C),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),H=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit"),j=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",C),G=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),q=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),Y=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),Q=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit"),V=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",C),X=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),J=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),et=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),ot=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",C),it=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),at=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),st=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),lt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",C),pt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),ht=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),ft=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),dt=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),ut=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit"),gt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",C),yt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),mt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),vt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),xt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit"),Ot=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",C),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),St=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),$t=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase"),Et={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Rt=o.css`
|
|
192
|
+
.ft-typography--title {
|
|
193
|
+
font-family: ${E};
|
|
194
|
+
font-size: ${R};
|
|
195
|
+
font-weight: ${I};
|
|
196
|
+
letter-spacing: ${k};
|
|
197
|
+
line-height: ${U};
|
|
198
|
+
text-transform: ${L};
|
|
199
|
+
}
|
|
200
|
+
`,It=o.css`
|
|
201
|
+
.ft-typography--title-dense {
|
|
202
|
+
font-family: ${W};
|
|
203
|
+
font-size: ${K};
|
|
204
|
+
font-weight: ${B};
|
|
205
|
+
letter-spacing: ${A};
|
|
206
|
+
line-height: ${z};
|
|
207
|
+
text-transform: ${Z};
|
|
208
|
+
}
|
|
209
|
+
`,kt=o.css`
|
|
210
|
+
.ft-typography--subtitle1 {
|
|
211
|
+
font-family: ${D};
|
|
212
|
+
font-size: ${F};
|
|
213
|
+
font-weight: ${T};
|
|
214
|
+
letter-spacing: ${P};
|
|
215
|
+
line-height: ${H};
|
|
216
|
+
text-transform: ${M};
|
|
217
|
+
}
|
|
218
|
+
`,Ut=o.css`
|
|
219
|
+
.ft-typography--subtitle2 {
|
|
220
|
+
font-family: ${j};
|
|
221
|
+
font-size: ${G};
|
|
222
|
+
font-weight: ${_};
|
|
223
|
+
letter-spacing: ${q};
|
|
224
|
+
line-height: ${Y};
|
|
225
|
+
text-transform: ${Q};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
`,Lt=o.css`
|
|
229
|
+
.ft-typography--body1 {
|
|
230
|
+
font-family: ${V};
|
|
231
|
+
font-size: ${X};
|
|
232
|
+
font-weight: ${J};
|
|
233
|
+
letter-spacing: ${tt};
|
|
234
|
+
line-height: ${et};
|
|
235
|
+
text-transform: ${ot};
|
|
236
|
+
}
|
|
237
|
+
`,Wt=o.css`
|
|
238
|
+
.ft-typography--body2 {
|
|
239
|
+
font-family: ${rt};
|
|
240
|
+
font-size: ${it};
|
|
241
|
+
font-weight: ${at};
|
|
242
|
+
letter-spacing: ${nt};
|
|
243
|
+
line-height: ${st};
|
|
244
|
+
text-transform: ${lt};
|
|
245
|
+
}
|
|
246
|
+
`,Kt=o.css`
|
|
247
|
+
.ft-typography--caption {
|
|
248
|
+
font-family: ${ct};
|
|
249
|
+
font-size: ${pt};
|
|
250
|
+
font-weight: ${ht};
|
|
251
|
+
letter-spacing: ${ft};
|
|
252
|
+
line-height: ${dt};
|
|
253
|
+
text-transform: ${ut};
|
|
254
|
+
}
|
|
255
|
+
`,Bt=o.css`
|
|
256
|
+
.ft-typography--breadcrumb {
|
|
257
|
+
font-family: ${gt};
|
|
258
|
+
font-size: ${yt};
|
|
259
|
+
font-weight: ${bt};
|
|
260
|
+
letter-spacing: ${mt};
|
|
261
|
+
line-height: ${vt};
|
|
262
|
+
text-transform: ${xt};
|
|
263
|
+
}
|
|
264
|
+
`,At=o.css`
|
|
265
|
+
.ft-typography--overline {
|
|
266
|
+
font-family: ${Ot};
|
|
267
|
+
font-size: ${Nt};
|
|
268
|
+
font-weight: ${St};
|
|
269
|
+
letter-spacing: ${wt};
|
|
270
|
+
line-height: ${Ct};
|
|
271
|
+
text-transform: ${$t};
|
|
272
|
+
}
|
|
273
|
+
`,zt=o.css`
|
|
274
|
+
.ft-typography--button {
|
|
275
|
+
font-family: ${Et.fontFamily};
|
|
276
|
+
font-size: ${Et.fontSize};
|
|
277
|
+
font-weight: ${Et.fontWeight};
|
|
278
|
+
letter-spacing: ${Et.letterSpacing};
|
|
279
|
+
line-height: ${Et.lineHeight};
|
|
280
|
+
text-transform: ${Et.textTransform};
|
|
281
|
+
}
|
|
282
|
+
`,Zt=o.css`
|
|
283
|
+
.ft-typography {
|
|
284
|
+
vertical-align: inherit;
|
|
285
|
+
}
|
|
286
|
+
`,Dt=[Object.keys(O).map((t=>function(t){const e=O[t];return o.css`
|
|
287
|
+
.ft-typography--${o.unsafeCSS(t)} {
|
|
288
|
+
font-family: ${e.fontFamily};
|
|
289
|
+
font-size: ${e.fontSize};
|
|
290
|
+
font-weight: ${e.fontWeight};
|
|
291
|
+
letter-spacing: ${e.letterSpacing};
|
|
292
|
+
line-height: ${e.lineHeight};
|
|
293
|
+
text-transform: ${e.textCase};
|
|
294
|
+
}
|
|
295
|
+
`}(t)))],Ft={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Tt=o.css`
|
|
296
|
+
:host {
|
|
297
|
+
line-height: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.ft-loader {
|
|
301
|
+
display: inline-block;
|
|
302
|
+
position: relative;
|
|
303
|
+
|
|
304
|
+
width: ${Ft.size};
|
|
305
|
+
height: ${Ft.size};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ft-loader div {
|
|
309
|
+
position: absolute;
|
|
310
|
+
top: 37.5%;
|
|
311
|
+
width: 25%;
|
|
312
|
+
height: 25%;
|
|
313
|
+
border-radius: 50%;
|
|
314
|
+
background: ${Ft.color};
|
|
315
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ft-loader div:nth-child(1) {
|
|
319
|
+
left: 2.5%;
|
|
320
|
+
animation: appear 0.6s infinite;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ft-loader div:nth-child(2) {
|
|
324
|
+
left: 2.5%;
|
|
325
|
+
animation: move 0.6s infinite;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ft-loader div:nth-child(3) {
|
|
329
|
+
left: 37.5%;
|
|
330
|
+
animation: move 0.6s infinite;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ft-loader div:nth-child(4) {
|
|
334
|
+
left: 72.5%;
|
|
335
|
+
animation: disappear 0.6s infinite;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@keyframes appear {
|
|
339
|
+
0% {
|
|
340
|
+
transform: scale(0);
|
|
341
|
+
}
|
|
342
|
+
100% {
|
|
343
|
+
transform: scale(1);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@keyframes disappear {
|
|
348
|
+
0% {
|
|
349
|
+
transform: scale(1);
|
|
350
|
+
}
|
|
351
|
+
100% {
|
|
352
|
+
transform: scale(0);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@keyframes move {
|
|
357
|
+
0% {
|
|
358
|
+
transform: translate(0, 0);
|
|
359
|
+
}
|
|
360
|
+
100% {
|
|
361
|
+
transform: translate(calc(0.35 * ${Ft.size}), 0);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
`,Pt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ht=o.css`
|
|
365
|
+
:host, i.ft-icon {
|
|
366
|
+
display: inline-flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
flex-shrink: 0;
|
|
369
|
+
flex-grow: 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:host {
|
|
373
|
+
width: ${Pt.size};
|
|
374
|
+
height: ${Pt.size};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
i.ft-icon {
|
|
378
|
+
width: 100%;
|
|
379
|
+
height: 100%;
|
|
380
|
+
font-size: ${Pt.size};
|
|
381
|
+
line-height: 1;
|
|
382
|
+
font-weight: normal;
|
|
383
|
+
text-transform: none;
|
|
384
|
+
font-style: normal;
|
|
385
|
+
font-variant: normal;
|
|
386
|
+
speak: none;
|
|
387
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
388
|
+
text-rendering: auto;
|
|
389
|
+
-webkit-font-smoothing: antialiased;
|
|
390
|
+
-moz-osx-font-smoothing: grayscale;
|
|
391
|
+
vertical-align: ${Pt.verticalAlign};
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
395
|
+
font-family: ${Pt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
396
|
+
|
|
397
|
+
/* Ugly fix because font is broken */
|
|
398
|
+
font-size: calc(0.75 * ${Pt.size});
|
|
399
|
+
line-height: ${Pt.size};
|
|
400
|
+
position: relative;
|
|
401
|
+
top: -4%;
|
|
402
|
+
justify-content: center;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ft-icon--file-format {
|
|
406
|
+
font-family: ${Pt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.ft-icon--material {
|
|
410
|
+
font-family: ${Pt.materialFontFamily}, "Material Icons", sans-serif;
|
|
411
|
+
}
|
|
412
|
+
`,Mt=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),jt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Mt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",Et.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Mt),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")},Gt=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),_t={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Gt,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Gt)},qt=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Yt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Qt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Vt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Xt=[o.css`
|
|
413
|
+
:host {
|
|
414
|
+
display: inline-block;
|
|
415
|
+
max-width: 100%;
|
|
416
|
+
pointer-events: none;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
button {
|
|
420
|
+
box-shadow: 0px 0px 0px transparent;
|
|
421
|
+
border: 0px solid transparent;
|
|
422
|
+
text-shadow: 0px 0px 0px transparent;
|
|
423
|
+
font-size: ${jt.fontSize};
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
button:hover {
|
|
427
|
+
box-shadow: 0px 0px 0px transparent;
|
|
428
|
+
border: 0px solid transparent;
|
|
429
|
+
text-shadow: 0px 0px 0px transparent;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
button:active {
|
|
433
|
+
outline: none;
|
|
434
|
+
border: none;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
button:focus {
|
|
438
|
+
outline: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.ft-button {
|
|
442
|
+
position: relative;
|
|
443
|
+
display: flex;
|
|
444
|
+
justify-content: center;
|
|
445
|
+
align-items: center;
|
|
446
|
+
width: 100%;
|
|
447
|
+
overflow: hidden;
|
|
448
|
+
box-sizing: border-box;
|
|
449
|
+
border: none;
|
|
450
|
+
pointer-events: auto;
|
|
451
|
+
|
|
452
|
+
--ft-button-internal-line-height: max(calc(${jt.fontSize} + 2px), ${jt.iconSize});
|
|
453
|
+
--ft-button-internal-color: ${jt.color};
|
|
454
|
+
${e.setVariable(Pt.size,jt.iconSize)};
|
|
455
|
+
${e.setVariable(l.color,jt.rippleColor)};
|
|
456
|
+
|
|
457
|
+
border-radius: ${jt.borderRadius};
|
|
458
|
+
padding: ${jt.verticalPadding} ${jt.horizontalPadding};
|
|
459
|
+
background-color: ${jt.backgroundColor};
|
|
460
|
+
color: var(--ft-button-internal-color);
|
|
461
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.ft-button.ft-button--outlined {
|
|
465
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
466
|
+
padding: calc(${jt.verticalPadding} - 1px) calc(${jt.horizontalPadding} - 1px);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.ft-button.ft-button--dense {
|
|
470
|
+
padding: ${Yt} ${Qt};
|
|
471
|
+
border-radius: ${qt};
|
|
472
|
+
gap: ${Vt};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
476
|
+
padding: calc(${Yt} - 1px) calc(${Qt} - 1px);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.ft-button:not([disabled]):hover {
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.ft-button--round {
|
|
484
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${jt.verticalPadding});
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ft-button--round.ft-button--dense {
|
|
488
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yt});
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.ft-button[disabled] {
|
|
492
|
+
filter: grayscale(1);
|
|
493
|
+
opacity: ${jt.opacityDisabled};
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.ft-button.ft-button--primary {
|
|
497
|
+
background-color: ${_t.backgroundColor};
|
|
498
|
+
--ft-button-internal-color: ${_t.color};
|
|
499
|
+
${e.setVariable(l.color,_t.rippleColor)};
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.ft-button:focus {
|
|
503
|
+
outline: none;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ft-button--label {
|
|
507
|
+
position: relative;
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
white-space: nowrap;
|
|
510
|
+
text-overflow: ellipsis;
|
|
511
|
+
display: block;
|
|
512
|
+
margin: 0 ${jt.iconPadding};
|
|
513
|
+
${e.setVariable(Et.fontSize,"1em")};
|
|
514
|
+
${e.setVariable(Et.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.ft-button--dense .ft-button--label {
|
|
518
|
+
margin: 0 ${Vt};
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ft-button--label[hidden] {
|
|
522
|
+
display: none;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
ft-icon {
|
|
526
|
+
flex-shrink: 0;
|
|
527
|
+
position: relative;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.ft-button--label[hidden] + ft-icon {
|
|
531
|
+
margin: 0 calc(${jt.horizontalPadding} * -1);
|
|
532
|
+
padding: 0 ${jt.verticalPadding};
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
536
|
+
margin: 0 calc(${Qt} * -1);
|
|
537
|
+
padding: 0 ${Yt};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
541
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
542
|
+
order: -1;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
ft-loader {
|
|
546
|
+
${e.setVariable(Ft.size,jt.iconSize)};
|
|
547
|
+
${e.setVariable(Ft.color,"var(--ft-button-internal-color)")};
|
|
548
|
+
}
|
|
549
|
+
`,e.noTextSelect];var Jt=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class te extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),a=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
|
|
550
|
+
<style>
|
|
551
|
+
.ft-ripple .ft-ripple--effect {
|
|
552
|
+
left: ${this.originX}px;
|
|
553
|
+
top: ${this.originY}px;
|
|
554
|
+
}
|
|
555
|
+
</style>
|
|
556
|
+
<div class="${i.classMap(t)}">
|
|
557
|
+
<div class="ft-ripple--background"></div>
|
|
558
|
+
<div class="ft-ripple--effect"></div>
|
|
559
|
+
</div>
|
|
560
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}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()}}te.elementDefinitions={},te.styles=g,Jt([r.property({type:Boolean})],te.prototype,"primary",void 0),Jt([r.property({type:Boolean})],te.prototype,"secondary",void 0),Jt([r.property({type:Boolean})],te.prototype,"unbounded",void 0),Jt([r.property({type:Boolean})],te.prototype,"activated",void 0),Jt([r.property({type:Boolean})],te.prototype,"selected",void 0),Jt([r.property({type:Boolean})],te.prototype,"disabled",void 0),Jt([r.state()],te.prototype,"hovered",void 0),Jt([r.state()],te.prototype,"focused",void 0),Jt([r.state()],te.prototype,"pressed",void 0),Jt([r.state()],te.prototype,"rippling",void 0),Jt([r.state()],te.prototype,"originX",void 0),Jt([r.state()],te.prototype,"originY",void 0),Jt([r.query(".ft-ripple")],te.prototype,"ripple",void 0),Jt([r.query(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(te);
|
|
561
|
+
/**
|
|
562
|
+
* @license
|
|
563
|
+
* Copyright 2017 Google LLC
|
|
564
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
565
|
+
*/
|
|
566
|
+
const ee=globalThis,oe=ee.trustedTypes,re=oe?oe.createPolicy("lit-html",{createHTML:t=>t}):void 0,ie="$lit$",ae=`lit$${(Math.random()+"").slice(9)}$`,ne="?"+ae,se=`<${ne}>`,le=document,ce=()=>le.createComment(""),pe=t=>null===t||"object"!=typeof t&&"function"!=typeof t,he=Array.isArray,fe="[ \t\n\f\r]",de=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ue=/-->/g,ge=/>/g,ye=RegExp(`>|${fe}(?:([^\\s"'>=/]+)(${fe}*=${fe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),be=/'/g,me=/"/g,ve=/^(?:script|style|textarea|title)$/i,xe=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Oe=Symbol.for("lit-noChange"),Ne=Symbol.for("lit-nothing"),Se=new WeakMap,we=le.createTreeWalker(le,129);function Ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==re?re.createHTML(e):e}const $e=(t,e)=>{const o=t.length-1,r=[];let i,a=2===e?"<svg>":"",n=de;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,p=0;for(;p<o.length&&(n.lastIndex=p,l=n.exec(o),null!==l);)p=n.lastIndex,n===de?"!--"===l[1]?n=ue:void 0!==l[1]?n=ge:void 0!==l[2]?(ve.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=ye):void 0!==l[3]&&(n=ye):n===ye?">"===l[0]?(n=i??de,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?ye:'"'===l[3]?me:be):n===me||n===be?n=ye:n===ue||n===ge?n=de:(n=ye,i=void 0);const h=n===ye&&t[e+1].startsWith("/>")?" ":"";a+=n===de?o+se:c>=0?(r.push(s),o.slice(0,c)+ie+o.slice(c)+ae+h):o+ae+(-2===c?e:h)}return[Ce(t,a+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};class Ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,a=0;const n=t.length-1,s=this.parts,[l,c]=$e(t,e);if(this.el=Ee.createElement(l,o),we.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=we.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(ie)){const e=c[a++],o=r.getAttribute(t).split(ae),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:n[2],strings:o,ctor:"."===n[1]?Le:"?"===n[1]?We:"@"===n[1]?Ke:Ue}),r.removeAttribute(t)}else t.startsWith(ae)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(ve.test(r.tagName)){const t=r.textContent.split(ae),e=t.length-1;if(e>0){r.textContent=oe?oe.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],ce()),we.nextNode(),s.push({type:2,index:++i});r.append(t[e],ce())}}}else if(8===r.nodeType)if(r.data===ne)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(ae,t+1));)s.push({type:7,index:i}),t+=ae.length-1}i++}}static createElement(t,e){const o=le.createElement("template");return o.innerHTML=t,o}}function Re(t,e,o=t,r){if(e===Oe)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const a=pe(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=Re(t,i._$AS(t,e.values),i,r)),e}class Ie{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??le).importNode(e,!0);we.currentNode=r;let i=we.nextNode(),a=0,n=0,s=o[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new ke(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new Be(i,this,t)),this._$AV.push(e),s=o[++n]}a!==s?.index&&(i=we.nextNode(),a++)}return we.currentNode=le,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ke{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Ne,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Re(this,t,e),pe(t)?t===Ne||null==t||""===t?(this._$AH!==Ne&&this._$AR(),this._$AH=Ne):t!==this._$AH&&t!==Oe&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>he(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Ne&&pe(this._$AH)?this._$AA.nextSibling.data=t:this.$(le.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Ee.createElement(Ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new Ie(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=Se.get(t.strings);return void 0===e&&Se.set(t.strings,e=new Ee(t)),e}T(t){he(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const i of t)r===e.length?e.push(o=new ke(this.k(ce()),this.k(ce()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Ue{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Ne,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Ne}_$AI(t,e=this,o,r){const i=this.strings;let a=!1;if(void 0===i)t=Re(this,t,e,0),a=!pe(t)||t!==this._$AH&&t!==Oe,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=Re(this,r[o+n],e,n),s===Oe&&(s=this._$AH[n]),a||=!pe(s)||s!==this._$AH[n],s===Ne?t=Ne:t!==Ne&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Le extends Ue{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Ne?void 0:t}}class We extends Ue{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Ne)}}class Ke extends Ue{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=Re(this,t,e,0)??Ne)===Oe)return;const o=this._$AH,r=t===Ne&&o!==Ne||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Ne&&(o===Ne||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Be{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Re(this,t)}}const Ae=ee.litHtmlPolyfillSupport;Ae?.(Ee,ke),(ee.litHtmlVersions??=[]).push("3.1.0");
|
|
567
|
+
/**
|
|
568
|
+
* @license
|
|
569
|
+
* Copyright 2020 Google LLC
|
|
570
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
571
|
+
*/
|
|
572
|
+
const ze=Symbol.for(""),Ze=t=>{if(t?.r===ze)return t?._$litStatic$},De=t=>({_$litStatic$:t,r:ze}),Fe=new Map,Te=(t=>(e,...o)=>{const r=o.length;let i,a;const n=[],s=[];let l,c=0,p=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(a=o[c],i=Ze(a));)l+=i+e[++c],p=!0;c!==r&&s.push(a),n.push(l),c++}if(c===r&&n.push(e[r]),p){const t=n.join("$$lit$$");void 0===(e=Fe.get(t))&&(n.raw=n,Fe.set(t,e=n)),o=s}return t(e,...o)})(xe);var Pe;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Pe||(Pe={}));var He=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Me extends e.FtLitElement{constructor(){super(...arguments),this.variant=Pe.body1}render(){return this.element?Te`
|
|
573
|
+
<${De(this.element)}
|
|
574
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
575
|
+
<slot></slot>
|
|
576
|
+
</${De(this.element)}>
|
|
577
|
+
`:Te`
|
|
578
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
579
|
+
`}}Me.styles=[Rt,It,kt,Ut,Lt,Wt,Kt,Bt,At,zt,Zt,...Dt],He([r.property()],Me.prototype,"element",void 0),He([r.property()],Me.prototype,"variant",void 0),e.customElement("ft-typography")(Me);const je={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ge=o.css`
|
|
580
|
+
.ft-tooltip--container {
|
|
581
|
+
display: block;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.ft-tooltip--inline {
|
|
585
|
+
display: inline-block;
|
|
586
|
+
max-width: 100%;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.ft-tooltip {
|
|
590
|
+
position: absolute;
|
|
591
|
+
box-sizing: border-box;
|
|
592
|
+
overflow: hidden;
|
|
593
|
+
width: max-content;
|
|
594
|
+
max-width: ${je.maxWidth};
|
|
595
|
+
text-align: center;
|
|
596
|
+
padding: ${je.distance};
|
|
597
|
+
z-index: ${je.zIndex};
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.ft-tooltip--content {
|
|
601
|
+
padding: 4px 8px;
|
|
602
|
+
border-radius: ${je.borderRadiusS};
|
|
603
|
+
background-color: ${je.backgroundColor};
|
|
604
|
+
color: ${je.color};
|
|
605
|
+
position: relative;
|
|
606
|
+
word-break: break-word;
|
|
607
|
+
}
|
|
608
|
+
`;var _e,qe,Ye=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Qe extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
609
|
+
<div part="container"
|
|
610
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
611
|
+
@mouseenter=${this.onHover}
|
|
612
|
+
@mouseleave=${this.onOut}
|
|
613
|
+
@focusin=${this.onHover}
|
|
614
|
+
@focusout=${this.onOut}
|
|
615
|
+
@touchstart=${this.onTouch}>
|
|
616
|
+
<slot></slot>
|
|
617
|
+
<div part="tooltip" role="tooltip" inert
|
|
618
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
619
|
+
?hidden=${!this.visible}>
|
|
620
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
621
|
+
<slot name="text"></slot>
|
|
622
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
623
|
+
</div>
|
|
624
|
+
</div>
|
|
625
|
+
</div>
|
|
626
|
+
`}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,o=this.tooltip.offsetHeight,r=(t.offsetHeight-o)/2,i=(t.offsetWidth-e)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-o-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${je.maxWidth})`}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))}}Qe.elementDefinitions={"ft-typography":Me},Qe.styles=Ge,Ye([r.property()],Qe.prototype,"text",void 0),Ye([r.property({type:Boolean})],Qe.prototype,"manual",void 0),Ye([r.property({type:Boolean})],Qe.prototype,"inline",void 0),Ye([r.property({type:Number})],Qe.prototype,"delay",void 0),Ye([r.property()],Qe.prototype,"position",void 0),Ye([r.queryAssignedNodes()],Qe.prototype,"slotNodes",void 0),Ye([r.query(".ft-tooltip--container")],Qe.prototype,"container",void 0),Ye([r.query(".ft-tooltip")],Qe.prototype,"tooltip",void 0),Ye([r.query(".ft-tooltip--content")],Qe.prototype,"tooltipContent",void 0),Ye([r.state()],Qe.prototype,"visible",void 0),e.customElement("ft-tooltip")(Qe),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(_e||(_e={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(qe||(qe={}));const Ve=new Map([...["abw"].map((t=>[t,qe.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,qe.AUDIO])),...["avi"].map((t=>[t,qe.AVI])),...["chm","xhs"].map((t=>[t,qe.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,qe.CODE])),...["csv"].map((t=>[t,qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qe.DITA])),...["epub"].map((t=>[t,qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qe.EXCEL])),...["flac"].map((t=>[t,qe.FLAC])),...["gif"].map((t=>[t,qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,qe.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,qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qe.JPEG])),...["json"].map((t=>[t,qe.JSON])),...["m4a","m4p"].map((t=>[t,qe.M4A])),...["mov","qt"].map((t=>[t,qe.MOV])),...["mp3"].map((t=>[t,qe.MP3])),...["mp4","m4v"].map((t=>[t,qe.MP4])),...["ogg","oga"].map((t=>[t,qe.OGG])),...["pdf","ps"].map((t=>[t,qe.PDF])),...["png"].map((t=>[t,qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qe.POWERPOINT])),...["rar"].map((t=>[t,qe.RAR])),...["stp"].map((t=>[t,qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qe.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,qe.VIDEO])),...["wav"].map((t=>[t,qe.WAV])),...["wma"].map((t=>[t,qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qe.YAML])),...["zip"].map((t=>[t,qe.ZIP]))]),Xe=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var Je;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Je||(Je={}));var to=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class eo extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,e=t!==Je.material||!!this.value;return o.html`
|
|
627
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
628
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
629
|
+
<slot ?hidden=${e}></slot>
|
|
630
|
+
</i>
|
|
631
|
+
`}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 r=this.value||this.textContent;switch(this.variant){case Je.file_format:this.resolvedIcon=null!==(t=qe[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Je.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=_e[r.replace("-","_").toUpperCase()])&&void 0!==e?e:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}eo.elementDefinitions={},eo.styles=Ht,to([r.property()],eo.prototype,"variant",void 0),to([r.property()],eo.prototype,"value",void 0),to([r.state()],eo.prototype,"resolvedIcon",void 0),to([r.query("slot")],eo.prototype,"slottedContent",void 0),e.customElement("ft-icon")(eo);class oo extends e.FtLitElement{render(){return o.html`
|
|
632
|
+
<div class="ft-loader">
|
|
633
|
+
<div></div>
|
|
634
|
+
<div></div>
|
|
635
|
+
<div></div>
|
|
636
|
+
<div></div>
|
|
637
|
+
</div>
|
|
638
|
+
`}}oo.styles=Tt,e.customElement("ft-loader")(oo);var ro=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class io 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(o.html`
|
|
639
|
+
<button part="button"
|
|
640
|
+
class="${i.classMap(this.buttonClasses)}"
|
|
641
|
+
aria-label="${this.getLabel()}"
|
|
642
|
+
?disabled=${this.isDisabled()}>
|
|
643
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
644
|
+
<ft-typography part="label"
|
|
645
|
+
variant=${this.typographyVariant}
|
|
646
|
+
element="span"
|
|
647
|
+
class="ft-button--label ${e.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
648
|
+
?hidden=${!this.hasTextContent()}>
|
|
649
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
650
|
+
</ft-typography>
|
|
651
|
+
${this.resolveIcon()}
|
|
652
|
+
</button>
|
|
653
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?o.html`
|
|
654
|
+
<ft-tooltip part="tooltip"
|
|
655
|
+
text="${this.getLabel()}"
|
|
656
|
+
position="${this.tooltipPosition}">
|
|
657
|
+
${t}
|
|
658
|
+
</ft-tooltip>
|
|
659
|
+
`:t}resolveIcon(){return this.loading?o.html`
|
|
660
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
|
|
661
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}io.elementDefinitions={"ft-ripple":te,"ft-tooltip":Qe,"ft-typography":Me,"ft-icon":eo,"ft-loader":oo},ro([r.property({type:String,reflect:!0})],io.prototype,"role",void 0),ro([r.property()],io.prototype,"type",void 0),ro([r.property({type:Boolean})],io.prototype,"disabled",void 0),ro([r.property()],io.prototype,"label",void 0),ro([r.property()],io.prototype,"icon",void 0),ro([r.property()],io.prototype,"iconVariant",void 0),ro([r.property({type:Boolean})],io.prototype,"trailingIcon",void 0),ro([r.property({type:Boolean})],io.prototype,"loading",void 0),ro([r.property()],io.prototype,"tooltipPosition",void 0),ro([r.property({type:Boolean})],io.prototype,"hideTooltip",void 0),ro([r.property({type:Boolean})],io.prototype,"forceTooltip",void 0),ro([r.query(".ft-button")],io.prototype,"button",void 0),ro([r.query(".ft-button--label slot")],io.prototype,"slottedContent",void 0);var ao=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class no extends io{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}no.styles=[e.safariEllipsisFix,Xt],ao([r.property({type:Boolean})],no.prototype,"primary",void 0),ao([r.property({type:Boolean})],no.prototype,"outlined",void 0),ao([r.property({type:Boolean})],no.prototype,"dense",void 0),ao([r.property({type:Boolean})],no.prototype,"round",void 0);const so=[o.css`
|
|
662
|
+
:host {
|
|
663
|
+
display: inline-block;
|
|
664
|
+
max-width: 100%;
|
|
665
|
+
pointer-events: none;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/** Remove default button styles **/
|
|
669
|
+
|
|
670
|
+
button {
|
|
671
|
+
box-shadow: 0 0 0 transparent;
|
|
672
|
+
border: 0 solid transparent;
|
|
673
|
+
text-shadow: 0 0 0 transparent;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
button:hover {
|
|
677
|
+
box-shadow: 0 0 0 transparent;
|
|
678
|
+
text-shadow: 0 0 0 transparent;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
button:active {
|
|
682
|
+
outline: none;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
button:focus {
|
|
686
|
+
outline: 0;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/** Base styles **/
|
|
690
|
+
|
|
691
|
+
.ft-button {
|
|
692
|
+
position: relative;
|
|
693
|
+
display: flex;
|
|
694
|
+
justify-content: center;
|
|
695
|
+
align-items: center;
|
|
696
|
+
width: 100%;
|
|
697
|
+
overflow: hidden;
|
|
698
|
+
box-sizing: border-box;
|
|
699
|
+
pointer-events: auto;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.ft-button:not([disabled]):hover {
|
|
703
|
+
cursor: pointer;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.ft-button:focus {
|
|
707
|
+
outline: none;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.ft-button:focus-visible {
|
|
711
|
+
outline-color: ${S.focusFocusRingColor};
|
|
712
|
+
outline-style: solid;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
ft-icon {
|
|
716
|
+
flex-shrink: 0;
|
|
717
|
+
position: relative;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
721
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
722
|
+
order: -1;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.ft-button--label {
|
|
726
|
+
position: relative;
|
|
727
|
+
overflow: hidden;
|
|
728
|
+
white-space: nowrap;
|
|
729
|
+
text-overflow: ellipsis;
|
|
730
|
+
display: block;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.ft-button--label[hidden] {
|
|
734
|
+
display: none;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/** Primary styles **/
|
|
738
|
+
|
|
739
|
+
.ft-button--primary {
|
|
740
|
+
${e.setVariable(Ft.color,S.primaryIconColor)};
|
|
741
|
+
|
|
742
|
+
${e.setVariable(l.color,S.primaryStateLayerColor)};
|
|
743
|
+
${e.setVariable(l.opacityContentOnSurfaceHover,S.primaryStateLayerOpacityHover)};
|
|
744
|
+
${e.setVariable(l.opacityContentOnSurfaceFocused,S.primaryStateLayerOpacityFocus)};
|
|
745
|
+
${e.setVariable(l.opacityContentOnSurfaceSelected,S.primaryStateLayerOpacityActive)};
|
|
746
|
+
${e.setVariable(l.opacityContentOnSurfacePressed,S.primaryStateLayerOpacityActive)};
|
|
747
|
+
|
|
748
|
+
background-color: ${S.primaryBackgroundColor};
|
|
749
|
+
color: ${S.primaryColor};
|
|
750
|
+
border-style: none;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.ft-button--primary[disabled] {
|
|
754
|
+
opacity: ${S.primaryComponentOpacityDisabled};
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.ft-button--primary ft-icon {
|
|
758
|
+
color: ${S.primaryIconColor};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/** Secondary styles **/
|
|
762
|
+
|
|
763
|
+
.ft-button--secondary {
|
|
764
|
+
${e.setVariable(Ft.color,S.secondaryIconColor)};
|
|
765
|
+
|
|
766
|
+
${e.setVariable(l.color,S.secondaryStateLayerColor)};
|
|
767
|
+
${e.setVariable(l.opacityContentOnSurfaceHover,S.secondaryStateLayerOpacityHover)};
|
|
768
|
+
${e.setVariable(l.opacityContentOnSurfaceFocused,S.secondaryStateLayerOpacityFocus)};
|
|
769
|
+
${e.setVariable(l.opacityContentOnSurfaceSelected,S.secondaryStateLayerOpacityActive)};
|
|
770
|
+
${e.setVariable(l.opacityContentOnSurfacePressed,S.secondaryStateLayerOpacityActive)};
|
|
771
|
+
|
|
772
|
+
background-color: ${S.secondaryBackgroundColor};
|
|
773
|
+
color: ${S.secondaryColor};
|
|
774
|
+
border-color: ${S.secondaryBorderColor};
|
|
775
|
+
border-style: solid;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.ft-button--secondary[disabled] {
|
|
779
|
+
opacity: ${S.secondaryComponentOpacityDisabled};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.ft-button--secondary ft-icon {
|
|
783
|
+
color: ${S.secondaryIconColor};
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/** Tertiary styles **/
|
|
787
|
+
|
|
788
|
+
.ft-button--tertiary {
|
|
789
|
+
${e.setVariable(Ft.color,S.tertiaryIconColor)};
|
|
790
|
+
|
|
791
|
+
${e.setVariable(l.color,S.tertiaryStateLayerColor)};
|
|
792
|
+
${e.setVariable(l.opacityContentOnSurfaceHover,S.tertiaryStateLayerOpacityHover)};
|
|
793
|
+
${e.setVariable(l.opacityContentOnSurfaceFocused,S.tertiaryStateLayerOpacityFocus)};
|
|
794
|
+
${e.setVariable(l.opacityContentOnSurfaceSelected,S.tertiaryStateLayerOpacityActive)};
|
|
795
|
+
${e.setVariable(l.opacityContentOnSurfacePressed,S.tertiaryStateLayerOpacityActive)};
|
|
796
|
+
|
|
797
|
+
background-color: ${S.tertiaryBackgroundColor};
|
|
798
|
+
color: ${S.tertiaryColor};
|
|
799
|
+
border-style: none;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.ft-button--tertiary[disabled] {
|
|
803
|
+
opacity: ${S.tertiaryComponentOpacityDisabled};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.ft-button--tertiary ft-icon {
|
|
807
|
+
color: ${S.tertiaryIconColor};
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/** Neutral styles **/
|
|
811
|
+
|
|
812
|
+
.ft-button--neutral {
|
|
813
|
+
${e.setVariable(Ft.color,S.neutralIconColor)};
|
|
814
|
+
|
|
815
|
+
${e.setVariable(l.backgroundColor,S.neutralStateLayerColor)};
|
|
816
|
+
${e.setVariable(l.opacityContentOnSurfaceHover,S.neutralStateLayerOpacityHover)};
|
|
817
|
+
${e.setVariable(l.opacityContentOnSurfaceFocused,S.neutralStateLayerOpacityFocus)};
|
|
818
|
+
${e.setVariable(l.opacityContentOnSurfaceSelected,S.neutralStateLayerOpacityActive)};
|
|
819
|
+
${e.setVariable(l.opacityContentOnSurfacePressed,S.neutralStateLayerOpacityActive)};
|
|
820
|
+
|
|
821
|
+
background-color: ${S.neutralBackgroundColor};
|
|
822
|
+
color: ${S.neutralColor};
|
|
823
|
+
border-style: none;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.ft-button--neutral[disabled] {
|
|
827
|
+
opacity: ${S.neutralComponentOpacityDisabled};
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.ft-button--neutral ft-icon {
|
|
831
|
+
color: ${S.neutralIconColor};
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
/** Large styles **/
|
|
835
|
+
|
|
836
|
+
.ft-button--large {
|
|
837
|
+
${e.setVariable(Pt.size,S.largeIconSize)};
|
|
838
|
+
${e.setVariable(Ft.size,S.largeIconSize)};
|
|
839
|
+
|
|
840
|
+
height: ${S.largeHeight};
|
|
841
|
+
padding: 0 ${S.largeHorizontalPadding};
|
|
842
|
+
gap: ${S.largeGap};
|
|
843
|
+
border-radius: ${S.largeBorderRadius};
|
|
844
|
+
border-width: ${S.largeBorderWidth};
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.ft-button--large:focus-visible {
|
|
848
|
+
outline-width: ${S.largeFocusOutlineWidth};
|
|
849
|
+
outline-offset: ${S.largeFocusOutlineOffset};
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.ft-button--large.ft-button--icon-only {
|
|
853
|
+
width: ${S.largeIconOnlyWidth};
|
|
854
|
+
padding: unset;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/** Small styles **/
|
|
858
|
+
|
|
859
|
+
.ft-button--small {
|
|
860
|
+
${e.setVariable(Pt.size,S.smallIconSize)};
|
|
861
|
+
${e.setVariable(Ft.size,S.smallIconSize)};
|
|
862
|
+
|
|
863
|
+
height: ${S.smallHeight};
|
|
864
|
+
padding: 0 ${S.smallHorizontalPadding};
|
|
865
|
+
gap: ${S.smallGap};
|
|
866
|
+
border-radius: ${S.smallBorderRadius};
|
|
867
|
+
border-width: ${S.smallBorderWidth};
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.ft-button--small:focus-visible {
|
|
871
|
+
outline-width: ${S.smallFocusOutlineWidth};
|
|
872
|
+
outline-offset: ${S.smallFocusOutlineOffset};
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.ft-button--small.ft-button--icon-only {
|
|
876
|
+
width: ${S.smallIconOnlyWidth};
|
|
877
|
+
padding: unset;
|
|
878
|
+
}
|
|
879
|
+
`,e.noTextSelect];var lo=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class co extends io{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Pe.caption1medium:Pe.body2medium}}co.styles=[e.safariEllipsisFix,so],lo([r.property({type:Boolean})],co.prototype,"primary",void 0),lo([r.property({type:Boolean})],co.prototype,"secondary",void 0),lo([r.property({type:Boolean})],co.prototype,"tertiary",void 0),lo([r.property({type:Boolean})],co.prototype,"neutral",void 0),lo([r.property({type:Boolean})],co.prototype,"small",void 0),e.customElement("ft-button")(no),e.customElement("ftds-button")(co);const po={height:e.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:e.FtCssVariableFactory.extend("--ft-search-input-border-radius","",e.designSystemVariables.borderRadiusS),desktopFiltersHeight:e.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:e.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariableFactory.external(jt.color,"Button"),buttonRippleColor:e.FtCssVariableFactory.external(jt.rippleColor,"Button")},ho=o.css`
|
|
880
|
+
* {
|
|
881
|
+
box-sizing: border-box;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.ft-search-input {
|
|
885
|
+
position: relative;
|
|
886
|
+
display: flex;
|
|
887
|
+
flex-direction: row;
|
|
888
|
+
align-items: center;
|
|
889
|
+
height: ${po.height};
|
|
890
|
+
|
|
891
|
+
background: ${po.colorSurface};
|
|
892
|
+
border: 1px solid ${po.colorOutline};
|
|
893
|
+
border-radius: ${po.borderRadius};
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.ft-search-input--input-container {
|
|
897
|
+
flex-grow: 1;
|
|
898
|
+
flex-shrink: 1;
|
|
899
|
+
position: relative;
|
|
900
|
+
height: calc(100% - 2px);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.ft-search-input--input-outline {
|
|
904
|
+
height: 100%;
|
|
905
|
+
width: 100%;
|
|
906
|
+
display: grid;
|
|
907
|
+
padding: 0 8px;
|
|
908
|
+
border-radius: ${po.borderRadius};
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
912
|
+
outline: 2px solid ${po.colorPrimary};
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.ft-search-input--input {
|
|
916
|
+
height: 100%;
|
|
917
|
+
border: none;
|
|
918
|
+
background-color: transparent;
|
|
919
|
+
color: ${po.colorOnSurface};
|
|
920
|
+
outline: none;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.ft-search-input--input::placeholder {
|
|
924
|
+
color: ${po.colorOnSurfaceMedium};
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.ft-search-input--actions {
|
|
928
|
+
flex-shrink: 0;
|
|
929
|
+
display: flex;
|
|
930
|
+
flex-direction: row;
|
|
931
|
+
align-items: center;
|
|
932
|
+
height: 100%;
|
|
933
|
+
|
|
934
|
+
${e.setVariable(je.zIndex,`calc(${po.floatingZIndex} + 1)`)};
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.ft-search-input > ft-button,
|
|
938
|
+
.ft-search-input--actions ft-button {
|
|
939
|
+
flex-shrink: 0;
|
|
940
|
+
${e.setVariable(jt.backgroundColor,"transparent")};
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.ft-search-input .ft-search-input--launch-search,
|
|
944
|
+
.ft-search-input .ft-search-input--clear-query {
|
|
945
|
+
margin: 0 4px;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
ft-search-input-suggestion {
|
|
949
|
+
display: none;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.ft-search-input.ft-search-input--with-suggestions:focus-within:not(.ft-search-input--with-suggestions-closed) ft-search-input-suggestion {
|
|
953
|
+
display: block;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.ft-search-input--separator {
|
|
957
|
+
height: 20px;
|
|
958
|
+
border-right: 1px solid ${po.colorOutline};
|
|
959
|
+
}
|
|
960
|
+
`,fo={highlightBackgroundColor:e.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},uo=o.css`
|
|
961
|
+
.kwicmatch {
|
|
962
|
+
font-weight: 700;
|
|
963
|
+
background-color: ${fo.highlightBackgroundColor};
|
|
964
|
+
}
|
|
965
|
+
`,go={highlightBackgroundColor:e.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},yo=o.css`
|
|
966
|
+
.kwicmatch {
|
|
967
|
+
font-weight: 700;
|
|
968
|
+
background-color: ${go.highlightBackgroundColor};
|
|
969
|
+
}
|
|
970
|
+
`,bo={searchFieldBackgroundColor:e.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",e.designSystemVariables.colorSurface),searchFieldBorderColor:e.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",e.designSystemVariables.colorOutline),searchFieldTextColor:e.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",e.designSystemVariables.colorOnSurface),searchFieldBorderRadius:e.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",e.designSystemVariables.borderRadiusS),resultsNumberColor:e.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",e.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:e.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",e.designSystemVariables.colorSurface),resultBorderColor:e.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",e.designSystemVariables.colorOutline),resultBorderRadius:e.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",e.designSystemVariables.borderRadiusS),resultTitleTextColor:e.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",e.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:e.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",e.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:e.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",e.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:e.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:e.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",e.designSystemVariables.colorPrimary),resultHoverBorderColor:e.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",e.designSystemVariables.colorPrimary)},mo=o.css`
|
|
971
|
+
.ft-search-in-doc--container {
|
|
972
|
+
display: flex;
|
|
973
|
+
flex-direction: column;
|
|
974
|
+
gap: 8px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
ft-search-input {
|
|
978
|
+
${e.setVariable(po.colorSurface,bo.searchFieldBackgroundColor)};
|
|
979
|
+
${e.setVariable(po.colorOutline,bo.searchFieldBorderColor)};
|
|
980
|
+
${e.setVariable(po.colorOnSurface,bo.searchFieldTextColor)};
|
|
981
|
+
${e.setVariable(po.borderRadius,bo.searchFieldBorderRadius)};
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
ft-search-results-number {
|
|
985
|
+
margin-left: 12px;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
989
|
+
color: ${bo.resultsNumberColor};
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
ft-search-load-more-button {
|
|
993
|
+
margin: auto;
|
|
994
|
+
}
|
|
995
|
+
`,vo=o.css`
|
|
996
|
+
ft-card {
|
|
997
|
+
margin-bottom: 8px;
|
|
998
|
+
${e.setVariable(y.elevation04,"none")};
|
|
999
|
+
${e.setVariable(y.elevation02,"none")};
|
|
1000
|
+
${e.setVariable(y.borderStyle,"solid")};
|
|
1001
|
+
${e.setVariable(y.borderRadius,e.designSystemVariables.borderRadiusS)};
|
|
1002
|
+
${e.setVariable(y.colorSurface,bo.resultBackgroundColor)};
|
|
1003
|
+
${e.setVariable(y.borderColor,bo.resultBorderColor)};
|
|
1004
|
+
${e.setVariable(y.borderRadius,bo.resultBorderRadius)};
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
ft-search-result-title {
|
|
1008
|
+
color: ${bo.resultTitleTextColor};
|
|
1009
|
+
${e.setVariable(go.highlightBackgroundColor,bo.resultHighlightBackgroundColor)};
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.breadcrumb {
|
|
1013
|
+
color: ${bo.resultBreadcrumbTextColor};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
ft-search-result-abstract {
|
|
1017
|
+
color: ${bo.resultContentTextColor};
|
|
1018
|
+
${e.setVariable(fo.highlightBackgroundColor,bo.resultHighlightBackgroundColor)};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
ft-card:hover {
|
|
1022
|
+
${e.setVariable(y.hoverBorderColor,bo.resultHoverBorderColor)};
|
|
1023
|
+
${e.setVariable(l.color,bo.resultHoverBackgroundColor)};
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.result-container {
|
|
1027
|
+
display: flex;
|
|
1028
|
+
flex-direction: column;
|
|
1029
|
+
gap: 4px;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
`,xo=o.css`
|
|
1033
|
+
`,Oo=o.css`
|
|
1034
|
+
`,No=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 So{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=No.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?So.build(t):null!==(e=So.API)&&void 0!==e?e:So.API=So.build()}static await(t){return new Promise((e=>{let o=So.get(t);if(o)e(o);else{const r=No.subscribe((()=>{o=So.get(t),o&&(r(),e(o))}))}}))}}var wo;const Co=Symbol("clearAfterUnitTest");class $o{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[wo]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=No.getState().uiLocale,No.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=No.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var r;if(t=t.toLowerCase(),Object.keys(o).length>0){const i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...o};e.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...r){var i,a,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(a=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==a?a:{};return new e.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(o,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}wo=Co,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new $o((async(t,e)=>(await So.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new $o((async(t,e)=>(await So.await()).getCustomMessageContext(t,e))));const Eo=window.FluidTopicsI18nService,Ro=window.FluidTopicsCustomI18nService;var Io=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ko 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=()=>So.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
|
|
1035
|
+
<slot></slot>
|
|
1036
|
+
`}update(t){super.update(t),t.has("baseUrl")&&No.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&No.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&No.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&No.actions.setNoCustom(this.noCustom),t.has("editorMode")&&No.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&No.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&No.actions.setSession(this.session),t.has("availableUiLocales")&&No.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Eo.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()))))}}ko.elementDefinitions={},ko.styles=Oo,Io([r.property()],ko.prototype,"baseUrl",void 0),Io([r.property()],ko.prototype,"apiIntegrationIdentifier",void 0),Io([r.property()],ko.prototype,"uiLocale",void 0),Io([e.jsonProperty([])],ko.prototype,"availableUiLocales",void 0),Io([r.property({type:Boolean})],ko.prototype,"editorMode",void 0),Io([r.property({type:Boolean})],ko.prototype,"noCustom",void 0),Io([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ko.prototype,"noCustomComponent",void 0),Io([r.property({type:Boolean})],ko.prototype,"withManualResources",void 0),Io([e.jsonProperty([])],ko.prototype,"messageContexts",void 0),Io([e.jsonProperty(void 0)],ko.prototype,"session",void 0),Io([r.property({type:Object})],ko.prototype,"apiProvider",void 0);class Uo{async listMySearches(){var t;return(null===(t=No.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await So.await()).listMySearches(No.getState().session.profile.userId):[]}}const Lo=new e.CacheRegistry;class Wo{async listMyBookmarks(){return Lo.get("bookmarks",(async()=>(await So.await()).listMyBookmarks(No.getState().session.profile.userId)))}clearCache(){Lo.clear("bookmarks")}}const Ko=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Bo=new class{constructor(){this.currentSession=No.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wo,No.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=No.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ko.actions.savedSearches(void 0)}clearMyBookmarks(){Ko.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Uo,e=await t.listMySearches();Ko.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;Ko.actions.bookmarks(e)}}};e.customElement("ft-app-context")(ko);var Ao=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};const zo=Symbol("i18nProperties"),Zo=Symbol("i18nUnsubs");function Do(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ro:Eo}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[zo])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[zo])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[zo]&&new Set([...this[zo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Zo].has(t)||this[Zo].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[Zo].forEach((t=>t())),this[Zo].clear()}}return e=Zo,Ao([r.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Fo extends(Do(e.FtLitElement)){}class To extends(Do(e.FtLitElementRedux)){}var Po=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Ho extends To{constructor(){super(),this.editorMode=!1,this.addStore(No)}render(){return this.key&&this.context?o.html`
|
|
1037
|
+
<span class="ft-i18n">
|
|
1038
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1039
|
+
</span>
|
|
1040
|
+
`:this.editorMode?"Select a context and a label key.":o.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ho.elementDefinitions={},Ho.styles=xo,Po([e.redux()],Ho.prototype,"editorMode",void 0),Po([r.property()],Ho.prototype,"context",void 0),Po([r.property()],Ho.prototype,"key",void 0),Po([e.jsonProperty([])],Ho.prototype,"args",void 0),Po([r.property()],Ho.prototype,"defaultMessage",void 0);class Mo{static build(t){return new Mo(t)}static fromGwt(t){return new Mo(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Eo.resolveMessage(this.name,e,...t)})}}e.customElement("ft-i18n")(Ho);const jo=o.css`
|
|
1041
|
+
`,Go={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var _o,qo,Yo,Qo,Vo,Xo,Jo,tr,er,or,rr,ir,ar,nr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function a(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 n(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=p(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,o,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=p(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=a(t),e=n(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[a(t)]},l.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},l.prototype.set=function(t,e){this.map[a(t)]=n(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(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,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),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})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,a){var n=new g(t,r);if(n.signal&&n.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new e.DOMException("Aborted","AbortError"))},s.open(n.method,n.url,!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),n.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),n.signal&&(n.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",c)}),s.send(void 0===n._bodyInit?null:n._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"}(_o||(_o={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(qo||(qo={})),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"}(Yo||(Yo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Qo||(Qo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Vo||(Vo={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Xo||(Xo={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Jo||(Jo={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(tr||(tr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(er||(er={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(or||(or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(rr||(rr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ir||(ir={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ar||(ar={})),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"}(nr||(nr={})),nr.PERSONAL_BOOK_SHARE_USER,nr.PERSONAL_BOOK_USER,nr.HTML_EXPORT_USER,nr.PERSONAL_BOOK_USER,nr.PDF_EXPORT_USER,nr.PERSONAL_BOOK_USER,nr.KHUB_ADMIN,nr.CONTENT_PUBLISHER,nr.ADMIN,nr.KHUB_ADMIN,nr.USERS_ADMIN,nr.PORTAL_ADMIN,nr.DEVELOPER,nr.BETA_USER,nr.DEBUG_USER;class sr{static async build(){return new sr(await So.await())}constructor(t){this.api=t,this.cache=new e.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class lr extends Event{constructor(){super(lr.eventName)}}lr.eventName="search-context-clear-all-filters";class cr{static build(t){return new cr((t=>e.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Go}))(t.trim()||"context"),sr.build)}constructor(t,o){this.store=t,this.serviceProvider=o,this.ignoreEmptyQuery=!1,this.searchDebouncer=new e.Debouncer(100),this.suggestDebouncer=new e.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await e.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(tr.TITLE_ONLY),this.store.actions.setRequestScope(ar.DOCUMENTS)):(this.store.actions.setRequestVirtualField(tr.EVERYWHERE),this.store.actions.setRequestScope(ar.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===tr.TITLE_ONLY&&t.request.scope===ar.DOCUMENTS)(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new lr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let r=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==r.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=e.cancelable(this.service.launchSearch(r));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const o=this.store.getState(),r=o.request,i={input:o.liveQuery,filters:r.filters,sort:r.sort,contentLocale:r.contentLocale,scope:r.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=e.cancelable(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var pr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class hr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const fr=Symbol("registerInterval");class dr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[fr]):this.dispatchEvent(new hr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=fr,pr([r.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}var ur,gr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class yr extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class br extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class mr extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class vr extends e.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=cr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(No)}render(){return o.html`
|
|
1042
|
+
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1043
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new br(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new mr(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new yr(t))}reloadSavedSearches(){Bo.clearMySearches()}clear(){this.stateManager.clear()}}vr.elementDefinitions={},vr.styles=jo,gr([r.property()],vr.prototype,"query",void 0),gr([r.property()],vr.prototype,"contentLocale",void 0),gr([r.property({type:Number})],vr.prototype,"pageSize",void 0),gr([r.property({type:Boolean})],vr.prototype,"searchInDocumentTitlesOnly",void 0),gr([r.property()],vr.prototype,"scope",void 0),gr([r.property({type:Boolean})],vr.prototype,"ignoreEmptyQuery",void 0),gr([e.jsonProperty([])],vr.prototype,"filters",void 0),gr([e.jsonProperty([])],vr.prototype,"sort",void 0),gr([e.redux({store:"search"})],vr.prototype,"request",void 0),gr([e.redux({store:"search"})],vr.prototype,"paging",void 0),gr([e.redux({store:"search",selector:t=>t.spellcheck})],vr.prototype,"autocorrect",void 0),gr([e.redux({store:No.name})],vr.prototype,"session",void 0),e.customElement("ft-search-context")(vr),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(ur||(ur={}));var xr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Or extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Nr=Symbol("registerInterval");class Sr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Nr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Nr]):this.dispatchEvent(new Or)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Nr,xr([r.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const wr=o.css`
|
|
1044
|
+
|
|
1045
|
+
`,Cr=Mo.build("searchResultsNumber"),$r={results:"{0} results","results[\\=1]":"1 result"};var Er=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Rr extends(Do(dr)){constructor(){super(),this.addI18nContext(Cr,$r)}render(){return null==this.paging?o.nothing:o.html`
|
|
1046
|
+
<ft-typography variant="body1">
|
|
1047
|
+
${Cr.messages.results(this.paging.totalClustersCount)}
|
|
1048
|
+
</ft-typography>
|
|
1049
|
+
`}}Rr.elementDefinitions={"ft-typography":Me},Rr.styles=wr,Er([e.redux()],Rr.prototype,"paging",void 0),e.customElement("ft-search-results-number")(Rr);const Ir=Mo.build("designedSearchInput"),kr=o.css`
|
|
1050
|
+
* {
|
|
1051
|
+
box-sizing: border-box;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.ft-search-input-suggestion {
|
|
1055
|
+
position: absolute;
|
|
1056
|
+
z-index: ${po.floatingZIndex};
|
|
1057
|
+
top: calc(100% + 2px);
|
|
1058
|
+
left: -1px;
|
|
1059
|
+
right: -1px;
|
|
1060
|
+
background: ${po.colorSurface};
|
|
1061
|
+
border: 1px solid ${po.colorOutline};
|
|
1062
|
+
border-radius: 0 0 ${po.borderRadius} ${po.borderRadius};
|
|
1063
|
+
box-shadow: ${po.elevation02};
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.ft-search-input-suggestion--suggestion {
|
|
1067
|
+
text-decoration: none;
|
|
1068
|
+
position: relative;
|
|
1069
|
+
display: flex;
|
|
1070
|
+
align-items: center;
|
|
1071
|
+
padding: 8px;
|
|
1072
|
+
gap: 8px;
|
|
1073
|
+
cursor: pointer;
|
|
1074
|
+
color: ${po.colorOnSurface};
|
|
1075
|
+
min-height: 44px;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.ft-search-input-suggestion--suggestion > *:not(ft-ripple) {
|
|
1079
|
+
position: relative;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.ft-search-input-suggestion--suggestion:focus {
|
|
1083
|
+
outline: none;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.ft-search-input-suggestion--suggestion ft-typography {
|
|
1087
|
+
display: block;
|
|
1088
|
+
flex-grow: 1;
|
|
1089
|
+
flex-shrink: 1;
|
|
1090
|
+
}
|
|
1091
|
+
`;var Ur=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Lr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Wr=class extends dr{render(){return o.html`
|
|
1092
|
+
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
1093
|
+
part="container"
|
|
1094
|
+
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
1095
|
+
${n.repeat(this.suggestResults||[],(t=>t.value),(t=>o.html`
|
|
1096
|
+
<a href="#"
|
|
1097
|
+
part="suggestion"
|
|
1098
|
+
class="ft-search-input-suggestion--suggestion"
|
|
1099
|
+
@keyup=${e=>this.onSuggestKeyUp(e,t.value)}
|
|
1100
|
+
@click=${e=>this.onSuggestSelected(e,t.value)}>
|
|
1101
|
+
<ft-ripple></ft-ripple>
|
|
1102
|
+
${this.getIcon(t)}
|
|
1103
|
+
<ft-typography variant="body1">${t.value}</ft-typography>
|
|
1104
|
+
</a>
|
|
1105
|
+
`))}
|
|
1106
|
+
</div>
|
|
1107
|
+
`}onSuggestKeyDown(t){var e,o,r,i,a,n;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(a=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==a?a:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Lr(e))}getIcon(t){const e="DOCUMENT"===t.type?Je.file_format:Je.fluid_topics;let r;switch(t.type){case"MAP":r="BOOK"===t.editorialType?_e.BOOK:_e.ARTICLE;break;case"DOCUMENT":r=function(t,e){var o,r,i,a;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,s]=((null!==(o=Xe.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(a=null!==(i=null!==(r=Ve.get(s))&&void 0!==r?r:Ve.get(e))&&void 0!==i?i:Ve.get(n))&&void 0!==a?a:qe.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":r=_e.TOPICS}return o.html`
|
|
1108
|
+
<ft-icon .variant="${e}" .value="${r}" part="suggestion-icon"></ft-icon>
|
|
1109
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Wr.elementDefinitions={"ft-ripple":te,"ft-typography":Me,"ft-icon":eo},Wr.styles=[e.wordWrap,kr],Ur([e.redux()],Wr.prototype,"suggestResults",void 0),Wr=Ur([r.customElement("ft-search-input-suggestion")],Wr);var Kr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Br extends(Do(dr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Ir)}render(){var t,e;let r={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return o.html`
|
|
1110
|
+
<div class="${i.classMap(r)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
1111
|
+
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
1112
|
+
<div class="ft-search-input--input-outline" part="input-outline">
|
|
1113
|
+
<input class="ft-search-input--input ft-typography--body2"
|
|
1114
|
+
part="input"
|
|
1115
|
+
type="text"
|
|
1116
|
+
placeholder="${Ir.messages.placeholder()}"
|
|
1117
|
+
.value="${this.liveQuery}"
|
|
1118
|
+
@keydown=${t=>this.onSearchBarKeyDown(t)}
|
|
1119
|
+
@keyup=${t=>this.onSearchBarKeyUp(t)}>
|
|
1120
|
+
</div>
|
|
1121
|
+
<ft-search-input-suggestion exportpartsPrefix="suggestion"
|
|
1122
|
+
@suggestion-selected=${this.onSuggestionSelected}
|
|
1123
|
+
></ft-search-input-suggestion>
|
|
1124
|
+
</div>
|
|
1125
|
+
<div class="ft-search-input--actions" part="actions">
|
|
1126
|
+
${this.liveQuery?o.html`
|
|
1127
|
+
<ft-button id="clear-button"
|
|
1128
|
+
class="ft-search-input--clear-query"
|
|
1129
|
+
part="clear-query"
|
|
1130
|
+
icon="close"
|
|
1131
|
+
round dense
|
|
1132
|
+
label="${Ir.messages.clearButton()}"
|
|
1133
|
+
@click=${()=>this.liveQuery=""}
|
|
1134
|
+
></ft-button>
|
|
1135
|
+
<div class="ft-search-input--separator"></div>
|
|
1136
|
+
`:null}
|
|
1137
|
+
<ft-button class="ft-search-input--launch-search"
|
|
1138
|
+
part="launch-search-in-input"
|
|
1139
|
+
icon="search"
|
|
1140
|
+
round dense
|
|
1141
|
+
label="${Ir.messages.searchButton()}"
|
|
1142
|
+
@click=${()=>this.launchSearch()}
|
|
1143
|
+
></ft-button>
|
|
1144
|
+
</div>
|
|
1145
|
+
</div>
|
|
1146
|
+
`}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Br.elementDefinitions={"ft-search-input-suggestion":Wr,"ft-button":no},Br.styles=[Wt,ho],Kr([e.redux()],Br.prototype,"request",void 0),Kr([e.redux()],Br.prototype,"liveQuery",void 0),Kr([e.redux()],Br.prototype,"suggestResults",void 0),Kr([r.state()],Br.prototype,"forceCloseSuggestion",void 0),Kr([r.query(".ft-search-input--input")],Br.prototype,"input",void 0),Kr([r.query("ft-search-input-suggestion")],Br.prototype,"suggestion",void 0),e.customElement("ft-search-input")(Br);const Ar=o.css`
|
|
1147
|
+
[part="no-results-message"] {
|
|
1148
|
+
text-align: center;
|
|
1149
|
+
padding: 12px;
|
|
1150
|
+
}
|
|
1151
|
+
`,zr=o.css`
|
|
1152
|
+
a {
|
|
1153
|
+
color: inherit;
|
|
1154
|
+
text-decoration: inherit;
|
|
1155
|
+
}
|
|
1156
|
+
`;var Zr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Dr extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class Fr extends e.FtLitElement{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return o.html`
|
|
1157
|
+
<a href="${this.url}" @click=${this.onResultClick}>
|
|
1158
|
+
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
1159
|
+
</a>
|
|
1160
|
+
`}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case ir.MAP:return this.result.map.readerUrl;case ir.DOCUMENT:return this.result.document.viewerUrl;case ir.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new Dr(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}Fr.elementDefinitions={},Fr.styles=zr,Zr([r.property({attribute:!1})],Fr.prototype,"result",void 0),Zr([r.property()],Fr.prototype,"index",void 0),e.customElement("ft-search-result-context")(Fr);var Tr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Pr extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const Hr=Symbol("registerInterval");class Mr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[Hr]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[Hr]):this.dispatchEvent(new Pr)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=Hr,Tr([r.property({attribute:!1})],o.prototype,"result",void 0),o}(dr)){}class jr extends Mr{render(){return this.result?o.html`
|
|
1161
|
+
<ft-typography variant="title" part="text">${a.unsafeHTML(this.selectTitle(this.result))}</ft-typography>
|
|
1162
|
+
`:o.nothing}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}jr.elementDefinitions={"ft-typography":Me},jr.styles=yo,e.customElement("ft-search-result-title")(jr);class Gr extends Mr{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?o.html`
|
|
1163
|
+
<ft-typography variant="body1" part="text">${a.unsafeHTML(t)}</ft-typography>
|
|
1164
|
+
`:o.html`
|
|
1165
|
+
<style>
|
|
1166
|
+
:host {
|
|
1167
|
+
display: none !important;
|
|
1168
|
+
}
|
|
1169
|
+
</style>
|
|
1170
|
+
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}Gr.elementDefinitions={"ft-typography":Me},Gr.styles=uo,e.customElement("ft-search-result-abstract")(Gr);var _r=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class qr extends(Do(dr)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>o.html`
|
|
1171
|
+
<ft-search-result-title></ft-search-result-title>
|
|
1172
|
+
<ft-search-result-abstract></ft-search-result-abstract>
|
|
1173
|
+
`,this.addI18nContext(Cr)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?o.html`
|
|
1174
|
+
<ft-typography part="no-results-message" variant="body1">${Cr.messages.results(0)}</ft-typography>
|
|
1175
|
+
`:n.repeat((null!==(t=this.results)&&void 0!==t?t:[]).flatMap((t=>"display-first-result"==this.clusterPolicy?[t.entries[0]]:t.entries)),(t=>{var e,o,r,i,a;return null!==(i=null!==(o=null===(e=t.document)||void 0===e?void 0:e.documentId)&&void 0!==o?o:null===(r=t.map)||void 0===r?void 0:r.mapId)&&void 0!==i?i:null===(a=t.topic)||void 0===a?void 0:a.tocId}),((t,e)=>o.html`
|
|
1176
|
+
<ft-search-result-context .result=${t} index="${e}">
|
|
1177
|
+
${this.renderResult(t,e)}
|
|
1178
|
+
</ft-search-result-context>
|
|
1179
|
+
`))}}qr.styles=Ar,_r([r.property({type:String,attribute:"cluster-policy"})],qr.prototype,"clusterPolicy",void 0),_r([r.property({type:Boolean})],qr.prototype,"displayNoResultsMessage",void 0),_r([r.property({attribute:!1})],qr.prototype,"renderResult",void 0),_r([e.redux()],qr.prototype,"results",void 0),e.customElement("ft-search-results")(qr);var Yr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Qr extends e.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return o.html`
|
|
1180
|
+
<div id="container" part="container" class=${i.classMap(t)}>
|
|
1181
|
+
${this.clickable?o.html`
|
|
1182
|
+
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
1183
|
+
`:o.nothing}
|
|
1184
|
+
<div id="header" part="header">
|
|
1185
|
+
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
1186
|
+
<slot name="header"></slot>
|
|
1187
|
+
</div>
|
|
1188
|
+
<div id="action" part="action">
|
|
1189
|
+
<slot name="action"></slot>
|
|
1190
|
+
</div>
|
|
1191
|
+
<div id="content" part="content">
|
|
1192
|
+
<ft-typography variant="body2">
|
|
1193
|
+
<slot></slot>
|
|
1194
|
+
</ft-typography>
|
|
1195
|
+
</div>
|
|
1196
|
+
</div>
|
|
1197
|
+
`}}Qr.elementDefinitions={"ft-ripple":te,"ft-typography":Me},Qr.styles=b,Yr([r.property()],Qr.prototype,"title",void 0),Yr([r.property({type:Boolean})],Qr.prototype,"clickable",void 0),Yr([r.property({type:Boolean})],Qr.prototype,"selected",void 0),Yr([r.property({type:Boolean})],Qr.prototype,"noHeader",void 0),e.customElement("ft-card")(Qr);const Vr=o.css`
|
|
1198
|
+
`,Xr=Mo.fromGwt("designedActionBlockAriaLabels");var Jr=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ti extends(Do(dr)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(Xr)}render(){return this.isLastPage?o.nothing:o.html`
|
|
1199
|
+
<ft-button @click="${this.loadMore}">
|
|
1200
|
+
${Xr.messages.searchPageLoadMore()}
|
|
1201
|
+
</ft-button>
|
|
1202
|
+
`}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}ti.elementDefinitions={"ft-button":no},ti.styles=Vr,Jr([e.redux({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],ti.prototype,"currentPage",void 0),Jr([e.redux({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],ti.prototype,"isLastPage",void 0),e.customElement("ft-search-load-more-button")(ti);var ei=function(t,e,o,r){for(var i,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(e,o,n):i(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class oi extends(Do(Sr)){constructor(){super(...arguments),this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.uniqueId="search-in-document-"+(""+Math.round(999e3*Math.random())).padStart(6,"0")}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(t){var e;return o.html`
|
|
1203
|
+
<style> ${vo}</style>
|
|
1204
|
+
<ft-card clickable noheader>
|
|
1205
|
+
<div class="result-container">
|
|
1206
|
+
${this.hideResultTitle?o.nothing:o.html`
|
|
1207
|
+
<ft-search-result-title></ft-search-result-title>`}
|
|
1208
|
+
${this.hideResultBreadcrumb?o.nothing:o.html`
|
|
1209
|
+
<ft-typography class="breadcrumb" variant="caption">${null===(e=t.topic)||void 0===e?void 0:e.breadcrumb.join(" > ")}</ft-typography>
|
|
1210
|
+
`}
|
|
1211
|
+
${this.hideResultAbstract?o.nothing:o.html`
|
|
1212
|
+
<ft-search-result-abstract></ft-search-result-abstract>
|
|
1213
|
+
`}
|
|
1214
|
+
</div>
|
|
1215
|
+
</ft-card>
|
|
1216
|
+
`}render(){return this.map?o.html`
|
|
1217
|
+
<ft-search-context id="${this.uniqueId}"
|
|
1218
|
+
contentLocale="${this.map.lang}"
|
|
1219
|
+
.filters=${this.filters}
|
|
1220
|
+
scope="ALL_TOPICS"
|
|
1221
|
+
ignoreEmptyQuery>
|
|
1222
|
+
<div class="ft-search-in-doc--container">
|
|
1223
|
+
<ft-search-input></ft-search-input>
|
|
1224
|
+
${this.hideResultsNumber?o.nothing:o.html`
|
|
1225
|
+
<ft-search-results-number></ft-search-results-number>
|
|
1226
|
+
`}
|
|
1227
|
+
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
1228
|
+
.renderResult=${t=>this.renderResult(t)}></ft-search-results>
|
|
1229
|
+
<slot name="load-more">
|
|
1230
|
+
<ft-search-load-more-button></ft-search-load-more-button>
|
|
1231
|
+
</slot>
|
|
1232
|
+
</div>
|
|
1233
|
+
</ft-search-context>
|
|
1234
|
+
`:o.nothing}update(t){super.update(t),t.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some((e=>t.has(e)))&&this.searchResults&&this.searchResults.requestUpdate()}}oi.elementDefinitions={"ft-button":no,"ft-typography":Me,"ft-search-context":vr,"ft-search-input":Br,"ft-search-results-number":Rr,"ft-search-results":qr,"ft-search-load-more-button":ti},oi.styles=mo,ei([e.redux()],oi.prototype,"map",void 0),ei([r.query("ft-search-context")],oi.prototype,"searchContext",void 0),ei([r.query("ft-search-results")],oi.prototype,"searchResults",void 0),ei([r.property({type:Boolean})],oi.prototype,"hideResultTitle",void 0),ei([r.property({type:Boolean})],oi.prototype,"hideResultBreadcrumb",void 0),ei([r.property({type:Boolean})],oi.prototype,"hideResultAbstract",void 0),ei([r.property({type:Boolean})],oi.prototype,"hideResultsNumber",void 0),e.customElement("ft-reader-search-in-document")(oi),t.FtReaderSearchInDocument=oi,t.FtReaderSearchInDocumentCssVariables=bo,t.resultStyles=vo,t.styles=mo}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
|