@fluid-topics/ft-in-product-help 1.0.33

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.
@@ -0,0 +1,672 @@
1
+ !function(t,i,e,o,s,n){var r;t.FtInProductHelpMode=void 0,(r=t.FtInProductHelpMode||(t.FtInProductHelpMode={})).STANDARD="standard",r.THEATER="theater",r.FULLSCREEN="fullscreen";class l extends CustomEvent{constructor(t,i){super("visibility-change",{detail:{opened:t,displayMode:i}})}}const a={standardSizeWidth:i.FtCssVariableFactory.create("--ft-in-product-help-standard-width","SIZE","400px"),standardSizeHeight:i.FtCssVariableFactory.create("--ft-in-product-help-standard-height","SIZE","630px"),topPosition:i.FtCssVariableFactory.create("--ft-in-product-help-top","SIZE","unset"),rightPosition:i.FtCssVariableFactory.create("--ft-in-product-help-right","SIZE","1rem"),bottomPosition:i.FtCssVariableFactory.create("--ft-in-product-help-bottom","SIZE","1rem"),leftPosition:i.FtCssVariableFactory.create("--ft-in-product-help-left","SIZE","unset"),zIndex:i.FtCssVariableFactory.create("--ft-in-product-help-zindex","NUMBER","10"),theaterSizeWidth:i.FtCssVariableFactory.create("--ft-in-product-help-theater-width","SIZE","90%"),theaterSizeHeight:i.FtCssVariableFactory.create("--ft-in-product-help-theater-height","SIZE","60%"),fullscreenSizeWidth:i.FtCssVariableFactory.create("--ft-in-product-help-fullscreen-width","SIZE","100%"),fullscreenSizeHeight:i.FtCssVariableFactory.create("--ft-in-product-help-fullscreen-height","SIZE","100%"),borderStyle:i.FtCssVariableFactory.create("--ft-in-product-help-border-style","UNKNOWN","solid"),borderWidth:i.FtCssVariableFactory.create("--ft-in-product-help-border-width","SIZE","0"),borderColor:i.FtCssVariableFactory.extend("--ft-in-product-help-border-color",i.designSystemVariables.colorPrimary),borderRadius:i.FtCssVariableFactory.extend("--ft-in-product-help-border-radius",i.designSystemVariables.borderRadiusM),shadow:i.FtCssVariableFactory.extend("--ft-in-product-help-shadow",i.designSystemVariables.elevation02),topBarHeight:i.FtCssVariableFactory.create("--ft-in-product-help-top-bar-height","SIZE","28px"),iconColor:i.FtCssVariableFactory.extend("--ft-in-product-help-icon-color",i.designSystemVariables.colorOnSurface),iconGap:i.FtCssVariableFactory.create("--ft-in-product-help-icon-gap","SIZE","8px"),tabletBreakpoint:i.FtCssVariableFactory.create("--ft-in-product-help-tablet-breakpoint","SIZE","768px"),desktopBreakpoint:i.FtCssVariableFactory.create("--ft-in-product-help-desktop-breakpoint","SIZE","1280px"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system")},h=e.css`
2
+ .ft-in-product-help {
3
+ display: none;
4
+ position: fixed;
5
+ width: ${a.standardSizeWidth};
6
+ height: ${a.standardSizeHeight};
7
+ top: ${a.topPosition};
8
+ right: ${a.rightPosition};
9
+ bottom: ${a.bottomPosition};
10
+ left: ${a.leftPosition};
11
+ z-index: ${a.zIndex};
12
+
13
+ border-style: ${a.borderStyle};
14
+ border-width: ${a.borderWidth};
15
+ border-color: ${a.borderColor};
16
+ border-radius: ${a.borderRadius};
17
+ box-shadow: ${a.shadow};
18
+ overflow: hidden;
19
+ }
20
+
21
+ .ft-in-product-help.ft-in-product-help--theater {
22
+ width: ${a.theaterSizeWidth};
23
+ height: ${a.theaterSizeHeight};
24
+ }
25
+
26
+ .ft-in-product-help.ft-in-product-help--fullscreen {
27
+ width: 100%;
28
+ height: 100%;
29
+ inset: 0;
30
+ border: none;
31
+ border-radius: 0;
32
+ }
33
+
34
+ .ft-in-product-help.ft-in-product-help--opened {
35
+ display: block;
36
+ }
37
+
38
+ .ft-in-product-help--top-bar {
39
+ height: ${a.topBarHeight};
40
+ background-color: ${a.colorSurface};
41
+ display: flex;
42
+ justify-content: flex-end;
43
+ gap: ${a.iconGap};
44
+ }
45
+
46
+ .ft-in-product-help--top-bar ft-button:not(.ft-in-product-help--active-mode) {
47
+ --ft-button-color: ${a.iconColor};
48
+ }
49
+
50
+ iframe {
51
+ width: 100%;
52
+ height: calc(100% - ${a.topBarHeight});
53
+ border: none;
54
+ }
55
+ `;var p,f;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(p||(p={})),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=""}(f||(f={})),new Map([...["abw"].map((t=>[t,f.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,f.AUDIO])),...["avi"].map((t=>[t,f.AVI])),...["chm","xhs"].map((t=>[t,f.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,f.CODE])),...["csv"].map((t=>[t,f.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,f.DITA])),...["epub"].map((t=>[t,f.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,f.EXCEL])),...["flac"].map((t=>[t,f.FLAC])),...["gif"].map((t=>[t,f.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,f.GZIP])),...["html","htm","xhtml"].map((t=>[t,f.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,f.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,f.JPEG])),...["json"].map((t=>[t,f.JSON])),...["m4a","m4p"].map((t=>[t,f.M4A])),...["mov","qt"].map((t=>[t,f.MOV])),...["mp3"].map((t=>[t,f.MP3])),...["mp4","m4v"].map((t=>[t,f.MP4])),...["ogg","oga"].map((t=>[t,f.OGG])),...["pdf","ps"].map((t=>[t,f.PDF])),...["png"].map((t=>[t,f.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,f.POWERPOINT])),...["rar"].map((t=>[t,f.RAR])),...["stp"].map((t=>[t,f.STP])),...["txt","rtf","md","mdown"].map((t=>[t,f.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,f.VIDEO])),...["wav"].map((t=>[t,f.WAV])),...["wma"].map((t=>[t,f.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,f.WORD])),...["xml","xsl","rdf"].map((t=>[t,f.XML])),...["yaml","yml","x-yaml"].map((t=>[t,f.YAML])),...["zip"].map((t=>[t,f.ZIP]))]);const d={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},c=e.css`
56
+ :host, i.ft-icon {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ flex-shrink: 0;
60
+ flex-grow: 0;
61
+ }
62
+
63
+ :host {
64
+ width: ${d.size};
65
+ height: ${d.size};
66
+ }
67
+
68
+ i.ft-icon {
69
+ width: 100%;
70
+ height: 100%;
71
+ font-size: ${d.size};
72
+ line-height: 1;
73
+ font-weight: normal;
74
+ text-transform: none;
75
+ font-style: normal;
76
+ font-variant: normal;
77
+ speak: none;
78
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
79
+ text-rendering: auto;
80
+ -webkit-font-smoothing: antialiased;
81
+ -moz-osx-font-smoothing: grayscale;
82
+ vertical-align: ${d.verticalAlign};
83
+ }
84
+
85
+ i.ft-icon.ft-icon--fluid-topics {
86
+ font-family: ${d.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
87
+
88
+ /* Ugly fix because font is broken */
89
+ font-size: calc(0.75 * ${d.size});
90
+ line-height: ${d.size};
91
+ position: relative;
92
+ top: -4%;
93
+ justify-content: center;
94
+ }
95
+
96
+ .ft-icon--file-format {
97
+ font-family: ${d.fileFormatFontFamily}, ft-mime, sans-serif;
98
+ }
99
+
100
+ .ft-icon--material {
101
+ font-family: ${d.materialFontFamily}, "Material Icons", sans-serif;
102
+ }
103
+ `;var u;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(u||(u={}));var x=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class b extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(u).includes(this.variant)?this.variant:u.fluid_topics,i=t!==u.material||!!this.value;return e.html`
104
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
105
+ ${s.unsafeHTML(this.resolvedIcon)}
106
+ <slot ?hidden=${i}></slot>
107
+ </i>
108
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case u.file_format:this.resolvedIcon=null!==(t=f[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case u.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=p[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}b.elementDefinitions={},b.styles=c,x([o.property()],b.prototype,"variant",void 0),x([o.property()],b.prototype,"value",void 0),x([o.state()],b.prototype,"resolvedIcon",void 0),x([o.query("slot")],b.prototype,"slottedContent",void 0),i.customElement("ft-icon")(b);const g=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),y={color:g,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",g),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},v=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),m=v,$=i.FtCssVariableFactory.extend("--ft-ripple-background-color",v),w=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),k=w,z=i.FtCssVariableFactory.extend("--ft-ripple-background-color",w),S=e.css`
109
+ :host {
110
+ display: contents;
111
+ }
112
+
113
+ .ft-ripple {
114
+ position: absolute;
115
+ inset: 0;
116
+ pointer-events: none;
117
+ }
118
+
119
+ .ft-ripple:not(.ft-ripple--unbounded) {
120
+ overflow: hidden;
121
+ border-radius: ${y.borderRadius};
122
+ }
123
+
124
+ .ft-ripple .ft-ripple--background,
125
+ .ft-ripple .ft-ripple--effect {
126
+ position: absolute;
127
+ opacity: 0;
128
+ }
129
+
130
+ .ft-ripple .ft-ripple--background {
131
+ background-color: ${y.backgroundColor};
132
+ }
133
+
134
+ .ft-ripple .ft-ripple--effect {
135
+ background-color: ${y.color};
136
+ }
137
+
138
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
139
+ background-color: ${z};
140
+ }
141
+
142
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
143
+ background-color: ${k};
144
+ }
145
+
146
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
147
+ background-color: ${$};
148
+ }
149
+
150
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
151
+ background-color: ${m};
152
+ }
153
+
154
+ .ft-ripple .ft-ripple--background {
155
+ top: 0;
156
+ left: 0;
157
+ height: 100%;
158
+ width: 100%;
159
+ transition: opacity 75ms linear;
160
+ }
161
+
162
+ .ft-ripple .ft-ripple--effect,
163
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
164
+ border-radius: 50%;
165
+ }
166
+
167
+ .ft-ripple .ft-ripple--effect {
168
+ transform: translate(-50%, -50%) scale(0.15);
169
+ transition: transform 300ms ease, opacity 75ms linear;
170
+ }
171
+
172
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
173
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
174
+ left: 50%;
175
+ top: 50%;
176
+ }
177
+
178
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
179
+ transform: translate(-50%, -50%);
180
+ }
181
+
182
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
183
+ opacity: ${y.opacityContentOnSurfaceHover};
184
+ }
185
+
186
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
187
+ opacity: ${y.opacityContentOnSurfaceSelected};
188
+ }
189
+
190
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
191
+ opacity: ${y.opacityContentOnSurfaceFocused};
192
+ }
193
+
194
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
195
+ opacity: ${y.opacityContentOnSurfacePressed};
196
+ transform: translate(-50%, -50%) scale(1);
197
+ }
198
+ `;var I,E=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class C extends i.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
199
+ <style>
200
+ .ft-ripple .ft-ripple--effect,
201
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
202
+ width: ${this.rippleSize}px;
203
+ height: ${this.rippleSize}px;
204
+ }
205
+
206
+ .ft-ripple .ft-ripple--effect {
207
+ left: ${this.originX}px;
208
+ top: ${this.originY}px;
209
+ }
210
+ </style>
211
+ <div class="${n.classMap(t)}">
212
+ <div class="ft-ripple--background"></div>
213
+ <div class="ft-ripple--effect"></div>
214
+ </div>
215
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}C.elementDefinitions={},C.styles=S,E([o.property({type:Boolean})],C.prototype,"primary",void 0),E([o.property({type:Boolean})],C.prototype,"secondary",void 0),E([o.property({type:Boolean})],C.prototype,"unbounded",void 0),E([o.property({type:Boolean})],C.prototype,"activated",void 0),E([o.property({type:Boolean})],C.prototype,"selected",void 0),E([o.property({type:Boolean})],C.prototype,"disabled",void 0),E([o.state()],C.prototype,"hovered",void 0),E([o.state()],C.prototype,"focused",void 0),E([o.state()],C.prototype,"pressed",void 0),E([o.state()],C.prototype,"rippling",void 0),E([o.state()],C.prototype,"rippleSize",void 0),E([o.state()],C.prototype,"originX",void 0),E([o.state()],C.prototype,"originY",void 0),E([o.query(".ft-ripple")],C.prototype,"ripple",void 0),E([o.query(".ft-ripple--effect")],C.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(C);const N=window,O=N.trustedTypes,j=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+Z,T=`<${B}>`,A=document,F=()=>A.createComment(""),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,R="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,H=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,V=/"/g,K=/^(?:script|style|textarea|title)$/i,G=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Y=new WeakMap,J=A.createTreeWalker(A,129,null,!1),Q=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=W;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===W?"!--"===a[1]?r=D:void 0!==a[1]?r=P:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=H):void 0!==a[3]&&(r=H):r===H?">"===a[0]?(r=null!=s?s:W,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?H:'"'===a[3]?V:L):r===V||r===L?r=H:r===D||r===P?r=W:(r=H,s=void 0);const f=r===H&&t[i+1].startsWith("/>")?" ":"";n+=r===W?e+T:h>=0?(o.push(l),e.slice(0,h)+M+e.slice(h)+Z+f):e+Z+(-2===h?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class tt{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=Q(t,i);if(this.el=tt.createElement(a,e),J.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=J.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(M)||i.startsWith(Z)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+M).split(Z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?nt:"?"===i[1]?lt:"@"===i[1]?at:st})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(K.test(o.tagName)){const t=o.textContent.split(Z),i=t.length-1;if(i>0){o.textContent=O?O.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],F()),J.nextNode(),l.push({type:2,index:++s});o.append(t[i],F())}}}else if(8===o.nodeType)if(o.data===B)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Z,t+1));)l.push({type:7,index:s}),t+=Z.length-1}s++}}static createElement(t,i){const e=A.createElement("template");return e.innerHTML=t,e}}function it(t,i,e=t,o){var s,n,r,l;if(i===X)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=U(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=it(t,a._$AS(t,i.values),a,o)),i}class et{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:A).importNode(e,!0);J.currentNode=s;let n=J.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new ot(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new ht(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=J.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class ot{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=it(this,t,i),U(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&U(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new et(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Y.get(t.strings);return void 0===i&&Y.set(t.strings,i=new tt(t)),i}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new ot(this.k(F()),this.k(F()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class st{constructor(t,i,e,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=it(this,t,i,0),n=!U(t)||t!==this._$AH&&t!==X,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=it(this,o[e+r],i,r),l===X&&(l=this._$AH[r]),n||(n=!U(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=O?O.emptyScript:"";class lt extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class at extends st{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=it(this,t,i,0))&&void 0!==e?e:q)===X)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt=N.litHtmlPolyfillSupport;null==pt||pt(tt,ot),(null!==(I=N.litHtmlVersions)&&void 0!==I?I:N.litHtmlVersions=[]).push("2.7.3");
216
+ /**
217
+ * @license
218
+ * Copyright 2020 Google LLC
219
+ * SPDX-License-Identifier: BSD-3-Clause
220
+ */
221
+ const ft=Symbol.for(""),dt=t=>{if((null==t?void 0:t.r)===ft)return null==t?void 0:t._$litStatic$},ct=t=>({_$litStatic$:t,r:ft}),ut=new Map,xt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=dt(n));)a+=s+i[++h],p=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=ut.get(t))&&(r.raw=r,ut.set(t,i=r)),e=l}return t(i,...e)})(G);var bt;!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"}(bt||(bt={}));const gt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),yt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),vt={fontFamily:yt,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")},mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",gt),$t=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",vt.fontSize,"20px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",vt.fontWeight,"normal"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",vt.letterSpacing,"0.15px"),zt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",vt.lineHeight,"1.2"),St=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",vt.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",gt),Et=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",vt.fontSize,"14px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",vt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",vt.letterSpacing,"0.105px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",vt.lineHeight,"1.7"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",vt.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),Zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",vt.fontSize,"16px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",vt.fontWeight,"600"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",vt.letterSpacing,"0.144px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",vt.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",vt.textTransform,"inherit"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",vt.fontSize,"14px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",vt.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",vt.letterSpacing,"0.098px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",vt.lineHeight,"1.7"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",vt.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",vt.fontSize,"16px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",vt.fontWeight,"normal"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",vt.letterSpacing,"0.496px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",vt.lineHeight,"1.5"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",vt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Yt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",vt.fontSize,"14px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",vt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",vt.letterSpacing,"0.252px"),ti=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",vt.lineHeight,"1.4"),ii=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",vt.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",vt.fontSize,"12px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",vt.fontWeight,"normal"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",vt.letterSpacing,"0.396px"),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",vt.lineHeight,"1.33"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",vt.textTransform,"inherit"),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",vt.fontSize,"10px"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",vt.fontWeight,"normal"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",vt.letterSpacing,"0.33px"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",vt.lineHeight,"1.6"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",vt.textTransform,"inherit"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",vt.fontSize,"10px"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",vt.fontWeight,"normal"),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",vt.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",vt.lineHeight,"1.6"),vi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",vt.textTransform,"uppercase"),mi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",vt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",vt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",vt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",vt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",vt.textTransform,"uppercase")},$i=e.css`
222
+ .ft-typography--title {
223
+ font-family: ${mt};
224
+ font-size: ${$t};
225
+ font-weight: ${wt};
226
+ letter-spacing: ${kt};
227
+ line-height: ${zt};
228
+ text-transform: ${St};
229
+ }
230
+ `,wi=e.css`
231
+ .ft-typography--title-dense {
232
+ font-family: ${It};
233
+ font-size: ${Et};
234
+ font-weight: ${Ct};
235
+ letter-spacing: ${Nt};
236
+ line-height: ${Ot};
237
+ text-transform: ${jt};
238
+ }
239
+ `,ki=e.css`
240
+ .ft-typography--subtitle1 {
241
+ font-family: ${Mt};
242
+ font-size: ${Zt};
243
+ font-weight: ${Bt};
244
+ letter-spacing: ${Tt};
245
+ line-height: ${At};
246
+ text-transform: ${Ft};
247
+ }
248
+ `,zi=e.css`
249
+ .ft-typography--subtitle2 {
250
+ font-family: ${Ut};
251
+ font-size: ${_t};
252
+ font-weight: ${Rt};
253
+ letter-spacing: ${Wt};
254
+ line-height: ${Dt};
255
+ text-transform: ${Pt};
256
+ }
257
+
258
+ `,Si=e.css`
259
+ .ft-typography--body1 {
260
+ font-family: ${Ht};
261
+ font-size: ${Lt};
262
+ font-weight: ${Vt};
263
+ letter-spacing: ${Kt};
264
+ line-height: ${Gt};
265
+ text-transform: ${Xt};
266
+ }
267
+ `,Ii=e.css`
268
+ .ft-typography--body2 {
269
+ font-family: ${qt};
270
+ font-size: ${Yt};
271
+ font-weight: ${Jt};
272
+ letter-spacing: ${Qt};
273
+ line-height: ${ti};
274
+ text-transform: ${ii};
275
+ }
276
+ `,Ei=e.css`
277
+ .ft-typography--caption {
278
+ font-family: ${ei};
279
+ font-size: ${oi};
280
+ font-weight: ${si};
281
+ letter-spacing: ${ni};
282
+ line-height: ${ri};
283
+ text-transform: ${li};
284
+ }
285
+ `,Ci=e.css`
286
+ .ft-typography--breadcrumb {
287
+ font-family: ${ai};
288
+ font-size: ${hi};
289
+ font-weight: ${pi};
290
+ letter-spacing: ${fi};
291
+ line-height: ${di};
292
+ text-transform: ${ci};
293
+ }
294
+ `,Ni=e.css`
295
+ .ft-typography--overline {
296
+ font-family: ${ui};
297
+ font-size: ${xi};
298
+ font-weight: ${bi};
299
+ letter-spacing: ${gi};
300
+ line-height: ${yi};
301
+ text-transform: ${vi};
302
+ }
303
+ `,Oi=e.css`
304
+ .ft-typography--button {
305
+ font-family: ${mi.fontFamily};
306
+ font-size: ${mi.fontSize};
307
+ font-weight: ${mi.fontWeight};
308
+ letter-spacing: ${mi.letterSpacing};
309
+ line-height: ${mi.lineHeight};
310
+ text-transform: ${mi.textTransform};
311
+ }
312
+ `,ji=e.css`
313
+ .ft-typography {
314
+ vertical-align: inherit;
315
+ }
316
+ `;var Mi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Zi extends i.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?xt`
317
+ <${ct(this.element)}
318
+ class="ft-typography ft-typography--${this.variant}">
319
+ <slot></slot>
320
+ </${ct(this.element)}>
321
+ `:xt`
322
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
323
+ `}}Zi.styles=[$i,wi,ki,zi,Si,Ii,Ei,Ci,Ni,Oi,ji],Mi([o.property()],Zi.prototype,"element",void 0),Mi([o.property()],Zi.prototype,"variant",void 0),i.customElement("ft-typography")(Zi);const Bi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ti=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ai=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Fi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ui=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),_i=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ri=e.css`
324
+ .ft-tooltip--container {
325
+ display: block;
326
+ position: relative;
327
+ }
328
+
329
+ .ft-tooltip--inline {
330
+ display: inline-block;
331
+ max-width: 100%;
332
+ }
333
+
334
+ .ft-tooltip {
335
+ position: absolute;
336
+ box-sizing: border-box;
337
+ overflow: hidden;
338
+ width: max-content;
339
+ max-width: ${_i};
340
+ text-align: center;
341
+ padding: ${Bi};
342
+ z-index: ${Fi};
343
+ }
344
+
345
+ .ft-tooltip--content {
346
+ padding: 4px 8px;
347
+ border-radius: ${Ui};
348
+ background-color: ${Ai};
349
+ color: ${Ti};
350
+ top: -500px;
351
+ left: -500px;
352
+ position: relative;
353
+ word-break: break-word;
354
+ }
355
+ `;var Wi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Di extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
356
+ <div part="container"
357
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
358
+ @mouseenter=${this.onHover}
359
+ @mouseleave=${this.onOut}
360
+ @focusin=${this.onHover}
361
+ @focusout=${this.onOut}
362
+ @touchstart=${this.onTouch}>
363
+ <slot></slot>
364
+ <div part="tooltip" role="tooltip" inert
365
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
366
+ ?hidden=${!this.visible}>
367
+ <div part="tooltip-content" class="ft-tooltip--content">
368
+ <slot name="text"></slot>
369
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
370
+ </div>
371
+ </div>
372
+ </div>
373
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=4-i.left);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${_i})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Di.elementDefinitions={"ft-typography":Zi},Di.styles=Ri,Wi([o.property()],Di.prototype,"text",void 0),Wi([o.property({type:Boolean})],Di.prototype,"manual",void 0),Wi([o.property({type:Boolean})],Di.prototype,"inline",void 0),Wi([o.property({type:Number})],Di.prototype,"delay",void 0),Wi([o.property()],Di.prototype,"position",void 0),Wi([o.queryAssignedNodes("",!0)],Di.prototype,"slotNodes",void 0),Wi([o.query(".ft-tooltip--container")],Di.prototype,"container",void 0),Wi([o.query("slot")],Di.prototype,"target",void 0),Wi([o.query(".ft-tooltip")],Di.prototype,"tooltip",void 0),Wi([o.query(".ft-tooltip--content")],Di.prototype,"tooltipContent",void 0),Wi([o.state()],Di.prototype,"visible",void 0),i.customElement("ft-tooltip")(Di);const Pi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Hi=e.css`
374
+ :host {
375
+ line-height: 0;
376
+ }
377
+
378
+ .ft-loader {
379
+ display: inline-block;
380
+ position: relative;
381
+
382
+ width: ${Pi.size};
383
+ height: ${Pi.size};
384
+ }
385
+
386
+ .ft-loader div {
387
+ position: absolute;
388
+ top: 37.5%;
389
+ width: 25%;
390
+ height: 25%;
391
+ border-radius: 50%;
392
+ background: ${Pi.color};
393
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
394
+ }
395
+
396
+ .ft-loader div:nth-child(1) {
397
+ left: 2.5%;
398
+ animation: appear 0.6s infinite;
399
+ }
400
+
401
+ .ft-loader div:nth-child(2) {
402
+ left: 2.5%;
403
+ animation: move 0.6s infinite;
404
+ }
405
+
406
+ .ft-loader div:nth-child(3) {
407
+ left: 37.5%;
408
+ animation: move 0.6s infinite;
409
+ }
410
+
411
+ .ft-loader div:nth-child(4) {
412
+ left: 72.5%;
413
+ animation: disappear 0.6s infinite;
414
+ }
415
+
416
+ @keyframes appear {
417
+ 0% {
418
+ transform: scale(0);
419
+ }
420
+ 100% {
421
+ transform: scale(1);
422
+ }
423
+ }
424
+
425
+ @keyframes disappear {
426
+ 0% {
427
+ transform: scale(1);
428
+ }
429
+ 100% {
430
+ transform: scale(0);
431
+ }
432
+ }
433
+
434
+ @keyframes move {
435
+ 0% {
436
+ transform: translate(0, 0);
437
+ }
438
+ 100% {
439
+ transform: translate(calc(0.35 * ${Pi.size}), 0);
440
+ }
441
+ }
442
+ `;class Li extends i.FtLitElement{render(){return e.html`
443
+ <div class="ft-loader">
444
+ <div></div>
445
+ <div></div>
446
+ <div></div>
447
+ <div></div>
448
+ </div>
449
+ `}}Li.styles=Hi,i.customElement("ft-loader")(Li);const Vi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ki={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Vi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",mi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Vi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Gi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Xi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Gi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Gi)},qi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Yi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ji=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Qi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),te=[e.css`
450
+ :host {
451
+ display: inline-block;
452
+ max-width: 100%;
453
+ pointer-events: none;
454
+ }
455
+
456
+ button {
457
+ box-shadow: 0px 0px 0px transparent;
458
+ border: 0px solid transparent;
459
+ text-shadow: 0px 0px 0px transparent;
460
+ font-size: ${Ki.fontSize};
461
+ }
462
+
463
+ button:hover {
464
+ box-shadow: 0px 0px 0px transparent;
465
+ border: 0px solid transparent;
466
+ text-shadow: 0px 0px 0px transparent;
467
+ }
468
+
469
+ button:active {
470
+ outline: none;
471
+ border: none;
472
+ }
473
+
474
+ button:focus {
475
+ outline: 0;
476
+ }
477
+
478
+ .ft-button {
479
+ position: relative;
480
+ display: flex;
481
+ justify-content: center;
482
+ align-items: center;
483
+ width: 100%;
484
+ overflow: hidden;
485
+ box-sizing: border-box;
486
+ border: none;
487
+ pointer-events: auto;
488
+
489
+ --ft-button-internal-line-height: max(calc(${Ki.fontSize} + 2px), ${Ki.iconSize});
490
+ --ft-button-internal-color: ${Ki.color};
491
+ ${i.setVariable(d.size,Ki.iconSize)};
492
+ ${i.setVariable(y.color,Ki.rippleColor)};
493
+
494
+ border-radius: ${Ki.borderRadius};
495
+ padding: ${Ki.verticalPadding} ${Ki.horizontalPadding};
496
+ background-color: ${Ki.backgroundColor};
497
+ color: var(--ft-button-internal-color);
498
+ -webkit-mask-image: radial-gradient(white, black);
499
+ }
500
+
501
+ .ft-button.ft-button--outlined {
502
+ border: 1px solid var(--ft-button-internal-color);
503
+ padding: calc(${Ki.verticalPadding} - 1px) calc(${Ki.horizontalPadding} - 1px);
504
+ }
505
+
506
+ .ft-button.ft-button--dense {
507
+ padding: ${Yi} ${Ji};
508
+ border-radius: ${qi};
509
+ gap: ${Qi};
510
+ }
511
+
512
+ .ft-button.ft-button--dense.ft-button--outlined {
513
+ padding: calc(${Yi} - 1px) calc(${Ji} - 1px);
514
+ }
515
+
516
+ .ft-button:not([disabled]):hover {
517
+ cursor: pointer;
518
+ }
519
+
520
+ .ft-button--round {
521
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ki.verticalPadding});
522
+ }
523
+
524
+ .ft-button--round.ft-button--dense {
525
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yi});
526
+ }
527
+
528
+ .ft-button[disabled] {
529
+ filter: grayscale(1);
530
+ opacity: ${Ki.opacityDisabled};
531
+ }
532
+
533
+ .ft-button.ft-button--primary {
534
+ background-color: ${Xi.backgroundColor};
535
+ --ft-button-internal-color: ${Xi.color};
536
+ ${i.setVariable(y.color,Xi.rippleColor)};
537
+ }
538
+
539
+ .ft-button:focus {
540
+ outline: none;
541
+ }
542
+
543
+ .ft-button--label {
544
+ position: relative;
545
+ overflow: hidden;
546
+ white-space: nowrap;
547
+ text-overflow: ellipsis;
548
+ display: block;
549
+ margin: 0 ${Ki.iconPadding};
550
+ ${i.setVariable(mi.fontSize,"1em")};
551
+ ${i.setVariable(mi.lineHeight,"var(--ft-button-internal-line-height)")};
552
+ }
553
+
554
+ .ft-button--dense .ft-button--label {
555
+ margin: 0 ${Qi};
556
+ }
557
+
558
+ .ft-button--label[hidden] {
559
+ display: none;
560
+ }
561
+
562
+ ft-icon {
563
+ flex-shrink: 0;
564
+ position: relative;
565
+ }
566
+
567
+ .ft-button--label[hidden] + ft-icon {
568
+ margin: 0 calc(${Ki.horizontalPadding} * -1);
569
+ padding: 0 ${Ki.verticalPadding};
570
+ }
571
+
572
+ .ft-button--dense .ft-button--label[hidden] + ft-icon {
573
+ margin: 0 calc(${Ji} * -1);
574
+ padding: 0 ${Yi};
575
+ }
576
+
577
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
578
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
579
+ order: -1;
580
+ }
581
+
582
+ ft-loader {
583
+ ${i.setVariable(Pi.size,Ki.iconSize)};
584
+ ${i.setVariable(Pi.color,"var(--ft-button-internal-color)")};
585
+ }
586
+ `,i.noTextSelect];var ie,ee=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class oe extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
587
+ <button part="button"
588
+ class="${n.classMap(t)}"
589
+ aria-label="${this.getLabel()}"
590
+ ?disabled=${this.isDisabled()}>
591
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
592
+ <ft-typography part="label"
593
+ variant="button"
594
+ element="span"
595
+ class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
596
+ ?hidden=${!this.hasTextContent()}>
597
+ <slot @slotchange=${this.onSlotchange}></slot>
598
+ </ft-typography>
599
+ ${this.resolveIcon()}
600
+ </button>
601
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
602
+ <ft-tooltip part="tooltip"
603
+ text="${this.getLabel()}"
604
+ position="${this.tooltipPosition}">
605
+ ${t}
606
+ </ft-tooltip>
607
+ `:t}resolveIcon(){return this.loading?e.html`
608
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
609
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}oe.elementDefinitions={"ft-ripple":C,"ft-tooltip":Di,"ft-typography":Zi,"ft-icon":b,"ft-loader":Li},oe.styles=[i.safariEllipsisFix,te],ee([o.property({type:String,reflect:!0})],oe.prototype,"role",void 0),ee([o.property({type:Boolean})],oe.prototype,"primary",void 0),ee([o.property({type:Boolean})],oe.prototype,"outlined",void 0),ee([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ee([o.property({type:Boolean})],oe.prototype,"dense",void 0),ee([o.property({type:Boolean})],oe.prototype,"round",void 0),ee([o.property()],oe.prototype,"label",void 0),ee([o.property()],oe.prototype,"icon",void 0),ee([o.property()],oe.prototype,"iconVariant",void 0),ee([o.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),ee([o.property({type:Boolean})],oe.prototype,"loading",void 0),ee([o.property()],oe.prototype,"tooltipPosition",void 0),ee([o.property({type:Boolean})],oe.prototype,"hideTooltip",void 0),ee([o.property({type:Boolean})],oe.prototype,"forceTooltip",void 0),ee([o.query(".ft-button")],oe.prototype,"button",void 0),ee([o.query(".ft-button--label slot")],oe.prototype,"slottedContent",void 0),i.customElement("ft-button")(oe),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(ie||(ie={}));const se=e.css`
610
+ .ft-size-watcher--pixel {
611
+ width: 0;
612
+ height: 0;
613
+ overflow: hidden;
614
+ }
615
+
616
+ .ft-size-watcher--pixel.ft-size-watcher--local {
617
+ width: 100%;
618
+ }
619
+
620
+ .ft-size-watcher--watcher {
621
+ height: 1px;
622
+ width: 100vw;
623
+ }
624
+
625
+ .ft-size-watcher--local .ft-size-watcher--watcher {
626
+ width: 100%;
627
+ }
628
+ `;var ne=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class re extends CustomEvent{constructor(t,i){super("change",{detail:{size:t,category:i}})}}class le extends i.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ie.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new i.Debouncer}render(){return e.html`
629
+ <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
630
+ <div class="ft-size-watcher--watcher"></div>
631
+ </div>
632
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),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=ie.S:this.size<976?this.category=ie.M:this.size<1024?this.category=ie.L:this.size<1440?this.category=ie.XL:this.category=ie.XXL,this.dispatchEvent(new re(this.size,this.category)))}),this.debounceTimeout)}}le.elementDefinitions={},le.styles=se,ne([o.property({type:Number})],le.prototype,"debounceTimeout",void 0),ne([o.property({type:Boolean})],le.prototype,"local",void 0),ne([o.property({type:Number,reflect:!0})],le.prototype,"size",void 0),ne([o.property({type:String,reflect:!0})],le.prototype,"category",void 0),ne([o.query(".ft-size-watcher--watcher")],le.prototype,"watcher",void 0),i.customElement("ft-size-watcher")(le);var ae=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class he extends i.FtLitElement{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=p.X_MARK,this.standardModeIcon=p.PIP,this.disableStandardMode=!1,this.theaterModeIcon=p.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=p.EXPAND_WIDE,this.disableFullscreenMode=!1,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const i={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},o=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),s=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),r=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return e.html`
633
+ <ft-size-watcher @change=${this.onViewportChange}></ft-size-watcher>
634
+ <div class="${n.classMap(i)}" part="container">
635
+ <div class="ft-in-product-help--top-bar" part="top-bar">
636
+ ${r?e.html`
637
+ <ft-button icon="${this.fullscreenModeIcon}"
638
+ class="${this.displayMode==t.FtInProductHelpMode.FULLSCREEN?"ft-in-product-help--active-mode":""}"
639
+ dense
640
+ .iconVariant=${this.iconVariant}
641
+ part="button-fullscreen top-bar-button"
642
+ @click=${()=>this.setMode(t.FtInProductHelpMode.FULLSCREEN)}
643
+ ></ft-button>
644
+ `:e.nothing}
645
+ ${s?e.html`
646
+ <ft-button icon="${this.theaterModeIcon}"
647
+ class="${this.displayMode==t.FtInProductHelpMode.THEATER?"ft-in-product-help--active-mode":""}"
648
+ dense
649
+ .iconVariant=${this.iconVariant}
650
+ part="button-theater top-bar-button"
651
+ @click=${()=>this.setMode(t.FtInProductHelpMode.THEATER)}
652
+ ></ft-button>
653
+ `:e.nothing}
654
+ ${o?e.html`
655
+ <ft-button icon="${this.standardModeIcon}"
656
+ class="${this.displayMode==t.FtInProductHelpMode.STANDARD?"ft-in-product-help--active-mode":""}"
657
+ dense
658
+ .iconVariant=${this.iconVariant}
659
+ part="button-standard top-bar-button"
660
+ @click=${()=>this.setMode(t.FtInProductHelpMode.STANDARD)}
661
+ ></ft-button>
662
+ `:e.nothing}
663
+ <ft-button icon="${this.closeIcon}"
664
+ dense
665
+ .iconVariant=${this.iconVariant}
666
+ part="button-close top-bar-button"
667
+ @click=${this.close}
668
+ ></ft-button>
669
+ </div>
670
+ <iframe src="${this.portalUrl}" part="iframe"/>
671
+ </div>
672
+ `}updated(t){super.updated(t),t.has("opened")&&this.updateModeOnOpen(),(t.has("disableStandardMode")||t.has("disableThreaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new l(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(a.tabletBreakpoint.name)||a.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(a.desktopBreakpoint.name)||a.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}}he.elementDefinitions={"ft-button":oe,"ft-size-watcher":le},he.styles=h,ae([o.property()],he.prototype,"portalUrl",void 0),ae([o.property({reflect:!0,type:Boolean})],he.prototype,"opened",void 0),ae([o.property({reflect:!0})],he.prototype,"displayMode",void 0),ae([o.property()],he.prototype,"closeIcon",void 0),ae([o.property()],he.prototype,"standardModeIcon",void 0),ae([o.property({type:Boolean})],he.prototype,"disableStandardMode",void 0),ae([o.property()],he.prototype,"theaterModeIcon",void 0),ae([o.property({type:Boolean})],he.prototype,"disableTheaterMode",void 0),ae([o.property()],he.prototype,"fullscreenModeIcon",void 0),ae([o.property({type:Boolean})],he.prototype,"disableFullscreenMode",void 0),ae([o.property()],he.prototype,"iconVariant",void 0),ae([o.state()],he.prototype,"allowStandardMode",void 0),ae([o.state()],he.prototype,"allowTheaterMode",void 0),ae([o.state()],he.prototype,"allowFullscreenMode",void 0),i.customElement("ft-in-product-help")(he),t.FtInProductHelp=he,t.FtInProductHelpCssVariables=a,t.FtInProductHelpVisibilityChange=l,t.styles=h}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);