@fluid-topics/ft-reader-search-in-document 1.3.44 → 1.3.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-search-in-document.light.js +248 -248
- package/build/ft-reader-search-in-document.min.js +372 -372
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Lx=Object.create;var Ks=Object.defineProperty;var Ix=Object.getOwnPropertyDescriptor;var kx=Object.getOwnPropertyNames;var Tx=Object.getPrototypeOf,$x=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(t&&(e=t(t=0)),e);var _o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Bo=(t,e)=>{for(var r in e)Ks(t,r,{get:e[r],enumerable:!0})},Nx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kx(e))!$x.call(t,n)&&n!==r&&Ks(t,n,{get:()=>e[n],enumerable:!(i=Ix(e,n))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?Lx(Tx(t)):{},Nx(e||!t||!t.__esModule?Ks(r,"default",{value:t,enumerable:!0}):r,t));var x=_o((yS,Cp)=>{Cp.exports=ftGlobals.wcUtils});var R=_o((bS,Op)=>{Op.exports=ftGlobals.lit});var Ip,De,wp,S,Ep,Ap,Rp,Lp,kp,Ur=p(()=>{"use strict";Ip=u(R()),De=u(x()),wp=De.FtCssVariableFactory.extend("--ft-ripple-color","",De.designSystemVariables.colorContent),S={color:wp,backgroundColor:De.FtCssVariableFactory.extend("--ft-ripple-background-color","",wp),opacityContentOnSurfacePressed:De.FtCssVariableFactory.external(De.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:De.FtCssVariableFactory.external(De.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:De.FtCssVariableFactory.external(De.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:De.FtCssVariableFactory.external(De.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:De.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ep=De.FtCssVariableFactory.extend("--ft-ripple-color","",De.designSystemVariables.colorPrimary),Ap={color:Ep,backgroundColor:De.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ep)},Rp=De.FtCssVariableFactory.extend("--ft-ripple-color","",De.designSystemVariables.colorSecondary),Lp={color:Rp,backgroundColor:De.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rp)},kp=Ip.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${Lp.backgroundColor};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${Lp.color};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${Ap.backgroundColor};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${Ap.color};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ft-ripple .ft-ripple--background {
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
opacity: ${S.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`});var W=Po((xS,$p)=>{$p.exports=ftGlobals.litDecorators});function Np(t,e){return io(`${t.name}: ${e}`)}var Hr,io,o,J=p(()=>{Hr=u(R(),1),io=t=>typeof t=="string"?(0,Hr.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=l=>io(l??n),s=Hr.css`var(${io(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>Np(s,l??a(n)),s.get=l=>Hr.css`var(${io(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=Hr.css`var(${io(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>Np(s,l??a(n)),s.get=l=>Hr.css`var(${io(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Hr.css`var(${io(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Hr.css`var(${io(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,_p,Pp,Bp,Dp,Fp,Mp,zp,Up,mi,$x,Hp,Wp,Vp,jp,Gp,Kp,qp,Zp,Qp,Yp,Do,Xp,Jp,eu,tu,ru,qn,re=p(()=>{J();c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},_p={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Pp={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Bp={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Dp={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Fp={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Mp={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},zp={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Up={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},mi={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},$x={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Hp={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Wp={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},Vp={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},jp={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Gp={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Kp={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},qp={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Zp={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Qp={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Yp={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Do={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Xp={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Jp={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},eu={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},tu={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},ru={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},qn={display:_p,"title-1":Pp,"title-2":Bp,"title-3":Dp,"body-1-regular":Fp,"body-1-medium":Mp,"body-1-semibold":zp,"body-2-regular":Up,"body-2-medium":mi,"body-2-medium-underline":$x,"body-2-semibold":Hp,"label-1-medium":Wp,"label-1-semibold":Vp,"label-1-bold":jp,"label-2-medium":Gp,"label-2-semibold":Kp,"label-2-bold":qp,"caption-1-medium":Zp,"caption-1-semibold":Qp,"caption-1-bold":Yp,"caption-2-medium":Do,"caption-2-semibold":Xp,"caption-2-bold":Jp,"caption-3-medium":eu,"caption-3-semibold":tu,"caption-3-bold":ru}});var d,le=p(()=>{J();re();d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
114
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var m,ou=p(()=>{J();re();le();m={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)}});var _S,iu=p(()=>{J();re();le();_S={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)}});var MS,nu=p(()=>{J();re();le();MS={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",c.spacing2)}});var VS,au=p(()=>{J();re();le();VS={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var ZS,su=p(()=>{J();re();le();ZS={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var eC,lu=p(()=>{J();re();le();eC={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var F,cu=p(()=>{J();re();le();F={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)}});var cC,du=p(()=>{J();re();le();cC={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var hC,pu=p(()=>{J();re();le();hC={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)}});var vC,uu=p(()=>{J();re();le();vC={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)}});var wC,fu=p(()=>{J();re();le();wC={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)}});var IC,hu=p(()=>{J();re();le();IC={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var _C,mu=p(()=>{J();re();le();_C={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var FC,gu=p(()=>{J();re();FC={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var WC,yu=p(()=>{J();re();le();WC={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var qC,bu=p(()=>{J();re();le();qC={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var JC,vu=p(()=>{J();re();le();JC={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)}});var iO,xu=p(()=>{J();re();le();iO={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var cO,Su=p(()=>{J();re();le();cO={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var hO,Cu=p(()=>{J();re();le();hO={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02)}});var vO,Ou=p(()=>{J();re();le();vO={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var wO,wu=p(()=>{J();re();le();wO={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",c.borderRadiusS)}});var IO,Eu=p(()=>{J();re();le();IO={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6)}});var _O,Au=p(()=>{J();re();le();_O={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var MO,Ru=p(()=>{J();re();le();MO={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var WO,Lu=p(()=>{J();re();WO={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var KO,Iu=p(()=>{J();re();KO={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var XO,ku=p(()=>{J();re();le();XO={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")}});var ow,Tu=p(()=>{J();re();le();ow={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)}});var lw,$u=p(()=>{J();re();le();lw={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var fw,Nu=p(()=>{J();re();le();fw={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)}});var bw,_u=p(()=>{J();re();le();bw={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)}});var Cw,Pu=p(()=>{J();re();Cw={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Bu=p(()=>{re();le();ou();iu();nu();au();su();lu();cu();du();pu();uu();fu();hu();mu();gu();yu();bu();vu();xu();Su();Cu();Ou();wu();Eu();Au();Ru();Lu();Iu();ku();Tu();$u();Nu();_u();Pu()});var no,mt,Du=p(()=>{(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(no||(no={}));(function(t){t.large="large",t.medium="medium",t.small="small"})(mt||(mt={}))});var oe=p(()=>{J();Bu();Du()});function Fu(t,e){let r=qn[t];return gi.css`
|
|
113
|
+
`});var W=_o((CS,Np)=>{Np.exports=ftGlobals.litDecorators});function Pp(t,e){return io(`${t.name}: ${e}`)}var Hr,io,o,J=p(()=>{Hr=u(R(),1),io=t=>typeof t=="string"?(0,Hr.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=l=>io(l??n),s=Hr.css`var(${io(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>Pp(s,l??a(n)),s.get=l=>Hr.css`var(${io(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=Hr.css`var(${io(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>Pp(s,l??a(n)),s.get=l=>Hr.css`var(${io(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Hr.css`var(${io(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Hr.css`var(${io(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,_p,Bp,Dp,Fp,Mp,zp,Up,Hp,mi,Px,Wp,Vp,jp,Gp,Kp,qp,Zp,Qp,Yp,Xp,Do,Jp,eu,tu,ru,ou,qn,re=p(()=>{J();c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},_p={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Bp={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Dp={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Fp={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Mp={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},zp={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Up={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Hp={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},mi={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Px={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Wp={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Vp={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},jp={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Gp={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Kp={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},qp={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Zp={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Qp={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Yp={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Xp={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Do={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Jp={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},eu={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},tu={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},ru={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},ou={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},qn={display:_p,"title-1":Bp,"title-2":Dp,"title-3":Fp,"body-1-regular":Mp,"body-1-medium":zp,"body-1-semibold":Up,"body-2-regular":Hp,"body-2-medium":mi,"body-2-medium-underline":Px,"body-2-semibold":Wp,"label-1-medium":Vp,"label-1-semibold":jp,"label-1-bold":Gp,"label-2-medium":Kp,"label-2-semibold":qp,"label-2-bold":Zp,"caption-1-medium":Qp,"caption-1-semibold":Yp,"caption-1-bold":Xp,"caption-2-medium":Do,"caption-2-semibold":Jp,"caption-2-bold":eu,"caption-3-medium":tu,"caption-3-semibold":ru,"caption-3-bold":ou}});var d,le=p(()=>{J();re();d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
114
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var m,iu=p(()=>{J();re();le();m={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)}});var BS,nu=p(()=>{J();re();le();BS={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)}});var US,au=p(()=>{J();re();le();US={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",c.spacing2)}});var GS,su=p(()=>{J();re();le();GS={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var YS,lu=p(()=>{J();re();le();YS={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var rC,cu=p(()=>{J();re();le();rC={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var F,du=p(()=>{J();re();le();F={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)}});var pC,pu=p(()=>{J();re();le();pC={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var gC,uu=p(()=>{J();re();le();gC={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)}});var SC,fu=p(()=>{J();re();le();SC={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)}});var AC,hu=p(()=>{J();re();le();AC={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)}});var TC,mu=p(()=>{J();re();le();TC={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var BC,gu=p(()=>{J();re();le();BC={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var zC,yu=p(()=>{J();re();zC={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var jC,bu=p(()=>{J();re();le();jC={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var QC,vu=p(()=>{J();re();le();QC={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var tO,xu=p(()=>{J();re();le();tO={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)}});var aO,Su=p(()=>{J();re();le();aO={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var pO,Cu=p(()=>{J();re();le();pO={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var gO,Ou=p(()=>{J();re();le();gO={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02)}});var SO,wu=p(()=>{J();re();le();SO={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var AO,Eu=p(()=>{J();re();le();AO={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",c.borderRadiusS)}});var TO,Au=p(()=>{J();re();le();TO={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6)}});var BO,Ru=p(()=>{J();re();le();BO={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var UO,Lu=p(()=>{J();re();le();UO={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var jO,Iu=p(()=>{J();re();jO={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var ZO,ku=p(()=>{J();re();ZO={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var ew,Tu=p(()=>{J();re();le();ew={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")}});var nw,$u=p(()=>{J();re();le();nw={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)}});var dw,Nu=p(()=>{J();re();le();dw={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var mw,Pu=p(()=>{J();re();le();mw={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)}});var xw,_u=p(()=>{J();re();le();xw={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)}});var ww,Bu=p(()=>{J();re();ww={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Du=p(()=>{re();le();iu();nu();au();su();lu();cu();du();pu();uu();fu();hu();mu();gu();yu();bu();vu();xu();Su();Cu();Ou();wu();Eu();Au();Ru();Lu();Iu();ku();Tu();$u();Nu();Pu();_u();Bu()});var no,mt,Fu=p(()=>{(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(no||(no={}));(function(t){t.large="large",t.medium="medium",t.small="small"})(mt||(mt={}))});var oe=p(()=>{J();Du();Fu()});function Mu(t,e){let r=qn[t];return gi.css`
|
|
115
115
|
${e?(0,gi.unsafeCSS)(e):gi.css`.ft-typography--${(0,gi.unsafeCSS)(t)}`} {
|
|
116
116
|
font-family: ${r.fontFamily};
|
|
117
117
|
font-size: ${r.fontSize};
|
|
@@ -121,7 +121,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
121
121
|
text-decoration: ${r.textDecoration};
|
|
122
122
|
text-transform: ${r.textCase};
|
|
123
123
|
}
|
|
124
|
-
`}var gi,
|
|
124
|
+
`}var gi,zu=p(()=>{"use strict";gi=u(R());oe()});var Kt,I,Uu,Vr,T,yi,bi,vi,xi,Wr,We,qe,Si,Ci,Cr,Hu,Wu,Vu,ju,Gu,ao,Or,Ku,qu,Zu,Qu,Yu,qt=p(()=>{"use strict";Kt=u(R()),I=u(x());oe();zu();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();oe();Uu=I.FtCssVariableFactory.extend("--ft-typography-font-family","",I.designSystemVariables.titleFont),Vr=I.FtCssVariableFactory.extend("--ft-typography-font-family","",I.designSystemVariables.contentFont),T={fontFamily:Vr,fontSize:I.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:I.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:I.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:I.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:I.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yi={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Uu),fontSize:I.FtCssVariableFactory.extend("--ft-typography-title-font-size","",T.fontSize,"20px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",T.letterSpacing,"0.15px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-title-line-height","",T.lineHeight,"1.2"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",T.textTransform,"inherit")},bi={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Uu),fontSize:I.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",T.fontSize,"14px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",T.letterSpacing,"0.105px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",T.lineHeight,"1.7"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",T.textTransform,"inherit")},vi={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",T.fontSize,"16px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",T.fontWeight,"600"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",T.letterSpacing,"0.144px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",T.lineHeight,"1.5"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",T.textTransform,"inherit")},xi={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",T.fontSize,"14px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",T.letterSpacing,"0.098px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",T.lineHeight,"1.7"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",T.textTransform,"inherit")},Wr={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",T.fontSize,"16px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",T.letterSpacing,"0.496px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",T.lineHeight,"1.5"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",T.textTransform,"inherit")},We={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",T.fontSize,"14px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",T.letterSpacing,"0.252px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",T.lineHeight,"1.4"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",T.textTransform,"inherit")},qe={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",T.fontSize,"12px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",T.letterSpacing,"0.396px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",T.lineHeight,"1.33"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",T.textTransform,"inherit")},Si={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",T.fontSize,"10px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",T.letterSpacing,"0.33px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",T.lineHeight,"1.6"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",T.textTransform,"inherit")},Ci={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",T.fontSize,"10px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",T.fontWeight,"normal"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",T.letterSpacing,"1.5px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",T.lineHeight,"1.6"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",T.textTransform,"uppercase")},Cr={fontFamily:I.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vr),fontSize:I.FtCssVariableFactory.extend("--ft-typography-button-font-size","",T.fontSize,"14px"),fontWeight:I.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",T.fontWeight,"600"),letterSpacing:I.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",T.letterSpacing,"1.246px"),lineHeight:I.FtCssVariableFactory.extend("--ft-typography-button-line-height","",T.lineHeight,"1.15"),textTransform:I.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",T.textTransform,"uppercase")},Hu=Kt.css`
|
|
125
125
|
.ft-typography--title {
|
|
126
126
|
font-family: ${yi.fontFamily};
|
|
127
127
|
font-size: ${yi.fontSize};
|
|
@@ -130,7 +130,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
130
130
|
line-height: ${yi.lineHeight};
|
|
131
131
|
text-transform: ${yi.textTransform};
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
133
|
+
`,Wu=Kt.css`
|
|
134
134
|
.ft-typography--title-dense {
|
|
135
135
|
font-family: ${bi.fontFamily};
|
|
136
136
|
font-size: ${bi.fontSize};
|
|
@@ -139,7 +139,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
139
139
|
line-height: ${bi.lineHeight};
|
|
140
140
|
text-transform: ${bi.textTransform};
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`,Vu=Kt.css`
|
|
143
143
|
.ft-typography--subtitle1 {
|
|
144
144
|
font-family: ${vi.fontFamily};
|
|
145
145
|
font-size: ${vi.fontSize};
|
|
@@ -148,7 +148,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
148
148
|
line-height: ${vi.lineHeight};
|
|
149
149
|
text-transform: ${vi.textTransform};
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,ju=Kt.css`
|
|
152
152
|
.ft-typography--subtitle2 {
|
|
153
153
|
font-family: ${xi.fontFamily};
|
|
154
154
|
font-size: ${xi.fontSize};
|
|
@@ -158,7 +158,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
158
158
|
text-transform: ${xi.textTransform};
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
`,
|
|
161
|
+
`,Gu=Kt.css`
|
|
162
162
|
.ft-typography--body1 {
|
|
163
163
|
font-family: ${Wr.fontFamily};
|
|
164
164
|
font-size: ${Wr.fontSize};
|
|
@@ -167,7 +167,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
167
167
|
line-height: ${Wr.lineHeight};
|
|
168
168
|
text-transform: ${Wr.textTransform};
|
|
169
169
|
}
|
|
170
|
-
`,ao=
|
|
170
|
+
`,ao=Kt.css`
|
|
171
171
|
.ft-typography--body2 {
|
|
172
172
|
font-family: ${We.fontFamily};
|
|
173
173
|
font-size: ${We.fontSize};
|
|
@@ -176,7 +176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
176
176
|
line-height: ${We.lineHeight};
|
|
177
177
|
text-transform: ${We.textTransform};
|
|
178
178
|
}
|
|
179
|
-
`,Or=
|
|
179
|
+
`,Or=Kt.css`
|
|
180
180
|
.ft-typography--caption {
|
|
181
181
|
font-family: ${qe.fontFamily};
|
|
182
182
|
font-size: ${qe.fontSize};
|
|
@@ -185,7 +185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
185
185
|
line-height: ${qe.lineHeight};
|
|
186
186
|
text-transform: ${qe.textTransform};
|
|
187
187
|
}
|
|
188
|
-
`,
|
|
188
|
+
`,Ku=Kt.css`
|
|
189
189
|
.ft-typography--breadcrumb {
|
|
190
190
|
font-family: ${Si.fontFamily};
|
|
191
191
|
font-size: ${Si.fontSize};
|
|
@@ -194,7 +194,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
194
194
|
line-height: ${Si.lineHeight};
|
|
195
195
|
text-transform: ${Si.textTransform};
|
|
196
196
|
}
|
|
197
|
-
`,
|
|
197
|
+
`,qu=Kt.css`
|
|
198
198
|
.ft-typography--overline {
|
|
199
199
|
font-family: ${Ci.fontFamily};
|
|
200
200
|
font-size: ${Ci.fontSize};
|
|
@@ -203,7 +203,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
203
203
|
line-height: ${Ci.lineHeight};
|
|
204
204
|
text-transform: ${Ci.textTransform};
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`,Zu=Kt.css`
|
|
207
207
|
.ft-typography--button {
|
|
208
208
|
font-family: ${Cr.fontFamily};
|
|
209
209
|
font-size: ${Cr.fontSize};
|
|
@@ -212,11 +212,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
212
212
|
line-height: ${Cr.lineHeight};
|
|
213
213
|
text-transform: ${Cr.textTransform};
|
|
214
214
|
}
|
|
215
|
-
`,
|
|
215
|
+
`,Qu=Kt.css`
|
|
216
216
|
.ft-typography {
|
|
217
217
|
vertical-align: inherit;
|
|
218
218
|
}
|
|
219
|
-
`,
|
|
219
|
+
`,Yu=[Object.keys(qn).map(t=>Mu(t))]});var Xu,an,Re,Ju,sn=p(()=>{"use strict";Xu=u(R()),an=u(x()),Re={color:an.FtCssVariableFactory.extend("--ft-loader-color","",an.designSystemVariables.colorPrimary),size:an.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ju=Xu.css`
|
|
220
220
|
:host {
|
|
221
221
|
line-height: 0;
|
|
222
222
|
}
|
|
@@ -225,8 +225,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
225
225
|
display: inline-block;
|
|
226
226
|
position: relative;
|
|
227
227
|
|
|
228
|
-
width: ${
|
|
229
|
-
height: ${
|
|
228
|
+
width: ${Re.size};
|
|
229
|
+
height: ${Re.size};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.ft-loader div {
|
|
@@ -235,7 +235,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
235
235
|
width: 25%;
|
|
236
236
|
height: 25%;
|
|
237
237
|
border-radius: 50%;
|
|
238
|
-
background: ${
|
|
238
|
+
background: ${Re.color};
|
|
239
239
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -282,10 +282,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
282
282
|
transform: translate(0, 0);
|
|
283
283
|
}
|
|
284
284
|
100% {
|
|
285
|
-
transform: translate(calc(0.35 * ${
|
|
285
|
+
transform: translate(calc(0.35 * ${Re.size}), 0);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
`});var
|
|
288
|
+
`});var ef,lr,Te,tf,Fo=p(()=>{"use strict";ef=u(R()),lr=u(x()),Te={size:lr.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:lr.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",lr.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:lr.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",lr.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:lr.FtCssVariableFactory.extend("--ft-icon-material-font-family","",lr.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:lr.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},tf=[ef.css`
|
|
289
289
|
:host, i.ft-icon {
|
|
290
290
|
display: inline-flex;
|
|
291
291
|
align-items: center;
|
|
@@ -333,7 +333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
333
333
|
.ft-icon--material {
|
|
334
334
|
font-family: ${Te.materialFontFamily}, "Material Icons", sans-serif;
|
|
335
335
|
}
|
|
336
|
-
`,lr.noTextSelect]});var
|
|
336
|
+
`,lr.noTextSelect]});var nf,q,rf,j,of,qs,wr,af,Mo=p(()=>{"use strict";nf=u(R()),q=u(x());Ur();qt();sn();Fo();rf=q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorPrimary),j={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorSurface),borderRadius:q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusL),color:rf,fontSize:q.FtCssVariableFactory.extend("--ft-button-font-size","",Cr.fontSize),iconSize:q.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:q.FtCssVariableFactory.extend("--ft-button-ripple-color","",rf),verticalPadding:q.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOpacityDisabled,"Design system")},of=q.FtCssVariableFactory.extend("--ft-button-primary-color","",q.FtCssVariableFactory.extend("--ft-button-color","",q.designSystemVariables.colorOnPrimary)),qs={backgroundColor:q.FtCssVariableFactory.extend("--ft-button-primary-background-color","",q.FtCssVariableFactory.extend("--ft-button-background-color","",q.designSystemVariables.colorPrimary)),color:of,rippleColor:q.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",of)},wr={borderRadius:q.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",q.FtCssVariableFactory.extend("--ft-button-border-radius","",q.designSystemVariables.borderRadiusM)),verticalPadding:q.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:q.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:q.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},af=[nf.css`
|
|
337
337
|
:host {
|
|
338
338
|
display: inline-block;
|
|
339
339
|
max-width: 100%;
|
|
@@ -419,9 +419,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-button.ft-button--primary {
|
|
422
|
-
background-color: ${
|
|
423
|
-
--button-internal-color: ${
|
|
424
|
-
${(0,q.setVariable)(S.color,
|
|
422
|
+
background-color: ${qs.backgroundColor};
|
|
423
|
+
--button-internal-color: ${qs.color};
|
|
424
|
+
${(0,q.setVariable)(S.color,qs.rippleColor)};
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
.ft-button:focus {
|
|
@@ -467,31 +467,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
ft-loader {
|
|
470
|
-
${(0,q.setVariable)(
|
|
471
|
-
${(0,q.setVariable)(
|
|
470
|
+
${(0,q.setVariable)(Re.size,j.iconSize)};
|
|
471
|
+
${(0,q.setVariable)(Re.color,"var(--button-internal-color)")};
|
|
472
472
|
}
|
|
473
|
-
`,q.noTextSelect]});var Ot=
|
|
473
|
+
`,q.noTextSelect]});var Ot=_o((QE,sf)=>{sf.exports=ftGlobals.litClassMap});var lf,et,cf,ln,wt,G,Zs=p(()=>{"use strict";lf=u(R()),et=u(W()),cf=u(Ot()),ln=u(x());Ur();wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},G=class extends ln.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 ln.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ln.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 lf.html`
|
|
474
474
|
<style>
|
|
475
475
|
.ft-ripple .ft-ripple--effect {
|
|
476
476
|
left: ${this.originX}px;
|
|
477
477
|
top: ${this.originY}px;
|
|
478
478
|
}
|
|
479
479
|
</style>
|
|
480
|
-
<div class="${(0,
|
|
480
|
+
<div class="${(0,cf.classMap)(e)}">
|
|
481
481
|
<div class="ft-ripple--background"></div>
|
|
482
482
|
<div class="ft-ripple--effect"></div>
|
|
483
483
|
</div>
|
|
484
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>f=>{l.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(f)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};G.elementDefinitions={};G.styles=
|
|
485
|
-
\f\r]`,cn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
486
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
487
|
-
<${
|
|
484
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>f=>{l.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(f)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};G.elementDefinitions={};G.styles=kp;wt([(0,et.property)({type:Boolean})],G.prototype,"primary",void 0);wt([(0,et.property)({type:Boolean})],G.prototype,"secondary",void 0);wt([(0,et.property)({type:Boolean})],G.prototype,"unbounded",void 0);wt([(0,et.property)({type:Boolean})],G.prototype,"activated",void 0);wt([(0,et.property)({type:Boolean})],G.prototype,"selected",void 0);wt([(0,et.property)({type:Boolean})],G.prototype,"disabled",void 0);wt([(0,et.state)()],G.prototype,"hovered",void 0);wt([(0,et.state)()],G.prototype,"focused",void 0);wt([(0,et.state)()],G.prototype,"pressed",void 0);wt([(0,et.state)()],G.prototype,"rippling",void 0);wt([(0,et.state)()],G.prototype,"originX",void 0);wt([(0,et.state)()],G.prototype,"originY",void 0);wt([(0,et.query)(".ft-ripple")],G.prototype,"ripple",void 0);wt([(0,et.query)(".ft-ripple--effect")],G.prototype,"rippleEffect",void 0)});var df=p(()=>{"use strict"});var pf,gt=p(()=>{"use strict";pf=u(x());Zs();Zs();Ur();df();(0,pf.customElement)("ft-ripple")(G)});function wf(t,e){if(!ol(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return uf!==void 0?uf.createHTML(e):e}function Oi(t,e,r=t,i){if(e===pn)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=dn(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Oi(t,n._$AS(t,e.values),n,i)),e}var rl,Zn,uf,bf,so,vf,_x,Ho,Qn,dn,ol,Bx,Qs,cn,ff,hf,zo,mf,gf,xf,il,Sf,Cf,Of,pn,Fe,yf,Uo,Dx,un,Ys,Yn,wi,Xs,Js,el,tl,Fx,nl=p(()=>{rl=globalThis,Zn=rl.trustedTypes,uf=Zn?Zn.createPolicy("lit-html",{createHTML:t=>t}):void 0,bf="$lit$",so=`lit$${Math.random().toFixed(9).slice(2)}$`,vf="?"+so,_x=`<${vf}>`,Ho=document,Qn=()=>Ho.createComment(""),dn=t=>t===null||typeof t!="object"&&typeof t!="function",ol=Array.isArray,Bx=t=>ol(t)||typeof t?.[Symbol.iterator]=="function",Qs=`[
|
|
485
|
+
\f\r]`,cn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ff=/-->/g,hf=/>/g,zo=RegExp(`>|${Qs}(?:([^\\s"'>=/]+)(${Qs}*=${Qs}*(?:[^
|
|
486
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),mf=/'/g,gf=/"/g,xf=/^(?:script|style|textarea|title)$/i,il=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Sf=il(1),Cf=il(2),Of=il(3),pn=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),yf=new WeakMap,Uo=Ho.createTreeWalker(Ho,129);Dx=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=cn;for(let l=0;l<r;l++){let f=t[l],h,y,g=-1,v=0;for(;v<f.length&&(s.lastIndex=v,y=s.exec(f),y!==null);)v=s.lastIndex,s===cn?y[1]==="!--"?s=ff:y[1]!==void 0?s=hf:y[2]!==void 0?(xf.test(y[2])&&(n=RegExp("</"+y[2],"g")),s=zo):y[3]!==void 0&&(s=zo):s===zo?y[0]===">"?(s=n??cn,g=-1):y[1]===void 0?g=-2:(g=s.lastIndex-y[2].length,h=y[1],s=y[3]===void 0?zo:y[3]==='"'?gf:mf):s===gf||s===mf?s=zo:s===ff||s===hf?s=cn:(s=zo,n=void 0);let w=s===zo&&t[l+1].startsWith("/>")?" ":"";a+=s===cn?f+_x:g>=0?(i.push(h),f.slice(0,g)+bf+f.slice(g)+so+w):f+so+(g===-2?l:w)}return[wf(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},un=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,f=this.parts,[h,y]=Dx(e,r);if(this.el=t.createElement(h,i),Uo.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Uo.nextNode())!==null&&f.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(bf)){let v=y[s++],w=n.getAttribute(g).split(so),O=/([.?@])?(.*)/.exec(v);f.push({type:1,index:a,name:O[2],strings:w,ctor:O[1]==="."?Xs:O[1]==="?"?Js:O[1]==="@"?el:wi}),n.removeAttribute(g)}else g.startsWith(so)&&(f.push({type:6,index:a}),n.removeAttribute(g));if(xf.test(n.tagName)){let g=n.textContent.split(so),v=g.length-1;if(v>0){n.textContent=Zn?Zn.emptyScript:"";for(let w=0;w<v;w++)n.append(g[w],Qn()),Uo.nextNode(),f.push({type:2,index:++a});n.append(g[v],Qn())}}}else if(n.nodeType===8)if(n.data===vf)f.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(so,g+1))!==-1;)f.push({type:7,index:a}),g+=so.length-1}a++}}static createElement(e,r){let i=Ho.createElement("template");return i.innerHTML=e,i}};Ys=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Ho).importNode(r,!0);Uo.currentNode=n;let a=Uo.nextNode(),s=0,l=0,f=i[0];for(;f!==void 0;){if(s===f.index){let h;f.type===2?h=new Yn(a,a.nextSibling,this,e):f.type===1?h=new f.ctor(a,f.name,f.strings,this,e):f.type===6&&(h=new tl(a,this,e)),this._$AV.push(h),f=i[++l]}s!==f?.index&&(a=Uo.nextNode(),s++)}return Uo.currentNode=Ho,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Yn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Fe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Oi(this,e,r),dn(e)?e===Fe||e==null||e===""?(this._$AH!==Fe&&this._$AR(),this._$AH=Fe):e!==this._$AH&&e!==pn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bx(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Fe&&dn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ho.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=un.createElement(wf(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Ys(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=yf.get(e.strings);return r===void 0&&yf.set(e.strings,r=new un(e)),r}k(e){ol(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Qn()),this.O(Qn()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Fe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Fe}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Oi(this,e,r,0),s=!dn(e)||e!==this._$AH&&e!==pn,s&&(this._$AH=e);else{let l=e,f,h;for(e=a[0],f=0;f<a.length-1;f++)h=Oi(this,l[i+f],r,f),h===pn&&(h=this._$AH[f]),s||=!dn(h)||h!==this._$AH[f],h===Fe?e=Fe:e!==Fe&&(e+=(h??"")+a[f+1]),this._$AH[f]=h}s&&!n&&this.j(e)}j(e){e===Fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Xs=class extends wi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Fe?void 0:e}},Js=class extends wi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Fe)}},el=class extends wi{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Oi(this,e,r,0)??Fe)===pn)return;let i=this._$AH,n=e===Fe&&i!==Fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Fe&&(i===Fe||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},tl=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Oi(this,e)}},Fx=rl.litHtmlPolyfillSupport;Fx?.(un,Yn),(rl.litHtmlVersions??=[]).push("3.3.0")});var Af,Mx,al,Ef,sl,ll,aA,sA,Rf=p(()=>{nl();Af=Symbol.for(""),Mx=t=>{if(t?.r===Af)return t?._$litStatic$},al=t=>({_$litStatic$:t,r:Af}),Ef=new Map,sl=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],f,h=0,y=!1;for(;h<i;){for(f=e[h];h<i&&(a=r[h],(n=Mx(a))!==void 0);)f+=n+e[++h],y=!0;h!==i&&l.push(a),s.push(f),h++}if(h===i&&s.push(e[i]),y){let g=s.join("$$lit$$");(e=Ef.get(g))===void 0&&(s.raw=s,Ef.set(g,e=s)),r=l}return t(e,...r)},ll=sl(Sf),aA=sl(Cf),sA=sl(Of)});var Lf=p(()=>{Rf()});var xe,Ei=p(()=>{"use strict";(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"})(xe||(xe={}))});var cl,kf,If,Z,dl=p(()=>{"use strict";Lf();cl=u(W()),kf=u(x());Ei();qt();If=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends kf.FtLitElement{constructor(){super(...arguments),this.variant=xe.body1}render(){return this.element?ll`
|
|
487
|
+
<${al(this.element)}
|
|
488
488
|
part="text"
|
|
489
489
|
class="ft-typography ft-typography--${this.variant}">
|
|
490
490
|
<slot></slot>
|
|
491
|
-
</${
|
|
492
|
-
`:
|
|
491
|
+
</${al(this.element)}>
|
|
492
|
+
`:ll`
|
|
493
493
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
494
|
-
`}};Z.styles=[
|
|
494
|
+
`}};Z.styles=[Hu,Wu,Vu,ju,Gu,ao,Or,Ku,qu,Zu,Qu,...Yu];If([(0,cl.property)()],Z.prototype,"element",void 0);If([(0,cl.property)()],Z.prototype,"variant",void 0)});var Tf,_e=p(()=>{"use strict";Tf=u(x());dl();dl();qt();Ei();(0,Tf.customElement)("ft-typography")(Z)});var $f,jr,Er,Nf,Xn=p(()=>{"use strict";$f=u(R()),jr=u(x()),Er={distance:jr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:jr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:jr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:jr.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:jr.FtCssVariableFactory.external(jr.designSystemVariables.borderRadiusS,"Design system"),maxWidth:jr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Nf=$f.css`
|
|
495
495
|
.ft-tooltip--container {
|
|
496
496
|
display: block;
|
|
497
497
|
}
|
|
@@ -520,7 +520,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
520
520
|
position: relative;
|
|
521
521
|
word-break: break-word;
|
|
522
522
|
}
|
|
523
|
-
`});function ul(t,e,r){return Bf(t,Pf(e,r))}function Jn(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function lo(t){return t.split("-")[1]}function fl(t){return t==="x"?"y":"x"}function hl(t){return t==="y"?"height":"width"}function ea(t){return["top","bottom"].includes(Ai(t))?"y":"x"}function ml(t){return fl(ea(t))}function Df(t,e,r){r===void 0&&(r=!1);let i=lo(t),n=ml(t),a=hl(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=dl(s)),[s,dl(s)]}function Ff(t){return t.replace(/start|end/g,e=>Mx[e])}function dl(t){return t.replace(/left|right|bottom|top/g,e=>Fx[e])}function zx(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mf(t){return typeof t!="number"?zx(t):{top:t,right:t,bottom:t,left:t}}function Wo(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}var _f,Nf,pl,Pf,Bf,Fx,Mx,gl=p(()=>{_f=["top","right","bottom","left"],Nf=["start","end"],pl=_f.reduce((t,e)=>t.concat(e,e+"-"+Nf[0],e+"-"+Nf[1]),[]),Pf=Math.min,Bf=Math.max,Fx={left:"right",right:"left",bottom:"top",top:"bottom"},Mx={start:"end",end:"start"}});function zf(t,e,r){let{reference:i,floating:n}=t,a=ea(e),s=ml(e),l=hl(s),f=Ai(e),h=a==="y",y=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,v=i[l]/2-n[l]/2,w;switch(f){case"top":w={x:y,y:i.y-n.height};break;case"bottom":w={x:y,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:g};break;case"left":w={x:i.x-n.width,y:g};break;default:w={x:i.x,y:i.y}}switch(lo(e)){case"start":w[s]-=v*(r&&h?-1:1);break;case"end":w[s]+=v*(r&&h?-1:1);break}return w}async function yl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:f}=t,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:v=!1,padding:w=0}=Jn(e,t),O=Mf(w),N=l[v?g==="floating"?"reference":"floating":g],$=Wo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:y,strategy:f})),_=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,H=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),te=await(a.isElement==null?void 0:a.isElement(H))?await(a.getScale==null?void 0:a.getScale(H))||{x:1,y:1}:{x:1,y:1},ie=Wo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:H,strategy:f}):_);return{top:($.top-ie.top+O.top)/te.y,bottom:(ie.bottom-$.bottom+O.bottom)/te.y,left:($.left-ie.left+O.left)/te.x,right:(ie.right-$.right+O.right)/te.x}}function Ux(t,e,r){return(t?[...r.filter(n=>lo(n)===t),...r.filter(n=>lo(n)!==t)]:r.filter(n=>Ai(n)===n)).filter(n=>t?lo(n)===t||(e?Ff(n)!==n:!1):!0)}var Uf,bl,vl,xl=p(()=>{gl();gl();Uf=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e)),h=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:y,y:g}=zf(h,i,f),v=i,w={},O=0;for(let A=0;A<l.length;A++){let{name:N,fn:$}=l[A],{x:_,y:H,data:te,reset:ie}=await $({x:y,y:g,initialPlacement:i,placement:v,strategy:n,middlewareData:w,rects:h,platform:s,elements:{reference:t,floating:e}});y=_??y,g=H??g,w={...w,[N]:{...w[N],...te}},ie&&O<=50&&(O++,typeof ie=="object"&&(ie.placement&&(v=ie.placement),ie.rects&&(h=ie.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):ie.rects),{x:y,y:g}=zf(h,v,f)),A=-1)}return{x:y,y:g,placement:v,strategy:n,middlewareData:w}};bl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:f,elements:h}=e,{crossAxis:y=!1,alignment:g,allowedPlacements:v=pl,autoAlignment:w=!0,...O}=Jn(t,e),A=g!==void 0||v===pl?Ux(g||null,w,v):v,N=await yl(e,O),$=((r=s.autoPlacement)==null?void 0:r.index)||0,_=A[$];if(_==null)return{};let H=Df(_,a,await(f.isRTL==null?void 0:f.isRTL(h.floating)));if(l!==_)return{reset:{placement:A[0]}};let te=[N[Ai(_)],N[H[0]],N[H[1]]],ie=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:te}],Ct=A[$+1];if(Ct)return{data:{index:$+1,overflows:ie},reset:{placement:Ct}};let xr=ie.map(Ye=>{let b=lo(Ye.placement);return[Ye.placement,b&&y?Ye.overflows.slice(0,2).reduce((C,D)=>C+D,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,b)=>Ye[1]-b[1]),Sr=((n=xr.filter(Ye=>Ye[2].slice(0,lo(Ye[0])?2:3).every(b=>b<=0))[0])==null?void 0:n[0])||xr[0][0];return Sr!==l?{data:{index:$+1,overflows:ie},reset:{placement:Sr}}:{}}}},vl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:$,y:_}=N;return{x:$,y:_}}},...f}=Jn(t,e),h={x:r,y:i},y=await yl(e,f),g=ea(Ai(n)),v=fl(g),w=h[v],O=h[g];if(a){let N=v==="y"?"top":"left",$=v==="y"?"bottom":"right",_=w+y[N],H=w-y[$];w=ul(_,w,H)}if(s){let N=g==="y"?"top":"left",$=g==="y"?"bottom":"right",_=O+y[N],H=O-y[$];O=ul(_,O,H)}let A=l.fn({...e,[v]:w,[g]:O});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[v]:a,[g]:s}}}}}}});var Sl,Ri,fn,Gr,Hf=p(()=>{Sl=Math.min,Ri=Math.max,fn=Math.round,Gr=t=>({x:t,y:t})});function Kr(t){return Vf(t)?(t.nodeName||"").toLowerCase():"#document"}function Et(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function qr(t){var e;return(e=(Vf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Vf(t){return t instanceof Node||t instanceof Et(t).Node}function Ar(t){return t instanceof Element||t instanceof Et(t).Element}function cr(t){return t instanceof HTMLElement||t instanceof Et(t).HTMLElement}function Wf(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Et(t).ShadowRoot}function Li(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=$t(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function jf(t){return["table","td","th"].includes(Kr(t))}function ra(t){let e=oa(),r=$t(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Gf(t){let e=Vo(t);for(;cr(e)&&!hn(e);){if(ra(e))return e;e=Vo(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hn(t){return["html","body","#document"].includes(Kr(t))}function $t(t){return Et(t).getComputedStyle(t)}function mn(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vo(t){if(Kr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Wf(t)&&t.host||qr(t);return Wf(e)?e.host:e}function Kf(t){let e=Vo(t);return hn(e)?t.ownerDocument?t.ownerDocument.body:t.body:cr(e)&&Li(e)?e:Kf(e)}function ta(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Kf(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Et(n);return a?e.concat(s,s.visualViewport||[],Li(n)?n:[],s.frameElement&&r?ta(s.frameElement):[]):e.concat(n,ta(n,[],r))}var qf=p(()=>{});function Yf(t){let e=$t(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=cr(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=fn(r)!==a||fn(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Xf(t){return Ar(t)?t:t.contextElement}function Ii(t){let e=Xf(t);if(!cr(e))return Gr(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Yf(e),s=(a?fn(r.width):r.width)/i,l=(a?fn(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Jf(t){let e=Et(t);return!oa()||!e.visualViewport?Vx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jx(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Et(t)?!1:e}function gn(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Xf(t),s=Gr(1);e&&(i?Ar(i)&&(s=Ii(i)):s=Ii(t));let l=jx(a,r,i)?Jf(a):Gr(0),f=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,y=n.width/s.x,g=n.height/s.y;if(a){let v=Et(a),w=i&&Ar(i)?Et(i):i,O=v.frameElement;for(;O&&i&&w!==v;){let A=Ii(O),N=O.getBoundingClientRect(),$=$t(O),_=N.left+(O.clientLeft+parseFloat($.paddingLeft))*A.x,H=N.top+(O.clientTop+parseFloat($.paddingTop))*A.y;f*=A.x,h*=A.y,y*=A.x,g*=A.y,f+=_,h+=H,O=Et(O).frameElement}}return Wo({width:y,height:g,x:f,y:h})}function Gx(t){let{rect:e,offsetParent:r,strategy:i}=t,n=cr(r),a=qr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Gr(1),f=Gr(0);if((n||!n&&i!=="fixed")&&((Kr(r)!=="body"||Li(a))&&(s=mn(r)),cr(r))){let h=gn(r);l=Ii(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+f.x,y:e.y*l.y-s.scrollTop*l.y+f.y}}function Kx(t){return Array.from(t.getClientRects())}function eh(t){return gn(qr(t)).left+mn(t).scrollLeft}function qx(t){let e=qr(t),r=mn(t),i=t.ownerDocument.body,n=Ri(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ri(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+eh(t),l=-r.scrollTop;return $t(i).direction==="rtl"&&(s+=Ri(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Zx(t,e){let r=Et(t),i=qr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,f=0;if(n){a=n.width,s=n.height;let h=oa();(!h||h&&e==="fixed")&&(l=n.offsetLeft,f=n.offsetTop)}return{width:a,height:s,x:l,y:f}}function Qx(t,e){let r=gn(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=cr(t)?Ii(t):Gr(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,f=n*a.x,h=i*a.y;return{width:s,height:l,x:f,y:h}}function Zf(t,e,r){let i;if(e==="viewport")i=Zx(t,r);else if(e==="document")i=qx(qr(t));else if(Ar(e))i=Qx(e,r);else{let n=Jf(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Wo(i)}function th(t,e){let r=Vo(t);return r===e||!Ar(r)||hn(r)?!1:$t(r).position==="fixed"||th(r,e)}function Yx(t,e){let r=e.get(t);if(r)return r;let i=ta(t,[],!1).filter(l=>Ar(l)&&Kr(l)!=="body"),n=null,a=$t(t).position==="fixed",s=a?Vo(t):t;for(;Ar(s)&&!hn(s);){let l=$t(s),f=ra(s);!f&&l.position==="fixed"&&(n=null),(a?!f&&!n:!f&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Li(s)&&!f&&th(t,s))?i=i.filter(y=>y!==s):n=l,s=Vo(s)}return e.set(t,i),i}function Xx(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Yx(e,this._c):[].concat(r),i],l=s[0],f=s.reduce((h,y)=>{let g=Zf(e,y,n);return h.top=Ri(g.top,h.top),h.right=Sl(g.right,h.right),h.bottom=Sl(g.bottom,h.bottom),h.left=Ri(g.left,h.left),h},Zf(e,l,n));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Jx(t){return Yf(t)}function e0(t,e,r){let i=cr(e),n=qr(e),a=r==="fixed",s=gn(t,!0,a,e),l={scrollLeft:0,scrollTop:0},f=Gr(0);if(i||!i&&!a)if((Kr(e)!=="body"||Li(n))&&(l=mn(e)),i){let h=gn(e,!0,a,e);f.x=h.x+e.clientLeft,f.y=h.y+e.clientTop}else n&&(f.x=eh(n));return{x:s.left+l.scrollLeft-f.x,y:s.top+l.scrollTop-f.y,width:s.width,height:s.height}}function Qf(t,e){return!cr(t)||$t(t).position==="fixed"?null:e?e(t):t.offsetParent}function rh(t,e){let r=Et(t);if(!cr(t))return r;let i=Qf(t,e);for(;i&&jf(i)&&$t(i).position==="static";)i=Qf(i,e);return i&&(Kr(i)==="html"||Kr(i)==="body"&&$t(i).position==="static"&&!ra(i))?r:i||Gf(t)||r}function r0(t){return $t(t).direction==="rtl"}var Vx,t0,ia,oh,ih=p(()=>{xl();xl();Hf();qf();Vx=Gr(0);t0=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||rh,a=this.getDimensions;return{reference:e0(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};ia={convertOffsetParentRelativeRectToViewportRelativeRect:Gx,getDocumentElement:qr,getClippingRect:Xx,getOffsetParent:rh,getElementRects:t0,getClientRects:Kx,getDimensions:Jx,getScale:Ii,isElement:Ar,isRTL:r0},oh=(t,e,r)=>{let i=new Map,n={platform:ia,...r},a={...n.platform,_c:i};return Uf(t,e,{...n,platform:a})}});function nh(t){return o0(t)}function Cl(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function o0(t){for(let e=t;e;e=Cl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Cl(t);e;e=Cl(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}var ah=p(()=>{});async function sh(t,e,r){return oh(t,e,{platform:{...ia,getOffsetParent:i=>ia.getOffsetParent(i,nh)},middleware:[vl({crossAxis:!0}),bl({allowedPlacements:[r]})]})}var lh=p(()=>{"use strict";ih();ah()});var ch,Nt,At,dr,Be,Ol=p(()=>{"use strict";ch=u(R()),Nt=u(W()),At=u(x());Pe();Xn();lh();dr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Be=class extends At.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new At.Debouncer,this.revealDebouncer=new At.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ch.html`
|
|
523
|
+
`});function fl(t,e,r){return Df(t,Bf(e,r))}function Jn(t,e){return typeof t=="function"?t(e):t}function Ai(t){return t.split("-")[0]}function lo(t){return t.split("-")[1]}function hl(t){return t==="x"?"y":"x"}function ml(t){return t==="y"?"height":"width"}function ea(t){return["top","bottom"].includes(Ai(t))?"y":"x"}function gl(t){return hl(ea(t))}function Ff(t,e,r){r===void 0&&(r=!1);let i=lo(t),n=gl(t),a=ml(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=pl(s)),[s,pl(s)]}function Mf(t){return t.replace(/start|end/g,e=>Ux[e])}function pl(t){return t.replace(/left|right|bottom|top/g,e=>zx[e])}function Hx(t){return{top:0,right:0,bottom:0,left:0,...t}}function zf(t){return typeof t!="number"?Hx(t):{top:t,right:t,bottom:t,left:t}}function Wo(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}var _f,Pf,ul,Bf,Df,zx,Ux,yl=p(()=>{_f=["top","right","bottom","left"],Pf=["start","end"],ul=_f.reduce((t,e)=>t.concat(e,e+"-"+Pf[0],e+"-"+Pf[1]),[]),Bf=Math.min,Df=Math.max,zx={left:"right",right:"left",bottom:"top",top:"bottom"},Ux={start:"end",end:"start"}});function Uf(t,e,r){let{reference:i,floating:n}=t,a=ea(e),s=gl(e),l=ml(s),f=Ai(e),h=a==="y",y=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,v=i[l]/2-n[l]/2,w;switch(f){case"top":w={x:y,y:i.y-n.height};break;case"bottom":w={x:y,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:g};break;case"left":w={x:i.x-n.width,y:g};break;default:w={x:i.x,y:i.y}}switch(lo(e)){case"start":w[s]-=v*(r&&h?-1:1);break;case"end":w[s]+=v*(r&&h?-1:1);break}return w}async function bl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:f}=t,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:v=!1,padding:w=0}=Jn(e,t),O=zf(w),N=l[v?g==="floating"?"reference":"floating":g],$=Wo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:y,strategy:f})),P=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,H=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),te=await(a.isElement==null?void 0:a.isElement(H))?await(a.getScale==null?void 0:a.getScale(H))||{x:1,y:1}:{x:1,y:1},ie=Wo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:H,strategy:f}):P);return{top:($.top-ie.top+O.top)/te.y,bottom:(ie.bottom-$.bottom+O.bottom)/te.y,left:($.left-ie.left+O.left)/te.x,right:(ie.right-$.right+O.right)/te.x}}function Wx(t,e,r){return(t?[...r.filter(n=>lo(n)===t),...r.filter(n=>lo(n)!==t)]:r.filter(n=>Ai(n)===n)).filter(n=>t?lo(n)===t||(e?Mf(n)!==n:!1):!0)}var Hf,vl,xl,Sl=p(()=>{yl();yl();Hf=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e)),h=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:y,y:g}=Uf(h,i,f),v=i,w={},O=0;for(let A=0;A<l.length;A++){let{name:N,fn:$}=l[A],{x:P,y:H,data:te,reset:ie}=await $({x:y,y:g,initialPlacement:i,placement:v,strategy:n,middlewareData:w,rects:h,platform:s,elements:{reference:t,floating:e}});y=P??y,g=H??g,w={...w,[N]:{...w[N],...te}},ie&&O<=50&&(O++,typeof ie=="object"&&(ie.placement&&(v=ie.placement),ie.rects&&(h=ie.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):ie.rects),{x:y,y:g}=Uf(h,v,f)),A=-1)}return{x:y,y:g,placement:v,strategy:n,middlewareData:w}};vl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:f,elements:h}=e,{crossAxis:y=!1,alignment:g,allowedPlacements:v=ul,autoAlignment:w=!0,...O}=Jn(t,e),A=g!==void 0||v===ul?Wx(g||null,w,v):v,N=await bl(e,O),$=((r=s.autoPlacement)==null?void 0:r.index)||0,P=A[$];if(P==null)return{};let H=Ff(P,a,await(f.isRTL==null?void 0:f.isRTL(h.floating)));if(l!==P)return{reset:{placement:A[0]}};let te=[N[Ai(P)],N[H[0]],N[H[1]]],ie=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:te}],Ct=A[$+1];if(Ct)return{data:{index:$+1,overflows:ie},reset:{placement:Ct}};let xr=ie.map(Xe=>{let b=lo(Xe.placement);return[Xe.placement,b&&y?Xe.overflows.slice(0,2).reduce((C,D)=>C+D,0):Xe.overflows[0],Xe.overflows]}).sort((Xe,b)=>Xe[1]-b[1]),Sr=((n=xr.filter(Xe=>Xe[2].slice(0,lo(Xe[0])?2:3).every(b=>b<=0))[0])==null?void 0:n[0])||xr[0][0];return Sr!==l?{data:{index:$+1,overflows:ie},reset:{placement:Sr}}:{}}}},xl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:$,y:P}=N;return{x:$,y:P}}},...f}=Jn(t,e),h={x:r,y:i},y=await bl(e,f),g=ea(Ai(n)),v=hl(g),w=h[v],O=h[g];if(a){let N=v==="y"?"top":"left",$=v==="y"?"bottom":"right",P=w+y[N],H=w-y[$];w=fl(P,w,H)}if(s){let N=g==="y"?"top":"left",$=g==="y"?"bottom":"right",P=O+y[N],H=O-y[$];O=fl(P,O,H)}let A=l.fn({...e,[v]:w,[g]:O});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[v]:a,[g]:s}}}}}}});var Cl,Ri,fn,Gr,Wf=p(()=>{Cl=Math.min,Ri=Math.max,fn=Math.round,Gr=t=>({x:t,y:t})});function Kr(t){return jf(t)?(t.nodeName||"").toLowerCase():"#document"}function Et(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function qr(t){var e;return(e=(jf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jf(t){return t instanceof Node||t instanceof Et(t).Node}function Ar(t){return t instanceof Element||t instanceof Et(t).Element}function cr(t){return t instanceof HTMLElement||t instanceof Et(t).HTMLElement}function Vf(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Et(t).ShadowRoot}function Li(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Gf(t){return["table","td","th"].includes(Kr(t))}function ra(t){let e=oa(),r=Nt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Kf(t){let e=Vo(t);for(;cr(e)&&!hn(e);){if(ra(e))return e;e=Vo(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hn(t){return["html","body","#document"].includes(Kr(t))}function Nt(t){return Et(t).getComputedStyle(t)}function mn(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vo(t){if(Kr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vf(t)&&t.host||qr(t);return Vf(e)?e.host:e}function qf(t){let e=Vo(t);return hn(e)?t.ownerDocument?t.ownerDocument.body:t.body:cr(e)&&Li(e)?e:qf(e)}function ta(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=qf(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Et(n);return a?e.concat(s,s.visualViewport||[],Li(n)?n:[],s.frameElement&&r?ta(s.frameElement):[]):e.concat(n,ta(n,[],r))}var Zf=p(()=>{});function Xf(t){let e=Nt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=cr(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=fn(r)!==a||fn(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Jf(t){return Ar(t)?t:t.contextElement}function Ii(t){let e=Jf(t);if(!cr(e))return Gr(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Xf(e),s=(a?fn(r.width):r.width)/i,l=(a?fn(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function eh(t){let e=Et(t);return!oa()||!e.visualViewport?Gx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kx(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Et(t)?!1:e}function gn(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Jf(t),s=Gr(1);e&&(i?Ar(i)&&(s=Ii(i)):s=Ii(t));let l=Kx(a,r,i)?eh(a):Gr(0),f=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,y=n.width/s.x,g=n.height/s.y;if(a){let v=Et(a),w=i&&Ar(i)?Et(i):i,O=v.frameElement;for(;O&&i&&w!==v;){let A=Ii(O),N=O.getBoundingClientRect(),$=Nt(O),P=N.left+(O.clientLeft+parseFloat($.paddingLeft))*A.x,H=N.top+(O.clientTop+parseFloat($.paddingTop))*A.y;f*=A.x,h*=A.y,y*=A.x,g*=A.y,f+=P,h+=H,O=Et(O).frameElement}}return Wo({width:y,height:g,x:f,y:h})}function qx(t){let{rect:e,offsetParent:r,strategy:i}=t,n=cr(r),a=qr(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Gr(1),f=Gr(0);if((n||!n&&i!=="fixed")&&((Kr(r)!=="body"||Li(a))&&(s=mn(r)),cr(r))){let h=gn(r);l=Ii(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+f.x,y:e.y*l.y-s.scrollTop*l.y+f.y}}function Zx(t){return Array.from(t.getClientRects())}function th(t){return gn(qr(t)).left+mn(t).scrollLeft}function Qx(t){let e=qr(t),r=mn(t),i=t.ownerDocument.body,n=Ri(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ri(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+th(t),l=-r.scrollTop;return Nt(i).direction==="rtl"&&(s+=Ri(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Yx(t,e){let r=Et(t),i=qr(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,f=0;if(n){a=n.width,s=n.height;let h=oa();(!h||h&&e==="fixed")&&(l=n.offsetLeft,f=n.offsetTop)}return{width:a,height:s,x:l,y:f}}function Xx(t,e){let r=gn(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=cr(t)?Ii(t):Gr(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,f=n*a.x,h=i*a.y;return{width:s,height:l,x:f,y:h}}function Qf(t,e,r){let i;if(e==="viewport")i=Yx(t,r);else if(e==="document")i=Qx(qr(t));else if(Ar(e))i=Xx(e,r);else{let n=eh(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Wo(i)}function rh(t,e){let r=Vo(t);return r===e||!Ar(r)||hn(r)?!1:Nt(r).position==="fixed"||rh(r,e)}function Jx(t,e){let r=e.get(t);if(r)return r;let i=ta(t,[],!1).filter(l=>Ar(l)&&Kr(l)!=="body"),n=null,a=Nt(t).position==="fixed",s=a?Vo(t):t;for(;Ar(s)&&!hn(s);){let l=Nt(s),f=ra(s);!f&&l.position==="fixed"&&(n=null),(a?!f&&!n:!f&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Li(s)&&!f&&rh(t,s))?i=i.filter(y=>y!==s):n=l,s=Vo(s)}return e.set(t,i),i}function e0(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Jx(e,this._c):[].concat(r),i],l=s[0],f=s.reduce((h,y)=>{let g=Qf(e,y,n);return h.top=Ri(g.top,h.top),h.right=Cl(g.right,h.right),h.bottom=Cl(g.bottom,h.bottom),h.left=Ri(g.left,h.left),h},Qf(e,l,n));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function t0(t){return Xf(t)}function r0(t,e,r){let i=cr(e),n=qr(e),a=r==="fixed",s=gn(t,!0,a,e),l={scrollLeft:0,scrollTop:0},f=Gr(0);if(i||!i&&!a)if((Kr(e)!=="body"||Li(n))&&(l=mn(e)),i){let h=gn(e,!0,a,e);f.x=h.x+e.clientLeft,f.y=h.y+e.clientTop}else n&&(f.x=th(n));return{x:s.left+l.scrollLeft-f.x,y:s.top+l.scrollTop-f.y,width:s.width,height:s.height}}function Yf(t,e){return!cr(t)||Nt(t).position==="fixed"?null:e?e(t):t.offsetParent}function oh(t,e){let r=Et(t);if(!cr(t))return r;let i=Yf(t,e);for(;i&&Gf(i)&&Nt(i).position==="static";)i=Yf(i,e);return i&&(Kr(i)==="html"||Kr(i)==="body"&&Nt(i).position==="static"&&!ra(i))?r:i||Kf(t)||r}function i0(t){return Nt(t).direction==="rtl"}var Gx,o0,ia,ih,nh=p(()=>{Sl();Sl();Wf();Zf();Gx=Gr(0);o0=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||oh,a=this.getDimensions;return{reference:r0(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};ia={convertOffsetParentRelativeRectToViewportRelativeRect:qx,getDocumentElement:qr,getClippingRect:e0,getOffsetParent:oh,getElementRects:o0,getClientRects:Zx,getDimensions:t0,getScale:Ii,isElement:Ar,isRTL:i0},ih=(t,e,r)=>{let i=new Map,n={platform:ia,...r},a={...n.platform,_c:i};return Hf(t,e,{...n,platform:a})}});function ah(t){return n0(t)}function Ol(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function n0(t){for(let e=t;e;e=Ol(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ol(t);e;e=Ol(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}var sh=p(()=>{});async function lh(t,e,r){return ih(t,e,{platform:{...ia,getOffsetParent:i=>ia.getOffsetParent(i,ah)},middleware:[xl({crossAxis:!0}),vl({allowedPlacements:[r]})]})}var ch=p(()=>{"use strict";nh();sh()});var dh,Pt,At,dr,Be,wl=p(()=>{"use strict";dh=u(R()),Pt=u(W()),At=u(x());_e();Xn();ch();dr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Be=class extends At.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new At.Debouncer,this.revealDebouncer=new At.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return dh.html`
|
|
524
524
|
<div part="container"
|
|
525
525
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
526
526
|
<slot part="slot"></slot>
|
|
@@ -533,19 +533,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
533
533
|
</div>
|
|
534
534
|
</div>
|
|
535
535
|
</div>
|
|
536
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",sh(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${At.designSystemVariables.transitionDuration}, left ${At.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,At.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Be.elementDefinitions={"ft-typography":Z};Be.styles=$f;dr([(0,Nt.property)()],Be.prototype,"text",void 0);dr([(0,Nt.property)({type:Boolean})],Be.prototype,"manual",void 0);dr([(0,Nt.property)({type:Boolean})],Be.prototype,"inline",void 0);dr([(0,At.numberProperty)()],Be.prototype,"delay",void 0);dr([(0,Nt.property)()],Be.prototype,"position",void 0);dr([(0,At.jsonProperty)([])],Be.prototype,"ignoreMatchingElements",void 0);dr([(0,Nt.queryAssignedNodes)()],Be.prototype,"slotNodes",void 0);dr([(0,Nt.query)(".ft-tooltip--container")],Be.prototype,"container",void 0);dr([(0,Nt.query)(".ft-tooltip")],Be.prototype,"tooltip",void 0);dr([(0,Nt.query)(".ft-tooltip--content")],Be.prototype,"tooltipContent",void 0);dr([(0,Nt.state)()],Be.prototype,"visible",void 0)});var dh=p(()=>{"use strict"});var ph,na=p(()=>{"use strict";ph=u(x());Ol();Ol();Xn();dh();(0,ph.customElement)("ft-tooltip")(Be)});var aa=Po((XA,uh)=>{uh.exports=ftGlobals.litUnsafeHTML});function sa(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=i0.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=wl.get(l))!==null&&i!==void 0?i:wl.get(e))!==null&&n!==void 0?n:wl.get(s))!==null&&a!==void 0?a:L.UNKNOWN}var et,L,wl,i0,JA,El=p(()=>{"use strict";(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",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="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID=""})(et||(et={}));(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=""})(L||(L={}));wl=new Map([...["abw"].map(t=>[t,L.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,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.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,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.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,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]),i0=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"]]);JA={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"}});var Ze,Al=p(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ze||(Ze={}))});var yn,co,fh,hh,bn,he,Rl=p(()=>{"use strict";yn=u(R()),co=u(W()),fh=u(x()),hh=u(aa());El();Fo();Al();bn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends fh.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=yn.nothing}render(){let e=this.variant&&Object.values(Ze).includes(this.variant)?this.variant:Ze.fluid_topics,r=e!==Ze.material||!!this.value;return yn.html`
|
|
536
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",lh(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${At.designSystemVariables.transitionDuration}, left ${At.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,At.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Be.elementDefinitions={"ft-typography":Z};Be.styles=Nf;dr([(0,Pt.property)()],Be.prototype,"text",void 0);dr([(0,Pt.property)({type:Boolean})],Be.prototype,"manual",void 0);dr([(0,Pt.property)({type:Boolean})],Be.prototype,"inline",void 0);dr([(0,At.numberProperty)()],Be.prototype,"delay",void 0);dr([(0,Pt.property)()],Be.prototype,"position",void 0);dr([(0,At.jsonProperty)([])],Be.prototype,"ignoreMatchingElements",void 0);dr([(0,Pt.queryAssignedNodes)()],Be.prototype,"slotNodes",void 0);dr([(0,Pt.query)(".ft-tooltip--container")],Be.prototype,"container",void 0);dr([(0,Pt.query)(".ft-tooltip")],Be.prototype,"tooltip",void 0);dr([(0,Pt.query)(".ft-tooltip--content")],Be.prototype,"tooltipContent",void 0);dr([(0,Pt.state)()],Be.prototype,"visible",void 0)});var ph=p(()=>{"use strict"});var uh,na=p(()=>{"use strict";uh=u(x());wl();wl();Xn();ph();(0,uh.customElement)("ft-tooltip")(Be)});var aa=_o((eR,fh)=>{fh.exports=ftGlobals.litUnsafeHTML});function sa(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=a0.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=El.get(l))!==null&&i!==void 0?i:El.get(e))!==null&&n!==void 0?n:El.get(s))!==null&&a!==void 0?a:L.UNKNOWN}var tt,L,El,a0,tR,Al=p(()=>{"use strict";(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",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="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID=""})(tt||(tt={}));(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=""})(L||(L={}));El=new Map([...["abw"].map(t=>[t,L.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,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.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,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.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,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]),a0=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"]]);tR={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"}});var Ze,Rl=p(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ze||(Ze={}))});var yn,co,hh,mh,bn,he,Ll=p(()=>{"use strict";yn=u(R()),co=u(W()),hh=u(x()),mh=u(aa());Al();Fo();Rl();bn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends hh.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=yn.nothing}render(){let e=this.variant&&Object.values(Ze).includes(this.variant)?this.variant:Ze.fluid_topics,r=e!==Ze.material||!!this.value;return yn.html`
|
|
537
537
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
538
|
-
${(0,
|
|
538
|
+
${(0,mh.unsafeHTML)(this.resolvedIcon)}
|
|
539
539
|
<slot ?hidden=${r}></slot>
|
|
540
540
|
</i>
|
|
541
|
-
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Ze.file_format:this.resolvedIcon=(e=L[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ze.material:this.resolvedIcon=this.value||yn.nothing;break;default:this.resolvedIcon=(r=
|
|
541
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case Ze.file_format:this.resolvedIcon=(e=L[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ze.material:this.resolvedIcon=this.value||yn.nothing;break;default:this.resolvedIcon=(r=tt[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=tf;bn([(0,co.property)()],he.prototype,"variant",void 0);bn([(0,co.property)()],he.prototype,"value",void 0);bn([(0,co.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);bn([(0,co.state)()],he.prototype,"resolvedIcon",void 0);bn([(0,co.query)("slot")],he.prototype,"slottedContent",void 0)});var gh,Zt=p(()=>{"use strict";gh=u(x());Ll();Fo();Rl();Ll();Al();(0,gh.customElement)("ft-icon")(he)});var yh,bh,jo,Il=p(()=>{"use strict";yh=u(R()),bh=u(x());sn();jo=class extends bh.FtLitElement{render(){return yh.html`
|
|
542
542
|
<div class="ft-loader">
|
|
543
543
|
<div></div>
|
|
544
544
|
<div></div>
|
|
545
545
|
<div></div>
|
|
546
546
|
<div></div>
|
|
547
547
|
</div>
|
|
548
|
-
`}};jo.styles=
|
|
548
|
+
`}};jo.styles=Ju});var vh=p(()=>{"use strict"});var xh,Sh=p(()=>{"use strict";xh=u(x());Il();sn();vh();Il();(0,xh.customElement)("ft-loader")(jo)});var Go,Ch=p(()=>{nl();Go=t=>t??Fe});var la=p(()=>{Ch()});var uo,po,kl,Me,Qe,Se,Tl=p(()=>{"use strict";uo=u(x());gt();na();_e();Zt();Sh();po=u(R()),kl=u(Ot()),Me=u(W());la();Qe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends(0,uo.toFtFormComponent)(uo.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=po.html`
|
|
549
549
|
<ft-ripple part="ripple"
|
|
550
550
|
?disabled=${this.isDisabled()}
|
|
551
551
|
?activated=${this.activated}
|
|
@@ -562,14 +562,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
562
562
|
<a href="${a}"
|
|
563
563
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
564
564
|
part="button"
|
|
565
|
-
class="${(0,
|
|
565
|
+
class="${(0,kl.classMap)(this.buttonClasses)}"
|
|
566
566
|
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
567
567
|
?disabled=${this.isDisabled()}>
|
|
568
568
|
${n}
|
|
569
569
|
</a>
|
|
570
570
|
`:po.html`
|
|
571
571
|
<button part="button"
|
|
572
|
-
class="${(0,
|
|
572
|
+
class="${(0,kl.classMap)(this.buttonClasses)}"
|
|
573
573
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
574
574
|
aria-haspopup="${Go(this.ariaHasPopup)}"
|
|
575
575
|
?disabled=${this.isDisabled()}>
|
|
@@ -586,7 +586,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
586
586
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
587
587
|
`:po.html`
|
|
588
588
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,uo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Se.elementDefinitions={"ft-ripple":G,"ft-tooltip":Be,"ft-typography":Z,"ft-icon":he,"ft-loader":jo};Qe([(0,Me.property)()],Se.prototype,"href",void 0);Qe([(0,Me.property)()],Se.prototype,"target",void 0);Qe([(0,Me.property)()],Se.prototype,"type",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"disabled",void 0);Qe([(0,Me.property)()],Se.prototype,"label",void 0);Qe([(0,Me.property)()],Se.prototype,"icon",void 0);Qe([(0,Me.property)()],Se.prototype,"iconVariant",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"trailingIcon",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"loading",void 0);Qe([(0,Me.property)({attribute:"aria-label"})],Se.prototype,"ariaLabel",void 0);Qe([(0,Me.property)()],Se.prototype,"ariaHasPopup",void 0);Qe([(0,Me.property)()],Se.prototype,"tooltipPosition",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"hideTooltip",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"forceTooltip",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"activated",void 0);Qe([(0,Me.query)(".ft-button")],Se.prototype,"button",void 0);Qe([(0,Me.query)(".ft-button--label slot")],Se.prototype,"slottedContent",void 0);Qe([(0,Me.query)("[part=tooltip]")],Se.prototype,"tooltip",void 0)});var vn,
|
|
589
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,uo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Se.elementDefinitions={"ft-ripple":G,"ft-tooltip":Be,"ft-typography":Z,"ft-icon":he,"ft-loader":jo};Qe([(0,Me.property)()],Se.prototype,"href",void 0);Qe([(0,Me.property)()],Se.prototype,"target",void 0);Qe([(0,Me.property)()],Se.prototype,"type",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"disabled",void 0);Qe([(0,Me.property)()],Se.prototype,"label",void 0);Qe([(0,Me.property)()],Se.prototype,"icon",void 0);Qe([(0,Me.property)()],Se.prototype,"iconVariant",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"trailingIcon",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"loading",void 0);Qe([(0,Me.property)({attribute:"aria-label"})],Se.prototype,"ariaLabel",void 0);Qe([(0,Me.property)()],Se.prototype,"ariaHasPopup",void 0);Qe([(0,Me.property)()],Se.prototype,"tooltipPosition",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"hideTooltip",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"forceTooltip",void 0);Qe([(0,Me.property)({type:Boolean})],Se.prototype,"activated",void 0);Qe([(0,Me.query)(".ft-button")],Se.prototype,"button",void 0);Qe([(0,Me.query)(".ft-button--label slot")],Se.prototype,"slottedContent",void 0);Qe([(0,Me.query)("[part=tooltip]")],Se.prototype,"tooltip",void 0)});var vn,Oh,ca,$e,$l=p(()=>{"use strict";vn=u(W()),Oh=u(x());Mo();Tl();ca=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$e=class extends Se{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"}};$e.styles=[Oh.safariEllipsisFix,af];ca([(0,vn.property)({type:Boolean})],$e.prototype,"primary",void 0);ca([(0,vn.property)({type:Boolean})],$e.prototype,"outlined",void 0);ca([(0,vn.property)({type:Boolean})],$e.prototype,"dense",void 0);ca([(0,vn.property)({type:Boolean})],$e.prototype,"round",void 0)});var wh,E,Nl,Eh,Pl=p(()=>{"use strict";wh=u(R()),E=u(x());Ur();sn();Fo();oe();Nl={...m,iconOnlyScale:E.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Eh=[wh.css`
|
|
590
590
|
:host {
|
|
591
591
|
display: inline-block;
|
|
592
592
|
max-width: 100%;
|
|
@@ -669,13 +669,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
.ft-button.ft-button--icon-only ft-icon {
|
|
672
|
-
transform: scale(${
|
|
672
|
+
transform: scale(${Nl.iconOnlyScale});
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
/** Brand Primary styles **/
|
|
676
676
|
|
|
677
677
|
.ftds--family-brand.ft-button--primary {
|
|
678
|
-
${(0,E.setVariable)(
|
|
678
|
+
${(0,E.setVariable)(Re.color,m.primaryBrandIconColor)};
|
|
679
679
|
|
|
680
680
|
${(0,E.setVariable)(S.color,m.primaryBrandStateLayerColor)};
|
|
681
681
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.primaryBrandHoverStateLayerOpacity)};
|
|
@@ -699,7 +699,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
699
699
|
/** Brand Secondary styles **/
|
|
700
700
|
|
|
701
701
|
.ftds--family-brand.ft-button--secondary {
|
|
702
|
-
${(0,E.setVariable)(
|
|
702
|
+
${(0,E.setVariable)(Re.color,m.secondaryBrandIconColor)};
|
|
703
703
|
|
|
704
704
|
${(0,E.setVariable)(S.color,m.secondaryBrandStateLayerColor)};
|
|
705
705
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondaryBrandHoverStateLayerOpacity)};
|
|
@@ -724,7 +724,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
724
724
|
/** Brand Tertiary styles **/
|
|
725
725
|
|
|
726
726
|
.ftds--family-brand.ft-button--tertiary {
|
|
727
|
-
${(0,E.setVariable)(
|
|
727
|
+
${(0,E.setVariable)(Re.color,m.tertiaryBrandIconColor)};
|
|
728
728
|
|
|
729
729
|
${(0,E.setVariable)(S.color,m.tertiaryBrandStateLayerColor)};
|
|
730
730
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiaryBrandHoverStateLayerOpacity)};
|
|
@@ -748,7 +748,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
748
748
|
/** Neutral Secondary styles **/
|
|
749
749
|
|
|
750
750
|
.ftds--family-neutral.ft-button--secondary {
|
|
751
|
-
${(0,E.setVariable)(
|
|
751
|
+
${(0,E.setVariable)(Re.color,m.secondaryNeutralIconColor)};
|
|
752
752
|
|
|
753
753
|
${(0,E.setVariable)(S.backgroundColor,m.secondaryNeutralStateLayerColor)};
|
|
754
754
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondaryNeutralHoverStateLayerOpacity)};
|
|
@@ -773,7 +773,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
773
773
|
/** Neutral Tertiary styles **/
|
|
774
774
|
|
|
775
775
|
.ftds--family-neutral.ft-button--tertiary {
|
|
776
|
-
${(0,E.setVariable)(
|
|
776
|
+
${(0,E.setVariable)(Re.color,m.tertiaryNeutralIconColor)};
|
|
777
777
|
|
|
778
778
|
${(0,E.setVariable)(S.backgroundColor,m.tertiaryNeutralStateLayerColor)};
|
|
779
779
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiaryNeutralHoverStateLayerOpacity)};
|
|
@@ -797,7 +797,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
797
797
|
/** Info Secondary styles **/
|
|
798
798
|
|
|
799
799
|
.ftds--family-info.ft-button--secondary {
|
|
800
|
-
${(0,E.setVariable)(
|
|
800
|
+
${(0,E.setVariable)(Re.color,m.secondaryInfoIconColor)};
|
|
801
801
|
|
|
802
802
|
${(0,E.setVariable)(S.backgroundColor,m.secondaryInfoStateLayerColor)};
|
|
803
803
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondaryInfoHoverStateLayerOpacity)};
|
|
@@ -822,7 +822,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
822
822
|
/** Info Tertiary styles **/
|
|
823
823
|
|
|
824
824
|
.ftds--family-info.ft-button--tertiary {
|
|
825
|
-
${(0,E.setVariable)(
|
|
825
|
+
${(0,E.setVariable)(Re.color,m.tertiaryInfoIconColor)};
|
|
826
826
|
|
|
827
827
|
${(0,E.setVariable)(S.backgroundColor,m.tertiaryInfoStateLayerColor)};
|
|
828
828
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiaryInfoHoverStateLayerOpacity)};
|
|
@@ -846,7 +846,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
846
846
|
/** Success Secondary styles **/
|
|
847
847
|
|
|
848
848
|
.ftds--family-success.ft-button--secondary {
|
|
849
|
-
${(0,E.setVariable)(
|
|
849
|
+
${(0,E.setVariable)(Re.color,m.secondarySuccessIconColor)};
|
|
850
850
|
|
|
851
851
|
${(0,E.setVariable)(S.backgroundColor,m.secondarySuccessStateLayerColor)};
|
|
852
852
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondarySuccessHoverStateLayerOpacity)};
|
|
@@ -871,7 +871,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
871
871
|
/** Success Tertiary styles **/
|
|
872
872
|
|
|
873
873
|
.ftds--family-success.ft-button--tertiary {
|
|
874
|
-
${(0,E.setVariable)(
|
|
874
|
+
${(0,E.setVariable)(Re.color,m.tertiarySuccessIconColor)};
|
|
875
875
|
|
|
876
876
|
${(0,E.setVariable)(S.backgroundColor,m.tertiarySuccessStateLayerColor)};
|
|
877
877
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiarySuccessHoverStateLayerOpacity)};
|
|
@@ -895,7 +895,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
895
895
|
/** Warning Secondary styles **/
|
|
896
896
|
|
|
897
897
|
.ftds--family-warning.ft-button--secondary {
|
|
898
|
-
${(0,E.setVariable)(
|
|
898
|
+
${(0,E.setVariable)(Re.color,m.secondaryWarningIconColor)};
|
|
899
899
|
|
|
900
900
|
${(0,E.setVariable)(S.backgroundColor,m.secondaryWarningStateLayerColor)};
|
|
901
901
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondaryWarningHoverStateLayerOpacity)};
|
|
@@ -920,7 +920,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
920
920
|
/** Warning Tertiary styles **/
|
|
921
921
|
|
|
922
922
|
.ftds--family-warning.ft-button--tertiary {
|
|
923
|
-
${(0,E.setVariable)(
|
|
923
|
+
${(0,E.setVariable)(Re.color,m.tertiaryWarningIconColor)};
|
|
924
924
|
|
|
925
925
|
${(0,E.setVariable)(S.backgroundColor,m.tertiaryWarningStateLayerColor)};
|
|
926
926
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiaryWarningHoverStateLayerOpacity)};
|
|
@@ -944,7 +944,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
944
944
|
/** Error Secondary styles **/
|
|
945
945
|
|
|
946
946
|
.ftds--family-error.ft-button--secondary {
|
|
947
|
-
${(0,E.setVariable)(
|
|
947
|
+
${(0,E.setVariable)(Re.color,m.secondaryErrorIconColor)};
|
|
948
948
|
|
|
949
949
|
${(0,E.setVariable)(S.backgroundColor,m.secondaryErrorStateLayerColor)};
|
|
950
950
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.secondaryErrorHoverStateLayerOpacity)};
|
|
@@ -969,7 +969,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
969
969
|
/** Error Tertiary styles **/
|
|
970
970
|
|
|
971
971
|
.ftds--family-error.ft-button--tertiary {
|
|
972
|
-
${(0,E.setVariable)(
|
|
972
|
+
${(0,E.setVariable)(Re.color,m.tertiaryErrorIconColor)};
|
|
973
973
|
|
|
974
974
|
${(0,E.setVariable)(S.backgroundColor,m.tertiaryErrorStateLayerColor)};
|
|
975
975
|
${(0,E.setVariable)(S.opacityContentOnSurfaceHover,m.tertiaryErrorHoverStateLayerOpacity)};
|
|
@@ -994,7 +994,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
994
994
|
|
|
995
995
|
.ftds--size-large {
|
|
996
996
|
${(0,E.setVariable)(Te.size,m.largeIconSize)};
|
|
997
|
-
${(0,E.setVariable)(
|
|
997
|
+
${(0,E.setVariable)(Re.size,m.largeIconSize)};
|
|
998
998
|
|
|
999
999
|
height: ${m.largeHeight};
|
|
1000
1000
|
padding: 0 ${m.largeHorizontalPadding};
|
|
@@ -1016,7 +1016,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1016
1016
|
|
|
1017
1017
|
.ftds--size-medium {
|
|
1018
1018
|
${(0,E.setVariable)(Te.size,m.mediumIconSize)};
|
|
1019
|
-
${(0,E.setVariable)(
|
|
1019
|
+
${(0,E.setVariable)(Re.size,m.mediumIconSize)};
|
|
1020
1020
|
|
|
1021
1021
|
height: ${m.mediumHeight};
|
|
1022
1022
|
padding: 0 ${m.mediumHorizontalPadding};
|
|
@@ -1039,7 +1039,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1039
1039
|
|
|
1040
1040
|
.ftds--size-small {
|
|
1041
1041
|
${(0,E.setVariable)(Te.size,m.smallIconSize)};
|
|
1042
|
-
${(0,E.setVariable)(
|
|
1042
|
+
${(0,E.setVariable)(Re.size,m.smallIconSize)};
|
|
1043
1043
|
|
|
1044
1044
|
height: ${m.smallHeight};
|
|
1045
1045
|
padding: 0 ${m.smallHorizontalPadding};
|
|
@@ -1056,7 +1056,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1056
1056
|
.ftds--size-small.ft-button--icon-only {
|
|
1057
1057
|
width: ${m.smallIconOnlyWidth};
|
|
1058
1058
|
}
|
|
1059
|
-
`,E.noTextSelect]});var xn,pa,da,pr,_l=p(()=>{"use strict";
|
|
1059
|
+
`,E.noTextSelect]});var xn,pa,da,pr,_l=p(()=>{"use strict";Tl();xn=u(W());Ei();pa=u(x());Pl();oe();Zt();da=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pr=class extends(0,pa.toFtdsBase)(Se){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=no.brand,this.iconVariant=Ze.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case mt.large:return xe.body2medium;case mt.medium:return xe.caption1medium;case mt.small:return xe.caption2medium}}};pr.styles=[pa.safariEllipsisFix,Eh];da([(0,xn.property)({type:Boolean})],pr.prototype,"primary",void 0);da([(0,xn.property)({type:Boolean})],pr.prototype,"secondary",void 0);da([(0,xn.property)({type:Boolean})],pr.prototype,"tertiary",void 0);da([(0,xn.property)({type:Boolean})],pr.prototype,"round",void 0)});var Ah=p(()=>{"use strict"});var Rh=p(()=>{"use strict"});var Bl,Qt=p(()=>{"use strict";Bl=u(x());$l();_l();$l();Mo();Ah();_l();Pl();Rh();(0,Bl.customElement)("ft-button")($e);(0,Bl.customElement)("ftds-button")(pr)});var Lh,ue,me,Dl,Sn=p(()=>{"use strict";Lh=u(R()),ue=u(x());Qt();na();me={height:ue.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:ue.FtCssVariableFactory.extend("--ft-search-input-border-radius","",ue.designSystemVariables.borderRadiusS),desktopFiltersHeight:ue.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:ue.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:ue.FtCssVariableFactory.extend("--ft-search-input-background-color","",ue.designSystemVariables.colorSurface),colorOnSurface:ue.FtCssVariableFactory.extend("--ft-search-input-color","",ue.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:ue.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",ue.designSystemVariables.colorOnSurfaceMedium),colorOutline:ue.FtCssVariableFactory.extend("--ft-search-input-outline-color","",ue.designSystemVariables.colorOutline),elevation02:ue.FtCssVariableFactory.extend("--ft-search-input-elevation","",ue.designSystemVariables.elevation02),focusOutlineColor:ue.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",ue.designSystemVariables.colorPrimary),buttonColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-color","",ue.designSystemVariables.colorPrimary),buttonRippleColor:ue.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",ue.designSystemVariables.colorPrimary)},Dl=Lh.css`
|
|
1060
1060
|
* {
|
|
1061
1061
|
box-sizing: border-box;
|
|
1062
1062
|
${(0,ue.setVariable)(j.color,me.buttonColor)};
|
|
@@ -1132,12 +1132,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1132
1132
|
height: 20px;
|
|
1133
1133
|
border-right: 1px solid ${me.colorOutline};
|
|
1134
1134
|
}
|
|
1135
|
-
`});var
|
|
1135
|
+
`});var Ih,kh,ua,Fl,fa=p(()=>{"use strict";Ih=u(R()),kh=u(x()),ua={highlightBackgroundColor:kh.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Fl=Ih.css`
|
|
1136
1136
|
.kwicmatch {
|
|
1137
1137
|
font-weight: 700;
|
|
1138
1138
|
background-color: ${ua.highlightBackgroundColor};
|
|
1139
1139
|
}
|
|
1140
|
-
`});var
|
|
1140
|
+
`});var Th,$h,ha,Ml,ma=p(()=>{"use strict";Th=u(R()),$h=u(x()),ha={highlightBackgroundColor:$h.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Ml=Th.css`
|
|
1141
1141
|
.kwicmatch {
|
|
1142
1142
|
font-weight: 700;
|
|
1143
1143
|
background-color: ${ha.highlightBackgroundColor};
|
|
@@ -1151,20 +1151,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1151
1151
|
a:focus {
|
|
1152
1152
|
outline: revert;
|
|
1153
1153
|
}
|
|
1154
|
-
`});var _h,
|
|
1155
|
-
`});var
|
|
1156
|
-
`});var ga,n0,Ko,a0,k,lt=p(()=>{"use strict";ga=u(x()),n0="ft-app-info",Ko=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ko.eventName="authentication-change";a0={session:(t,e)=>{(0,ga.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Ko(e.payload)),0))}},k=ga.FtReduxStore.get({name:n0,reducers:a0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var qo,Hl=p(()=>{"use strict";lt();qo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}}});var ya,Fh=p(()=>{"use strict";Hl();ya=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qo.await()}}});var Wl,ct,fo=p(()=>{"use strict";Wl=u(x());Fh();ct=class extends ya{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Wl.CacheRegistry,this.cache=e?n.commonCache:new Wl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ba,Vl=p(()=>{"use strict";lt();fo();ba=class extends ct{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var jl,Mh=p(()=>{"use strict";lt();jl=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new jl});var Qt,zh,ki,s0,va,Ti,xa,Uh=p(()=>{"use strict";lt();Qt=u(x());fo();ki=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},s0=Symbol("clearAfterUnitTest"),va=class extends(0,Qt.withEventBus)(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zh]=()=>{this.defaultMessages={},this.cache=new Qt.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Qt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Qt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Qt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ki({loadedContexts:e})),this.dispatchEvent(new ki({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ki({loadedContexts:[e]})),this.dispatchEvent(new ki({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Qt.delay)(0).then(()=>i()).catch(()=>null)))}};zh=s0;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends va{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends va{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Ti=window.FluidTopicsI18nService,xa=window.FluidTopicsCustomI18nService});var Hh,Gl,Wh=p(()=>{"use strict";Hh=u(x()),Gl=class{highlightHtml(e,r,i){(0,Hh.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Gl});var jh=Po((ho,Vh)=>{var Sa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ca=function(){function t(){this.fetch=!1,this.DOMException=Sa.DOMException}return t.prototype=Sa,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(b){return b&&DataView.prototype.isPrototypeOf(b)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function f(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function h(b){return typeof b!="string"&&(b=String(b)),b}function y(b){var C={next:function(){var D=b.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function g(b){this.map={},b instanceof g?b.forEach(function(C,D){this.append(D,C)},this):Array.isArray(b)?b.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(C){this.append(C,b[C])},this)}g.prototype.append=function(b,C){b=f(b),C=h(C);var D=this.map[b];this.map[b]=D?D+", "+C:C},g.prototype.delete=function(b){delete this.map[f(b)]},g.prototype.get=function(b){return b=f(b),this.has(b)?this.map[b]:null},g.prototype.has=function(b){return this.map.hasOwnProperty(f(b))},g.prototype.set=function(b,C){this.map[f(b)]=h(C)},g.prototype.forEach=function(b,C){for(var D in this.map)this.map.hasOwnProperty(D)&&b.call(C,this.map[D],D,this)},g.prototype.keys=function(){var b=[];return this.forEach(function(C,D){b.push(D)}),y(b)},g.prototype.values=function(){var b=[];return this.forEach(function(C){b.push(C)}),y(b)},g.prototype.entries=function(){var b=[];return this.forEach(function(C,D){b.push([D,C])}),y(b)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function v(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function w(b){return new Promise(function(C,D){b.onload=function(){C(b.result)},b.onerror=function(){D(b.error)}})}function O(b){var C=new FileReader,D=w(C);return C.readAsArrayBuffer(b),D}function A(b){var C=new FileReader,D=w(C),fe=/charset=([A-Za-z0-9_-]+)/.exec(b.type),ke=fe?fe[1]:"utf-8";return C.readAsText(b,ke),D}function N(b){for(var C=new Uint8Array(b),D=new Array(C.length),fe=0;fe<C.length;fe++)D[fe]=String.fromCharCode(C[fe]);return D.join("")}function $(b){if(b.slice)return b.slice(0);var C=new Uint8Array(b.byteLength);return C.set(new Uint8Array(b)),C.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:n.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:n.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():n.arrayBuffer&&n.blob&&a(b)?(this._bodyArrayBuffer=$(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=$(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var b=v(this);if(b)return b;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(){if(this._bodyArrayBuffer){var b=v(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(O);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=v(this);if(b)return b;if(this._bodyBlob)return A(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(Ct)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function te(b){var C=b.toUpperCase();return H.indexOf(C)>-1?C:b}function ie(b,C){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(b instanceof ie){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,C.headers||(this.headers=new g(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!D&&b._bodyInit!=null&&(D=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new g(C.headers)),this.method=te(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var ne=new AbortController;return ne.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var fe=/([?&])_=[^&]*/;if(fe.test(this.url))this.url=this.url.replace(fe,"$1_="+new Date().getTime());else{var ke=/\?/;this.url+=(ke.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})};function Ct(b){var C=new FormData;return b.trim().split("&").forEach(function(D){if(D){var fe=D.split("="),ke=fe.shift().replace(/\+/g," "),ne=fe.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ke),decodeURIComponent(ne))}}),C}function xr(b){var C=new g,D=b.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(fe){return fe.indexOf(`
|
|
1157
|
-
`)===0?fe.substr(1,fe.length):fe}).forEach(function(fe){var ke=fe.split(":"),ne=ke.shift().trim();if(ne){var Kn=ke.join(":").trim();try{C.append(ne,Kn)}catch(js){console.warn("Response "+js.message)}}}),C}_.call(ie.prototype);function ht(b,C){if(!(this instanceof ht))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new g(C.headers),this.url=C.url||"",this._initBody(b)}_.call(ht.prototype),ht.prototype.clone=function(){return new ht(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},ht.error=function(){var b=new ht(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var Sr=[301,302,303,307,308];ht.redirect=function(b,C){if(Sr.indexOf(C)===-1)throw new RangeError("Invalid status code");return new ht(null,{status:C,headers:{location:b}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var fe=Error(C);this.stack=fe.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ye(b,C){return new Promise(function(D,fe){var ke=new ie(b,C);if(ke.signal&&ke.signal.aborted)return fe(new r.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function Kn(){ne.abort()}ne.onload=function(){var Xe={statusText:ne.statusText,headers:xr(ne.getAllResponseHeaders()||"")};ke.url.indexOf("file://")===0&&(ne.status<200||ne.status>599)?Xe.status=200:Xe.status=ne.status,Xe.url="responseURL"in ne?ne.responseURL:Xe.headers.get("X-Request-URL");var _o="response"in ne?ne.response:ne.responseText;setTimeout(function(){D(new ht(_o,Xe))},0)},ne.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},ne.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},ne.onabort=function(){setTimeout(function(){fe(new r.DOMException("Aborted","AbortError"))},0)};function js(Xe){try{return Xe===""&&i.location.href?i.location.href:Xe}catch{return Xe}}if(ne.open(ke.method,js(ke.url),!0),ke.credentials==="include"?ne.withCredentials=!0:ke.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&(n.blob?ne.responseType="blob":n.arrayBuffer&&(ne.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof g||i.Headers&&C.headers instanceof i.Headers)){var xp=[];Object.getOwnPropertyNames(C.headers).forEach(function(Xe){xp.push(f(Xe)),ne.setRequestHeader(Xe,h(C.headers[Xe]))}),ke.headers.forEach(function(Xe,_o){xp.indexOf(_o)===-1&&ne.setRequestHeader(_o,Xe)})}else ke.headers.forEach(function(Xe,_o){ne.setRequestHeader(_o,Xe)});ke.signal&&(ke.signal.addEventListener("abort",Kn),ne.onreadystatechange=function(){ne.readyState===4&&ke.signal.removeEventListener("abort",Kn)}),ne.send(typeof ke._bodyInit>"u"?null:ke._bodyInit)})}return Ye.polyfill=!0,i.fetch||(i.fetch=Ye,i.Headers=g,i.Request=ie,i.Response=ht),r.Headers=g,r.Request=ie,r.Response=ht,r.fetch=Ye,r}({})})(Ca);Ca.fetch.ponyfill=!0;delete Ca.fetch.polyfill;var $i=Sa.fetch?Sa:Ca;ho=$i.fetch;ho.default=$i.fetch;ho.fetch=$i.fetch;ho.Headers=$i.Headers;ho.Request=$i.Request;ho.Response=$i.Response;Vh.exports=ho});var Kl=p(()=>{});var Gh,Kh,qh,Ni,Zh,Qh,Zo,Yh,Xh,Jh,em,tm,rm,om,im,nm,_i,am,Oa,sm,lm,Yt,Pi,cm,Ve,Xt,ql=p(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Gh||(Gh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Kh||(Kh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(qh||(qh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ni||(Ni={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zh||(Zh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Qh||(Qh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Zo||(Zo={}));(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"})(Yh||(Yh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Xh||(Xh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Jh||(Jh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(em||(em={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(tm||(tm={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(rm||(rm={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(om||(om={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(im||(im={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(nm||(nm={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(_i||(_i={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(am||(am={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Oa||(Oa={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(sm||(sm={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(lm||(lm={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Yt||(Yt={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pi||(Pi={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(cm||(cm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Ve||(Ve={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Xt||(Xt={}))});var dm,pm,um,fm,hm,mm=p(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(dm||(dm={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(pm||(pm={}));(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(um||(um={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(fm||(fm={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(hm||(hm={}))});function gm(t,e){return t===e||(l0[t]??[]).some(r=>gm(r,e))}function ym(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>gm(i,e))}var l0,bm=p(()=>{ql();l0={[Ve.PERSONAL_BOOK_SHARE_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.HTML_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.PDF_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.KHUB_ADMIN]:[Ve.CONTENT_PUBLISHER],[Ve.ADMIN]:[Ve.KHUB_ADMIN,Ve.USERS_ADMIN,Ve.PORTAL_ADMIN],[Ve.GENERATIVE_AI_EXPORT_USER]:[Ve.GENERATIVE_AI_USER]}});var vm=p(()=>{});var c0,Qo=p(()=>{c0=u(jh(),1);Kl();ql();mm();bm();vm();Kl()});var wa,Zl=p(()=>{"use strict";lt();Qo();fo();wa=class extends ct{async listMySearches(){let{session:e}=k.getState();return ym(e,Ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var xm,Ql,Sm=p(()=>{"use strict";xm=u(x());lt();Ql=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return xm.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ql});var Cm,Zr,Yl=p(()=>{"use strict";Cm=u(x());lt();Zr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Cm.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}}});var Ea,Om=p(()=>{"use strict";fo();Ea=class extends ct{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(r),console.debug(n),i)),1e3)}}});var Xl,wm=p(()=>{"use strict";Yl();Xl=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Xl});var Yo,Em=p(()=>{"use strict";Yo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Yo.eventName="change"});var Jl,Am,Rm=p(()=>{"use strict";Jl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Am=new Jl});var mo,Aa,Lm=p(()=>{"use strict";mo=u(x());Em();Rm();Aa=class t extends mo.WithEventBus{static build(){return new t(window.history,Am,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,mo.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Yo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let f=r(),h={...f===this.currentIndex?this.currentState:void 0,...a,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[h,s,l]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Yo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Yo.eventName,e)}currentItem(){return(0,mo.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,mo.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,mo.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var Im=p(()=>{"use strict";Lm();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Aa.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var km=p(()=>{"use strict";lt()});var ec=p(()=>{"use strict";Vl();Hl();Mh();Uh();fo();Wh();Zl();Sm();Yl();Om();wm();Im();km()});function $m(t,e){var r;return Tm.getState().authenticationRequired&&!(!((r=Tm.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Tm,Nm=p(()=>{"use strict";lt();Tm=k});var _m,tt,ur,je,Ce,tc=p(()=>{"use strict";_m=u(R()),tt=u(W()),ur=u(x());Ul();lt();ec();Nm();je=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends ur.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>qo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ur.CacheRegistry,this.cleanSessionDebouncer=new ur.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return _m.html`
|
|
1154
|
+
`});var _h,Bh,Ul=p(()=>{"use strict";_h=u(R()),Bh=_h.css`
|
|
1155
|
+
`});var Dh,Fh,Hl=p(()=>{"use strict";Dh=u(R()),Fh=Dh.css`
|
|
1156
|
+
`});var ga,s0,Ko,l0,k,lt=p(()=>{"use strict";ga=u(x()),s0="ft-app-info",Ko=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ko.eventName="authentication-change";l0={session:(t,e)=>{(0,ga.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Ko(e.payload)),0))}},k=ga.FtReduxStore.get({name:s0,reducers:l0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var qo,Wl=p(()=>{"use strict";lt();qo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=k.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=k.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}}});var ya,Mh=p(()=>{"use strict";Wl();ya=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qo.await()}}});var Vl,ct,fo=p(()=>{"use strict";Vl=u(x());Mh();ct=class extends ya{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Vl.CacheRegistry,this.cache=e?n.commonCache:new Vl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ba,jl=p(()=>{"use strict";lt();fo();ba=class extends ct{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var Gl,zh=p(()=>{"use strict";lt();Gl=class{addCommand(e,r=!1){k.commands.add(e,r)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Gl});var Yt,Uh,ki,c0,va,Ti,xa,Hh=p(()=>{"use strict";lt();Yt=u(x());fo();ki=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},c0=Symbol("clearAfterUnitTest"),va=class extends(0,Yt.withEventBus)(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Uh]=()=>{this.defaultMessages={},this.cache=new Yt.CacheRegistry,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Yt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Yt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Yt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ki({loadedContexts:e})),this.dispatchEvent(new ki({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ki({loadedContexts:[e]})),this.dispatchEvent(new ki({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Yt.delay)(0).then(()=>i()).catch(()=>null)))}};Uh=c0;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends va{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends va{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Ti=window.FluidTopicsI18nService,xa=window.FluidTopicsCustomI18nService});var Wh,Kl,Vh=p(()=>{"use strict";Wh=u(x()),Kl=class{highlightHtml(e,r,i){(0,Wh.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Kl});var Gh=_o((ho,jh)=>{var Sa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ca=function(){function t(){this.fetch=!1,this.DOMException=Sa.DOMException}return t.prototype=Sa,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(b){return b&&DataView.prototype.isPrototypeOf(b)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function f(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(b)||b==="")throw new TypeError('Invalid character in header field name: "'+b+'"');return b.toLowerCase()}function h(b){return typeof b!="string"&&(b=String(b)),b}function y(b){var C={next:function(){var D=b.shift();return{done:D===void 0,value:D}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function g(b){this.map={},b instanceof g?b.forEach(function(C,D){this.append(D,C)},this):Array.isArray(b)?b.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(C){this.append(C,b[C])},this)}g.prototype.append=function(b,C){b=f(b),C=h(C);var D=this.map[b];this.map[b]=D?D+", "+C:C},g.prototype.delete=function(b){delete this.map[f(b)]},g.prototype.get=function(b){return b=f(b),this.has(b)?this.map[b]:null},g.prototype.has=function(b){return this.map.hasOwnProperty(f(b))},g.prototype.set=function(b,C){this.map[f(b)]=h(C)},g.prototype.forEach=function(b,C){for(var D in this.map)this.map.hasOwnProperty(D)&&b.call(C,this.map[D],D,this)},g.prototype.keys=function(){var b=[];return this.forEach(function(C,D){b.push(D)}),y(b)},g.prototype.values=function(){var b=[];return this.forEach(function(C){b.push(C)}),y(b)},g.prototype.entries=function(){var b=[];return this.forEach(function(C,D){b.push([D,C])}),y(b)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function v(b){if(!b._noBody){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}}function w(b){return new Promise(function(C,D){b.onload=function(){C(b.result)},b.onerror=function(){D(b.error)}})}function O(b){var C=new FileReader,D=w(C);return C.readAsArrayBuffer(b),D}function A(b){var C=new FileReader,D=w(C),fe=/charset=([A-Za-z0-9_-]+)/.exec(b.type),ke=fe?fe[1]:"utf-8";return C.readAsText(b,ke),D}function N(b){for(var C=new Uint8Array(b),D=new Array(C.length),fe=0;fe<C.length;fe++)D[fe]=String.fromCharCode(C[fe]);return D.join("")}function $(b){if(b.slice)return b.slice(0);var C=new Uint8Array(b.byteLength);return C.set(new Uint8Array(b)),C.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(b){this.bodyUsed=this.bodyUsed,this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:n.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:n.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():n.arrayBuffer&&n.blob&&a(b)?(this._bodyArrayBuffer=$(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||l(b))?this._bodyArrayBuffer=$(b):this._bodyText=b=Object.prototype.toString.call(b):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var b=v(this);if(b)return b;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(){if(this._bodyArrayBuffer){var b=v(this);return b||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(O);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var b=v(this);if(b)return b;if(this._bodyBlob)return A(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(Ct)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function te(b){var C=b.toUpperCase();return H.indexOf(C)>-1?C:b}function ie(b,C){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var D=C.body;if(b instanceof ie){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,C.headers||(this.headers=new g(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!D&&b._bodyInit!=null&&(D=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new g(C.headers)),this.method=te(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var ne=new AbortController;return ne.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var fe=/([?&])_=[^&]*/;if(fe.test(this.url))this.url=this.url.replace(fe,"$1_="+new Date().getTime());else{var ke=/\?/;this.url+=(ke.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})};function Ct(b){var C=new FormData;return b.trim().split("&").forEach(function(D){if(D){var fe=D.split("="),ke=fe.shift().replace(/\+/g," "),ne=fe.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ke),decodeURIComponent(ne))}}),C}function xr(b){var C=new g,D=b.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(fe){return fe.indexOf(`
|
|
1157
|
+
`)===0?fe.substr(1,fe.length):fe}).forEach(function(fe){var ke=fe.split(":"),ne=ke.shift().trim();if(ne){var Kn=ke.join(":").trim();try{C.append(ne,Kn)}catch(Gs){console.warn("Response "+Gs.message)}}}),C}P.call(ie.prototype);function ht(b,C){if(!(this instanceof ht))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=C.statusText===void 0?"":""+C.statusText,this.headers=new g(C.headers),this.url=C.url||"",this._initBody(b)}P.call(ht.prototype),ht.prototype.clone=function(){return new ht(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},ht.error=function(){var b=new ht(null,{status:200,statusText:""});return b.ok=!1,b.status=0,b.type="error",b};var Sr=[301,302,303,307,308];ht.redirect=function(b,C){if(Sr.indexOf(C)===-1)throw new RangeError("Invalid status code");return new ht(null,{status:C,headers:{location:b}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var fe=Error(C);this.stack=fe.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Xe(b,C){return new Promise(function(D,fe){var ke=new ie(b,C);if(ke.signal&&ke.signal.aborted)return fe(new r.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function Kn(){ne.abort()}ne.onload=function(){var Je={statusText:ne.statusText,headers:xr(ne.getAllResponseHeaders()||"")};ke.url.indexOf("file://")===0&&(ne.status<200||ne.status>599)?Je.status=200:Je.status=ne.status,Je.url="responseURL"in ne?ne.responseURL:Je.headers.get("X-Request-URL");var Po="response"in ne?ne.response:ne.responseText;setTimeout(function(){D(new ht(Po,Je))},0)},ne.onerror=function(){setTimeout(function(){fe(new TypeError("Network request failed"))},0)},ne.ontimeout=function(){setTimeout(function(){fe(new TypeError("Network request timed out"))},0)},ne.onabort=function(){setTimeout(function(){fe(new r.DOMException("Aborted","AbortError"))},0)};function Gs(Je){try{return Je===""&&i.location.href?i.location.href:Je}catch{return Je}}if(ne.open(ke.method,Gs(ke.url),!0),ke.credentials==="include"?ne.withCredentials=!0:ke.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&(n.blob?ne.responseType="blob":n.arrayBuffer&&(ne.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof g||i.Headers&&C.headers instanceof i.Headers)){var Sp=[];Object.getOwnPropertyNames(C.headers).forEach(function(Je){Sp.push(f(Je)),ne.setRequestHeader(Je,h(C.headers[Je]))}),ke.headers.forEach(function(Je,Po){Sp.indexOf(Po)===-1&&ne.setRequestHeader(Po,Je)})}else ke.headers.forEach(function(Je,Po){ne.setRequestHeader(Po,Je)});ke.signal&&(ke.signal.addEventListener("abort",Kn),ne.onreadystatechange=function(){ne.readyState===4&&ke.signal.removeEventListener("abort",Kn)}),ne.send(typeof ke._bodyInit>"u"?null:ke._bodyInit)})}return Xe.polyfill=!0,i.fetch||(i.fetch=Xe,i.Headers=g,i.Request=ie,i.Response=ht),r.Headers=g,r.Request=ie,r.Response=ht,r.fetch=Xe,r}({})})(Ca);Ca.fetch.ponyfill=!0;delete Ca.fetch.polyfill;var $i=Sa.fetch?Sa:Ca;ho=$i.fetch;ho.default=$i.fetch;ho.fetch=$i.fetch;ho.Headers=$i.Headers;ho.Request=$i.Request;ho.Response=$i.Response;jh.exports=ho});var ql=p(()=>{});var Kh,qh,Zh,Ni,Qh,Yh,Zo,Xh,Jh,em,tm,rm,om,im,Oa,nm,am,Pi,sm,wa,lm,cm,Xt,_i,dm,Ve,Jt,Zl=p(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Kh||(Kh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(qh||(qh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Zh||(Zh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ni||(Ni={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qh||(Qh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Yh||(Yh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Zo||(Zo={}));(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"})(Xh||(Xh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Jh||(Jh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(em||(em={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(tm||(tm={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(rm||(rm={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(om||(om={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(im||(im={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Oa||(Oa={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(nm||(nm={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(am||(am={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Pi||(Pi={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(sm||(sm={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(wa||(wa={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(lm||(lm={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(cm||(cm={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Xt||(Xt={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(_i||(_i={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(dm||(dm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Ve||(Ve={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Jt||(Jt={}))});var pm,um,fm,hm,mm,gm=p(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(pm||(pm={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(um||(um={}));(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(fm||(fm={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(hm||(hm={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(mm||(mm={}))});function ym(t,e){return t===e||(d0[t]??[]).some(r=>ym(r,e))}function bm(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>ym(i,e))}var d0,vm=p(()=>{Zl();d0={[Ve.PERSONAL_BOOK_SHARE_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.HTML_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.PDF_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.KHUB_ADMIN]:[Ve.CONTENT_PUBLISHER],[Ve.ADMIN]:[Ve.KHUB_ADMIN,Ve.USERS_ADMIN,Ve.PORTAL_ADMIN],[Ve.GENERATIVE_AI_EXPORT_USER]:[Ve.GENERATIVE_AI_USER]}});var xm=p(()=>{});var p0,Qo=p(()=>{p0=u(Gh(),1);ql();Zl();gm();vm();xm();ql()});var Ea,Ql=p(()=>{"use strict";lt();Qo();fo();Ea=class extends ct{async listMySearches(){let{session:e}=k.getState();return bm(e,Ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Sm,Yl,Cm=p(()=>{"use strict";Sm=u(x());lt();Yl=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=k.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Sm.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:k.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Yl});var Om,Zr,Xl=p(()=>{"use strict";Om=u(x());lt();Zr=class{static get(e,r){var i,n;let a=k.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Om.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}}});var Aa,wm=p(()=>{"use strict";fo();Aa=class extends ct{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(r),console.debug(n),i)),1e3)}}});var Jl,Em=p(()=>{"use strict";Xl();Jl=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Jl});var Yo,Am=p(()=>{"use strict";Yo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Yo.eventName="change"});var ec,Rm,Lm=p(()=>{"use strict";ec=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Rm=new ec});var mo,Ra,Im=p(()=>{"use strict";mo=u(x());Am();Lm();Ra=class t extends mo.WithEventBus{static build(){return new t(window.history,Rm,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,mo.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Yo(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let f=r(),h={...f===this.currentIndex?this.currentState:void 0,...a,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[h,s,l]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Yo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Yo.eventName,e)}currentItem(){return(0,mo.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,mo.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,mo.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var km=p(()=>{"use strict";Im();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ra.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)})});var Tm=p(()=>{"use strict";lt()});var tc=p(()=>{"use strict";jl();Wl();zh();Hh();fo();Vh();Ql();Cm();Xl();wm();Em();km();Tm()});function Nm(t,e){var r;return $m.getState().authenticationRequired&&!(!((r=$m.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var $m,Pm=p(()=>{"use strict";lt();$m=k});var _m,rt,ur,je,Ce,rc=p(()=>{"use strict";_m=u(R()),rt=u(W()),ur=u(x());Hl();lt();tc();Pm();je=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends ur.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>qo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ur.CacheRegistry,this.cleanSessionDebouncer=new ur.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return _m.html`
|
|
1158
1158
|
<slot></slot>
|
|
1159
|
-
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Ko.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Ko.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,l,f;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(h=>Ti.addContext(h)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>$m(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Ce.elementDefinitions={};Ce.styles=Dh;je([(0,tt.property)()],Ce.prototype,"baseUrl",void 0);je([(0,tt.property)()],Ce.prototype,"apiIntegrationIdentifier",void 0);je([(0,tt.property)()],Ce.prototype,"apiIntegrationAppVersion",void 0);je([(0,tt.property)()],Ce.prototype,"uiLocale",void 0);je([(0,ur.jsonProperty)(null)],Ce.prototype,"availableUiLocales",void 0);je([(0,ur.jsonProperty)(null)],Ce.prototype,"metadataConfiguration",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"editorMode",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"noCustom",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"openExternalDocumentInNewTab",void 0);je([(0,tt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Ce.prototype,"noCustomComponent",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"withManualResources",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"navigatorOnline",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"forcedOffline",void 0);je([(0,tt.property)({type:Object})],Ce.prototype,"apiProvider",void 0);je([(0,tt.property)({type:Boolean})],Ce.prototype,"authenticationRequired",void 0);je([(0,ur.jsonProperty)([])],Ce.prototype,"messageContexts",void 0);je([(0,ur.jsonProperty)(void 0)],Ce.prototype,"session",void 0);je([(0,tt.state)()],Ce.prototype,"localesConfiguration",void 0);je([(0,tt.state)()],Ce.prototype,"availableContentLocales",void 0)});function d0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Ra(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ra(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Ra(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ra(t,e){try{return d0(t,e)}catch{return!1}}function Cn(t,e){return!Ra(t,e)}function La(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Bi=p(()=>{"use strict"});var Pm,rc,Bm=p(()=>{"use strict";Bi();Pm=u(W(),1),rc=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:Cn,attribute:!1,...e};(0,Pm.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}}});var Ia,oc=p(()=>{"use strict";Ia=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});function Fm(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Dm.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Cn,...e??{}})}var Dm,Mm=p(()=>{"use strict";Dm=u(W(),1);Bi()});var ka,zm=p(()=>{"use strict";ka=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Ta,p0,FI,Um,Hm=p(()=>{Ta=globalThis,p0=Ta.ShadowRoot&&(Ta.ShadyCSS===void 0||Ta.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,FI=Symbol(),Um=(t,e)=>{if(p0)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ta.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}}});var Wm,$a,Vm=p(()=>{"use strict";Wm=u(R(),1);Hm();$a=class extends Wm.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Um(i,e.elementStyles),i}}});function jm(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Gm=p(()=>{"use strict"});var Xo,Fi,Qm,Km,qm,Ym,Zm,Di,Rr,Xm=p(()=>{"use strict";Xo=u(W(),1);Mm();zm();Vm();Gm();Fi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Km=Symbol("constructorPrototype"),qm=Symbol("constructorName"),Ym=Symbol("exportpartsDebouncer"),Zm=Symbol("dynamicDependenciesLoaded"),Di=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Di.eventName="exportparts-updated";Rr=class extends $a{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Qm]=new ka(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ym].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[qm]=this.constructor.name,this[Km]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[qm]&&Object.setPrototypeOf(this,this[Km])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Zm]||(r[Zm]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Di.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Di.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Di)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=jm(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let f=v=>v!=null&&v.trim().length>0,h=e.filter(f).map(v=>v.trim());if(h.length===0){this.exportparts=void 0;return}let y=new Set;for(let v of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let w=(a=(n=v.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],O=(l=(s=v.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(N=>N.split(":")[1]))!==null&&l!==void 0?l:[],A=[...w,...O].filter(f).map(N=>N.trim());for(let N of A)y.add(N)}if(y.size===0){this.exportparts=void 0;return}let g=[...y.values()].flatMap(v=>h.map(w=>`${v}:${w}--${v}`));this.exportparts=[...this.part,...g].join(", ")}};Qm=Ym;Fi([(0,Xo.property)()],Rr.prototype,"exportpartsPrefix",void 0);Fi([Fm([])],Rr.prototype,"exportpartsPrefixes",void 0);Fi([(0,Xo.property)({reflect:!0})],Rr.prototype,"exportparts",void 0);Fi([(0,Xo.property)()],Rr.prototype,"customStylesheet",void 0);Fi([(0,Xo.property)()],Rr.prototype,"elementToFocus",void 0);Fi([(0,Xo.state)()],Rr.prototype,"useAdoptedStyleSheets",void 0)});function Na(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _a=p(()=>{"use strict"});var On,go,Jo,u0,Jm,eg=p(()=>{"use strict";Xm();_a();Bi();On=Symbol("internalReduxEventsUnsubscribers"),go=Symbol("internalStoresUnsubscribers"),Jo=Symbol("internalStores"),u0=La(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Jo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jo].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Jo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let h=this.getStore(s.store);h&&(s.store?this[go].has(s.store):this[go].size>0)&&(this[l]=s.selector(h.getState(),this))}})}subscribeToStore(s,l){var f;this[go].set(s,l.subscribe(()=>this.updateFromStores())),this[On].set(s,[]),Na(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((h,y)=>{if(typeof this[y]=="function"&&(!h.store||l.name===h.store)){let g=v=>this[y](v);l.addEventListener(h.eventName,g),this[On].get(s).push(()=>l.removeEventListener(h.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[go].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[go].has(s)&&this[go].get(s)(),this[go].delete(s),(l=this[On].get(s))===null||l===void 0||l.forEach(f=>f()),this[On].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=go,r=Jo,i=On,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Jm=class extends u0(Rr){}});function Jt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qr(t){return!!t&&!!t[Re]}function fr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===x0}(t)||Array.isArray(t)||!!t[sg]||!!(!((e=t.constructor)===null||e===void 0)&&e[sg])||uc(t)||fc(t))}function ei(t,e,r){r===void 0&&(r=!1),Ui(t)===0?(r?Object.keys:zi)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Ui(t){var e=t[Re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:uc(t)?2:fc(t)?3:0}function Mi(t,e){return Ui(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function f0(t,e){return Ui(t)===2?t.get(e):t[e]}function lg(t,e,r){var i=Ui(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function cg(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function uc(t){return b0&&t instanceof Map}function fc(t){return v0&&t instanceof Set}function yo(t){return t.o||t.t}function hc(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ug(t);delete e[Re];for(var r=zi(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function mc(t,e){return e===void 0&&(e=!1),gc(t)||Qr(t)||!fr(t)||(Ui(t)>1&&(t.set=t.add=t.clear=t.delete=h0),Object.freeze(t),e&&ei(t,function(r,i){return mc(i,!0)},!0)),t}function h0(){Jt(2)}function gc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lr(t){var e=pc[t];return e||Jt(18,t),e}function m0(t,e){pc[t]||(pc[t]=e)}function lc(){return En}function ic(t,e){e&&(Lr("Patches"),t.u=[],t.s=[],t.v=e)}function Pa(t){cc(t),t.p.forEach(g0),t.p=null}function cc(t){t===En&&(En=t.l)}function tg(t){return En={p:[],l:En,h:t,m:!0,_:0}}function g0(t){var e=t[Re];e.i===0||e.i===1?e.j():e.g=!0}function nc(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Lr("ES5").S(e,t,i),i?(r[Re].P&&(Pa(e),Jt(4)),fr(t)&&(t=Ba(e,t),e.l||Da(e,t)),e.u&&Lr("Patches").M(r[Re].t,t,e.u,e.s)):t=Ba(e,r,[]),Pa(e),e.u&&e.v(e.u,e.s),t!==pg?t:void 0}function Ba(t,e,r){if(gc(e))return e;var i=e[Re];if(!i)return ei(e,function(l,f){return rg(t,i,e,l,f,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Da(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=hc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),ei(a,function(l,f){return rg(t,i,n,l,f,r,s)}),Da(t,n,!1),r&&t.u&&Lr("Patches").N(i,r,t.u,t.s)}return i.o}function rg(t,e,r,i,n,a,s){if(Qr(n)){var l=Ba(t,n,a&&e&&e.i!==3&&!Mi(e.R,i)?a.concat(i):void 0);if(lg(r,i,l),!Qr(l))return;t.m=!1}else s&&r.add(n);if(fr(n)&&!gc(n)){if(!t.h.D&&t._<1)return;Ba(t,n),e&&e.A.l||Da(t,n)}}function Da(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&mc(e,r)}function ac(t,e){var r=t[Re];return(r?yo(r):t)[e]}function og(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function sc(t){t.o||(t.o=hc(t.t))}function dc(t,e,r){var i=uc(e)?Lr("MapSet").F(e,r):fc(e)?Lr("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:lc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},f=l,h=An;s&&(f=[l],h=wn);var y=Proxy.revocable(f,h),g=y.revoke,v=y.proxy;return l.k=v,l.j=g,v}(e,r):Lr("ES5").J(e,r);return(r?r.A:lc()).p.push(i),i}function y0(t){return Qr(t)||Jt(22,t),function e(r){if(!fr(r))return r;var i,n=r[Re],a=Ui(r);if(n){if(!n.P&&(n.i<4||!Lr("ES5").K(n)))return n.t;n.I=!0,i=ig(r,a),n.I=!1}else i=ig(r,a);return ei(i,function(s,l){n&&f0(n.t,s)===l||lg(i,s,e(l))}),a===3?new Set(i):i}(t)}function ig(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return hc(t)}function dg(){function t(s,l){var f=a[s];return f?f.enumerable=l:a[s]=f={configurable:!0,enumerable:l,get:function(){var h=this[Re];return An.get(h,s)},set:function(h){var y=this[Re];An.set(y,s,h)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Re];if(!f.P)switch(f.i){case 5:i(f)&&bo(f);break;case 4:r(f)&&bo(f)}}}function r(s){for(var l=s.t,f=s.k,h=zi(f),y=h.length-1;y>=0;y--){var g=h[y];if(g!==Re){var v=l[g];if(v===void 0&&!Mi(l,g))return!0;var w=f[g],O=w&&w[Re];if(O?O.t!==v:!cg(w,v))return!0}}var A=!!l[Re];return h.length!==zi(l).length+(A?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var h=0;h<l.length;h++)if(!l.hasOwnProperty(h))return!0;return!1}function n(s){s.g&&Jt(3,JSON.stringify(yo(s)))}var a={};m0("ES5",{J:function(s,l){var f=Array.isArray(s),h=function(g,v){if(g){for(var w=Array(v.length),O=0;O<v.length;O++)Object.defineProperty(w,""+O,t(O,!0));return w}var A=ug(v);delete A[Re];for(var N=zi(A),$=0;$<N.length;$++){var _=N[$];A[_]=t(_,g||!!A[_].enumerable)}return Object.create(Object.getPrototypeOf(v),A)}(f,s),y={i:f?5:4,A:l?l.A:lc(),P:!1,I:!1,R:{},l,t:s,k:h,o:null,g:!1,C:!1};return Object.defineProperty(h,Re,{value:y,writable:!0}),h},S:function(s,l,f){f?Qr(l)&&l[Re].A===s&&e(s.p):(s.u&&function h(y){if(y&&typeof y=="object"){var g=y[Re];if(g){var v=g.t,w=g.k,O=g.R,A=g.i;if(A===4)ei(w,function(te){te!==Re&&(v[te]!==void 0||Mi(v,te)?O[te]||h(w[te]):(O[te]=!0,bo(g)))}),ei(v,function(te){w[te]!==void 0||Mi(w,te)||(O[te]=!1,bo(g))});else if(A===5){if(i(g)&&(bo(g),O.length=!0),w.length<v.length)for(var N=w.length;N<v.length;N++)O[N]=!1;else for(var $=v.length;$<w.length;$++)O[$]=!0;for(var _=Math.min(w.length,v.length),H=0;H<_;H++)w.hasOwnProperty(H)||(O[H]=!0),O[H]===void 0&&h(w[H])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ng,En,yc,b0,v0,ag,pg,sg,Re,x0,zi,ug,pc,An,wn,S0,_t,C0,JI,ek,tk,rk,ok,ik,Fa,Ma=p(()=>{yc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",b0=typeof Map<"u",v0=typeof Set<"u",ag=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",pg=yc?Symbol.for("immer-nothing"):((ng={})["immer-nothing"]=!0,ng),sg=yc?Symbol.for("immer-draftable"):"__$immer_draftable",Re=yc?Symbol.for("immer-state"):"__$immer_state",x0=""+Object.prototype.constructor,zi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ug=Object.getOwnPropertyDescriptors||function(t){var e={};return zi(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},pc={},An={get:function(t,e){if(e===Re)return t;var r=yo(t);if(!Mi(r,e))return function(n,a,s){var l,f=og(a,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!fr(i)?i:i===ac(t.t,e)?(sc(t),t.o[e]=dc(t.A.h,i,t)):i},has:function(t,e){return e in yo(t)},ownKeys:function(t){return Reflect.ownKeys(yo(t))},set:function(t,e,r){var i=og(yo(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ac(yo(t),e),a=n?.[Re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(cg(r,n)&&(r!==void 0||Mi(t.t,e)))return!0;sc(t),bo(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ac(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,sc(t),bo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yo(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Jt(12)}},wn={};ei(An,function(t,e){wn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),wn.deleteProperty=function(t,e){return wn.set.call(this,t,e,void 0)},wn.set=function(t,e,r){return An.set.call(this,t[0],e,r,t[0])};S0=function(){function t(r){var i=this;this.O=ag,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var f=i;return function(A){var N=this;A===void 0&&(A=l);for(var $=arguments.length,_=Array($>1?$-1:0),H=1;H<$;H++)_[H-1]=arguments[H];return f.produce(A,function(te){var ie;return(ie=a).call.apply(ie,[N,te].concat(_))})}}var h;if(typeof a!="function"&&Jt(6),s!==void 0&&typeof s!="function"&&Jt(7),fr(n)){var y=tg(i),g=dc(i,n,void 0),v=!0;try{h=a(g),v=!1}finally{v?Pa(y):cc(y)}return typeof Promise<"u"&&h instanceof Promise?h.then(function(A){return ic(y,s),nc(A,y)},function(A){throw Pa(y),A}):(ic(y,s),nc(h,y))}if(!n||typeof n!="object"){if((h=a(n))===void 0&&(h=n),h===pg&&(h=void 0),i.D&&mc(h,!0),s){var w=[],O=[];Lr("Patches").M(n,h,w,O),s(w,O)}return h}Jt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(h){for(var y=arguments.length,g=Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];return i.produceWithPatches(h,function(w){return n.apply(void 0,[w].concat(g))})};var s,l,f=i.produce(n,a,function(h,y){s=h,l=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(h){return[h,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){fr(r)||Jt(8),Qr(r)&&(r=y0(r));var i=tg(this),n=dc(this,r,void 0);return n[Re].C=!0,cc(i),n},e.finishDraft=function(r,i){var n=r&&r[Re],a=n.A;return ic(a,i),nc(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ag&&Jt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lr("Patches").$;return Qr(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),_t=new S0,C0=_t.produce,JI=_t.produceWithPatches.bind(_t),ek=_t.setAutoFreeze.bind(_t),tk=_t.setUseProxies.bind(_t),rk=_t.applyPatches.bind(_t),ok=_t.createDraft.bind(_t),ik=_t.finishDraft.bind(_t),Fa=C0});function ti(t){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(t)}var bc=p(()=>{});function fg(t,e){if(ti(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(ti(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hg=p(()=>{bc()});function mg(t){var e=fg(t,"string");return ti(e)=="symbol"?e:e+""}var gg=p(()=>{bc();hg()});function yg(t,e,r){return(e=mg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bg=p(()=>{gg()});function vg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function vc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vg(Object(r),!0).forEach(function(i){yg(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var xg=p(()=>{bg()});function dt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function O0(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Sc(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(dt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(dt(1));return r(Sc)(t,e)}if(typeof t!="function")throw new Error(dt(2));var n=t,a=e,s=[],l=s,f=!1;function h(){l===s&&(l=s.slice())}function y(){if(f)throw new Error(dt(3));return a}function g(A){if(typeof A!="function")throw new Error(dt(4));if(f)throw new Error(dt(5));var N=!0;return h(),l.push(A),function(){if(N){if(f)throw new Error(dt(6));N=!1,h();var _=l.indexOf(A);l.splice(_,1),s=null}}}function v(A){if(!O0(A))throw new Error(dt(7));if(typeof A.type>"u")throw new Error(dt(8));if(f)throw new Error(dt(9));try{f=!0,a=n(a,A)}finally{f=!1}for(var N=s=l,$=0;$<N.length;$++){var _=N[$];_()}return A}function w(A){if(typeof A!="function")throw new Error(dt(10));n=A,v({type:za.REPLACE})}function O(){var A,N=g;return A={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(dt(11));function H(){_.next&&_.next(y())}H();var te=N(H);return{unsubscribe:te}}},A[Sg]=function(){return this},A}return v({type:za.INIT}),i={dispatch:v,subscribe:g,getState:y,replaceReducer:w},i[Sg]=O,i}function w0(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:za.INIT});if(typeof i>"u")throw new Error(dt(12));if(typeof r(void 0,{type:za.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(dt(13))})}function Cg(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{w0(r)}catch(f){l=f}return function(h,y){if(h===void 0&&(h={}),l)throw l;if(0)var g;for(var v=!1,w={},O=0;O<a.length;O++){var A=a[O],N=r[A],$=h[A],_=N($,y);if(typeof _>"u"){var H=y&&y.type;throw new Error(dt(14))}w[A]=_,v=v||_!==$}return v=v||a.length!==Object.keys(h).length,v?w:h}}function Hi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Og(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(dt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return a=Hi.apply(void 0,l)(n.dispatch),vc(vc({},n),{},{dispatch:a})}}}var Sg,xc,za,Ua=p(()=>{xg();Sg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),xc=function(){return Math.random().toString(36).substring(7).split("").join(".")},za={INIT:"@@redux/INIT"+xc(),REPLACE:"@@redux/REPLACE"+xc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xc()}}});function wg(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Eg,Cc,Ag=p(()=>{Eg=wg();Eg.withExtraArgument=wg;Cc=Eg});function N0(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Ac(t){return fr(t)?Fa(t,function(){}):t}function B0(t){return typeof t=="boolean"}function D0(){return function(e){return F0(e)}}function F0(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new _0;if(r&&(B0(r)?l.push(Cc):l.push(Cc.withExtraArgument(r.extraArgument))),0){if(n)var f;if(s)var h}return l}function $g(t){var e=D0(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,f=l===void 0?!0:l,h=r.preloadedState,y=h===void 0?void 0:h,g=r.enhancers,v=g===void 0?void 0:g,w;if(typeof n=="function")w=n;else if(N0(n))w=Cg(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!wc&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!wc&&O.some(function(te){return typeof te!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Og.apply(void 0,O),N=Hi;f&&(N=$0(vo({trace:!wc},typeof f=="object"&&f)));var $=new P0(A),_=$;Array.isArray(v)?_=Wi([A],v):typeof v=="function"&&(_=v($));var H=N.apply(void 0,_);return Sc(w,y,H)}function xo(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return vo(vo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Ng(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function M0(t){return typeof t=="function"}function z0(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ng(e):[e,r,i],a=n[0],s=n[1],l=n[2],f;if(M0(t))f=function(){return Ac(t())};else{var h=Ac(t);f=function(){return h}}function y(g,v){g===void 0&&(g=f());var w=Wi([a[v.type]],s.filter(function(O){var A=O.matcher;return A(v)}).map(function(O){var A=O.reducer;return A}));return w.filter(function(O){return!!O}).length===0&&(w=[l]),w.reduce(function(O,A){if(A)if(Qr(O)){var N=O,$=A(N,v);return $===void 0?O:$}else{if(fr(O))return Fa(O,function(_){return A(_,v)});var $=A(O,v);if($===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return $}return O},g)}return y.getInitialState=f,y}function U0(t,e){return t+"/"+e}function _g(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ac(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(y){var g=i[y],v=U0(e,y),w,O;"reducer"in g?(w=g.reducer,O=g.prepare):w=g,a[y]=w,s[v]=w,l[y]=O?xo(v,O):xo(v)});function f(){var y=typeof t.extraReducers=="function"?Ng(t.extraReducers):[t.extraReducers],g=y[0],v=g===void 0?{}:g,w=y[1],O=w===void 0?[]:w,A=y[2],N=A===void 0?void 0:A,$=vo(vo({},v),s);return z0(r,function(_){for(var H in $)_.addCase(H,$[H]);for(var te=0,ie=O;te<ie.length;te++){var Ct=ie[te];_.addMatcher(Ct.matcher,Ct.reducer)}N&&_.addDefaultCase(N)})}var h;return{name:e,reducer:function(y,g){return h||(h=f()),h(y,g)},actions:l,caseReducers:a,getInitialState:function(){return h||(h=f()),h.getInitialState()}}}function G0(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function K0(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Tg,E0,Wi,A0,R0,L0,Rg,I0,k0,Lg,vo,Oc,T0,$0,Ck,_0,P0,wc,H0,W0,V0,Ec,Ig,j0,Ak,Pg,Bg,Dg,Rk,Lk,Ik,kk,Rc,Tk,$k,Nk,kg,_k,q0,Pk,Fg=p(()=>{Ma();Ua();Ua();Ua();Ag();Ma();Ma();Tg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),E0=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(y){return f([h,y])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=h[0]&2?n.return:h[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,h[1])).done)return a;switch(n=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,n=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){r.label=h[1];break}if(h[0]===6&&r.label<a[1]){r.label=a[1],a=h;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(h);break}a[2]&&r.ops.pop(),r.trys.pop();continue}h=e.call(t,r)}catch(y){h=[6,y],n=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Wi=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},A0=Object.defineProperty,R0=Object.defineProperties,L0=Object.getOwnPropertyDescriptors,Rg=Object.getOwnPropertySymbols,I0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable,Lg=function(t,e,r){return e in t?A0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},vo=function(t,e){for(var r in e||(e={}))I0.call(e,r)&&Lg(t,r,e[r]);if(Rg)for(var i=0,n=Rg(e);i<n.length;i++){var r=n[i];k0.call(e,r)&&Lg(t,r,e[r])}return t},Oc=function(t,e){return R0(t,L0(e))},T0=function(t,e,r){return new Promise(function(i,n){var a=function(f){try{l(r.next(f))}catch(h){n(h)}},s=function(f){try{l(r.throw(f))}catch(h){n(h)}},l=function(f){return f.done?i(f.value):Promise.resolve(f.value).then(a,s)};l((r=r.apply(t,e)).next())})},$0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hi:Hi.apply(null,arguments)},Ck=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};_0=function(t){Tg(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wi([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wi([void 0],r.concat(this))))},e}(Array),P0=function(t){Tg(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wi([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wi([void 0],r.concat(this))))},e}(Array);wc=!0;H0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",W0=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=H0[Math.random()*64|0];return e},V0=["name","message","stack","code"],Ec=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Ig=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),j0=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=V0;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Ak=function(){function t(e,r,i){var n=xo(e+"/fulfilled",function(y,g,v,w){return{payload:y,meta:Oc(vo({},w||{}),{arg:v,requestId:g,requestStatus:"fulfilled"})}}),a=xo(e+"/pending",function(y,g,v){return{payload:void 0,meta:Oc(vo({},v||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=xo(e+"/rejected",function(y,g,v,w,O){return{payload:w,error:(i&&i.serializeError||j0)(y||"Rejected"),meta:Oc(vo({},O||{}),{arg:v,requestId:g,rejectedWithValue:!!w,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function h(y){return function(g,v,w){var O=i?.idGenerator?i.idGenerator(y):W0(),A=new f,N,$=!1;function _(te){N=te,A.abort()}var H=function(){return T0(this,null,function(){var te,ie,Ct,xr,ht,Sr,Ye;return E0(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),xr=(te=i?.condition)==null?void 0:te.call(i,y,{getState:v,extra:w}),K0(xr)?[4,xr]:[3,2];case 1:xr=b.sent(),b.label=2;case 2:if(xr===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return $=!0,ht=new Promise(function(C,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),g(a(O,y,(ie=i?.getPendingMeta)==null?void 0:ie.call(i,{requestId:O,arg:y},{getState:v,extra:w}))),[4,Promise.race([ht,Promise.resolve(r(y,{dispatch:g,getState:v,extra:w,requestId:O,signal:A.signal,abort:_,rejectWithValue:function(C,D){return new Ec(C,D)},fulfillWithValue:function(C,D){return new Ig(C,D)}})).then(function(C){if(C instanceof Ec)throw C;return C instanceof Ig?n(C.payload,O,y,C.meta):n(C,O,y)})])];case 3:return Ct=b.sent(),[3,5];case 4:return Sr=b.sent(),Ct=Sr instanceof Ec?s(null,O,y,Sr.payload,Sr.meta):s(Sr,O,y),[3,5];case 5:return Ye=i&&!i.dispatchConditionRejection&&s.match(Ct)&&Ct.meta.condition,Ye||g(Ct),[2,Ct]}})})}();return Object.assign(H,{abort:_,requestId:O,arg:y,unwrap:function(){return H.then(G0)}})}}return Object.assign(h,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();Pg="listener",Bg="completed",Dg="cancelled",Rk="task-"+Dg,Lk="task-"+Bg,Ik=Pg+"-"+Dg,kk=Pg+"-"+Bg,Rc="listenerMiddleware",Tk=xo(Rc+"/add"),$k=xo(Rc+"/removeAll"),Nk=xo(Rc+"/remove"),_k=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(kg||(kg=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},q0=function(t){return function(e){setTimeout(e,t)}},Pk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:q0(10);dg()});var Z0,Ha,Mg=p(()=>{"use strict";Bi();Z0=La(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ha=class extends Z0(Object){}});var zg,Ug=p(()=>{"use strict";Fg();_a();oc();Mg();window.ftReduxStores||(window.ftReduxStores={});zg=class t extends Ha{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Na(a))return a;if(n==null)return;let s=_g({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=$g({reducer:(f,h)=>h.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof h.type=="string"&&h.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...h.overwrites}:s.reducer(f,h)});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ia;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let f=s,h=a[f];return h?(...y)=>{let g=h(...y.map(n));return this.reduxStore.dispatch(g),g}:y=>{this.setState({[f]:n(y)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Hg=p(()=>{"use strict";Bi()});var Wg=p(()=>{"use strict";Bm();oc();eg();Ug();_a();Hg()});var Wa,Vg=p(()=>{"use strict";Wa=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var Lc,jg,Va,nT,Gg=p(()=>{"use strict";Lc=u(W());Wg();Vg();lt();jg=u(x()),Va=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nT=(0,jg.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Wa.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Va([(0,Lc.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Va([(0,Lc.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Va([rc({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Va([rc({store:k.name})],e.prototype,"uiLocale",void 0),e})});var ja,Kg=p(()=>{"use strict";lt();fo();ja=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var Ga,qg=p(()=>{"use strict";fo();lt();Ga=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var Ka,Q0,Y0,Yg,Ic,kc,Zg,Qg,Pt,Tc,$c,qa=p(()=>{"use strict";Qo();Ka=u(x());Zl();Vl();lt();Kg();qg();Q0="ft-user-assets",Y0={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Xt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;kc(t,r,[...Ic(t,r),n]),Zg(t,r,1,i),Qg(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;kc(t,r,Ic(t,r).map(n=>n.id===i.id?i:n)),Qg(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;kc(t,r,Ic(t,r).filter(a=>a.id!==n)),Zg(t,r,-1,i)}},Yg={[Xt.SEARCHES]:"savedSearches",[Xt.BOOKMARKS]:"bookmarks",[Xt.BOOKS]:void 0,[Xt.COLLECTIONS]:void 0},Ic=(t,e)=>{var r;let i=Yg[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},kc=(t,e,r)=>{let i=Yg[e];i&&(t[i]=r)},Zg=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Xt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Qg=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Pt=Ka.FtReduxStore.get({name:Q0,reducers:Y0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Xt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Tc=class{constructor(e=new ja,r=new Ga){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ba,this.savedSearchesService=new wa,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,Ka.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Pt.actions.clearAssetCount(),Pt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Pt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Pt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Pt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Pt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Pt.getState().assetCounts.bookmarkByMap).length!==0;e===Xt.BOOKMARKS&&r&&Pt.actions.clearBookmarkCountByMap(),Pt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Pt.actions.bookmarks(r)}}},$c=new Tc;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$c)});var Xg=p(()=>{"use strict";Qo();qa()});var Jg=p(()=>{"use strict"});var ey,Ir=p(()=>{"use strict";ey=u(x());tc();Gg();lt();qa();Xg();ec();Ul();Jg();tc();(0,ey.customElement)("ft-app-context")(Ce)});var Nc,ty,ry=p(()=>{"use strict";Nc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ty=new Nc});var Vi,iy,X0,J0,eS,ny,Za,Rn,Rt,oy,Qa,Ya=p(()=>{"use strict";Vi=u(x());Ir();iy=u(W());ry();X0=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J0=Symbol("i18nAttributes"),eS=Symbol("i18nListAttributes"),ny=Symbol("i18nProperties"),Za=Symbol("i18nContexts"),Rn=Symbol("i18nUnsubs"),Rt=(0,Vi.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?xa:Ti}i18n(a){let{context:s,key:l,message:f}=a,{custom:h,args:y,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,h);let v=y??(g?g(this):[]);return this.getI18nService(h).resolveMessage(s,l,...v)}return f}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(ty.isI18nKey(a)){let[l,f]=a.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,f)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,f)=>{var h;return((h=f?.context)===null||h===void 0?void 0:h.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let f=this,h=(y,g,v)=>v?.context&&v.key&&a(y,g,v)?{...v,message:this.i18n({context:v.context,key:v.key,custom:v.custom,...y})}:v;(s=this[J0])===null||s===void 0||s.forEach((y,g)=>f[g]=h(y,g,f[g])),(l=this[eS])===null||l===void 0||l.forEach((y,g)=>{var v;return f[g]=(v=f[g])===null||v===void 0?void 0:v.map(w=>h(y,g,w))})}updateI18nProperties(a){var s;(s=this[ny])===null||s===void 0||s.forEach((l,f)=>{a(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let f=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Za].set(f,{isCustomContext:l}),this[Rn].has(f)||this[Rn].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(a){return this[Za].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Za].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Rn].forEach(a=>a()),this[Rn].clear()}}return e=Za,r=Rn,X0([(0,iy.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),oy=class extends Rt(Vi.FtLitElement){},Qa=class extends Rt(Vi.FtLitElementRedux){}});var Xa,Ja,es,Ln,hr,_c=p(()=>{"use strict";Xa=u(R()),Ja=u(W()),es=u(x());zl();Ya();Ir();Ln=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hr=class extends Qa{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Xa.nothing:Xa.html`
|
|
1159
|
+
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Ko.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Ko.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,l,f;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(h=>Ti.addContext(h)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),k.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Nm(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Ce.elementDefinitions={};Ce.styles=Fh;je([(0,rt.property)()],Ce.prototype,"baseUrl",void 0);je([(0,rt.property)()],Ce.prototype,"apiIntegrationIdentifier",void 0);je([(0,rt.property)()],Ce.prototype,"apiIntegrationAppVersion",void 0);je([(0,rt.property)()],Ce.prototype,"uiLocale",void 0);je([(0,ur.jsonProperty)(null)],Ce.prototype,"availableUiLocales",void 0);je([(0,ur.jsonProperty)(null)],Ce.prototype,"metadataConfiguration",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"editorMode",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"noCustom",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"openExternalDocumentInNewTab",void 0);je([(0,rt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Ce.prototype,"noCustomComponent",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"withManualResources",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"navigatorOnline",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"forcedOffline",void 0);je([(0,rt.property)({type:Object})],Ce.prototype,"apiProvider",void 0);je([(0,rt.property)({type:Boolean})],Ce.prototype,"authenticationRequired",void 0);je([(0,ur.jsonProperty)([])],Ce.prototype,"messageContexts",void 0);je([(0,ur.jsonProperty)(void 0)],Ce.prototype,"session",void 0);je([(0,rt.state)()],Ce.prototype,"localesConfiguration",void 0);je([(0,rt.state)()],Ce.prototype,"availableContentLocales",void 0)});function u0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!La(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!La(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!La(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function La(t,e){try{return u0(t,e)}catch{return!1}}function Cn(t,e){return!La(t,e)}function Ia(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Bi=p(()=>{"use strict"});var Bm,oc,Dm=p(()=>{"use strict";Bi();Bm=u(W(),1),oc=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:Cn,attribute:!1,...e};(0,Bm.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}}});var ka,ic=p(()=>{"use strict";ka=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});function Mm(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Fm.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Cn,...e??{}})}var Fm,zm=p(()=>{"use strict";Fm=u(W(),1);Bi()});var Ta,Um=p(()=>{"use strict";Ta=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var $a,f0,zI,Hm,Wm=p(()=>{$a=globalThis,f0=$a.ShadowRoot&&($a.ShadyCSS===void 0||$a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zI=Symbol(),Hm=(t,e)=>{if(f0)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=$a.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}}});var Vm,Na,jm=p(()=>{"use strict";Vm=u(R(),1);Wm();Na=class extends Vm.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Hm(i,e.elementStyles),i}}});function Gm(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Km=p(()=>{"use strict"});var Xo,Fi,Ym,qm,Zm,Xm,Qm,Di,Rr,Jm=p(()=>{"use strict";Xo=u(W(),1);zm();Um();jm();Km();Fi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},qm=Symbol("constructorPrototype"),Zm=Symbol("constructorName"),Xm=Symbol("exportpartsDebouncer"),Qm=Symbol("dynamicDependenciesLoaded"),Di=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Di.eventName="exportparts-updated";Rr=class extends Na{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ym]=new Ta(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Xm].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Zm]=this.constructor.name,this[qm]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zm]&&Object.setPrototypeOf(this,this[qm])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Qm]||(r[Qm]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Di.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Di.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Di)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Gm(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let f=v=>v!=null&&v.trim().length>0,h=e.filter(f).map(v=>v.trim());if(h.length===0){this.exportparts=void 0;return}let y=new Set;for(let v of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let w=(a=(n=v.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],O=(l=(s=v.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(N=>N.split(":")[1]))!==null&&l!==void 0?l:[],A=[...w,...O].filter(f).map(N=>N.trim());for(let N of A)y.add(N)}if(y.size===0){this.exportparts=void 0;return}let g=[...y.values()].flatMap(v=>h.map(w=>`${v}:${w}--${v}`));this.exportparts=[...this.part,...g].join(", ")}};Ym=Xm;Fi([(0,Xo.property)()],Rr.prototype,"exportpartsPrefix",void 0);Fi([Mm([])],Rr.prototype,"exportpartsPrefixes",void 0);Fi([(0,Xo.property)({reflect:!0})],Rr.prototype,"exportparts",void 0);Fi([(0,Xo.property)()],Rr.prototype,"customStylesheet",void 0);Fi([(0,Xo.property)()],Rr.prototype,"elementToFocus",void 0);Fi([(0,Xo.state)()],Rr.prototype,"useAdoptedStyleSheets",void 0)});function Pa(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _a=p(()=>{"use strict"});var On,go,Jo,h0,eg,tg=p(()=>{"use strict";Jm();_a();Bi();On=Symbol("internalReduxEventsUnsubscribers"),go=Symbol("internalStoresUnsubscribers"),Jo=Symbol("internalStores"),h0=Ia(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Jo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jo].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Jo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let h=this.getStore(s.store);h&&(s.store?this[go].has(s.store):this[go].size>0)&&(this[l]=s.selector(h.getState(),this))}})}subscribeToStore(s,l){var f;this[go].set(s,l.subscribe(()=>this.updateFromStores())),this[On].set(s,[]),Pa(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((h,y)=>{if(typeof this[y]=="function"&&(!h.store||l.name===h.store)){let g=v=>this[y](v);l.addEventListener(h.eventName,g),this[On].get(s).push(()=>l.removeEventListener(h.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[go].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[go].has(s)&&this[go].get(s)(),this[go].delete(s),(l=this[On].get(s))===null||l===void 0||l.forEach(f=>f()),this[On].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=go,r=Jo,i=On,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),eg=class extends h0(Rr){}});function er(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qr(t){return!!t&&!!t[Le]}function fr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===C0}(t)||Array.isArray(t)||!!t[lg]||!!(!((e=t.constructor)===null||e===void 0)&&e[lg])||fc(t)||hc(t))}function ei(t,e,r){r===void 0&&(r=!1),Ui(t)===0?(r?Object.keys:zi)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Ui(t){var e=t[Le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fc(t)?2:hc(t)?3:0}function Mi(t,e){return Ui(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function m0(t,e){return Ui(t)===2?t.get(e):t[e]}function cg(t,e,r){var i=Ui(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function dg(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function fc(t){return x0&&t instanceof Map}function hc(t){return S0&&t instanceof Set}function yo(t){return t.o||t.t}function mc(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=fg(t);delete e[Le];for(var r=zi(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function gc(t,e){return e===void 0&&(e=!1),yc(t)||Qr(t)||!fr(t)||(Ui(t)>1&&(t.set=t.add=t.clear=t.delete=g0),Object.freeze(t),e&&ei(t,function(r,i){return gc(i,!0)},!0)),t}function g0(){er(2)}function yc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lr(t){var e=uc[t];return e||er(18,t),e}function y0(t,e){uc[t]||(uc[t]=e)}function cc(){return En}function nc(t,e){e&&(Lr("Patches"),t.u=[],t.s=[],t.v=e)}function Ba(t){dc(t),t.p.forEach(b0),t.p=null}function dc(t){t===En&&(En=t.l)}function rg(t){return En={p:[],l:En,h:t,m:!0,_:0}}function b0(t){var e=t[Le];e.i===0||e.i===1?e.j():e.g=!0}function ac(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Lr("ES5").S(e,t,i),i?(r[Le].P&&(Ba(e),er(4)),fr(t)&&(t=Da(e,t),e.l||Fa(e,t)),e.u&&Lr("Patches").M(r[Le].t,t,e.u,e.s)):t=Da(e,r,[]),Ba(e),e.u&&e.v(e.u,e.s),t!==ug?t:void 0}function Da(t,e,r){if(yc(e))return e;var i=e[Le];if(!i)return ei(e,function(l,f){return og(t,i,e,l,f,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Fa(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=mc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),ei(a,function(l,f){return og(t,i,n,l,f,r,s)}),Fa(t,n,!1),r&&t.u&&Lr("Patches").N(i,r,t.u,t.s)}return i.o}function og(t,e,r,i,n,a,s){if(Qr(n)){var l=Da(t,n,a&&e&&e.i!==3&&!Mi(e.R,i)?a.concat(i):void 0);if(cg(r,i,l),!Qr(l))return;t.m=!1}else s&&r.add(n);if(fr(n)&&!yc(n)){if(!t.h.D&&t._<1)return;Da(t,n),e&&e.A.l||Fa(t,n)}}function Fa(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&gc(e,r)}function sc(t,e){var r=t[Le];return(r?yo(r):t)[e]}function ig(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function lc(t){t.o||(t.o=mc(t.t))}function pc(t,e,r){var i=fc(e)?Lr("MapSet").F(e,r):hc(e)?Lr("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:cc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},f=l,h=An;s&&(f=[l],h=wn);var y=Proxy.revocable(f,h),g=y.revoke,v=y.proxy;return l.k=v,l.j=g,v}(e,r):Lr("ES5").J(e,r);return(r?r.A:cc()).p.push(i),i}function v0(t){return Qr(t)||er(22,t),function e(r){if(!fr(r))return r;var i,n=r[Le],a=Ui(r);if(n){if(!n.P&&(n.i<4||!Lr("ES5").K(n)))return n.t;n.I=!0,i=ng(r,a),n.I=!1}else i=ng(r,a);return ei(i,function(s,l){n&&m0(n.t,s)===l||cg(i,s,e(l))}),a===3?new Set(i):i}(t)}function ng(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mc(t)}function pg(){function t(s,l){var f=a[s];return f?f.enumerable=l:a[s]=f={configurable:!0,enumerable:l,get:function(){var h=this[Le];return An.get(h,s)},set:function(h){var y=this[Le];An.set(y,s,h)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Le];if(!f.P)switch(f.i){case 5:i(f)&&bo(f);break;case 4:r(f)&&bo(f)}}}function r(s){for(var l=s.t,f=s.k,h=zi(f),y=h.length-1;y>=0;y--){var g=h[y];if(g!==Le){var v=l[g];if(v===void 0&&!Mi(l,g))return!0;var w=f[g],O=w&&w[Le];if(O?O.t!==v:!dg(w,v))return!0}}var A=!!l[Le];return h.length!==zi(l).length+(A?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var h=0;h<l.length;h++)if(!l.hasOwnProperty(h))return!0;return!1}function n(s){s.g&&er(3,JSON.stringify(yo(s)))}var a={};y0("ES5",{J:function(s,l){var f=Array.isArray(s),h=function(g,v){if(g){for(var w=Array(v.length),O=0;O<v.length;O++)Object.defineProperty(w,""+O,t(O,!0));return w}var A=fg(v);delete A[Le];for(var N=zi(A),$=0;$<N.length;$++){var P=N[$];A[P]=t(P,g||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(v),A)}(f,s),y={i:f?5:4,A:l?l.A:cc(),P:!1,I:!1,R:{},l,t:s,k:h,o:null,g:!1,C:!1};return Object.defineProperty(h,Le,{value:y,writable:!0}),h},S:function(s,l,f){f?Qr(l)&&l[Le].A===s&&e(s.p):(s.u&&function h(y){if(y&&typeof y=="object"){var g=y[Le];if(g){var v=g.t,w=g.k,O=g.R,A=g.i;if(A===4)ei(w,function(te){te!==Le&&(v[te]!==void 0||Mi(v,te)?O[te]||h(w[te]):(O[te]=!0,bo(g)))}),ei(v,function(te){w[te]!==void 0||Mi(w,te)||(O[te]=!1,bo(g))});else if(A===5){if(i(g)&&(bo(g),O.length=!0),w.length<v.length)for(var N=w.length;N<v.length;N++)O[N]=!1;else for(var $=v.length;$<w.length;$++)O[$]=!0;for(var P=Math.min(w.length,v.length),H=0;H<P;H++)w.hasOwnProperty(H)||(O[H]=!0),O[H]===void 0&&h(w[H])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ag,En,bc,x0,S0,sg,ug,lg,Le,C0,zi,fg,uc,An,wn,O0,_t,w0,tk,rk,ok,ik,nk,ak,Ma,za=p(()=>{bc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",x0=typeof Map<"u",S0=typeof Set<"u",sg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ug=bc?Symbol.for("immer-nothing"):((ag={})["immer-nothing"]=!0,ag),lg=bc?Symbol.for("immer-draftable"):"__$immer_draftable",Le=bc?Symbol.for("immer-state"):"__$immer_state",C0=""+Object.prototype.constructor,zi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,fg=Object.getOwnPropertyDescriptors||function(t){var e={};return zi(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},uc={},An={get:function(t,e){if(e===Le)return t;var r=yo(t);if(!Mi(r,e))return function(n,a,s){var l,f=ig(a,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!fr(i)?i:i===sc(t.t,e)?(lc(t),t.o[e]=pc(t.A.h,i,t)):i},has:function(t,e){return e in yo(t)},ownKeys:function(t){return Reflect.ownKeys(yo(t))},set:function(t,e,r){var i=ig(yo(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=sc(yo(t),e),a=n?.[Le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(dg(r,n)&&(r!==void 0||Mi(t.t,e)))return!0;lc(t),bo(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return sc(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,lc(t),bo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yo(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){er(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){er(12)}},wn={};ei(An,function(t,e){wn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),wn.deleteProperty=function(t,e){return wn.set.call(this,t,e,void 0)},wn.set=function(t,e,r){return An.set.call(this,t[0],e,r,t[0])};O0=function(){function t(r){var i=this;this.O=sg,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var f=i;return function(A){var N=this;A===void 0&&(A=l);for(var $=arguments.length,P=Array($>1?$-1:0),H=1;H<$;H++)P[H-1]=arguments[H];return f.produce(A,function(te){var ie;return(ie=a).call.apply(ie,[N,te].concat(P))})}}var h;if(typeof a!="function"&&er(6),s!==void 0&&typeof s!="function"&&er(7),fr(n)){var y=rg(i),g=pc(i,n,void 0),v=!0;try{h=a(g),v=!1}finally{v?Ba(y):dc(y)}return typeof Promise<"u"&&h instanceof Promise?h.then(function(A){return nc(y,s),ac(A,y)},function(A){throw Ba(y),A}):(nc(y,s),ac(h,y))}if(!n||typeof n!="object"){if((h=a(n))===void 0&&(h=n),h===ug&&(h=void 0),i.D&&gc(h,!0),s){var w=[],O=[];Lr("Patches").M(n,h,w,O),s(w,O)}return h}er(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(h){for(var y=arguments.length,g=Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];return i.produceWithPatches(h,function(w){return n.apply(void 0,[w].concat(g))})};var s,l,f=i.produce(n,a,function(h,y){s=h,l=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(h){return[h,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){fr(r)||er(8),Qr(r)&&(r=v0(r));var i=rg(this),n=pc(this,r,void 0);return n[Le].C=!0,dc(i),n},e.finishDraft=function(r,i){var n=r&&r[Le],a=n.A;return nc(a,i),ac(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!sg&&er(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lr("Patches").$;return Qr(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),_t=new O0,w0=_t.produce,tk=_t.produceWithPatches.bind(_t),rk=_t.setAutoFreeze.bind(_t),ok=_t.setUseProxies.bind(_t),ik=_t.applyPatches.bind(_t),nk=_t.createDraft.bind(_t),ak=_t.finishDraft.bind(_t),Ma=w0});function ti(t){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(t)}var vc=p(()=>{});function hg(t,e){if(ti(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(ti(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mg=p(()=>{vc()});function gg(t){var e=hg(t,"string");return ti(e)=="symbol"?e:e+""}var yg=p(()=>{vc();mg()});function bg(t,e,r){return(e=gg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vg=p(()=>{yg()});function xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function xc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xg(Object(r),!0).forEach(function(i){bg(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Sg=p(()=>{vg()});function dt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function E0(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Cc(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(dt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(dt(1));return r(Cc)(t,e)}if(typeof t!="function")throw new Error(dt(2));var n=t,a=e,s=[],l=s,f=!1;function h(){l===s&&(l=s.slice())}function y(){if(f)throw new Error(dt(3));return a}function g(A){if(typeof A!="function")throw new Error(dt(4));if(f)throw new Error(dt(5));var N=!0;return h(),l.push(A),function(){if(N){if(f)throw new Error(dt(6));N=!1,h();var P=l.indexOf(A);l.splice(P,1),s=null}}}function v(A){if(!E0(A))throw new Error(dt(7));if(typeof A.type>"u")throw new Error(dt(8));if(f)throw new Error(dt(9));try{f=!0,a=n(a,A)}finally{f=!1}for(var N=s=l,$=0;$<N.length;$++){var P=N[$];P()}return A}function w(A){if(typeof A!="function")throw new Error(dt(10));n=A,v({type:Ua.REPLACE})}function O(){var A,N=g;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(dt(11));function H(){P.next&&P.next(y())}H();var te=N(H);return{unsubscribe:te}}},A[Cg]=function(){return this},A}return v({type:Ua.INIT}),i={dispatch:v,subscribe:g,getState:y,replaceReducer:w},i[Cg]=O,i}function A0(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Ua.INIT});if(typeof i>"u")throw new Error(dt(12));if(typeof r(void 0,{type:Ua.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(dt(13))})}function Og(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{A0(r)}catch(f){l=f}return function(h,y){if(h===void 0&&(h={}),l)throw l;if(0)var g;for(var v=!1,w={},O=0;O<a.length;O++){var A=a[O],N=r[A],$=h[A],P=N($,y);if(typeof P>"u"){var H=y&&y.type;throw new Error(dt(14))}w[A]=P,v=v||P!==$}return v=v||a.length!==Object.keys(h).length,v?w:h}}function Hi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function wg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(dt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return a=Hi.apply(void 0,l)(n.dispatch),xc(xc({},n),{},{dispatch:a})}}}var Cg,Sc,Ua,Ha=p(()=>{Sg();Cg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Sc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ua={INIT:"@@redux/INIT"+Sc(),REPLACE:"@@redux/REPLACE"+Sc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sc()}}});function Eg(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Ag,Oc,Rg=p(()=>{Ag=Eg();Ag.withExtraArgument=Eg;Oc=Ag});function _0(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Rc(t){return fr(t)?Ma(t,function(){}):t}function F0(t){return typeof t=="boolean"}function M0(){return function(e){return z0(e)}}function z0(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new B0;if(r&&(F0(r)?l.push(Oc):l.push(Oc.withExtraArgument(r.extraArgument))),0){if(n)var f;if(s)var h}return l}function Ng(t){var e=M0(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,f=l===void 0?!0:l,h=r.preloadedState,y=h===void 0?void 0:h,g=r.enhancers,v=g===void 0?void 0:g,w;if(typeof n=="function")w=n;else if(_0(n))w=Og(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!Ec&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ec&&O.some(function(te){return typeof te!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=wg.apply(void 0,O),N=Hi;f&&(N=P0(vo({trace:!Ec},typeof f=="object"&&f)));var $=new D0(A),P=$;Array.isArray(v)?P=Wi([A],v):typeof v=="function"&&(P=v($));var H=N.apply(void 0,P);return Cc(w,y,H)}function xo(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return vo(vo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Pg(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function U0(t){return typeof t=="function"}function H0(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Pg(e):[e,r,i],a=n[0],s=n[1],l=n[2],f;if(U0(t))f=function(){return Rc(t())};else{var h=Rc(t);f=function(){return h}}function y(g,v){g===void 0&&(g=f());var w=Wi([a[v.type]],s.filter(function(O){var A=O.matcher;return A(v)}).map(function(O){var A=O.reducer;return A}));return w.filter(function(O){return!!O}).length===0&&(w=[l]),w.reduce(function(O,A){if(A)if(Qr(O)){var N=O,$=A(N,v);return $===void 0?O:$}else{if(fr(O))return Ma(O,function(P){return A(P,v)});var $=A(O,v);if($===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return $}return O},g)}return y.getInitialState=f,y}function W0(t,e){return t+"/"+e}function _g(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Rc(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(y){var g=i[y],v=W0(e,y),w,O;"reducer"in g?(w=g.reducer,O=g.prepare):w=g,a[y]=w,s[v]=w,l[y]=O?xo(v,O):xo(v)});function f(){var y=typeof t.extraReducers=="function"?Pg(t.extraReducers):[t.extraReducers],g=y[0],v=g===void 0?{}:g,w=y[1],O=w===void 0?[]:w,A=y[2],N=A===void 0?void 0:A,$=vo(vo({},v),s);return H0(r,function(P){for(var H in $)P.addCase(H,$[H]);for(var te=0,ie=O;te<ie.length;te++){var Ct=ie[te];P.addMatcher(Ct.matcher,Ct.reducer)}N&&P.addDefaultCase(N)})}var h;return{name:e,reducer:function(y,g){return h||(h=f()),h(y,g)},actions:l,caseReducers:a,getInitialState:function(){return h||(h=f()),h.getInitialState()}}}function q0(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Z0(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var $g,R0,Wi,L0,I0,k0,Lg,T0,$0,Ig,vo,wc,N0,P0,wk,B0,D0,Ec,V0,j0,G0,Ac,kg,K0,Lk,Bg,Dg,Fg,Ik,kk,Tk,$k,Lc,Nk,Pk,_k,Tg,Bk,Q0,Dk,Mg=p(()=>{za();Ha();Ha();Ha();Rg();za();za();$g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),R0=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(y){return f([h,y])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=h[0]&2?n.return:h[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,h[1])).done)return a;switch(n=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,n=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){r.label=h[1];break}if(h[0]===6&&r.label<a[1]){r.label=a[1],a=h;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(h);break}a[2]&&r.ops.pop(),r.trys.pop();continue}h=e.call(t,r)}catch(y){h=[6,y],n=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Wi=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},L0=Object.defineProperty,I0=Object.defineProperties,k0=Object.getOwnPropertyDescriptors,Lg=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,$0=Object.prototype.propertyIsEnumerable,Ig=function(t,e,r){return e in t?L0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},vo=function(t,e){for(var r in e||(e={}))T0.call(e,r)&&Ig(t,r,e[r]);if(Lg)for(var i=0,n=Lg(e);i<n.length;i++){var r=n[i];$0.call(e,r)&&Ig(t,r,e[r])}return t},wc=function(t,e){return I0(t,k0(e))},N0=function(t,e,r){return new Promise(function(i,n){var a=function(f){try{l(r.next(f))}catch(h){n(h)}},s=function(f){try{l(r.throw(f))}catch(h){n(h)}},l=function(f){return f.done?i(f.value):Promise.resolve(f.value).then(a,s)};l((r=r.apply(t,e)).next())})},P0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hi:Hi.apply(null,arguments)},wk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};B0=function(t){$g(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wi([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wi([void 0],r.concat(this))))},e}(Array),D0=function(t){$g(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wi([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wi([void 0],r.concat(this))))},e}(Array);Ec=!0;V0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",j0=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=V0[Math.random()*64|0];return e},G0=["name","message","stack","code"],Ac=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),kg=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),K0=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=G0;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},Lk=function(){function t(e,r,i){var n=xo(e+"/fulfilled",function(y,g,v,w){return{payload:y,meta:wc(vo({},w||{}),{arg:v,requestId:g,requestStatus:"fulfilled"})}}),a=xo(e+"/pending",function(y,g,v){return{payload:void 0,meta:wc(vo({},v||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=xo(e+"/rejected",function(y,g,v,w,O){return{payload:w,error:(i&&i.serializeError||K0)(y||"Rejected"),meta:wc(vo({},O||{}),{arg:v,requestId:g,rejectedWithValue:!!w,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function h(y){return function(g,v,w){var O=i?.idGenerator?i.idGenerator(y):j0(),A=new f,N,$=!1;function P(te){N=te,A.abort()}var H=function(){return N0(this,null,function(){var te,ie,Ct,xr,ht,Sr,Xe;return R0(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),xr=(te=i?.condition)==null?void 0:te.call(i,y,{getState:v,extra:w}),Z0(xr)?[4,xr]:[3,2];case 1:xr=b.sent(),b.label=2;case 2:if(xr===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return $=!0,ht=new Promise(function(C,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),g(a(O,y,(ie=i?.getPendingMeta)==null?void 0:ie.call(i,{requestId:O,arg:y},{getState:v,extra:w}))),[4,Promise.race([ht,Promise.resolve(r(y,{dispatch:g,getState:v,extra:w,requestId:O,signal:A.signal,abort:P,rejectWithValue:function(C,D){return new Ac(C,D)},fulfillWithValue:function(C,D){return new kg(C,D)}})).then(function(C){if(C instanceof Ac)throw C;return C instanceof kg?n(C.payload,O,y,C.meta):n(C,O,y)})])];case 3:return Ct=b.sent(),[3,5];case 4:return Sr=b.sent(),Ct=Sr instanceof Ac?s(null,O,y,Sr.payload,Sr.meta):s(Sr,O,y),[3,5];case 5:return Xe=i&&!i.dispatchConditionRejection&&s.match(Ct)&&Ct.meta.condition,Xe||g(Ct),[2,Ct]}})})}();return Object.assign(H,{abort:P,requestId:O,arg:y,unwrap:function(){return H.then(q0)}})}}return Object.assign(h,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();Bg="listener",Dg="completed",Fg="cancelled",Ik="task-"+Fg,kk="task-"+Dg,Tk=Bg+"-"+Fg,$k=Bg+"-"+Dg,Lc="listenerMiddleware",Nk=xo(Lc+"/add"),Pk=xo(Lc+"/removeAll"),_k=xo(Lc+"/remove"),Bk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Tg||(Tg=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Q0=function(t){return function(e){setTimeout(e,t)}},Dk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Q0(10);pg()});var Y0,Wa,zg=p(()=>{"use strict";Bi();Y0=Ia(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Wa=class extends Y0(Object){}});var Ug,Hg=p(()=>{"use strict";Mg();_a();ic();zg();window.ftReduxStores||(window.ftReduxStores={});Ug=class t extends Wa{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Pa(a))return a;if(n==null)return;let s=_g({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Ng({reducer:(f,h)=>h.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof h.type=="string"&&h.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...h.overwrites}:s.reducer(f,h)});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ka;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let f=s,h=a[f];return h?(...y)=>{let g=h(...y.map(n));return this.reduxStore.dispatch(g),g}:y=>{this.setState({[f]:n(y)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Wg=p(()=>{"use strict";Bi()});var Vg=p(()=>{"use strict";Dm();ic();tg();Hg();_a();Wg()});var Va,jg=p(()=>{"use strict";Va=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var Ic,Gg,ja,sT,Kg=p(()=>{"use strict";Ic=u(W());Vg();jg();lt();Gg=u(x()),ja=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},sT=(0,Gg.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Va.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ja([(0,Ic.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ja([(0,Ic.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ja([oc({store:k.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ja([oc({store:k.name})],e.prototype,"uiLocale",void 0),e})});var Ga,qg=p(()=>{"use strict";lt();fo();Ga=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var Ka,Zg=p(()=>{"use strict";fo();lt();Ka=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}}});var qa,X0,J0,Xg,kc,Tc,Qg,Yg,Bt,$c,Nc,Za=p(()=>{"use strict";Qo();qa=u(x());Ql();jl();lt();qg();Zg();X0="ft-user-assets",J0={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Jt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Tc(t,r,[...kc(t,r),n]),Qg(t,r,1,i),Yg(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Tc(t,r,kc(t,r).map(n=>n.id===i.id?i:n)),Yg(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Tc(t,r,kc(t,r).filter(a=>a.id!==n)),Qg(t,r,-1,i)}},Xg={[Jt.SEARCHES]:"savedSearches",[Jt.BOOKMARKS]:"bookmarks",[Jt.BOOKS]:void 0,[Jt.COLLECTIONS]:void 0},kc=(t,e)=>{var r;let i=Xg[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Tc=(t,e,r)=>{let i=Xg[e];i&&(t[i]=r)},Qg=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Jt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Yg=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Bt=qa.FtReduxStore.get({name:X0,reducers:J0,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Jt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),$c=class{constructor(e=new Ga,r=new Ka){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ba,this.savedSearchesService=new Ea,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=k.getState();(0,qa.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Bt.actions.clearAssetCount(),Bt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Bt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Bt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Bt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Bt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Bt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Bt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Bt.getState().assetCounts.bookmarkByMap).length!==0;e===Jt.BOOKMARKS&&r&&Bt.actions.clearBookmarkCountByMap(),Bt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Bt.actions.bookmarks(r)}}},Nc=new $c;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Nc)});var Jg=p(()=>{"use strict";Qo();Za()});var ey=p(()=>{"use strict"});var ty,Ir=p(()=>{"use strict";ty=u(x());rc();Kg();lt();Za();Jg();tc();Hl();ey();rc();(0,ty.customElement)("ft-app-context")(Ce)});var Pc,ry,oy=p(()=>{"use strict";Pc=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ry=new Pc});var Vi,ny,eS,tS,rS,ay,Qa,Rn,Rt,iy,Ya,Xa=p(()=>{"use strict";Vi=u(x());Ir();ny=u(W());oy();eS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tS=Symbol("i18nAttributes"),rS=Symbol("i18nListAttributes"),ay=Symbol("i18nProperties"),Qa=Symbol("i18nContexts"),Rn=Symbol("i18nUnsubs"),Rt=(0,Vi.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?xa:Ti}i18n(a){let{context:s,key:l,message:f}=a,{custom:h,args:y,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,h);let v=y??(g?g(this):[]);return this.getI18nService(h).resolveMessage(s,l,...v)}return f}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(ry.isI18nKey(a)){let[l,f]=a.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,f)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,f)=>{var h;return((h=f?.context)===null||h===void 0?void 0:h.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let f=this,h=(y,g,v)=>v?.context&&v.key&&a(y,g,v)?{...v,message:this.i18n({context:v.context,key:v.key,custom:v.custom,...y})}:v;(s=this[tS])===null||s===void 0||s.forEach((y,g)=>f[g]=h(y,g,f[g])),(l=this[rS])===null||l===void 0||l.forEach((y,g)=>{var v;return f[g]=(v=f[g])===null||v===void 0?void 0:v.map(w=>h(y,g,w))})}updateI18nProperties(a){var s;(s=this[ay])===null||s===void 0||s.forEach((l,f)=>{a(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let f=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Qa].set(f,{isCustomContext:l}),this[Rn].has(f)||this[Rn].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(a){return this[Qa].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Qa].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Rn].forEach(a=>a()),this[Rn].clear()}}return e=Qa,r=Rn,eS([(0,ny.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),iy=class extends Rt(Vi.FtLitElement){},Ya=class extends Rt(Vi.FtLitElementRedux){}});var Ja,es,ts,Ln,hr,_c=p(()=>{"use strict";Ja=u(R()),es=u(W()),ts=u(x());Ul();Xa();Ir();Ln=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hr=class extends Ya{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ja.nothing:Ja.html`
|
|
1160
1160
|
<span class="ft-i18n">
|
|
1161
1161
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1162
1162
|
</span>
|
|
1163
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};hr.elementDefinitions={};hr.styles=
|
|
1164
|
-
`});var vy=p(()=>{"use strict"});var is,iS,xy,Sy=p(()=>{"use strict";is=u(x()),iS={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)=>{var r;let i=+((r=e.payload)!==null&&r!==void 0?r:20);t.request.paging.perPage=isNaN(i)?20:(0,is.minmax)(1,i,1e3)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestSortId:(t,e)=>{t.request.sortId=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=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},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]}},xy=t=>is.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:iS})});var ns,Cy=p(()=>{"use strict";Ir();ns=class extends ct{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Bt,Oy,kn,qi,Hc=p(()=>{"use strict";Bt=u(x());Sy();Qo();Cy();Oy=t=>t.request.virtualField===_i.TITLE_ONLY&&t.request.scope===Pi.DOCUMENTS,kn=class t extends Event{constructor(){super(t.eventName)}};kn.eventName="search-context-clear-all-filters";qi=class t{static build(e,r){return new t(xy(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Bt.Debouncer(10),this.searchDebouncer=new Bt.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new Bt.Debouncer(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=r??new ns,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Bt.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Bt.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var r;let i=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var r;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(r=this.sortOptions.find(n=>n.id==e))!==null&&r!==void 0?r:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(_i.TITLE_ONLY),this.store.actions.setRequestScope(Pi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(_i.EVERYWHERE),this.store.actions.setRequestScope(Pi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return Oy(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new kn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(n=>n!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,n,a;try{if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,Bt.cancelable)(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof Bt.CanceledPromiseError||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var r;try{(r=this.cancelableSuggest)===null||r===void 0||r.cancel(),this.cancelableSuggest=(0,Bt.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Bt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var as,Ey,nS,Vc,wy,Wc,aS,sS,er,oi=p(()=>{"use strict";as=u(x()),Ey=u(W());vy();Hc();nS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},wy=Symbol("registerInterval"),Wc=Symbol("registerAttempts"),aS=40,sS=(0,as.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Wc]=0,this[wy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Wc]>aS?window.clearInterval(this[wy]):(this[Wc]++,this.dispatchEvent(new Vc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return nS([(0,Ey.state)()],e.prototype,"stateManager",void 0),e}),er=class extends sS(as.FtLitElementRedux){}});function Tn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function $n(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var jc=p(()=>{"use strict"});var Ay,ss,Ry=p(()=>{"use strict";Ay=u(x());Qo();Ir();jc();ss=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=r??new Ea,this.resultsWatcher=(0,Ay.watch)(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=k.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}convertToAnalyticsMap(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=k.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:Tn(e.metadataFilters),facets:e.metadataFilters.map(n=>$n(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Yt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:Tn(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Yt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:Tn(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Yt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ni.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Yt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ni.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Yt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ni.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var Ly,Tr,tr,rt,ls,cs,ds,Le,Gc=p(()=>{"use strict";Ly=u(R()),Tr=u(W()),tr=u(x());Uc();oi();Ir();qa();Ry();rt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ls=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},cs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ds=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},Le=class extends tr.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ss(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(k)}render(){return Ly.html`
|
|
1165
|
-
<slot @register-ft-search-component
|
|
1166
|
-
@ft-search-result-open-context-menu
|
|
1167
|
-
`}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
1163
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};hr.elementDefinitions={};hr.styles=Bh;Ln([(0,ts.redux)()],hr.prototype,"editorMode",void 0);Ln([(0,es.property)()],hr.prototype,"context",void 0);Ln([(0,es.property)()],hr.prototype,"key",void 0);Ln([(0,ts.jsonProperty)([])],hr.prototype,"args",void 0);Ln([(0,es.property)()],hr.prototype,"defaultMessage",void 0)});var kr,sy=p(()=>{"use strict";Ir();kr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?xa:Ti}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var ly=p(()=>{"use strict";Xa()});var cy=p(()=>{"use strict"});var dy,mr=p(()=>{"use strict";dy=u(x());_c();sy();Xa();ly();Ul();cy();_c();(0,dy.customElement)("ft-i18n")(hr)});function hy(t){var e,r,i,n,a;return((n=(r=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.openMode)===wa.EXTERNAL}function is(t){var e,r,i,n,a;if(hy(t))return(n=(r=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&r!==void 0?r:(i=t.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=t.document)===null||a===void 0?void 0:a.originUrl;switch(t.type){case Xt.MAP:return t.map.readerUrl;case Xt.DOCUMENT:return t.document.viewerUrl;case Xt.TOPIC:return t.topic.readerUrl}return""}function my(t,e){return Go(e&&hy(t)?"_blank":void 0)}var Fc=p(()=>{"use strict";Qo();la()});var Gi,Ki,zc=p(()=>{"use strict";Gi=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Ki=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}}});var vy,nS,Uc,Hc=p(()=>{"use strict";vy=u(R()),nS={},Uc=vy.css`
|
|
1164
|
+
`});var xy=p(()=>{"use strict"});var ns,aS,Sy,Cy=p(()=>{"use strict";ns=u(x()),aS={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)=>{var r;let i=+((r=e.payload)!==null&&r!==void 0?r:20);t.request.paging.perPage=isNaN(i)?20:(0,ns.minmax)(1,i,1e3)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestSortId:(t,e)=>{t.request.sortId=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=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},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]},setKeywordMatch:(t,e)=>{t.request.keywordMatch=e.payload}},Sy=t=>ns.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:aS})});var as,Oy=p(()=>{"use strict";Ir();as=class extends ct{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Dt,wy,Ey,kn,qi,Wc=p(()=>{"use strict";Dt=u(x());Cy();Qo();Oy();wy=t=>t.request.virtualField===Pi.TITLE_ONLY&&t.request.scope===_i.DOCUMENTS,Ey=t=>t.request.keywordMatch==Oa.MANDATORY,kn=class t extends Event{constructor(){super(t.eventName)}};kn.eventName="search-context-clear-all-filters";qi=class t{static build(e,r){return new t(Sy(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Dt.Debouncer(10),this.searchDebouncer=new Dt.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new Dt.Debouncer(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new as,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Dt.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Dt.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var r;let i=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var r;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(r=this.sortOptions.find(n=>n.id==e))!==null&&r!==void 0?r:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Pi.TITLE_ONLY),this.store.actions.setRequestScope(_i.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Pi.EVERYWHERE),this.store.actions.setRequestScope(_i.DEFAULT))}setKeywordMatch(e){this.store.actions.setKeywordMatch(e)}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return wy(this.store.getState())}get keywordMatch(){return Ey(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new kn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(n=>n!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:r,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:r}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.dateFilter),...r.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(n=>!n.rangeFilter),...r.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,n,a;try{if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,Dt.cancelable)(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof Dt.CanceledPromiseError||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var r;try{(r=this.cancelableSuggest)===null||r===void 0||r.cancel(),this.cancelableSuggest=(0,Dt.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Dt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var ss,Ry,sS,jc,Ay,Vc,lS,cS,tr,oi=p(()=>{"use strict";ss=u(x()),Ry=u(W());xy();Wc();sS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ay=Symbol("registerInterval"),Vc=Symbol("registerAttempts"),lS=40,cS=(0,ss.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Vc]=0,this[Ay]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Vc]>lS?window.clearInterval(this[Ay]):(this[Vc]++,this.dispatchEvent(new jc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return sS([(0,Ry.state)()],e.prototype,"stateManager",void 0),e}),tr=class extends cS(ss.FtLitElementRedux){}});function Tn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function $n(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Gc=p(()=>{"use strict"});var Ly,ls,Iy=p(()=>{"use strict";Ly=u(x());Qo();Ir();Gc();ls=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=r??new Aa,this.resultsWatcher=(0,Ly.watch)(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=k.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}convertToAnalyticsMap(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=k.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:Tn(e.metadataFilters),facets:e.metadataFilters.map(n=>$n(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Xt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:Tn(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Xt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Zo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:Tn(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Xt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ni.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Xt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ni.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Xt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ni.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var ky,Tr,It,Ye,cs,ds,ps,Oe,Kc=p(()=>{"use strict";ky=u(R()),Tr=u(W()),It=u(x());Hc();oi();Ir();Za();Iy();Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ds=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ps=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},Oe=class extends It.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ls(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(k)}render(){return ky.html`
|
|
1165
|
+
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
1166
|
+
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
1167
|
+
`}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ds(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ps(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new cs(e))}reloadSavedSearches(){Nc.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Oe.elementDefinitions={};Oe.styles=Uc;Ye([(0,It.redux)({store:k.name})],Oe.prototype,"session",void 0);Ye([(0,Tr.property)()],Oe.prototype,"query",void 0);Ye([(0,Tr.property)()],Oe.prototype,"contentLocale",void 0);Ye([(0,It.numberProperty)()],Oe.prototype,"pageSize",void 0);Ye([(0,Tr.property)({type:Boolean})],Oe.prototype,"searchInDocumentTitlesOnly",void 0);Ye([(0,Tr.property)()],Oe.prototype,"keywordMatch",void 0);Ye([(0,Tr.property)()],Oe.prototype,"scope",void 0);Ye([(0,Tr.property)()],Oe.prototype,"virtualField",void 0);Ye([(0,Tr.property)({type:Boolean})],Oe.prototype,"ignoreEmptyQuery",void 0);Ye([(0,It.redux)({store:k.name})],Oe.prototype,"openExternalDocumentInNewTab",void 0);Ye([(0,It.jsonProperty)([])],Oe.prototype,"filters",void 0);Ye([(0,Tr.property)()],Oe.prototype,"sortId",void 0);Ye([(0,It.jsonProperty)([])],Oe.prototype,"sort",void 0);Ye([(0,It.jsonProperty)({})],Oe.prototype,"otherQueryParams",void 0);Ye([(0,It.redux)({store:"search"})],Oe.prototype,"request",void 0);Ye([(0,It.redux)({store:"search"})],Oe.prototype,"paging",void 0);Ye([(0,It.redux)({store:"search",selector:t=>t.spellcheck})],Oe.prototype,"autocorrect",void 0);Ye([(0,Tr.property)({attribute:!1})],Oe.prototype,"searchServiceProvider",void 0)});var Ty=p(()=>{"use strict"});var Ny={};Bo(Ny,{ClearAllFiltersEvent:()=>kn,FtSearchContext:()=>Oe,FtSearchContextCssVariables:()=>nS,FtSearchStateManager:()=>qi,LoadErrorEvent:()=>cs,SearchRequestChangeEvent:()=>ds,SearchResultsChangeEvent:()=>ps,convertMetadataFilterToAnalyticsFacet:()=>$n,getAnalyticsLastUpdate:()=>Tn,keywordMatchSelector:()=>Ey,searchInDocumentTitlesOnlySelector:()=>wy,styles:()=>Uc});var $y,Py=p(()=>{"use strict";$y=u(x());Kc();Hc();Ty();Kc();Wc();Gc();(0,$y.customElement)("ft-search-context")(Oe)});var So,qc=p(()=>{"use strict";mr();So=kr.build("designedSearchInput")});var Yr=_o((Z$,_y)=>{_y.exports=ftGlobals.litRepeat});var rr,Zc=p(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rr||(rr={}))});var By,Dy,Qc=p(()=>{"use strict";By=u(R()),Dy=By.css`
|
|
1168
1168
|
.ft-size-watcher--pixel {
|
|
1169
1169
|
width: 0;
|
|
1170
1170
|
height: 0;
|
|
@@ -1183,19 +1183,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1183
1183
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
1184
1184
|
width: 100%;
|
|
1185
1185
|
}
|
|
1186
|
-
`});var
|
|
1186
|
+
`});var Fy,ii,us,Nn,Yc,Ft,Xc=p(()=>{"use strict";Fy=u(R()),ii=u(W()),us=u(x());Zc();Qc();Nn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Yc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ft=class extends us.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=rr.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new us.Debouncer}render(){return Fy.html`
|
|
1187
1187
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
1188
1188
|
<div class="ft-size-watcher--watcher"></div>
|
|
1189
1189
|
</div>
|
|
1190
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=rr.S:this.size<976?this.category=rr.M:this.size<1024?this.category=rr.L:this.size<1440?this.category=rr.XL:this.category=rr.XXL,this.dispatchEvent(new
|
|
1190
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=rr.S:this.size<976?this.category=rr.M:this.size<1024?this.category=rr.L:this.size<1440?this.category=rr.XL:this.category=rr.XXL,this.dispatchEvent(new Yc(this.size,this.category)))},this.debounceTimeout)}};Ft.elementDefinitions={};Ft.styles=Dy;Nn([(0,ii.property)({type:Number})],Ft.prototype,"debounceTimeout",void 0);Nn([(0,ii.property)({type:Boolean})],Ft.prototype,"local",void 0);Nn([(0,ii.property)({type:Number,reflect:!0})],Ft.prototype,"size",void 0);Nn([(0,ii.property)({type:String,reflect:!0})],Ft.prototype,"category",void 0);Nn([(0,ii.query)(".ft-size-watcher--watcher")],Ft.prototype,"watcher",void 0)});var My,zy=p(()=>{"use strict";My=u(x());Xc();Xc();Qc();Zc();(0,My.customElement)("ft-size-watcher")(Ft)});function fs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Uy(t){return fs(t).split("|").pop()}function Hy(t){return fs(t).split("|").join(" > ")}function Wy(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Wy(r,t.selected)),value:t.value}}function Vy(t){return(0,Jc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function ed(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Wy(e,!1))}}function jy(t){return(0,Jc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Jc,td=p(()=>{"use strict";Jc=u(x())});var ot,Gy,Mt,Ky,rd=p(()=>{"use strict";ot=u(x()),Gy=u(R());_e();gt();Mt={textColor:ot.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ot.designSystemVariables.colorOnSurfaceHigh),fontSize:ot.FtCssVariableFactory.extend("--ft-checkbox-font-size","",T.fontSize),activeColor:ot.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ot.designSystemVariables.colorPrimary),checkColor:ot.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ot.designSystemVariables.colorOnPrimary),borderColor:ot.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ot.designSystemVariables.colorOnSurfaceMedium),disabledColor:ot.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ot.designSystemVariables.colorOnSurfaceDisabled),errorColor:ot.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ot.designSystemVariables.colorError)},Ky=Gy.css`
|
|
1191
1191
|
* {
|
|
1192
1192
|
box-sizing: border-box;
|
|
1193
1193
|
}
|
|
1194
1194
|
|
|
1195
1195
|
.ft-checkbox {
|
|
1196
1196
|
box-sizing: border-box;
|
|
1197
|
-
color: ${
|
|
1198
|
-
font-size: ${
|
|
1197
|
+
color: ${Mt.textColor};
|
|
1198
|
+
font-size: ${Mt.fontSize};
|
|
1199
1199
|
|
|
1200
1200
|
display: inline-flex;
|
|
1201
1201
|
align-items: center;
|
|
@@ -1203,7 +1203,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
.ft-checkbox--disabled {
|
|
1206
|
-
color: ${
|
|
1206
|
+
color: ${Mt.disabledColor};
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
input {
|
|
@@ -1227,26 +1227,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1227
1227
|
|
|
1228
1228
|
.ft-checkbox--box {
|
|
1229
1229
|
display: flex;
|
|
1230
|
-
border: 2px solid ${
|
|
1230
|
+
border: 2px solid ${Mt.borderColor};
|
|
1231
1231
|
border-radius: 2px;
|
|
1232
1232
|
|
|
1233
1233
|
width: 18px;
|
|
1234
1234
|
height: 18px;
|
|
1235
1235
|
|
|
1236
|
-
color: ${
|
|
1236
|
+
color: ${Mt.checkColor};
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
|
|
1240
1240
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1241
1241
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1242
|
-
border-color: ${
|
|
1243
|
-
background-color: ${
|
|
1242
|
+
border-color: ${Mt.activeColor};
|
|
1243
|
+
background-color: ${Mt.activeColor};
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1247
|
-
border-color: ${
|
|
1247
|
+
border-color: ${Mt.disabledColor};
|
|
1248
1248
|
background-color: transparent;
|
|
1249
|
-
color: ${
|
|
1249
|
+
color: ${Mt.disabledColor};
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
.ft-checkbox--checkmark {
|
|
@@ -1267,21 +1267,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
1269
|
.ft-checkbox.ft-checkbox--error {
|
|
1270
|
-
color: ${
|
|
1271
|
-
${(0,ot.setVariable)(S.color,
|
|
1270
|
+
color: ${Mt.errorColor};
|
|
1271
|
+
${(0,ot.setVariable)(S.color,Mt.errorColor)};
|
|
1272
1272
|
|
|
1273
1273
|
.ft-checkbox--box {
|
|
1274
|
-
border-color: ${
|
|
1274
|
+
border-color: ${Mt.errorColor};
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
1278
1278
|
.ft-checkbox--box {
|
|
1279
|
-
background-color: ${
|
|
1279
|
+
background-color: ${Mt.errorColor};
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
-
`});var
|
|
1284
|
-
<label class="${(0,
|
|
1283
|
+
`});var qy,$r,Zy,Qy,Co,pt,od=p(()=>{"use strict";qy=u(R()),$r=u(W()),Zy=u(x()),Qy=u(Ot());gt();_e();rd();Co=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pt=class extends Zy.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return qy.html`
|
|
1284
|
+
<label class="${(0,Qy.classMap)(e)}" for="checkbox-input" part="checkbox-label">
|
|
1285
1285
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
1286
1286
|
<ft-ripple part="checkbox-ripple"
|
|
1287
1287
|
?disabled=${this.disabled}
|
|
@@ -1307,8 +1307,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1307
1307
|
<slot></slot>
|
|
1308
1308
|
</ft-typography>
|
|
1309
1309
|
</label>
|
|
1310
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};pt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};pt.styles=
|
|
1311
|
-
<div class="${(0,
|
|
1310
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};pt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};pt.styles=Ky;Co([(0,$r.property)()],pt.prototype,"name",void 0);Co([(0,$r.property)({type:Boolean,reflect:!0})],pt.prototype,"checked",void 0);Co([(0,$r.property)({type:Boolean})],pt.prototype,"indeterminate",void 0);Co([(0,$r.property)({type:Boolean})],pt.prototype,"disabled",void 0);Co([(0,$r.property)({type:Boolean})],pt.prototype,"error",void 0);Co([(0,$r.query)(".ft-checkbox")],pt.prototype,"container",void 0);Co([(0,$r.query)("ft-ripple")],pt.prototype,"ripple",void 0);Co([(0,$r.query)("input")],pt.prototype,"input",void 0)});var Yy=p(()=>{"use strict"});var Xy,Jy=p(()=>{"use strict";Xy=u(x());od();od();rd();Yy();(0,Xy.customElement)("ft-checkbox")(pt)});var eb,Nr,tb,rb,Oo,hs,yt,ms=p(()=>{"use strict";eb=u(R()),Nr=u(W()),tb=u(x()),rb=u(Ot());gt();_e();Oo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hs=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},yt=class extends tb.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return eb.html`
|
|
1311
|
+
<div class="${(0,rb.classMap)(this.radioClasses)}"
|
|
1312
1312
|
@click=${this.onClick}>
|
|
1313
1313
|
<div class="ft-radio--box-container">
|
|
1314
1314
|
<ft-ripple
|
|
@@ -1333,7 +1333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1333
1333
|
</ft-typography>
|
|
1334
1334
|
</label>
|
|
1335
1335
|
</div>
|
|
1336
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1336
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new hs(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new hs(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};yt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};Oo([(0,Nr.property)()],yt.prototype,"value",void 0);Oo([(0,Nr.property)()],yt.prototype,"name",void 0);Oo([(0,Nr.property)({type:Boolean,reflect:!0})],yt.prototype,"checked",void 0);Oo([(0,Nr.property)({attribute:"aria-checked",reflect:!0})],yt.prototype,"ariaChecked",void 0);Oo([(0,Nr.property)({type:Boolean})],yt.prototype,"disabled",void 0);Oo([(0,Nr.query)(".ft-radio")],yt.prototype,"container",void 0);Oo([(0,Nr.query)("ft-ripple")],yt.prototype,"ripple",void 0);Oo([(0,Nr.query)("input")],yt.prototype,"input",void 0)});var ob,kt,wo,ib,id=p(()=>{"use strict";ob=u(R()),kt=u(x());_e();wo={textColor:kt.FtCssVariableFactory.extend("--ft-radio-text-color","",kt.designSystemVariables.colorOnSurfaceHigh),fontSize:kt.FtCssVariableFactory.extend("--ft-radio-font-size","",T.fontSize),colorPrimary:kt.FtCssVariableFactory.external(kt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:kt.FtCssVariableFactory.external(kt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:kt.FtCssVariableFactory.extend("--ft-radio-border-color","",kt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:kt.FtCssVariableFactory.external(kt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ib=ob.css`
|
|
1337
1337
|
* {
|
|
1338
1338
|
box-sizing: border-box;
|
|
1339
1339
|
}
|
|
@@ -1415,14 +1415,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
.ft-radio:has(:focus-visible) {
|
|
1418
|
-
outline: 2px solid ${
|
|
1418
|
+
outline: 2px solid ${kt.designSystemVariables.colorPrimary};
|
|
1419
1419
|
outline-offset: -2px;
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
.ft-radio ft-typography {
|
|
1423
1423
|
padding-right: 2px;
|
|
1424
1424
|
}
|
|
1425
|
-
`});var Xr,
|
|
1425
|
+
`});var Xr,nd=p(()=>{"use strict";ms();id();Ei();ms();Xr=class extends yt{get typographyVariant(){return xe.body2}};Xr.styles=ib});var nb,V,ab,ad=p(()=>{"use strict";nb=u(R()),V=u(x());gt();ab=nb.css`
|
|
1426
1426
|
* {
|
|
1427
1427
|
box-sizing: border-box;
|
|
1428
1428
|
--input-size: calc(${V.radio.circleSize} + 2 * (${V.radio.focusOutlineOffset} + ${V.radio.focusOutlineWidth}));
|
|
@@ -1530,12 +1530,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1530
1530
|
.ft-radio ft-typography {
|
|
1531
1531
|
padding-right: 2px;
|
|
1532
1532
|
}
|
|
1533
|
-
`});var
|
|
1533
|
+
`});var gs,Pn,sd=p(()=>{"use strict";ms();Ei();gs=u(x());ad();oe();Pn=class extends(0,gs.toFtdsBase)(yt){constructor(){super(...arguments),this.family=no.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return xe.body2medium}};Pn.styles=[gs.safariEllipsisFix,ab]});var sb,Eo,lb,_n,or,ys=p(()=>{"use strict";sb=u(x()),Eo=u(W()),lb=u(R()),_n=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},or=class extends sb.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)},this.onFocusOut=e=>{}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return lb.html`
|
|
1534
1534
|
<slot @slotchange=${this.onSlotChange}
|
|
1535
1535
|
@change=${this.onChange}
|
|
1536
1536
|
@keydown=${this.onKeyDown}
|
|
1537
1537
|
></slot>
|
|
1538
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};or.elementDefinitions={};
|
|
1538
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};or.elementDefinitions={};_n([(0,Eo.property)()],or.prototype,"name",void 0);_n([(0,Eo.property)({reflect:!0,attribute:"role"})],or.prototype,"role",void 0);_n([(0,Eo.property)({reflect:!0,attribute:"aria-labelledby"})],or.prototype,"ariaLabelledBy",void 0);_n([(0,Eo.queryAssignedElements)()],or.prototype,"assignedElements",void 0);_n([(0,Eo.state)()],or.prototype,"currentSelectedIndex",void 0)});var cb,db,ld=p(()=>{"use strict";cb=u(R()),db=cb.css`
|
|
1539
1539
|
:host {
|
|
1540
1540
|
display: block;
|
|
1541
1541
|
}
|
|
@@ -1543,17 +1543,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1543
1543
|
:host(:focus-visible) {
|
|
1544
1544
|
outline: none;
|
|
1545
1545
|
}
|
|
1546
|
-
`});var ni,
|
|
1546
|
+
`});var ni,cd=p(()=>{"use strict";ys();ld();ys();ni=class extends or{};ni.styles=db});var pb,ub,fb,dd=p(()=>{"use strict";pb=u(R()),ub=u(x()),fb=pb.css`
|
|
1547
1547
|
:host {
|
|
1548
1548
|
display: flex;
|
|
1549
1549
|
flex-direction: column;
|
|
1550
|
-
gap: ${
|
|
1550
|
+
gap: ${ub.radio.verticalGap}
|
|
1551
1551
|
}
|
|
1552
1552
|
|
|
1553
1553
|
:host(:focus-visible) {
|
|
1554
1554
|
outline: none;
|
|
1555
1555
|
}
|
|
1556
|
-
`});var
|
|
1556
|
+
`});var bs,Bn,pd=p(()=>{"use strict";ys();bs=u(x());dd();oe();Bn=class extends(0,bs.toFtdsBase)(or){constructor(){super(...arguments),this.family=no.brand}};Bn.styles=[bs.safariEllipsisFix,fb]});var Dn,ud=p(()=>{"use strict";Dn=u(x());nd();sd();cd();pd();nd();id();sd();ad();cd();ld();pd();dd();(0,Dn.customElement)("ft-radio")(Xr);(0,Dn.customElement)("ftds-radio")(Pn);(0,Dn.customElement)("ft-radio-group")(ni);(0,Dn.customElement)("ftds-radio-group")(Bn)});var hb,ge,Fn,mb,fd=p(()=>{"use strict";hb=u(R()),ge=u(x());Mo();qt();Fn={buttonMoreColor:ge.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ge.designSystemVariables.colorOnSurface),borderRadiusM:ge.FtCssVariableFactory.external(ge.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ge.FtCssVariableFactory.external(We.fontFamily,"Body2 typography"),fontSize:ge.FtCssVariableFactory.external(We.fontSize,"Body2 typography"),fontWeight:ge.FtCssVariableFactory.external(We.fontWeight,"Body2 typography"),letterSpacing:ge.FtCssVariableFactory.external(We.letterSpacing,"Body2 typography"),lineHeight:ge.FtCssVariableFactory.external(We.lineHeight,"Body2 typography"),textTransform:ge.FtCssVariableFactory.external(We.textTransform,"Body2 typography")},mb=hb.css`
|
|
1557
1557
|
.ft-filter-level--container {
|
|
1558
1558
|
display: flex;
|
|
1559
1559
|
flex-direction: column;
|
|
@@ -1623,9 +1623,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1623
1623
|
margin: 10px 0;
|
|
1624
1624
|
color: ${Fn.colorOnSurfaceMedium};
|
|
1625
1625
|
}
|
|
1626
|
-
`});var
|
|
1626
|
+
`});var zt,Ge,gb,ir,it,Ne,yb=p(()=>{"use strict";zt=u(R()),Ge=u(W()),gb=u(Yr()),ir=u(x());Qt();_e();gt();Zt();Jy();ud();fd();mr();it=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ne=class extends Rt((0,ir.withAriaNotification)(ir.FtLitElement)){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ir.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return zt.html`
|
|
1627
1627
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1628
|
-
${this.parent==null?null:
|
|
1628
|
+
${this.parent==null?null:zt.html`
|
|
1629
1629
|
<div tabindex="0"
|
|
1630
1630
|
part="controls go-back"
|
|
1631
1631
|
class="ft-filter-level--go-back"
|
|
@@ -1639,15 +1639,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1639
1639
|
<ft-typography variant="${xe.body2}">${this.parent.label}</ft-typography>
|
|
1640
1640
|
</div>
|
|
1641
1641
|
`}
|
|
1642
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
1642
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?zt.html`
|
|
1643
1643
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${xe.body2}">
|
|
1644
1644
|
${this.noValuesLabel}
|
|
1645
1645
|
</ft-typography>
|
|
1646
|
-
`:
|
|
1647
|
-
${(0,
|
|
1646
|
+
`:zt.nothing}
|
|
1647
|
+
${(0,gb.repeat)(e,r=>r.value,r=>{var i;return zt.html`
|
|
1648
1648
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1649
1649
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1650
|
-
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?
|
|
1650
|
+
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?zt.nothing:zt.html`
|
|
1651
1651
|
<ft-button icon="thin_arrow_right"
|
|
1652
1652
|
part="controls navigate-hierarchy"
|
|
1653
1653
|
aria-label="Expand node"
|
|
@@ -1658,7 +1658,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1658
1658
|
`}
|
|
1659
1659
|
</div>
|
|
1660
1660
|
`})}
|
|
1661
|
-
${e.length<this.filteredOptions.length?
|
|
1661
|
+
${e.length<this.filteredOptions.length?zt.html`
|
|
1662
1662
|
<ft-button
|
|
1663
1663
|
class="ft-filter-level--display-more"
|
|
1664
1664
|
icon="thin_arrow"
|
|
@@ -1667,9 +1667,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1667
1667
|
@click=${this.displayMore}>
|
|
1668
1668
|
${this.moreValuesButtonLabel}
|
|
1669
1669
|
</ft-button>
|
|
1670
|
-
`:
|
|
1670
|
+
`:zt.nothing}
|
|
1671
1671
|
</div>
|
|
1672
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
1672
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return zt.html`
|
|
1673
1673
|
<ft-checkbox name="${this.filterId}"
|
|
1674
1674
|
part="multivalued-option option"
|
|
1675
1675
|
data-value="${e.value}"
|
|
@@ -1679,7 +1679,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1679
1679
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1680
1680
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1681
1681
|
</ft-checkbox>
|
|
1682
|
-
`}buildMonoValuedOption(e){return
|
|
1682
|
+
`}buildMonoValuedOption(e){return zt.html`
|
|
1683
1683
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1684
1684
|
part="monovalued-option option"
|
|
1685
1685
|
data-value="${e.value}"
|
|
@@ -1690,7 +1690,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1690
1690
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1691
1691
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1692
1692
|
</ft-radio>
|
|
1693
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};Ne.elementDefinitions={"ft-button":$e,"ft-ripple":G,"ft-typography":Z,"ft-checkbox":pt,"ft-icon":he,"ft-radio":Xr};Ne.styles=
|
|
1693
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};Ne.elementDefinitions={"ft-button":$e,"ft-ripple":G,"ft-typography":Z,"ft-checkbox":pt,"ft-icon":he,"ft-radio":Xr};Ne.styles=mb;it([(0,Ge.property)({type:String})],Ne.prototype,"filterId",void 0);it([(0,Ge.property)({type:Object})],Ne.prototype,"parent",void 0);it([(0,Ge.property)({type:Array,hasChanged:ir.hasChanged})],Ne.prototype,"options",void 0);it([(0,Ge.property)({type:Boolean})],Ne.prototype,"multivalued",void 0);it([(0,Ge.property)({type:Boolean})],Ne.prototype,"disabled",void 0);it([(0,Ge.property)({type:Boolean})],Ne.prototype,"hideSelectedOptions",void 0);it([(0,Ge.property)({type:Boolean})],Ne.prototype,"displayCount",void 0);it([(0,Ge.property)({type:Boolean})],Ne.prototype,"preventNavigation",void 0);it([(0,Ge.property)({type:String})],Ne.prototype,"filter",void 0);it([(0,Ge.property)({type:String})],Ne.prototype,"moreValuesButtonLabel",void 0);it([(0,Ge.property)({type:String})],Ne.prototype,"noValuesLabel",void 0);it([(0,Ge.property)()],Ne.prototype,"filteredOptionsNumberAriaNotification",void 0);it([(0,ir.numberProperty)()],Ne.prototype,"displayedValuesLimit",void 0);it([(0,Ge.query)(".ft-filter-level--container")],Ne.prototype,"container",void 0);it([(0,Ge.state)()],Ne.prototype,"radios",void 0);it([(0,Ge.state)()],Ne.prototype,"displayedPages",void 0);it([(0,Ge.state)()],Ne.prototype,"filteredOptions",void 0)});var bb,gr,bt,vb,vs=p(()=>{"use strict";bb=u(R()),gr=u(x());Mo();bt={buttonsColor:gr.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",gr.designSystemVariables.colorPrimary),buttonsZIndex:gr.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:gr.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:gr.FtCssVariableFactory.external(gr.designSystemVariables.colorSurface,"Design system")},vb=bb.css`
|
|
1694
1694
|
.ft-snap-scroll {
|
|
1695
1695
|
box-sizing: border-box;
|
|
1696
1696
|
position: relative;
|
|
@@ -1815,7 +1815,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1815
1815
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1816
1816
|
background-color: ${bt.colorSurface};
|
|
1817
1817
|
}
|
|
1818
|
-
`});var
|
|
1818
|
+
`});var xb,Ut,ai,Sb,Pr,hd,ze,md=p(()=>{"use strict";xb=u(R()),Ut=u(W()),ai=u(x());Qt();Sb=u(Ot());vs();Pr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hd=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ze=class extends ai.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ai.Debouncer(200),this.updateScrollDebouncer=new ai.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Sb.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ai.isSafari}),r=this.controls&&this.withScroll;return xb.html`
|
|
1819
1819
|
<div part="container" class="${e}">
|
|
1820
1820
|
<ft-button
|
|
1821
1821
|
class="ft-snap-scroll--previous"
|
|
@@ -1839,7 +1839,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1839
1839
|
@click=${this.next}
|
|
1840
1840
|
></ft-button>
|
|
1841
1841
|
</div>
|
|
1842
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1842
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new hd(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ze.elementDefinitions={"ft-button":$e};ze.styles=vb;Pr([(0,Ut.property)({type:Boolean})],ze.prototype,"horizontal",void 0);Pr([(0,Ut.property)({type:Boolean})],ze.prototype,"hideScrollbar",void 0);Pr([(0,Ut.property)({type:Boolean})],ze.prototype,"controls",void 0);Pr([(0,Ut.property)({type:Boolean})],ze.prototype,"limitSize",void 0);Pr([(0,Ut.state)()],ze.prototype,"elements",void 0);Pr([(0,Ut.state)()],ze.prototype,"currentElement",void 0);Pr([(0,Ut.state)()],ze.prototype,"withScroll",void 0);Pr([(0,Ut.state)()],ze.prototype,"startReached",void 0);Pr([(0,Ut.state)()],ze.prototype,"endReached",void 0);Pr([(0,Ut.query)(".ft-snap-scroll--content")],ze.prototype,"contentSlot",void 0)});var Cb=p(()=>{"use strict"});var Ob,xs=p(()=>{"use strict";Ob=u(x());md();md();vs();Cb();(0,Ob.customElement)("ft-snap-scroll")(ze)});var wb,we,Tt,Eb,Ss=p(()=>{"use strict";wb=u(R()),we=u(x());qt();Mo();Tt={colorOutline:we.FtCssVariableFactory.external(we.designSystemVariables.colorOutline,"Design system"),colorOnSurface:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorSurface:we.FtCssVariableFactory.external(we.designSystemVariables.colorSurface,"Design system"),transitionDuration:we.FtCssVariableFactory.external(we.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:we.FtCssVariableFactory.external(we.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:we.FtCssVariableFactory.extend("--ft-filter-label-color","",we.designSystemVariables.colorOnSurface),labelFontSize:we.FtCssVariableFactory.extend("--ft-filter-label-font-size","",T.fontSize,"16px")},Eb=[Or,we.noTextInputDefaultClearButton,wb.css`
|
|
1843
1843
|
:host {
|
|
1844
1844
|
display: flex;
|
|
1845
1845
|
max-height: 100%;
|
|
@@ -1867,7 +1867,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1867
1867
|
.ft-filter--header ft-button {
|
|
1868
1868
|
flex-shrink: 0;
|
|
1869
1869
|
margin-left: auto;
|
|
1870
|
-
${(0,
|
|
1870
|
+
${(0,we.setVariable)(j.iconSize,"18px")};
|
|
1871
1871
|
}
|
|
1872
1872
|
|
|
1873
1873
|
.filter-label {
|
|
@@ -1879,10 +1879,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1879
1879
|
flex-shrink: 1;
|
|
1880
1880
|
flex-grow: 1;
|
|
1881
1881
|
word-break: break-word;
|
|
1882
|
-
color: ${
|
|
1883
|
-
font-size: ${
|
|
1884
|
-
${(0,
|
|
1885
|
-
${(0,
|
|
1882
|
+
color: ${Tt.labelColor};
|
|
1883
|
+
font-size: ${Tt.labelFontSize};
|
|
1884
|
+
${(0,we.setVariable)(T.lineHeight,"22px")};
|
|
1885
|
+
${(0,we.setVariable)(T.fontWeight,"bold")};
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
1888
1888
|
.ft-filter--filter {
|
|
@@ -1893,8 +1893,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1893
1893
|
padding: 0 10px;
|
|
1894
1894
|
overflow: hidden;
|
|
1895
1895
|
height: 32px;
|
|
1896
|
-
transition: height ${
|
|
1897
|
-
margin ${
|
|
1896
|
+
transition: height ${Tt.transitionDuration} ${Tt.transitionTimingFunction},
|
|
1897
|
+
margin ${Tt.transitionDuration} ${Tt.transitionTimingFunction};
|
|
1898
1898
|
transition-delay: 500ms;
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
@@ -1907,15 +1907,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1907
1907
|
display: block;
|
|
1908
1908
|
width: 100%;
|
|
1909
1909
|
border-radius: 4px;
|
|
1910
|
-
border: 1px solid ${
|
|
1910
|
+
border: 1px solid ${Tt.colorOutline};
|
|
1911
1911
|
padding: 4px;
|
|
1912
|
-
background-color: ${
|
|
1913
|
-
color: ${
|
|
1914
|
-
outline-color: ${
|
|
1912
|
+
background-color: ${Tt.colorSurface};
|
|
1913
|
+
color: ${Tt.colorOnSurface};
|
|
1914
|
+
outline-color: ${Tt.colorPrimary};
|
|
1915
1915
|
}
|
|
1916
1916
|
|
|
1917
1917
|
input::placeholder {
|
|
1918
|
-
color: ${
|
|
1918
|
+
color: ${Tt.colorOnSurfaceMedium};
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
1921
|
input:placeholder-shown {
|
|
@@ -1931,7 +1931,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
1933
|
.ft-filter--separator {
|
|
1934
|
-
border-top: 1px solid ${
|
|
1934
|
+
border-top: 1px solid ${Tt.colorOutline};
|
|
1935
1935
|
margin: 4px 10px;
|
|
1936
1936
|
}
|
|
1937
1937
|
|
|
@@ -1956,7 +1956,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1956
1956
|
slot:not([name]) {
|
|
1957
1957
|
display: none;
|
|
1958
1958
|
}
|
|
1959
|
-
`]});var si,ve,Ke,
|
|
1959
|
+
`]});var si,ve,Ke,Ee,gd,se,yd=p(()=>{"use strict";si=u(R()),ve=u(W()),Ke=u(x());_e();yb();Qt();xs();Ss();Ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},se=class extends Ke.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Ke.Debouncer(300),this.changeDebouncer=new Ke.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Ke.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Ke.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return si.html`
|
|
1960
1960
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1961
1961
|
part="container">
|
|
1962
1962
|
${!this.label&&!e?null:si.html`
|
|
@@ -2039,17 +2039,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2039
2039
|
noValuesLabel="${this.noValuesLabel}"
|
|
2040
2040
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
2041
2041
|
></ft-filter-level>
|
|
2042
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,Ke.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Ke.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Ke.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Ke.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new
|
|
2042
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,Ke.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Ke.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Ke.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Ke.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new gd(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};se.elementDefinitions={"ft-button":$e,"ft-filter-level":Ne,"ft-snap-scroll":ze,"ft-typography":Z};se.styles=Eb;Ee([(0,ve.property)({type:String})],se.prototype,"id",void 0);Ee([(0,ve.property)({type:String})],se.prototype,"label",void 0);Ee([(0,ve.property)({type:String})],se.prototype,"filterPlaceHolder",void 0);Ee([(0,ve.property)({type:String})],se.prototype,"clearButtonLabel",void 0);Ee([(0,ve.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);Ee([(0,ve.property)({type:String})],se.prototype,"noValuesLabel",void 0);Ee([(0,Ke.jsonProperty)([])],se.prototype,"options",void 0);Ee([(0,ve.property)({type:Boolean})],se.prototype,"multivalued",void 0);Ee([(0,ve.property)({type:Boolean})],se.prototype,"disabled",void 0);Ee([(0,ve.property)({type:Boolean})],se.prototype,"raiseSelectedOptions",void 0);Ee([(0,ve.property)({type:Boolean})],se.prototype,"displayCount",void 0);Ee([(0,Ke.numberProperty)()],se.prototype,"displayedValuesLimit",void 0);Ee([(0,Ke.jsonProperty)(void 0)],se.prototype,"filteredOptionsNumberAriaNotification",void 0);Ee([(0,ve.property)({type:Boolean})],se.prototype,"hideClearButton",void 0);Ee([(0,ve.query)(".ft-filter--slot")],se.prototype,"slotElement",void 0);Ee([(0,ve.query)(".ft-filter--container")],se.prototype,"container",void 0);Ee([(0,ve.query)(".ft-filter--values")],se.prototype,"valuesContainer",void 0);Ee([(0,ve.query)(".ft-filter--levels")],se.prototype,"levelsContainer",void 0);Ee([(0,ve.state)()],se.prototype,"lastLevelHasHiddenvalues",void 0);Ee([(0,ve.query)(".ft-filter--filter input")],se.prototype,"filterInput",void 0);Ee([(0,ve.queryAll)(".ft-filter--levels ft-filter-level")],se.prototype,"levels",void 0);Ee([(0,ve.state)()],se.prototype,"withScroll",void 0);Ee([(0,ve.state)()],se.prototype,"filter",void 0);Ee([(0,ve.state)()],se.prototype,"slideIn",void 0);Ee([(0,ve.state)()],se.prototype,"slideOut",void 0)});var Cs,li,Ab,Zi,Ht,bd=p(()=>{"use strict";Cs=u(x()),li=u(W()),Ab=u(R()),Zi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ht=class extends Cs.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Ab.html`
|
|
2043
2043
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
2044
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
2044
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ht.elementDefinitions={};Zi([(0,li.property)({type:String})],Ht.prototype,"label",void 0);Zi([(0,li.property)({type:Object,converter:t=>t})],Ht.prototype,"value",void 0);Zi([(0,li.property)({type:Boolean,reflect:!0})],Ht.prototype,"selected",void 0);Zi([(0,li.property)({type:Object})],Ht.prototype,"subOptions",void 0);Zi([(0,Cs.jsonProperty)({})],Ht.prototype,"renderOption",void 0);Zi([(0,li.query)(".ft-filter-option--slot")],Ht.prototype,"slotElement",void 0)});var Rb=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var vd,Ib=p(()=>{"use strict";vd=u(x());yd();bd();fd();yd();Ss();Rb();bd();Lb();(0,vd.customElement)("ft-filter")(se);(0,vd.customElement)("ft-filter-option")(Ht)});var kb,Tb,xd=p(()=>{"use strict";kb=u(R()),Tb=kb.css`
|
|
2045
2045
|
.ft-accordion {
|
|
2046
2046
|
box-sizing: border-box;
|
|
2047
2047
|
}
|
|
2048
|
-
`});var
|
|
2048
|
+
`});var Nb,Os,Pb,$b,_r,Sd=p(()=>{"use strict";Nb=u(R()),Os=u(W()),Pb=u(x());xd();$b=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_r=class extends Pb.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Nb.html`
|
|
2049
2049
|
<div class="ft-accordion">
|
|
2050
2050
|
<slot @activated=${this.onChange}></slot>
|
|
2051
2051
|
</div>
|
|
2052
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};
|
|
2052
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};_r.elementDefinitions={};_r.styles=Tb;$b([(0,Os.property)({type:Boolean})],_r.prototype,"multi",void 0);$b([(0,Os.query)("slot")],_r.prototype,"content",void 0)});var _b,di,ci,Bb,Cd=p(()=>{"use strict";_b=u(R()),di=u(x()),ci={horizontalSpacing:di.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:di.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:di.FtCssVariableFactory.external(di.designSystemVariables.colorOutline,"Design system"),backgroundColor:di.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Bb=_b.css`
|
|
2053
2053
|
.ft-accordion-item {
|
|
2054
2054
|
display: flex;
|
|
2055
2055
|
flex-direction: column;
|
|
@@ -2095,7 +2095,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2095
2095
|
.ft-accordion-item--separator {
|
|
2096
2096
|
border-bottom: 1px solid ${ci.colorOutline};
|
|
2097
2097
|
}
|
|
2098
|
-
`});var Mn,zn,
|
|
2098
|
+
`});var Mn,zn,Db,ws,nr,Od=p(()=>{"use strict";Mn=u(R()),zn=u(W()),Db=u(x());gt();_e();Zt();Cd();ws=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nr=class extends Db.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Mn.html`
|
|
2099
2099
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
2100
2100
|
<div class="ft-accordion-item--toggle"
|
|
2101
2101
|
part="toggle"
|
|
@@ -2125,7 +2125,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2125
2125
|
</div>
|
|
2126
2126
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
2127
2127
|
</div>
|
|
2128
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};nr.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};nr.styles=
|
|
2128
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};nr.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};nr.styles=Bb;ws([(0,zn.property)()],nr.prototype,"icon",void 0);ws([(0,zn.property)()],nr.prototype,"iconVariant",void 0);ws([(0,zn.property)()],nr.prototype,"label",void 0);ws([(0,zn.property)({type:Boolean,reflect:!0})],nr.prototype,"active",void 0)});var Fb=p(()=>{"use strict"});var Mb=p(()=>{"use strict"});var wd,zb=p(()=>{"use strict";wd=u(x());Sd();Od();Sd();xd();Fb();Od();Cd();Mb();(0,wd.customElement)("ft-accordion")(_r);(0,wd.customElement)("ft-accordion-item")(nr)});var Un,Q,Ub,nt,Hb,Ed,Wb,Vb,Ad=p(()=>{"use strict";Un=u(R()),Q=u(x());Ur();qt();Fo();Qt();Ub=Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnSurface),nt={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorSurface),color:Ub,fontSize:Q.FtCssVariableFactory.extend("--ft-chip-font-size","",We.fontSize),fontWeight:Q.FtCssVariableFactory.extend("--ft-chip-font-weight","",We.fontWeight),iconSize:Q.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:Q.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Ub),horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:Q.FtCssVariableFactory.extend("--ft-chip-border-color","",Q.designSystemVariables.colorOutline),opacityDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOpacityDisabled,"Design system")},Hb=Q.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",Q.FtCssVariableFactory.extend("--ft-chip-color","",Q.designSystemVariables.colorOnPrimary)),Ed={backgroundColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",Q.FtCssVariableFactory.extend("--ft-chip-background-color","",Q.designSystemVariables.colorPrimary)),color:Hb,rippleColor:Q.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Hb)},Wb={horizontalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:Q.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Vb=[Q.noTextSelect,Un.css`
|
|
2129
2129
|
:host {
|
|
2130
2130
|
display: inline-block;
|
|
2131
2131
|
max-width: 100%;
|
|
@@ -2165,8 +2165,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2165
2165
|
|
|
2166
2166
|
.ft-chip--dense {
|
|
2167
2167
|
--chip-internal-icon-padding: 3px;
|
|
2168
|
-
--chip-internal-vertical-padding: ${
|
|
2169
|
-
--chip-internal-horizontal-padding: ${
|
|
2168
|
+
--chip-internal-vertical-padding: ${Wb.verticalPadding};
|
|
2169
|
+
--chip-internal-horizontal-padding: ${Wb.horizontalPadding};
|
|
2170
2170
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
@@ -2184,9 +2184,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2184
2184
|
.ft-chip--highlighted {
|
|
2185
2185
|
border: none;
|
|
2186
2186
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
2187
|
-
background-color: ${
|
|
2188
|
-
${(0,Q.setVariable)(S.color,
|
|
2189
|
-
color: ${
|
|
2187
|
+
background-color: ${Ed.backgroundColor};
|
|
2188
|
+
${(0,Q.setVariable)(S.color,Ed.rippleColor)};
|
|
2189
|
+
color: ${Ed.color};
|
|
2190
2190
|
}
|
|
2191
2191
|
|
|
2192
2192
|
.ft-chip--clickable {
|
|
@@ -2265,8 +2265,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2265
2265
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2266
2266
|
order: -1;
|
|
2267
2267
|
}
|
|
2268
|
-
`]});var
|
|
2269
|
-
<div class="${(0,
|
|
2268
|
+
`]});var Es,ut,jb,Qi,$t,As,Pe,Rd=p(()=>{"use strict";Es=u(R()),ut=u(W()),jb=u(Ot()),Qi=u(x());gt();_e();Zt();Ad();Qt();$t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},As=class extends CustomEvent{constructor(){super("icon-click")}},Pe=class extends Qi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Qi.isSafari};return Es.html`
|
|
2269
|
+
<div class="${(0,jb.classMap)(e)}"
|
|
2270
2270
|
aria-label="${this.getLabel()}"
|
|
2271
2271
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
2272
2272
|
@keyup=${this.onKeyUp}
|
|
@@ -2277,7 +2277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2277
2277
|
</ft-typography>
|
|
2278
2278
|
${this.internalIcon?this.renderIcon():null}
|
|
2279
2279
|
</div>
|
|
2280
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
2280
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Es.html`
|
|
2281
2281
|
<ft-button round
|
|
2282
2282
|
class="ft-chip--icon-button"
|
|
2283
2283
|
@click=${this.onIconClick}
|
|
@@ -2288,11 +2288,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2288
2288
|
part="icon-button"
|
|
2289
2289
|
?hideTooltip=${this.hideIconTooltip}
|
|
2290
2290
|
></ft-button>
|
|
2291
|
-
`:
|
|
2291
|
+
`:Es.html`
|
|
2292
2292
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2293
2293
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
2294
2294
|
</div>
|
|
2295
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
2295
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new As))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new As))}getLabel(){return this.label||this.textContent}get textContent(){return(0,Qi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Pe.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he,"ft-button":$e};Pe.styles=Vb;$t([(0,ut.property)({type:Boolean})],Pe.prototype,"highlighted",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"removable",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"disabled",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"clickable",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"iconClickable",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"dense",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"multiLine",void 0);$t([(0,ut.property)()],Pe.prototype,"label",void 0);$t([(0,ut.property)()],Pe.prototype,"iconLabel",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"hideIconTooltip",void 0);$t([(0,ut.property)()],Pe.prototype,"icon",void 0);$t([(0,ut.property)()],Pe.prototype,"iconVariant",void 0);$t([(0,ut.property)({type:Boolean})],Pe.prototype,"trailingIcon",void 0);$t([(0,ut.query)("ft-typography slot")],Pe.prototype,"slottedContent",void 0)});var Gb,Rs,Kb,Ld=p(()=>{"use strict";Gb=u(R());oe();Rs=u(x());Zt();Qt();Kb=[Gb.css`
|
|
2296
2296
|
:host {
|
|
2297
2297
|
display: inline-block;
|
|
2298
2298
|
max-width: 100%;
|
|
@@ -2331,7 +2331,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2331
2331
|
border-radius: ${F.smallBorderRadius};
|
|
2332
2332
|
border-width: ${F.smallBorderWidth};
|
|
2333
2333
|
border-style: solid;
|
|
2334
|
-
${(0,
|
|
2334
|
+
${(0,Rs.setVariable)(Te.size,F.smallIconSize)}
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
2337
|
.ftds--size-small.ftds-chip--with-action {
|
|
@@ -2355,7 +2355,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2355
2355
|
top: -3px;
|
|
2356
2356
|
height: ${F.smallIconSize};
|
|
2357
2357
|
transform: scale(.75); /* Little trick to have a (even) bigger icon inside of the button */
|
|
2358
|
-
${
|
|
2358
|
+
${Nl.smallIconOnlyWidth.set("15px")};
|
|
2359
2359
|
}
|
|
2360
2360
|
|
|
2361
2361
|
.ftds--size-small .ftds-chip--remove-button::part(icon) {
|
|
@@ -2370,7 +2370,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2370
2370
|
border-width: ${F.mediumBorderWidth};
|
|
2371
2371
|
border-style: solid;
|
|
2372
2372
|
gap: ${F.mediumGap};
|
|
2373
|
-
${(0,
|
|
2373
|
+
${(0,Rs.setVariable)(Te.size,F.mediumIconSize)}
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
2376
|
.ftds--size-medium.ftds-chip--with-action {
|
|
@@ -2389,7 +2389,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2389
2389
|
border-width: ${F.largeBorderWidth};
|
|
2390
2390
|
border-style: solid;
|
|
2391
2391
|
gap: ${F.largeGap};
|
|
2392
|
-
${(0,
|
|
2392
|
+
${(0,Rs.setVariable)(Te.size,F.largeIconSize)}
|
|
2393
2393
|
}
|
|
2394
2394
|
|
|
2395
2395
|
.ftds--size-large.ftds-chip--with-action {
|
|
@@ -2459,8 +2459,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2459
2459
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2460
2460
|
color: ${F.errorIconColor};
|
|
2461
2461
|
}
|
|
2462
|
-
`]});var Ao,Ro,
|
|
2463
|
-
<div class="${(0,
|
|
2462
|
+
`]});var Ao,Ro,qb,Ls,Yi,Id,ar,kd=p(()=>{"use strict";Ao=u(R()),Ro=u(W()),qb=u(Ot()),Ls=u(x());_e();Zt();Ld();oe();Qt();Yi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Id=class extends CustomEvent{constructor(){super("remove")}},ar=class extends Ls.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Ao.html`
|
|
2463
|
+
<div class="${(0,qb.classMap)(e)}"
|
|
2464
2464
|
aria-label="${this.getLabel()}"
|
|
2465
2465
|
part="chip">
|
|
2466
2466
|
${this.renderIcon()}
|
|
@@ -2477,15 +2477,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2477
2477
|
<ftds-button round
|
|
2478
2478
|
class="ftds-chip--remove-button"
|
|
2479
2479
|
@click=${this.dispatchRemoveEvent}
|
|
2480
|
-
icon=${
|
|
2480
|
+
icon=${tt.X_MARK}
|
|
2481
2481
|
label=${this.removeButtonLabel}
|
|
2482
|
-
family=${
|
|
2482
|
+
family=${Ls.DesignSystemFamily.neutral}
|
|
2483
2483
|
size=${this.resolveButtonSize()}
|
|
2484
2484
|
part="icon-button"
|
|
2485
2485
|
></ftds-button>
|
|
2486
2486
|
`:this.withAction?Ao.html`
|
|
2487
2487
|
<slot name="action"></slot>
|
|
2488
|
-
`:Ao.nothing}resolveButtonSize(){switch(this.size){case mt.large:return mt.medium;case mt.medium:case mt.small:return mt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new
|
|
2488
|
+
`:Ao.nothing}resolveButtonSize(){switch(this.size){case mt.large:return mt.medium;case mt.medium:case mt.small:return mt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Id)}typographyVariant(){switch(this.size){case mt.large:return xe.body2medium;case mt.medium:case mt.small:return xe.caption1medium}}};ar.elementDefinitions={"ft-typography":Z,"ft-icon":he,"ftds-button":pr};ar.styles=Kb;Yi([(0,Ro.property)({type:Boolean})],ar.prototype,"withAction",void 0);Yi([(0,Ro.property)({type:Boolean})],ar.prototype,"removable",void 0);Yi([(0,Ro.property)()],ar.prototype,"removeButtonLabel",void 0);Yi([(0,Ro.property)()],ar.prototype,"label",void 0);Yi([(0,Ro.property)()],ar.prototype,"icon",void 0);Yi([(0,Ro.query)("ft-typography slot")],ar.prototype,"slottedContent",void 0)});var Zb=p(()=>{"use strict"});var Qb=p(()=>{"use strict"});var Td,$d=p(()=>{"use strict";Td=u(x());Rd();kd();Rd();Ad();Zb();kd();Ld();Qb();(0,Td.customElement)("ft-chip")(Pe);(0,Td.customElement)("ftds-chip")(ar)});function Is(t,e,r){return t?e(t):r?.(t)}var Yb=p(()=>{});var Nd=p(()=>{Yb()});var Xb,Ae,U,Jb,Xi=p(()=>{"use strict";Xb=u(R()),Ae=u(x());qt();U={fontSize:Ae.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ae.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ae.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ae.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ae.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ae.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ae.FtCssVariableFactory.extend("--ft-input-label-border-color","",Ae.designSystemVariables.colorOutline),textColor:Ae.FtCssVariableFactory.extend("--ft-input-label-text-color","",Ae.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Ae.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Ae.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:Ae.FtCssVariableFactory.extend("--ft-input-label-background-color","",Ae.designSystemVariables.colorSurface),borderRadius:Ae.FtCssVariableFactory.extend("--ft-input-label-border-radius","",Ae.designSystemVariables.borderRadiusS),colorError:Ae.FtCssVariableFactory.external(Ae.designSystemVariables.colorError,"Design system")},Jb=Xb.css`
|
|
2489
2489
|
.ft-input-label {
|
|
2490
2490
|
position: absolute;
|
|
2491
2491
|
inset: 0;
|
|
@@ -2536,8 +2536,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2536
2536
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2537
2537
|
max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2538
2538
|
text-overflow: ellipsis;
|
|
2539
|
-
${(0,
|
|
2540
|
-
${(0,
|
|
2539
|
+
${(0,Ae.setVariable)(qe.fontSize,U.fontSize)};
|
|
2540
|
+
${(0,Ae.setVariable)(qe.lineHeight,U.fontSize)};
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -2569,8 +2569,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2569
2569
|
}
|
|
2570
2570
|
|
|
2571
2571
|
.ft-input-label--raised .ft-input-label--text {
|
|
2572
|
-
${(0,
|
|
2573
|
-
${(0,
|
|
2572
|
+
${(0,Ae.setVariable)(qe.fontSize,U.raisedFontSize)};
|
|
2573
|
+
${(0,Ae.setVariable)(qe.lineHeight,U.raisedFontSize)};
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
2576
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -2607,16 +2607,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2607
2607
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2608
2608
|
border-top: none;
|
|
2609
2609
|
}
|
|
2610
|
-
`});var
|
|
2611
|
-
<div class="${(0,
|
|
2612
|
-
${
|
|
2610
|
+
`});var Pd,_d,tv,rv,ev,Jr,Bd=p(()=>{"use strict";Pd=u(R()),_d=u(W());Nd();tv=u(Ot()),rv=u(x()),ev=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jr=class extends rv.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Pd.html`
|
|
2611
|
+
<div class="${(0,tv.classMap)(this.inputLabelClasses)}">
|
|
2612
|
+
${Is(this.text,()=>Pd.html`
|
|
2613
2613
|
<div class="ft-input-label--text ft-typography--caption">
|
|
2614
2614
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
2615
2615
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
2616
2616
|
</div>
|
|
2617
2617
|
`)}
|
|
2618
2618
|
</div>
|
|
2619
|
-
`}};Jr.elementDefinitions={};
|
|
2619
|
+
`}};Jr.elementDefinitions={};ev([(0,_d.property)({type:String})],Jr.prototype,"text",void 0);ev([(0,_d.property)({type:Boolean})],Jr.prototype,"raised",void 0)});var ks,Dd,yr,Fd=p(()=>{"use strict";ks=u(W());qt();Xi();Bd();Dd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yr=class extends Jr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};yr.elementDefinitions={};yr.styles=[Or,Jb];Dd([(0,ks.property)({type:Boolean})],yr.prototype,"outlined",void 0);Dd([(0,ks.property)({type:Boolean})],yr.prototype,"error",void 0);Dd([(0,ks.property)({type:Boolean})],yr.prototype,"disabled",void 0)});var ov,Ue,ft,iv,Md=p(()=>{"use strict";ov=u(R());oe();qt();Xi();Ue=u(x()),ft={fontSize:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size","",mi.fontSize),fontSizeRaised:Ue.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",Do.fontSize),lineHeight:Ue.FtCssVariableFactory.extend("--ft-input-label-line-height","",Do.lineHeight),color:Ue.FtCssVariableFactory.extend("--ft-input-label-color","",Ue.semantic.contentGlobalSubtle),largeFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:Ue.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Ue.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Ue.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Ue.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},iv=[ov.css`
|
|
2620
2620
|
|
|
2621
2621
|
:root {
|
|
2622
2622
|
--field-height: ${ft.largeFieldHeight};
|
|
@@ -2698,7 +2698,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2698
2698
|
top: var(--input-content-vertical-padding);
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
|
-
`]});var
|
|
2701
|
+
`]});var nv,Hn,zd=p(()=>{"use strict";Bd();nv=u(x());Md();_e();Hn=class extends(0,nv.toFtdsBase)(Jr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Hn.styles=[Or,iv]});var av=p(()=>{"use strict"});var sv=p(()=>{"use strict"});var Ud,lv=p(()=>{"use strict";Ud=u(x());Fd();zd();Fd();Xi();av();zd();Md();sv();(0,Ud.customElement)("ft-input-label")(yr);(0,Ud.customElement)("ftds-input-label")(Hn)});var cv,K,Y,dv,Ts=p(()=>{"use strict";cv=u(R()),K=u(x());Xi();qt();Ur();Fo();Y={labelSize:K.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:K.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:K.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:K.FtCssVariableFactory.extend("--ft-select-selected-option-color","",K.designSystemVariables.colorOnSurface),helperColor:K.FtCssVariableFactory.extend("--ft-select-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),optionsColor:K.FtCssVariableFactory.extend("--ft-select-options-color","",K.designSystemVariables.colorOnSurface),optionsZIndex:K.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:K.FtCssVariableFactory.extend("--ft-select-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),elevation02:K.FtCssVariableFactory.external(K.designSystemVariables.elevation02,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},dv=cv.css`
|
|
2702
2702
|
*:focus {
|
|
2703
2703
|
outline: none;
|
|
2704
2704
|
}
|
|
@@ -2848,8 +2848,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2848
2848
|
.ft-select--in-error .ft-select--helper-text {
|
|
2849
2849
|
color: ${Y.colorError};
|
|
2850
2850
|
}
|
|
2851
|
-
`});var pi,ye,
|
|
2852
|
-
<div class="${(0,
|
|
2851
|
+
`});var pi,ye,Hd,pv,Lo,Ie,Br,de,Wd=p(()=>{"use strict";pi=u(R()),ye=u(W()),Hd=u(Ot()),pv=u(Yr());Nd();la();Lo=u(x());_e();lv();gt();Zt();Ts();Ie=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Br=class extends Lo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return pi.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Br.elementDefinitions={};Ie([(0,ye.property)({type:String})],Br.prototype,"label",void 0);Ie([(0,ye.property)({type:Object,converter:t=>t})],Br.prototype,"value",void 0);Ie([(0,ye.property)({type:Boolean,reflect:!0})],Br.prototype,"selected",void 0);de=class t extends Lo.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,f=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return pi.html`
|
|
2852
|
+
<div class="${(0,Hd.classMap)(h)}" part="container">
|
|
2853
2853
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2854
2854
|
<ft-input-label text="${this.label}"
|
|
2855
2855
|
part="label"
|
|
@@ -2865,7 +2865,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2865
2865
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2866
2866
|
@keydown=${this.onMainPanelKeyDown}
|
|
2867
2867
|
aria-label="${Go(this.ariaLabel)}"
|
|
2868
|
-
aria-labelledby="${
|
|
2868
|
+
aria-labelledby="${Is(!this.ariaLabel,()=>"label")}"
|
|
2869
2869
|
aria-haspopup="listbox"
|
|
2870
2870
|
aria-expanded="${s}"
|
|
2871
2871
|
aria-activedescendant="${Go(this.getOptionId(this.selectedOption))}"
|
|
@@ -2874,13 +2874,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2874
2874
|
<ft-typography variant="${xe.body1}" class="ft-select--selected-option">
|
|
2875
2875
|
${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:""}
|
|
2876
2876
|
</ft-typography>
|
|
2877
|
-
<ft-icon aria-hidden="true" .value=${s?
|
|
2877
|
+
<ft-icon aria-hidden="true" .value=${s?tt.THIN_ARROW_UP:tt.THIN_ARROW}></ft-icon>
|
|
2878
2878
|
</div>
|
|
2879
2879
|
<div class="ft-select--options"
|
|
2880
2880
|
part="options"
|
|
2881
2881
|
@keydown=${this.onOptionsKeyDown}
|
|
2882
2882
|
role="listbox">
|
|
2883
|
-
${(0,
|
|
2883
|
+
${(0,pv.repeat)(this.options,y=>y.value,(y,g)=>this.renderOption(y,g))}
|
|
2884
2884
|
</div>
|
|
2885
2885
|
</div>
|
|
2886
2886
|
<slot name="helper" part="helper">
|
|
@@ -2893,7 +2893,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2893
2893
|
@option-change=${this.updateOptionsFromSlot}
|
|
2894
2894
|
></slot>
|
|
2895
2895
|
`}renderOption(e,r){let i=this.selectedOption===e;return pi.html`
|
|
2896
|
-
<div class="${(0,
|
|
2896
|
+
<div class="${(0,Hd.classMap)({"ft-select--option":!0,"ft-select--option-selected":i,"ft-typography--body2":!0})}"
|
|
2897
2897
|
part="option"
|
|
2898
2898
|
tabindex="0"
|
|
2899
2899
|
aria-label="${e.label}"
|
|
@@ -2904,7 +2904,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2904
2904
|
<ft-ripple ?primary=${i} ?activated=${i}></ft-ripple>
|
|
2905
2905
|
<span>${e.label}</span>
|
|
2906
2906
|
</div>
|
|
2907
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Lo.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Y.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var f;return((f=l.label)===null||f===void 0?void 0:f.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Lo.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}selectOption(e){var r,i;if(!(0,Lo.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};de.elementDefinitions={"ft-input-label":yr,"ft-typography":Z,"ft-ripple":G,"ft-icon":he};de.searchTimeoutMilliseconds=2e3;de.styles=[ao,Or,
|
|
2907
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Lo.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Y.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var f;return((f=l.label)===null||f===void 0?void 0:f.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Lo.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}selectOption(e){var r,i;if(!(0,Lo.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};de.elementDefinitions={"ft-input-label":yr,"ft-typography":Z,"ft-ripple":G,"ft-icon":he};de.searchTimeoutMilliseconds=2e3;de.styles=[ao,Or,dv];Ie([(0,ye.property)({type:String})],de.prototype,"label",void 0);Ie([(0,ye.property)({type:String})],de.prototype,"ariaLabel",void 0);Ie([(0,ye.property)({type:String})],de.prototype,"helper",void 0);Ie([(0,ye.property)({type:Boolean})],de.prototype,"outlined",void 0);Ie([(0,ye.property)({type:Boolean})],de.prototype,"disabled",void 0);Ie([(0,ye.property)({type:Boolean})],de.prototype,"error",void 0);Ie([(0,ye.property)({type:Boolean})],de.prototype,"fixedMenuPosition",void 0);Ie([(0,ye.property)({type:Array})],de.prototype,"options",void 0);Ie([(0,ye.state)()],de.prototype,"selectedOption",void 0);Ie([(0,ye.state)()],de.prototype,"optionsDisplayed",void 0);Ie([(0,ye.state)()],de.prototype,"focusOptions",void 0);Ie([(0,ye.state)()],de.prototype,"currentSearch",void 0);Ie([(0,ye.state)()],de.prototype,"lastSearchInputDate",void 0);Ie([(0,ye.query)(".ft-select")],de.prototype,"container",void 0);Ie([(0,ye.query)(".ft-select--options")],de.prototype,"optionsMenu",void 0);Ie([(0,ye.query)(".ft-select--input-panel")],de.prototype,"mainPanel",void 0);Ie([(0,ye.query)(".ft-select--option:first-child")],de.prototype,"firstOption",void 0);Ie([(0,ye.query)(".ft-select--option:focus")],de.prototype,"focusedOption",void 0);Ie([(0,ye.query)(".ft-select--option.ft-select--option-selected")],de.prototype,"selectedOptionElement",void 0);Ie([(0,ye.query)(".ft-select--option:last-child")],de.prototype,"lastOption",void 0);Ie([(0,ye.query)("slot:not([name])")],de.prototype,"optionsSlot",void 0)});var uv=p(()=>{"use strict"});var Vd,fv=p(()=>{"use strict";Vd=u(x());Wd();Wd();Ts();uv();(0,Vd.customElement)("ft-select")(de);(0,Vd.customElement)("ft-select-option")(Br)});var hv,br,at,mv,$s=p(()=>{"use strict";hv=u(R()),br=u(x()),at={display:br.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:br.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:br.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:br.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:br.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:br.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:br.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:br.FtCssVariableFactory.external(br.designSystemVariables.borderRadiusM,"Design system")},mv=hv.css`
|
|
2908
2908
|
:host {
|
|
2909
2909
|
width: ${at.width};
|
|
2910
2910
|
height: ${at.height};
|
|
@@ -2931,7 +2931,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2931
2931
|
background-position: calc(100vw + ${at.glareWidth}) 0, calc(${at.glareWidth} * -1) 0;
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
`});var z,
|
|
2934
|
+
`});var z,jd,B,gv,yv,Ns=p(()=>{"use strict";z=u(x()),jd=u(R());Mo();Xi();Ts();$s();Xn();vs();Ss();qt();B={height:z.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:z.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",z.designSystemVariables.borderRadiusS),mobileOpenPosition:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:z.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:z.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:z.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorSurface,"Design system"),colorOnSurface:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:z.FtCssVariableFactory.external(z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:z.FtCssVariableFactory.external(z.designSystemVariables.colorOutline,"Design system"),colorPrimary:z.FtCssVariableFactory.external(z.designSystemVariables.colorPrimary,"Design system"),elevation02:z.FtCssVariableFactory.external(z.designSystemVariables.elevation02,"Design system"),buttonColor:z.FtCssVariableFactory.external(j.color,"Button"),buttonRippleColor:z.FtCssVariableFactory.external(j.rippleColor,"Button"),activeItemBorderColor:z.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",z.designSystemVariables.colorPrimary)},gv=jd.css`
|
|
2935
2935
|
* {
|
|
2936
2936
|
box-sizing: border-box;
|
|
2937
2937
|
}
|
|
@@ -3096,7 +3096,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3096
3096
|
flex-direction: column;
|
|
3097
3097
|
max-height: 100%;
|
|
3098
3098
|
max-width: 100%;
|
|
3099
|
-
color: ${
|
|
3099
|
+
color: ${Tt.colorOnSurface};
|
|
3100
3100
|
}
|
|
3101
3101
|
|
|
3102
3102
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -3126,7 +3126,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3126
3126
|
${(0,z.setVariable)(T.fontWeight,"bold")};
|
|
3127
3127
|
}
|
|
3128
3128
|
|
|
3129
|
-
`,
|
|
3129
|
+
`,yv=jd.css`
|
|
3130
3130
|
.ft-search-bar--presets {
|
|
3131
3131
|
min-width: 200px;
|
|
3132
3132
|
}
|
|
@@ -3287,14 +3287,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3287
3287
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
3288
3288
|
margin: 0;
|
|
3289
3289
|
}
|
|
3290
|
-
`});var
|
|
3291
|
-
`}};Io.elementDefinitions={};Io.styles=
|
|
3290
|
+
`});var bv,vv,Io,Gd=p(()=>{"use strict";bv=u(R()),vv=u(x());$s();Io=class extends vv.FtLitElement{render(){return bv.html`
|
|
3291
|
+
`}};Io.elementDefinitions={};Io.styles=mv});var xv=p(()=>{"use strict"});var Sv,Cv=p(()=>{"use strict";Sv=u(x());Gd();Gd();$s();xv();(0,Sv.customElement)("ft-skeleton")(Io)});var Dr,Kd,Ji,Fr,Ps=p(()=>{"use strict";Dr=u(R()),Kd=u(Yr());Zt();Ji=u(x());Ns();gt();Fr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Ji.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Dr.html`
|
|
3292
3292
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
3293
3293
|
id="${this.listboxId}"
|
|
3294
3294
|
role="listbox"
|
|
3295
3295
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
3296
3296
|
part="suggestions-container">
|
|
3297
|
-
${(0,
|
|
3297
|
+
${(0,Kd.repeat)(e.slice(0,5),r=>r,(r,i)=>Dr.html`
|
|
3298
3298
|
<div part="suggestion-container"
|
|
3299
3299
|
class=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Dr.nothing}>
|
|
3300
3300
|
<a href="${this.getRequestWithQuery(r)}"
|
|
@@ -3323,7 +3323,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3323
3323
|
</ft-button>
|
|
3324
3324
|
</div>
|
|
3325
3325
|
`)}
|
|
3326
|
-
${(0,
|
|
3326
|
+
${(0,Kd.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Dr.html`
|
|
3327
3327
|
<div part="suggestion-container"
|
|
3328
3328
|
class=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Dr.nothing}>
|
|
3329
3329
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
@@ -3341,7 +3341,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3341
3341
|
</div>
|
|
3342
3342
|
`)}
|
|
3343
3343
|
</div>
|
|
3344
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ze.file_format:Ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?
|
|
3344
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ze.file_format:Ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?tt.BOOK:tt.ARTICLE;break;case"DOCUMENT":i=sa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=tt.TOPICS;break}return Dr.html`
|
|
3345
3345
|
<ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3346
3346
|
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Fr.styles=[Ji.wordWrap,Dr.css`
|
|
3347
3347
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
@@ -3433,7 +3433,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3433
3433
|
ft-ripple {
|
|
3434
3434
|
${(0,Ji.setVariable)(S.opacityContentOnSurfaceHover,S.opacityContentOnSurfaceSelected)}
|
|
3435
3435
|
}
|
|
3436
|
-
`]});var vt,
|
|
3436
|
+
`]});var vt,qd,_s,Mr,Bs=p(()=>{"use strict";vt=u(R()),qd=u(Yr());td();_s=u(x());xs();$d();Mr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return vt.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=vt.html`
|
|
3437
3437
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?vt.html`
|
|
3438
3438
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
3439
3439
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3444,7 +3444,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3444
3444
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
3445
3445
|
</ft-chip>
|
|
3446
3446
|
`:null}
|
|
3447
|
-
${(0,
|
|
3447
|
+
${(0,qd.repeat)(this.searchBar.facets,n=>n.key,n=>{let a=jy(n);return(0,qd.repeat)(a,s=>{let l=n.label+": "+Hy(s),f=n.key.replace(":","-"),h=vt.html`
|
|
3448
3448
|
<ft-chip
|
|
3449
3449
|
part="selected-filters selected-filter-${f}"
|
|
3450
3450
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3457,7 +3457,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3457
3457
|
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(y=>y!==s))}
|
|
3458
3458
|
data-key="${n.key}"
|
|
3459
3459
|
data-value="${s}">
|
|
3460
|
-
${
|
|
3460
|
+
${Uy(s)}
|
|
3461
3461
|
</ft-chip>
|
|
3462
3462
|
`;return r?h:vt.html`
|
|
3463
3463
|
<ft-tooltip inline text="${l}">
|
|
@@ -3513,8 +3513,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3513
3513
|
.ft-search-bar--selected-filters ft-chip {
|
|
3514
3514
|
flex-grow: 0;
|
|
3515
3515
|
}
|
|
3516
|
-
`});var vr,
|
|
3517
|
-
<div class="${(0,
|
|
3516
|
+
`});var vr,Ov,Wn,wv=p(()=>{"use strict";vr=u(R());Bs();Ps();Ov=u(Ot()),Wn=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Mr(e),this.suggestManager=i??new Fr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return vr.html`
|
|
3517
|
+
<div class="${(0,Ov.classMap)(r)}" part="container" tabindex="-1">
|
|
3518
3518
|
<div class="ft-search-bar" role="search">
|
|
3519
3519
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
3520
3520
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -3572,8 +3572,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3572
3572
|
</div>
|
|
3573
3573
|
`}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Wn.styles=vr.css`
|
|
3574
3574
|
|
|
3575
|
-
`});var xt,
|
|
3576
|
-
<div class="${(0,
|
|
3575
|
+
`});var xt,Ev,Av,Vn,Rv=p(()=>{"use strict";xt=u(R()),Ev=u(Yr());Bs();Ps();Av=u(Ot()),Vn=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Mr(e),this.suggestManager=i??new Fr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return xt.html`
|
|
3576
|
+
<div class="${(0,Av.classMap)(r)}" part="container" tabindex="-1">
|
|
3577
3577
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
3578
3578
|
${this.renderSearchBarLeftAction()}
|
|
3579
3579
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
@@ -3620,7 +3620,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3620
3620
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
3621
3621
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
3622
3622
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
3623
|
-
${(0,
|
|
3623
|
+
${(0,Ev.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>xt.html`
|
|
3624
3624
|
<ft-select-option .value=${e.lang}
|
|
3625
3625
|
label="${e.label}"
|
|
3626
3626
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -3651,7 +3651,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3651
3651
|
</div>
|
|
3652
3652
|
`}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Vn.styles=xt.css`
|
|
3653
3653
|
|
|
3654
|
-
`});var ce,ee,jn,be,X,
|
|
3654
|
+
`});var ce,ee,jn,be,X,Lv,Zd,dS,M,Qd=p(()=>{"use strict";ce=u(R()),ee=u(W()),jn=u(Yr()),be=u(x());zy();_e();td();Ib();Zt();zb();Qt();$d();fv();xs();na();gt();Ns();Cv();Ps();Bs();wv();Rv();ud();Ir();X=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");Lv={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Zd=class extends CustomEvent{constructor(e){super("change",{detail:e})}},dS=()=>{},M=class extends be.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new be.ParametrizedLabelResolver(Lv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new be.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=rr.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Fr(this),this.selectedFacetsManager=new Mr(this),this.desktopSearchBarManager=new Vn(this),this.mobileSearchBarManager=new Wn(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new be.Debouncer(10),this.updateLocalesDebouncer=new be.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new be.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===rr.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,be.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return ce.html`
|
|
3655
3655
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
3656
3656
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3657
3657
|
${this.renderLiveText()}
|
|
@@ -3679,7 +3679,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3679
3679
|
</div>
|
|
3680
3680
|
</ft-accordion-item>
|
|
3681
3681
|
`:null}
|
|
3682
|
-
${(0,jn.repeat)(this.facets,r=>r.key,r=>{let i=
|
|
3682
|
+
${(0,jn.repeat)(this.facets,r=>r.key,r=>{let i=ed(r),n=r.key.replace(":","-"),a=Vy(i);return r.rootNodes.length>0?ce.html`
|
|
3683
3683
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
3684
3684
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
3685
3685
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -3772,7 +3772,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3772
3772
|
${this.getContentLocaleRadioGroup()}
|
|
3773
3773
|
</div>
|
|
3774
3774
|
`:ce.nothing}
|
|
3775
|
-
${(0,jn.repeat)(this.facets,e=>e.key,e=>{let r=
|
|
3775
|
+
${(0,jn.repeat)(this.facets,e=>e.key,e=>{let r=ed(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return ce.html`
|
|
3776
3776
|
<ft-filter
|
|
3777
3777
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3778
3778
|
part="filters filter filter-${n}"
|
|
@@ -3791,14 +3791,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3791
3791
|
></ft-filter>
|
|
3792
3792
|
`})}
|
|
3793
3793
|
</ft-snap-scroll>
|
|
3794
|
-
`:ce.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new be.ParametrizedLabelResolver(
|
|
3794
|
+
`:ce.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new be.ParametrizedLabelResolver(Lv,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=f=>this.availableContentLocales.some(h=>h.lang==f);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(f=>{f.valueFilter&&(f.valueFilter.values=f.valueFilter.values.map(h=>fs(h)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(f=>f.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Zd(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(dS)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!be.isTouchScreen&&this.focusInput(),k.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),k.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,be.flatDeep)(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,be.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?ce.nothing:ce.html`
|
|
3795
3795
|
<div class="ft-search-bar--floating-panel"
|
|
3796
3796
|
id="ft-search-bar-floating-panel"
|
|
3797
3797
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3798
3798
|
part="floating-panel"
|
|
3799
3799
|
tabindex="-1">
|
|
3800
3800
|
${this.renderDesktopMenu()}
|
|
3801
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};M.elementDefinitions={"ft-accordion":
|
|
3801
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};M.elementDefinitions={"ft-accordion":_r,"ft-accordion-item":nr,"ft-button":$e,"ft-chip":Pe,"ft-filter":se,"ft-filter-option":Ht,"ft-icon":he,"ft-ripple":G,"ft-select":de,"ft-select-option":Br,"ft-size-watcher":Ft,"ft-skeleton":Io,"ft-snap-scroll":ze,"ft-tooltip":Be,"ft-typography":Z,"ft-radio-group":ni,"ft-radio":Xr};M.styles=[ao,be.noTextInputDefaultClearButton,gv,yv,Mr.styles,Fr.styles,be.screenReaderStyles];X([(0,ee.property)({type:Boolean})],M.prototype,"dense",void 0);X([(0,ee.property)()],M.prototype,"mode",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMobileMenuOpen",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"forceMenuOpen",void 0);X([(0,ee.property)()],M.prototype,"baseUrl",void 0);X([(0,ee.property)()],M.prototype,"apiIntegrationIdentifier",void 0);X([(0,ee.property)()],M.prototype,"contentLocale",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocales",void 0);X([(0,ee.state)()],M.prototype,"availableContentLocalesInitialized",void 0);X([(0,ee.property)()],M.prototype,"uiLocale",void 0);X([(0,be.jsonProperty)({})],M.prototype,"labels",void 0);X([(0,be.jsonProperty)([])],M.prototype,"displayedFilters",void 0);X([(0,be.jsonProperty)([])],M.prototype,"presets",void 0);X([(0,ee.property)({type:String,reflect:!0})],M.prototype,"selectedPreset",void 0);X([(0,be.jsonProperty)([])],M.prototype,"priors",void 0);X([(0,ee.property)()],M.prototype,"searchRequestSerializer",void 0);X([(0,ee.property)({type:Boolean})],M.prototype,"focusOnDisplay",void 0);X([(0,ee.state)()],M.prototype,"metadataFilters",void 0);X([(0,ee.state)()],M.prototype,"sizeCategory",void 0);X([(0,ee.state)()],M.prototype,"displayFacets",void 0);X([(0,ee.state)()],M.prototype,"mobileMenuOpen",void 0);X([(0,ee.state)()],M.prototype,"facets",void 0);X([(0,ee.state)()],M.prototype,"facetsInitialized",void 0);X([(0,ee.query)(".ft-search-bar--container")],M.prototype,"container",void 0);X([(0,ee.query)(".ft-search-bar--filters-opener")],M.prototype,"filtersOpener",void 0);X([(0,ee.query)(".ft-search-bar--floating-panel")],M.prototype,"floatingContainer",void 0);X([(0,ee.query)("ft-snap-scroll.ft-search-bar--filters-container")],M.prototype,"scrollingFiltersContainer",void 0);X([(0,ee.query)(".ft-search-bar--input")],M.prototype,"input",void 0);X([(0,ee.query)(".ft-search-bar--launch-search")],M.prototype,"launchSearchButton",void 0);X([(0,ee.state)()],M.prototype,"query",void 0);X([(0,ee.state)()],M.prototype,"suggestions",void 0);X([(0,ee.state)()],M.prototype,"recentSearches",void 0);X([(0,ee.state)()],M.prototype,"scrollToFacet",void 0);X([(0,ee.state)()],M.prototype,"api",void 0);X([(0,ee.state)()],M.prototype,"displaySuggestListbox",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestOptionId",void 0);X([(0,ee.state)()],M.prototype,"selectedSuggestRemoveRecent",void 0);X([(0,ee.state)()],M.prototype,"facetsLoaded",void 0)});var Iv=p(()=>{"use strict"});var kv,Tv=p(()=>{"use strict";kv=u(x());Qd();Qd();Ns();Iv();(0,kv.customElement)("ft-search-bar")(M)});var $v,Nv,Pv,_v=p(()=>{"use strict";$v=u(R());Sn();Nv=u(x());gt();Tv();Pv=$v.css`
|
|
3802
3802
|
* {
|
|
3803
3803
|
box-sizing: border-box;
|
|
3804
3804
|
}
|
|
@@ -3845,15 +3845,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3845
3845
|
}
|
|
3846
3846
|
|
|
3847
3847
|
ft-ripple {
|
|
3848
|
-
${(0,
|
|
3848
|
+
${(0,Nv.setVariable)(S.opacityContentOnSurfaceHover,S.opacityContentOnSurfaceSelected)}
|
|
3849
3849
|
}
|
|
3850
|
-
`});var
|
|
3850
|
+
`});var Bv,en,Dv,ko,Fv=p(()=>{"use strict";Bv=u(x()),en=u(R());_v();Dv=u(Yr());Zt();gt();_e();Ir();qc();ko=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Zr.get();return en.html`
|
|
3851
3851
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3852
3852
|
id="${this.listboxId}"
|
|
3853
3853
|
role="listbox"
|
|
3854
3854
|
aria-label="${So.messages.suggestionsLabel()}"
|
|
3855
3855
|
part="container">
|
|
3856
|
-
${(0,
|
|
3856
|
+
${(0,Dv.repeat)(this.ftSearchInput.suggestResults||[],r=>r.value,(r,i)=>this.renderSuggestion(i,r,e))}
|
|
3857
3857
|
</div>
|
|
3858
3858
|
`}renderSuggestion(e,r,i){let n=`suggestion-${e}`,a=en.html`
|
|
3859
3859
|
<ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
|
|
@@ -3881,10 +3881,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3881
3881
|
@click=${()=>this.onSuggestSelected(r.value)}>
|
|
3882
3882
|
${a}
|
|
3883
3883
|
</div>
|
|
3884
|
-
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Ze.file_format:Ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?
|
|
3884
|
+
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let r=e.type==="DOCUMENT"?Ze.file_format:Ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?tt.BOOK:tt.ARTICLE;break;case"DOCUMENT":i=sa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=tt.TOPICS;break}return en.html`
|
|
3885
3885
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
3886
|
-
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};ko.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};ko.styles=[
|
|
3887
|
-
<div class="${(0,
|
|
3886
|
+
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};ko.elementDefinitions={"ft-ripple":G,"ft-typography":Z,"ft-icon":he};ko.styles=[Bv.wordWrap,Pv]});var tn,sr,Vt,Mv,Wt,He,Yd=p(()=>{"use strict";tn=u(R()),sr=u(x());Sn();oi();mr();qc();Vt=u(W()),Mv=u(Ot());Fv();Qt();_e();Ir();Wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},He=class extends Rt(tr){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=So.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ko(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(So)}render(){var e,r,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Zr.get().serializeToCurrentPageIfPossible(a,s);return tn.html`
|
|
3887
|
+
<div class="${(0,Mv.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3888
3888
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3889
3889
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3890
3890
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -3930,59 +3930,59 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3930
3930
|
></ft-button>
|
|
3931
3931
|
</div>
|
|
3932
3932
|
</div>
|
|
3933
|
-
`}renderLiveText(){return this.shouldDisplaySuggestions?So.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,sr.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!sr.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};He.elementDefinitions={"ft-button":$e,...ko.elementDefinitions};He.styles=[ao,sr.noTextInputDefaultClearButton,
|
|
3934
|
-
`});var
|
|
3933
|
+
`}renderLiveText(){return this.shouldDisplaySuggestions?So.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let r=this.suggestions.selectedSuggestOption||this.launchSearchButton;r?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,sr.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!sr.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};He.elementDefinitions={"ft-button":$e,...ko.elementDefinitions};He.styles=[ao,sr.noTextInputDefaultClearButton,Dl,...ko.styles,sr.screenReaderStyles];Wt([(0,sr.redux)()],He.prototype,"request",void 0);Wt([(0,sr.redux)()],He.prototype,"liveQuery",void 0);Wt([(0,sr.redux)()],He.prototype,"suggestResults",void 0);Wt([(0,Vt.state)()],He.prototype,"forceCloseSuggestion",void 0);Wt([(0,Vt.state)()],He.prototype,"displaySuggestListbox",void 0);Wt([(0,Vt.state)()],He.prototype,"selectedSuggestOptionId",void 0);Wt([(0,Vt.property)()],He.prototype,"launchSearchPath",void 0);Wt([(0,Vt.property)()],He.prototype,"placeholder",void 0);Wt([(0,Vt.property)({type:Boolean})],He.prototype,"useCustomSearchPath",void 0);Wt([(0,Vt.property)({type:Boolean})],He.prototype,"triggerSearchOnClear",void 0);Wt([(0,Vt.property)({type:Boolean})],He.prototype,"focusOnDisplay",void 0);Wt([(0,Vt.query)(".ft-search-input--input")],He.prototype,"input",void 0);Wt([(0,Vt.query)('[part="launch-search-in-input"]')],He.prototype,"launchSearchButton",void 0)});var zv=p(()=>{"use strict"});var Hv={};Bo(Hv,{FtSearchInput:()=>He,FtSearchInputCssVariables:()=>me,styles:()=>Dl});var Uv,Wv=p(()=>{"use strict";Uv=u(x());Yd();Sn();zv();Yd();(0,Uv.customElement)("ft-search-input")(He)});var Vv,pS,Xd,Jd=p(()=>{"use strict";Vv=u(R()),pS={},Xd=Vv.css`
|
|
3934
|
+
`});var ep,jv=p(()=>{"use strict";mr();ep=kr.fromGwt("designedActionBlockAriaLabels")});var Ds,tp,Gv,eo,rp=p(()=>{"use strict";Ds=u(R()),tp=u(x());Jd();Qt();oi();mr();jv();Gv=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},eo=class extends Rt(tr){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(ep)}render(){return this.isLastPage?Ds.nothing:Ds.html`
|
|
3935
3935
|
<ft-button @click="${this.loadMore}">
|
|
3936
|
-
${
|
|
3936
|
+
${ep.messages.searchPageLoadMore()}
|
|
3937
3937
|
</ft-button>
|
|
3938
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};eo.elementDefinitions={"ft-button":$e};eo.styles=
|
|
3939
|
-
<ft-typography variant="body1" part="text">${(0,
|
|
3940
|
-
`:
|
|
3938
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};eo.elementDefinitions={"ft-button":$e};eo.styles=Xd;Gv([(0,tp.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],eo.prototype,"currentPage",void 0);Gv([(0,tp.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],eo.prototype,"isLastPage",void 0)});var Kv=p(()=>{"use strict"});var Zv={};Bo(Zv,{FtSearchLoadMoreButton:()=>eo,FtSearchLoadMoreButtonCssVariables:()=>pS,styles:()=>Xd});var qv,Qv=p(()=>{"use strict";qv=u(x());rp();Jd();Kv();rp();(0,qv.customElement)("ft-search-load-more-button")(eo)});var zs,Ms,Fs,ip,op,uS,rn,np=p(()=>{"use strict";zs=u(x());oi();Ms=u(W()),Fs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ip=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},op=Symbol("registerInterval"),uS=(0,zs.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[op]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[op]):this.dispatchEvent(new ip)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=op,Fs([(0,Ms.property)({attribute:!1})],r.prototype,"cluster",void 0),Fs([(0,Ms.property)({attribute:!1})],r.prototype,"result",void 0),Fs([(0,zs.numberProperty)()],r.prototype,"rank",void 0),Fs([(0,Ms.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),rn=class extends uS(tr){}});var ap,Yv,ui,sp=p(()=>{"use strict";ap=u(R());np();fa();Yv=u(aa());_e();ui=class extends rn{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?ap.html`
|
|
3939
|
+
<ft-typography variant="body1" part="text">${(0,Yv.unsafeHTML)(e)}</ft-typography>
|
|
3940
|
+
`:ap.html`
|
|
3941
3941
|
<style>
|
|
3942
3942
|
:host {
|
|
3943
3943
|
display: none !important;
|
|
3944
3944
|
}
|
|
3945
3945
|
</style>
|
|
3946
|
-
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};ui.elementDefinitions={"ft-typography":Z};ui.styles=
|
|
3947
|
-
<a href="${
|
|
3946
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};ui.elementDefinitions={"ft-typography":Z};ui.styles=Fl});var Xv=p(()=>{"use strict"});var ex={};Bo(ex,{FtSearchResultAbstract:()=>ui,FtSearchResultAbstractCssVariables:()=>ua,styles:()=>Fl});var Jv,lp=p(()=>{"use strict";Jv=u(x());sp();fa();Xv();sp();(0,Jv.customElement)("ft-search-result-abstract")(ui)});var Gn,tx,rx,fS,To,cp=p(()=>{"use strict";Gn=u(R()),tx=u(W());np();ma();_e();rx=u(aa());Fc();zc();fS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},To=class extends rn{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Gn.html`
|
|
3947
|
+
<a href="${is(this.result)}"
|
|
3948
3948
|
@click=${this.onResultClick}
|
|
3949
3949
|
@auxclick=${r=>this.onAuxClick(r)}
|
|
3950
3950
|
@contextmenu=${this.onContextMenu}
|
|
3951
|
-
target="${
|
|
3951
|
+
target="${my(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
3952
3952
|
part="link">
|
|
3953
3953
|
${this.renderTitle()}
|
|
3954
3954
|
</a>
|
|
3955
3955
|
`:Gn.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){return Gn.html`
|
|
3956
|
-
<ft-typography variant="title" part="text">${(0,
|
|
3957
|
-
`}onResultClick(){this.dispatchEvent(new Gi(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new Ki(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};To.elementDefinitions={"ft-typography":Z};To.styles=
|
|
3956
|
+
<ft-typography variant="title" part="text">${(0,rx.unsafeHTML)(this.selectTitle(this.result))}</ft-typography>
|
|
3957
|
+
`}onResultClick(){this.dispatchEvent(new Gi(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new Ki(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};To.elementDefinitions={"ft-typography":Z};To.styles=Ml;fS([(0,tx.property)({type:Boolean})],To.prototype,"withoutLink",void 0)});var ox=p(()=>{"use strict"});var nx={};Bo(nx,{FtSearchResultTitle:()=>To,FtSearchResultTitleCssVariables:()=>ha,styles:()=>Ml});var ix,dp=p(()=>{"use strict";ix=u(x());cp();ma();ox();cp();(0,ix.customElement)("ft-search-result-title")(To)});var ax,hS,pp,up=p(()=>{"use strict";ax=u(R()),hS={},pp=ax.css`
|
|
3958
3958
|
[part="no-results-message"] {
|
|
3959
3959
|
text-align: center;
|
|
3960
3960
|
padding: 12px;
|
|
3961
3961
|
}
|
|
3962
|
-
`});var
|
|
3962
|
+
`});var sx,lx,fp=p(()=>{"use strict";sx=u(R()),lx=sx.css`
|
|
3963
3963
|
a {
|
|
3964
3964
|
color: inherit;
|
|
3965
3965
|
text-decoration: inherit;
|
|
3966
3966
|
}
|
|
3967
|
-
`});var
|
|
3967
|
+
`});var Us,cx=p(()=>{"use strict";Us=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var dx,on,px,Hs,hp,zr,mp=p(()=>{"use strict";dx=u(R()),on=u(W()),px=u(x());fp();cx();Hs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},zr=class extends px.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Us(e=>this.onResultSelected(e))}render(){return dx.html`
|
|
3968
3968
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
3969
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new
|
|
3969
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new hp(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};zr.elementDefinitions={};zr.styles=lx;Hs([(0,on.property)({attribute:!1})],zr.prototype,"cluster",void 0);Hs([(0,on.property)({attribute:!1,type:Boolean})],zr.prototype,"openResultInNewTab",void 0);Hs([(0,on.state)()],zr.prototype,"result",void 0);Hs([(0,on.property)()],zr.prototype,"index",void 0)});var ux=p(()=>{"use strict"});var fx,hx=p(()=>{"use strict";fx=u(x());mp();fp();ux();mp();(0,fx.customElement)("ft-search-result-context")(zr)});var nn,mx,gp=p(()=>{"use strict";mr();nn=kr.build("searchResultsNumber"),mx={results:"{0} results","results[\\=1]":"1 result"}});var Ws,gx,Vs,$o,fi,jt,yp=p(()=>{"use strict";Ws=u(R()),gx=u(Yr()),Vs=u(W()),$o=u(x());up();oi();hx();dp();lp();mr();gp();fi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jt=class extends Rt(tr){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>Ws.html`
|
|
3970
3970
|
<ft-search-result-title></ft-search-result-title>
|
|
3971
3971
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3972
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(nn)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return
|
|
3972
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(nn)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return Ws.html`
|
|
3973
3973
|
<ft-typography part="no-results-message" variant="body1">${nn.messages.results(0)}</ft-typography>
|
|
3974
|
-
`;let e=this.buildClusters();return(0,
|
|
3974
|
+
`;let e=this.buildClusters();return(0,gx.repeat)(e,r=>r.id,(r,i)=>{var n;return Ws.html`
|
|
3975
3975
|
<ft-search-result-context .cluster=${r} index="${i}"
|
|
3976
3976
|
@ft-search-result-cluster-change=${a=>this.onClusterChange(r.id,a.detail)}>
|
|
3977
3977
|
${this.renderResult((n=this.selectedResultByCluster[r.id])!==null&&n!==void 0?n:r.entries[0],i)}
|
|
3978
3978
|
</ft-search-result-context>
|
|
3979
|
-
`})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&$o.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let n=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};
|
|
3979
|
+
`})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&$o.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let n=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var r,i,n,a,s;return(a=(i=(r=e.map)===null||r===void 0?void 0:r.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};jt.styles=pp;fi([(0,Vs.property)({type:String,attribute:"cluster-policy"})],jt.prototype,"clusterPolicy",void 0);fi([(0,Vs.property)({type:Boolean})],jt.prototype,"displayNoResultsMessage",void 0);fi([(0,Vs.property)({attribute:!1})],jt.prototype,"renderResult",void 0);fi([(0,$o.jsonProperty)([])],jt.prototype,"clusterSortCriterion",void 0);fi([(0,$o.redux)({selector:t=>({...t.request,paging:void 0})})],jt.prototype,"requestWithoutPaging",void 0);fi([(0,$o.redux)({selector:t=>t.request.paging})],jt.prototype,"paging",void 0);fi([(0,$o.redux)()],jt.prototype,"results",void 0)});var yx=p(()=>{"use strict"});var vx={};Bo(vx,{FtSearchResults:()=>jt,FtSearchResultsCssVariables:()=>hS,styles:()=>pp});var bx,xx=p(()=>{"use strict";bx=u(x());yp();up();yx();yp();(0,bx.customElement)("ft-search-results")(jt)});var Sx,mS,bp,vp=p(()=>{"use strict";Sx=u(R()),mS={},bp=Sx.css`
|
|
3980
3980
|
|
|
3981
|
-
`});var
|
|
3981
|
+
`});var js,No,Cx,to,xp=p(()=>{"use strict";js=u(R()),No=u(x());vp();oi();mr();gp();_e();Cx=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},to=class extends(0,No.withAriaNotification)(Rt(tr)){constructor(){super(),this.ariaNotificationDebouncer=new No.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.addI18nContext(nn,mx)}render(){return this.paging==null?js.nothing:js.html`
|
|
3982
3982
|
<ft-typography variant="${xe.body1}">
|
|
3983
3983
|
${nn.messages.results(this.paging.totalClustersCount)}
|
|
3984
3984
|
</ft-typography>
|
|
3985
|
-
`}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};to.elementDefinitions={"ft-typography":Z};to.styles=
|
|
3985
|
+
`}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};to.elementDefinitions={"ft-typography":Z};to.styles=bp;Cx([(0,No.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],to.prototype,"searchNumberOfResults",void 0);Cx([(0,No.redux)()],to.prototype,"paging",void 0)});var Ox=p(()=>{"use strict"});var Ex={};Bo(Ex,{FtSearchResultsNumber:()=>to,FtSearchResultsNumberCssVariables:()=>mS,styles:()=>bp});var wx,Ax=p(()=>{"use strict";wx=u(x());xp();vp();Ox();xp();(0,wx.customElement)("ft-search-results-number")(to)});var Rx=u(x());var Gt=u(R()),hi=u(x());var zl=u(R()),_=u(x());var Tp=u(R()),ae=u(x());Ur();var pe={padding:ae.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:ae.FtCssVariableFactory.extend("--ft-card-border-radius","",ae.designSystemVariables.borderRadiusM),borderStyle:ae.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:ae.FtCssVariableFactory.extend("--ft-card-border-color","",ae.designSystemVariables.colorOutline),hoverBorderColor:ae.FtCssVariableFactory.extend("--ft-card-hover-border-color","",ae.designSystemVariables.colorPrimary),outlineStyle:ae.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:ae.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:ae.FtCssVariableFactory.extend("--ft-card-outline-color","",ae.designSystemVariables.colorPrimary),selectedOutlineStyle:ae.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:ae.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:ae.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",ae.designSystemVariables.colorPrimary),selectedBorderRadius:ae.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",ae.designSystemVariables.borderRadiusM),colorSurface:ae.FtCssVariableFactory.extend("--ft-card-background-color","",ae.designSystemVariables.colorSurface),colorOnSurfaceMedium:ae.FtCssVariableFactory.extend("--ft-card-content-color","",ae.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:ae.FtCssVariableFactory.extend("--ft-card-title-color","",ae.designSystemVariables.colorOnSurfaceHigh),elevation02:ae.FtCssVariableFactory.extend("--ft-card-elevation","",ae.designSystemVariables.elevation02),elevation04:ae.FtCssVariableFactory.extend("--ft-card-selected-elevation","",ae.designSystemVariables.elevation04)},$p=Tp.css`
|
|
3986
3986
|
:host {
|
|
3987
3987
|
display: block;
|
|
3988
3988
|
}
|
|
@@ -4071,7 +4071,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4071
4071
|
#action {
|
|
4072
4072
|
grid-area: actions;
|
|
4073
4073
|
}
|
|
4074
|
-
`;Sn();fa();Ur();ma();var st={searchFieldBackgroundColor:
|
|
4074
|
+
`;Sn();fa();Ur();ma();var st={searchFieldBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",_.designSystemVariables.colorSurface),searchFieldBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",_.designSystemVariables.colorOutline),searchFieldTextColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",_.designSystemVariables.colorOnSurface),searchFieldBorderRadius:_.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",_.designSystemVariables.borderRadiusS),searchButtonColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",_.designSystemVariables.colorPrimary),resultsNumberColor:_.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",_.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",_.designSystemVariables.colorSurface),resultBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",_.designSystemVariables.colorOutline),resultBorderRadius:_.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",_.designSystemVariables.borderRadiusS),resultTitleTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",_.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",_.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",_.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:_.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",_.designSystemVariables.colorPrimary),resultHoverBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",_.designSystemVariables.colorPrimary)},Nh=zl.css`
|
|
4075
4075
|
.ft-search-in-doc--container {
|
|
4076
4076
|
display: flex;
|
|
4077
4077
|
flex-direction: column;
|
|
@@ -4079,11 +4079,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4079
4079
|
}
|
|
4080
4080
|
|
|
4081
4081
|
ft-search-input {
|
|
4082
|
-
${(0,
|
|
4083
|
-
${(0,
|
|
4084
|
-
${(0,
|
|
4085
|
-
${(0,
|
|
4086
|
-
${(0,
|
|
4082
|
+
${(0,_.setVariable)(me.colorSurface,st.searchFieldBackgroundColor)};
|
|
4083
|
+
${(0,_.setVariable)(me.colorOutline,st.searchFieldBorderColor)};
|
|
4084
|
+
${(0,_.setVariable)(me.colorOnSurface,st.searchFieldTextColor)};
|
|
4085
|
+
${(0,_.setVariable)(me.borderRadius,st.searchFieldBorderRadius)};
|
|
4086
|
+
${(0,_.setVariable)(me.buttonColor,st.searchButtonColor)};
|
|
4087
4087
|
}
|
|
4088
4088
|
|
|
4089
4089
|
ft-search-results-number {
|
|
@@ -4097,21 +4097,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4097
4097
|
ft-search-load-more-button {
|
|
4098
4098
|
margin: auto;
|
|
4099
4099
|
}
|
|
4100
|
-
`,
|
|
4100
|
+
`,Ph=zl.css`
|
|
4101
4101
|
ft-card {
|
|
4102
4102
|
margin-bottom: 8px;
|
|
4103
|
-
${(0,
|
|
4104
|
-
${(0,
|
|
4105
|
-
${(0,
|
|
4106
|
-
${(0,
|
|
4107
|
-
${(0,
|
|
4108
|
-
${(0,
|
|
4109
|
-
${(0,
|
|
4103
|
+
${(0,_.setVariable)(pe.elevation04,"none")};
|
|
4104
|
+
${(0,_.setVariable)(pe.elevation02,"none")};
|
|
4105
|
+
${(0,_.setVariable)(pe.borderStyle,"solid")};
|
|
4106
|
+
${(0,_.setVariable)(pe.borderRadius,_.designSystemVariables.borderRadiusS)};
|
|
4107
|
+
${(0,_.setVariable)(pe.colorSurface,st.resultBackgroundColor)};
|
|
4108
|
+
${(0,_.setVariable)(pe.borderColor,st.resultBorderColor)};
|
|
4109
|
+
${(0,_.setVariable)(pe.borderRadius,st.resultBorderRadius)};
|
|
4110
4110
|
}
|
|
4111
4111
|
|
|
4112
4112
|
ft-search-result-title {
|
|
4113
4113
|
color: ${st.resultTitleTextColor};
|
|
4114
|
-
${(0,
|
|
4114
|
+
${(0,_.setVariable)(ha.highlightBackgroundColor,st.resultHighlightBackgroundColor)};
|
|
4115
4115
|
}
|
|
4116
4116
|
|
|
4117
4117
|
.breadcrumb {
|
|
@@ -4120,12 +4120,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4120
4120
|
|
|
4121
4121
|
ft-search-result-abstract {
|
|
4122
4122
|
color: ${st.resultContentTextColor};
|
|
4123
|
-
${(0,
|
|
4123
|
+
${(0,_.setVariable)(ua.highlightBackgroundColor,st.resultHighlightBackgroundColor)};
|
|
4124
4124
|
}
|
|
4125
4125
|
|
|
4126
4126
|
ft-card:hover {
|
|
4127
|
-
${(0,
|
|
4128
|
-
${(0,
|
|
4127
|
+
${(0,_.setVariable)(pe.hoverBorderColor,st.resultHoverBorderColor)};
|
|
4128
|
+
${(0,_.setVariable)(S.color,st.resultHoverBackgroundColor)};
|
|
4129
4129
|
}
|
|
4130
4130
|
|
|
4131
4131
|
.result-container {
|
|
@@ -4138,8 +4138,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4138
4138
|
text-decoration: none;
|
|
4139
4139
|
color: inherit;
|
|
4140
4140
|
}
|
|
4141
|
-
`;mr();var
|
|
4142
|
-
<div id="container" part="container" class=${(0,
|
|
4141
|
+
`;mr();var os=u(x()),fy=u(W());var py;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(py||(py={}));var uy;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(uy||(uy={}));var oS=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Dc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Bc=Symbol("registerInterval"),iS=(0,os.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Bc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Bc]):this.dispatchEvent(new Dc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Bc,oS([(0,fy.state)()],r.prototype,"stateManager",void 0),r}),rs=class extends iS(os.FtLitElementRedux){};var oo=u(W());Fc();mr();var Mc=kr.build("designedReaderSearchInDocument");var by=u(x());var In=u(R()),ri=u(W()),gy=u(x());gt();_e();var yy=u(Ot()),ji=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends gy.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return In.html`
|
|
4142
|
+
<div id="container" part="container" class=${(0,yy.classMap)(e)}>
|
|
4143
4143
|
${this.clickable?In.html`
|
|
4144
4144
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
4145
4145
|
`:In.nothing}
|
|
@@ -4156,25 +4156,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4156
4156
|
</ft-typography>
|
|
4157
4157
|
</div>
|
|
4158
4158
|
</div>
|
|
4159
|
-
`}};Lt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};Lt.styles
|
|
4160
|
-
<style> ${
|
|
4161
|
-
<a href="${
|
|
4159
|
+
`}};Lt.elementDefinitions={"ft-ripple":G,"ft-typography":Z};Lt.styles=$p;ji([(0,ri.property)()],Lt.prototype,"title",void 0);ji([(0,ri.property)({type:Boolean})],Lt.prototype,"clickable",void 0);ji([(0,ri.property)({type:Boolean})],Lt.prototype,"selected",void 0);ji([(0,ri.property)({type:Boolean})],Lt.prototype,"noHeader",void 0);ji([(0,ri.property)({type:Boolean})],Lt.prototype,"noContent",void 0);ji([(0,ri.property)({type:Boolean})],Lt.prototype,"oneLineHeader",void 0);(0,by.customElement)("ft-card")(Lt);zc();var ro=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},St=class t extends Rt(rs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,hi.randomId)(6,"search-in-document-"),this.addI18nContext(Mc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return Gt.html`
|
|
4160
|
+
<style> ${Ph}</style>
|
|
4161
|
+
<a href="${is(e)}" @click=${()=>this.onLinkClick(e,r)}
|
|
4162
4162
|
@auxclick=${n=>this.onAuxClick(n,e,r)}
|
|
4163
4163
|
@contextmenu=${()=>this.onContextMenu(e,r)}>
|
|
4164
4164
|
<ft-card clickable noheader>
|
|
4165
4165
|
<div class="result-container">
|
|
4166
|
-
${this.hideResultTitle?
|
|
4166
|
+
${this.hideResultTitle?Gt.nothing:Gt.html`
|
|
4167
4167
|
<ft-search-result-title withoutLink="true"></ft-search-result-title>`}
|
|
4168
|
-
${this.hideResultBreadcrumb?
|
|
4168
|
+
${this.hideResultBreadcrumb?Gt.nothing:Gt.html`
|
|
4169
4169
|
<ft-typography class="breadcrumb" variant="caption">${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}</ft-typography>
|
|
4170
4170
|
`}
|
|
4171
|
-
${this.hideResultAbstract?
|
|
4171
|
+
${this.hideResultAbstract?Gt.nothing:Gt.html`
|
|
4172
4172
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
4173
4173
|
`}
|
|
4174
4174
|
</div>
|
|
4175
4175
|
</ft-card>
|
|
4176
4176
|
</a>
|
|
4177
|
-
`}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new Ki(e,r))}render(){return this.map?
|
|
4177
|
+
`}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new Ki(e,r))}render(){return this.map?Gt.html`
|
|
4178
4178
|
<ft-search-context id="${this.uniqueId}"
|
|
4179
4179
|
part="search-context"
|
|
4180
4180
|
contentLocale="${this.map.lang}"
|
|
@@ -4183,10 +4183,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4183
4183
|
scope="ALL_TOPICS"
|
|
4184
4184
|
ignoreEmptyQuery>
|
|
4185
4185
|
<div class="ft-search-in-doc--container">
|
|
4186
|
-
<ft-search-input placeholder="${
|
|
4186
|
+
<ft-search-input placeholder="${Mc.messages.placeholder()}"
|
|
4187
4187
|
?triggerSearchOnClear=${this.emptyResultOnClear}
|
|
4188
4188
|
@change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
|
|
4189
|
-
${this.hideResultsNumber?
|
|
4189
|
+
${this.hideResultsNumber?Gt.nothing:Gt.html`
|
|
4190
4190
|
<ft-search-results-number></ft-search-results-number>
|
|
4191
4191
|
`}
|
|
4192
4192
|
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
@@ -4198,7 +4198,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
4198
4198
|
</slot>
|
|
4199
4199
|
</div>
|
|
4200
4200
|
</ft-search-context>
|
|
4201
|
-
`:
|
|
4201
|
+
`:Gt.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,hi.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new Gi(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Py(),Ny)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Wv(),Hv)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Qv(),Zv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(lp(),ex)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(dp(),nx)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(xx(),vx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Ax(),Ex)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};St.elementDefinitions={"ft-card":Lt};St.styles=Nh;ro([(0,hi.redux)()],St.prototype,"map",void 0);ro([(0,hi.redux)()],St.prototype,"searchInDocumentQuery",void 0);ro([(0,oo.query)("ft-search-results")],St.prototype,"searchResults",void 0);ro([(0,oo.property)({type:Boolean})],St.prototype,"hideResultTitle",void 0);ro([(0,oo.property)({type:Boolean})],St.prototype,"hideResultBreadcrumb",void 0);ro([(0,oo.property)({type:Boolean})],St.prototype,"hideResultAbstract",void 0);ro([(0,oo.property)({type:Boolean})],St.prototype,"hideResultsNumber",void 0);ro([(0,oo.property)({type:Boolean})],St.prototype,"emptyResultOnClear",void 0);ro([(0,oo.query)('[part="search-context"]')],St.prototype,"searchContext",void 0);(0,Rx.customElement)("ft-reader-search-in-document")(St);})();
|
|
4202
4202
|
/*! Bundled license information:
|
|
4203
4203
|
|
|
4204
4204
|
lit-html/lit-html.js:
|