PageSourceSearch

https://www.geico.com/_next/static/chunks/gds-gds-tooltip-js.06d33739408ee00c.js

js geico.com collected 2026-09-24 08:34:30 UTC 22,888 bytes, 604 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34348],{23827:(t,o,e)=>{e.d(o,{a:()=>h});var i=e(41088),r=e(98314),s=e(24291),a=e(85065),l=e(40629),n=e(11598),p=t=>(0,l.b)`
2    width: ${t};
3    height: ${t};
4    font-size: ${t};
5    line-height: ${t};
6  `,c=(0,l.b)`
7  :host {
8    --icon-size-value-xxsmall: var(--icon-xxsmall-dimensions);
9    --icon-size-value-xsmall: var(--icon-xsmall-dimensions);
10    --icon-size-value-small: var(--icon-small-dimensions);
11    --icon-size-value-medium: var(--icon-medium-dimensions);
12    --icon-size-value-large: var(--icon-large-dimensions);
13    --icon-size-value-xlarge: var(--icon-xlarge-dimensions);
14    display: inline-block;
15    line-height: 0;
16  }
17
18  :host span.geico-icon:before {
19    display: inline-block;
20    margin: 0 auto;
21  }
22
23  :host([size="xxsmall"]) span {
24    ${p((0,l.b)`var(--icon-size-value-xxsmall)`)}
25  }
26
27  :host([size="xsmall"]) span {
28    ${p((0,l.b)`var(--icon-size-value-xsmall)`)}
29  }
30
31  :host([size="small"]) span {
32    ${p((0,l.b)`var(--icon-size-value-small)`)}
33  }
34
35  :host([size="medium"]) span {
36    ${p((0,l.b)`var(--icon-size-value-medium)`)}
37  }
38
39  :host([size="large"]) span {
40    ${p((0,l.b)`var(--icon-size-value-large)`)}
41  }
42
43  :host([size="xlarge"]) span {
44    ${p((0,l.b)`var(--icon-size-value-xlarge)`)}
45  }
46
47  span[color="default"] {
48    color: var(--icon-default-color, var(--text-color));
49  }
50
51  span[color="brand"] {
52    color: var(--color-brand-standalone-icon);
53  }
54
55  span[color="brand-alt"] {
56    color: var(--color-brand-secondary-accent);
57  }
58
59  span[color="action"] {
60    color: var(--color-action-standalone-icon);
61  }
62
63  span[color="warning"] {
64    color: var(--color-warning-standalone-icon);
65  }
66
67  span[color="success"] {
68    color: var(--color-success-standalone-icon);
69  }
70
71  span[color="danger"] {
72    color: var(--color-danger-standalone-icon);
73  }
74
75  span[color="purple"] {
76    color: var(--color-accent-purple);
77  }
78
79  span[color="teal"] {
80    color: var(--color-accent-teal);
81  }
82
83  span[color="magenta"] {
84    color: var(--color-accent-magenta);
85  }
86
87  span[color="neutral"] {
88    color: var(--color-neutral-standalone-icon);
89  }
90
91  span[color="reverse"] {
92    color: var(--text-color-reverse);
93  }
94
95  span[color="always-white"] {
96    color: var(--icon-color-reverse);
97  }
98
99  span[color="always-black"] {
100    color: var(--icon-color-black);
101  }
102
103  a {
104    text-decoration: none;
105  }
106
107  :host([type="link"]) a {
108    cursor: pointer;
109  }
110
111  :host button {
112    background: transparent;
113    border: none;
114    cursor: pointer;
115
116    &:focus:not(:focus-visible) {
117      outline: none;
118    }
119
120    &:focus-visible {
121      outline: var(--focus-outline);
122      outline-offset: var(--focus-outline-offset);
123    }
124  }
125
126  :host(.reset-padding) {
127    button {
128      padding: 0;
129    }
130  }
131
132  :host([type="button"]) button {
133    color: var(--color-action);
134    &:active {
135      color: var(--color-action-active);
136    }
137    &:hover {
138      color: var(--color-action-hover);
139    }
140  }
141
142  :host([type="destructive"]) button {
143    color: var(--color-neutral-standalone-text);
144    &:active {
145      color: var(--icon-destructive-active-color);
146    }
147    &:hover {
148      color: var(--icon-destructive-hover-color);
149    }
150  }
151`,d=(0,l.b)`
152  :host-context([data-gdstheme*="dark"]):host([type="button"]) button:active {
153    color: var(--color-action);
154  }
155
156  :host-context([data-gdstheme*="dark"]):host([type="button"]) button:hover {
157    color: var(--color-action);
158  }
159`,h=class extends l.g{constructor(){super(...arguments),this.iconType="vehicle",this.color="default",this.size="medium"}render(){let t=(0,l.c)`
160      <span
161        class="geico-icon icon-${this.iconType||"vehicle"}"
162        color="${this.type?l.e:this.color||"default"}"
163      ></span>
164    `;return this.type?"link"===this.type?(0,l.c)`
165        <a href="${this.href}" target="${this.target||l.e}">
166          ${t}
167        </a>
168      `:"button"===this.type||"destructive"===this.type?(0,l.c)`
169        <button
170          type="button"
171          @click="${this.iconButtonClick}"
172          aria-label="${this.buttonAriaLabel||l.e}"
173        >
174          ${t}
175        </button>
176      `:void 0:(0,l.c)` ${t} `}connectedCallback(){super.connectedCallback();let t=new CSSStyleSheet;t.replaceSync(c.cssText);let o=new CSSStyleSheet;o.replaceSync(d.cssText),this.shadowRoot.adoptedStyleSheets=[r.d,r.b,t,o,r.c]}updated(t){(t.has("size")||t.has("type"))&&this.type&&"medium"!==this.size&&"small"!==this.size&&(this.size="medium")}iconButtonClick(){this.dispatchEvent(new CustomEvent("icon-button-click",i.a))}};(0,n.c)([(0,s.b)({reflect:!0})],h.prototype,"type",2),(0,n.c)([(0,s.b)({type:String,attribute:"icon-type"})],h.prototype,"iconType",2),(0,n.c)([(0,s.b)({type:String,reflect:!0})],h.prototype,"color",2),(0,n.c)([(0,s.b)({type:String,reflect:!0})],h.prototype,"size",2),(0,n.c)([(0,s.b)()],h.prototype,"href",2),(0,n.c)([(0,s.b)()],h.prototype,"target",2),(0,n.c)([(0,s.b)({type:String,attribute:"button-aria-label"})],h.prototype,"buttonAriaLabel",2),h=(0,n.c)([(0,a.a)("gds-icon")],h)},41088:(t,o,e)=>{e.d(o,{a:()=>i});var i={bubbles:!0,cancelable:!1,composed:!0}},46128:(t,o,e)=>{e.d(o,{a:()=>p});var i=e(41088),r=e(24291),s=e(85065),a=e(40629),l=e(11598),n=(0,a.b)`
177  :host {
178    display: none;
179    opacity: 0;
180    transition: all 0.5s;
181  }
182
183  :host([display]) {
184    display: block;
185  }
186
187  :host([fadeIn]) {
188    opacity: 1;
189  }
190
191  @keyframes slideIn {
192    from {
193      transform: translateY(50%);
194    }
195    to {
196      transform: translateY(0);
197    }
198  }
199
200  @keyframes slideOut {
201    from {
202      transform: translateY(0);
203    }
204    to {
205      transform: translateY(50%);
206    }
207  }
208
209  @keyframes slideInTop {
210    from {
211      transform: translate(-50%, -100%);
212    }
213    to {
214      transform: translate(-50%, 0);
215    }
216  }
217
218  @keyframes slideOutTop {
219    from {
220      transform: translate(-50%, 0);
221    }
222    to {
223      transform: translate(-50%, -100%);
224    }
225  }
226
227  @keyframes slideInTopRight {
228    from {
229      transform: translate(100%, 0%);
230    }
231    to {
232      transform: translate(0, 0);
233    }
234  }
235
236  @keyframes slideOutTopRight {
237    from {
238      transform: translate(0, 0);
239    }
240    to {
241      transform: translate(100%, 0%);
242    }
243  }
244
245  @keyframes slideInBottomRight {
246    from {
247      transform: translateY(100%);
248    }
249    to {
250      transform: translateY(0);
251    }
252  }
253
254  @keyframes slideInBottomLeft {
255    from {
256      transform: translateY(100%);
257    }
258    to {
259      transform: translateY(0);
260    }
261  }
262
263  @keyframes slideInBottom {
264    from {
265      transform: translate(-50%, 100%);
266    }
267    to {
268      transform: translate(-50%, 0);
269    }
270  }
271
272  @keyframes slideOutBottom {
273    from {
274      transform: translate(-50%, 0);
275    }
276    to {
277      transform: translate(-50%, 100%);
278    }
279  }
280
281  :host([slideIn]) {
282    transform: translateY(50%);
283    animation: slideIn 0.5s forwards;
284  }
285
286  :host([slideOut]) {
287    animation: slideOut 0.5s forwards;
288  }
289
290  :host([position="top-slide"]) {
291    top: var(--show-hide-margin);
292    left: 50%;
293    position: fixed;
294    z-index: 1000;
295    animation: slideOutTop 0.5s forwards;
296  }
297
298  :host([position="top-slide"][animate]) {
299    animation: slideInTop 0.5s forwards;
300  }
301
302  :host([position="bottom-right-slide"]) {
303    bottom: var(--show-hide-margin);
304    right: var(--show-hide-margin);
305    position: fixed;
306    z-index: 1000;
307    animation: slideOutBottomRight 0.5s forwards;
308  }
309
310  :host([position="bottom-right-slide"][animate]) {
311    animation: slideInBottomRight 0.5s forwards;
312  }
313
314  :host([position="bottom-left-slide"]) {
315    bottom: var(--show-hide-margin);
316    left: var(--show-hide-margin);
317    position: fixed;
318    z-index: 1000;
319    animation: slideOutBottomLeft 0.5s forwards;
320  }
321
322  :host([position="bottom-left-slide"][animate]) {
323    animation: slideInBottomLeft 0.5s forwards;
324  }
325
326  :host([position="bottom-slide"]) {
327    bottom: var(--show-hide-margin);
328    transform: translate(-50%, 100%);
329    left: 50%;
330    position: fixed;
331    z-index: 1000;
332    animation: slideOutBottom 0.5s forwards;
333  }
334
335  :host([position="bottom-slide"][animate]) {
336    animation: slideInBottom 0.5s forwards;
337  }
338
339  :host([position="top-right-slide"]) {
340    top: var(--show-hide-margin);
341    right: var(--show-hide-margin);
342    position: fixed;
343    z-index: 1000;
344    animation: slideOutTopRight 0.5s forwards;
345  }
346
347  :host([position="top-right-slide"][animate]) {
348    transform: translate(0%, 0%);
349    animation: slideInTopRight 0.5s forwards;
350  }
351`,p=class extends a.g{constructor(){super(...arguments),this.visible=!1,this.slide=!1,this.position="inline"}render(){return(0,a.c)`<slot></slot>`}connectedCallback(){super.connectedCallback();let t=new CSSStyleSheet;t.replaceSync(n.cssText),this.shadowRoot.adoptedStyleSheets=[t]}updated(t){t.has("visible")&&(this.dispatchEvent(new CustomEvent("visibility-changed",{detail:{visible:this.visible},...i.a})),this.visible?(clearTimeout(this.fadeOutTimerId),this.setAttribute("display",""),this.slide&&(!this.position||"inline"===this.position)?this.setAttribute("slideIn",""):this.setAttribute("animate",""),this.fadeInTimerId=setTimeout(()=>{this.setAttribute("fadeIn","")},100)):(clearTimeout(this.fadeInTimerId),this.removeAttribute("fadeIn"),this.slide&&(!this.position||"inline"===this.position)?(this.removeAttribute("slideIn"),this.setAttribute("slideOut","")):this.removeAttribute("animate"),setTimeout(()=>{this.visible||(this.removeAttribute("display"),this.removeAttribute("slideOut"))},550)))}toggle(){this.visible=!this.visible}};(0,l.c)([(0,r.b)({type:Boolean,reflect:!0})],p.prototype,"visible",2),(0,l.c)([(0,r.b)({type:Boolean,reflect:!0})],p.prototype,"slide",2),(0,l.c)([(0,r.b)()],p.prototype,"position",2),(0,l.c)([(0,r.c)()],p.prototype,"fadeInTimerId",2),(0,l.c)([(0,r.c)()],p.prototype,"fadeOutTimerId",2),p=(0,l.c)([(0,s.a)("gds-show-hide")],p)},69489:(t,o,e)=>{e.r(o),e.d(o,{GdsTooltip:()=>c});var i=e(41088),r=e(98314),s=e(24291),a=e(85065),l=e(40629),n=e(11598),p=(0,l.b)`
352  :host {
353    display: inline-block;
354    position: relative;
355    /* Above sibling form controls that use z-index (e.g. select-box-wrapper select) */
356    z-index: 2;
357    line-height: 0;
358    /* tooltip trigger icon overrides */
359    --icon-medium-dimensions: var(--font-size-xsmall);
360    /* Anchor color override in content */
361    --text-visited: var(--text-color-reverse);
362    --button-width: auto;
363    margin-left: var(--tooltip-trigger-margin-left);
364  }
365
366  :host([size="small"]) a {
367    width: var(--tooltip-trigger-small-width);
368    height: var(--tooltip-trigger-small-height);
369    font-size: var(--font-size-xxsmall);
370    line-height: calc(
371      var(--tooltip-trigger-small-container-line-height) *
372        var(--font-size-xxsmall)
373    );
374  }
375
376  a {
377    display: inline-block;
378    position: relative;
379    border-radius: var(--tooltip-border-radius);
380    width: var(--tooltip-trigger-width);
381    height: var(--tooltip-trigger-height);
382    text-align: center;
383    line-height: calc(var(--line-height-150) * var(--font-size-xsmall));
384    font-size: var(--font-size-xsmall);
385    background-color: transparent;
386    cursor: pointer;
387    text-decoration: var(--text-decoration-none);
388    border: var(--tooltip-border);
389    color: var(--color-brand);
390
391    &:hover {
392      --text-color: var(--color-on-brand);
393      background-color: var(--color-brand-hover);
394      border: var(--tooltip-hover-trigger-border);
395    }
396
397    &:focus {
398      --text-color: var(--color-on-action);
399      background-color: var(--color-action);
400      border: var(--tooltip-focus-trigger-border);
401    }
402
403    &:focus-visible {
404      outline: var(--focus-outline);
405      outline-offset: var(--focus-outline-offset);
406    }
407
408    &:active {
409      --text-color: var(--color-on-brand);
410      background-color: var(--color-brand-active);
411      border: var(--tooltip-active-trigger-border);
412    }
413  }
414
415  div {
416    position: absolute;
417  }
418
419  gds-show-hide {
420    z-index: 20;
421    --color-action: var(--text-color-reverse);
422  }
423
424  div[tabindex="0"] {
425    white-space: wrap;
426  }
427
428  div[data-arrow-position] {
429    &::after,
430    &::before {
431      border: solid transparent;
432      content: "";
433      height: 0;
434      width: 0;
435      position: absolute;
436      pointer-events: none;
437    }
438
439    &::after {
440      border-color: rgba(0, 92, 204, 0);
441      border-top-color: var(--color-brand-secondary);
442      border-width: 0.9rem;
443      margin-top: -0.9rem;
444    }
445
446    &::before {
447      border-color: rgba(255, 255, 255, 0);
448      border-top-color: var(--color-brand-secondary);
449      border-width: 0.9rem;
450      margin-top: -0.9rem;
451    }
452  }
453
454  div[data-arrow-position="left"] {
455    &::after,
456    &::before {
457      /* Internal Token */
458      top: var(--tooltip-arrow-top-position);
459      left: -1.6rem;
460      transform: rotate(90deg);
461    }
462
463    &::before {
464      left: -1.8rem;
465    }
466  }
467
468  div[data-arrow-position="right"] {
469    &::after,
470    &::before {
471      /* Internal Token */
472      top: var(--tooltip-arrow-top-position);
473      left: 28.8rem;
474      transform: rotate(-90deg);
475    }
476  }
477
478  div[data-arrow-position="bottom"] {
479    &::after,
480    &::before {
481      /* Internal Tokens */
482      top: var(--tooltip-arrow-top-position);
483      left: var(--tooltip-arrow-horizontal-position);
484    }
485
486    &::before {
487      /* Internal Token */
488      top: calc(var(--tooltip-arrow-top-position) + 0.1rem);
489    }
490  }
491
492  div[data-arrow-position="top"] {
493    &::after,
494    &::before {
495      /* Internal Tokens */
496      top: var(--tooltip-arrow-top-position);
497      left: var(--tooltip-arrow-horizontal-position);
498      transform: rotate(180deg);
499    }
500
501    &::before {
502      /* Internal Token */
503      top: calc(var(--tooltip-arrow-top-position) - 0.1rem);
504    }
505  }
506
507  div div {
508    max-height: var(--tooltip-content-max-height);
509    padding: var(--tooltip-content-padding-top)
510      var(--tooltip-content-padding-right) var(--tooltip-content-padding-bottom)
511      var(--tooltip-content-padding-left);
512    font: var(--tooltip-content-typography);
513    overflow-x: hidden;
514    overflow-y: auto;
515    -webkit-overflow-scrolling: touch;
516    color: var(--text-color-reverse);
517    background-color: var(--color-brand-secondary);
518    width: var(--tooltip-width);
519    border-radius: var(--tooltip-border-radius);
520    border: var(--tooltip-border);
521    text-align: left;
522    z-index: 10;
523  }
524
525  slot:not([name])::slotted(*) {
526    font-weight: var(--font-weight-bold) !important;
527    line-height: var(--text-descriptive-line-height) !important;
528    font-size: var(--text-descriptive-font-size) !important;
529    margin-bottom: 0 !important;
530  }
531
532  div gds-button {
533    position: absolute;
534    left: var(--tooltip-close-button-left);
535    top: var(--tooltip-close-button-top);
536    z-index: 11;
537    border: none;
538  }
539
540  /* Custom Scrollbar */
541
542  /* width */
543  ::-webkit-scrollbar {
544    width: var(--tooltip-scrollbar-width);
545  }
546
547  /* Handle */
548  ::-webkit-scrollbar-thumb {
549    background: var(--blue-200);
550    border: var(--tooltip-scrollbar-border);
551    background-clip: padding-box;
552    border-radius: 9999px;
553  }
554
555  ::-webkit-scrollbar-track-piece:vertical:start:no-button,
556  ::-webkit-scrollbar-track-piece:vertical:start {
557    margin-top: var(--tooltip-scrollbar-margin-top);
558  }
559
560  ::-webkit-scrollbar-track-piece:vertical:end:no-button,
561  ::-webkit-scrollbar-track-piece:vertical:end {
562    margin-bottom: var(--tooltip-scrollbar-margin-bottom);
563  }
564`,c=class extends l.g{constructor(){super(...arguments),this.visible=!1,this.externalWindow=!1,this.position="auto",this.size="large",this.suppressTooltip=!1,this.inTooltip=!1,this.inTrigger=!1,this.onTriggerMouseEnter=t=>{this.externalWindow||this.suppressTooltip||this.tooltipDisplay(t,"show")},this.onTriggerMouseLeave=t=>{this.externalWindow||this.suppressTooltip||this.tooltipDisplay(t,"hide")},this.onTriggerClick=t=>{(this.removeDefault(t),this.dispatchEvent(new CustomEvent("tooltip-trigger-click",i.a)),this.externalWindow)?this.externalWindowClick():this.suppressTooltip||this.tooltipDisplay(t)},this.onTriggerKeypress=t=>{this.externalWindow||this.suppressTooltip||this.checkKey(t)},this.onCloseClick=t=>{this.tooltipDisplay(t,"hide")}}render(){return(0,l.c)`
565      <a
566        href="/"
567        @mouseenter="${this.onTriggerMouseEnter}"
568        @mouseleave="${this.onTriggerMouseLeave}"
569        @click="${this.onTriggerClick}"
570        @keypress="${this.onTriggerKeypress}"
571      >
572        <gds-icon
573          icon-type="info-i"
574          size="${"small"===this.size?"xxsmall":"medium"}"
575        ></gds-icon>
576      </a>
577      ${this.externalWindow||this.suppressTooltip?l.e:(0,l.c)`
578            <gds-show-hide
579              ?visible="${this.visible}"
580              @mouseenter="${this._handlePanelMouseEnter}"
581              @mouseleave="${this._handlePanelMouseLeave}"
582            >
583              <div>
584                <gds-button
585                  appearance="tertiary"
586                  type="button"
587                  reverse-color
588                  size="small"
589                  aria-label="Close tooltip"
590                  @click="${this.onCloseClick}"
591                >
592                  <gds-icon
593                    icon-type="close"
594                    slot="left-visual"
595                    size="small"
596                  ></gds-icon>
597                </gds-button>
598                <div tabindex="0">
599                  <slot></slot>
600                </div>
601              </div>
602            </gds-show-hide>
603          `}
604    `}connectedCallback(){super.connectedCallback();let t=new CSSStyleSheet;t.replaceSync(p.cssText),this.shadowRoot.adoptedStyleSheets=[r.g,t]}updated(t){t.has("externalWindow")&&this.externalWindow&&(this.visible=!1),t.has("suppressTooltip")&&this.suppressTooltip&&(this.visible=!1),t.has("visible")&&this.visible&&!this.externalWindow&&!this.suppressTooltip&&setTimeout(()=>{this.positionTooltip()},100),t.has("position")&&this.visible&&!this.externalWindow&&!this.suppressTooltip&&this.positionTooltip(),!t.has("visible")||this.externalWindow||this.suppressTooltip||this.dispatchEvent(new CustomEvent("tooltip-toggle",{detail:{"tooltip-visibility":this.visible},...i.a}))}externalWindowClick(){this.dispatchEvent(new CustomEvent("tooltip-external-window",i.a))}setTooltipDisplay(t){"show"===t?this.visible=!0:"hide"===t?this.visible=!1:this.visible=!this.visible}removeDefault(t){t.preventDefault()}checkKey(t){"keypress"===t.type&&"Enter"!==t.key||this.setTooltipDisplay()}tooltipDisplay(t,o){let e=t.currentTarget;this.removeDefault(t),"mouseenter"===t.type&&("GDS-SHOW-HIDE"===e.tagName?this.inTooltip=!0:this.inTrigger=!0),"mouseleave"===t.type&&("GDS-SHOW-HIDE"===e.tagName?this.inTooltip=!1:this.inTrigger=!1),"mouseleave"===t.type?setTimeout(()=>{this.inTooltip||this.inTrigger||this.setTooltipDisplay(o)},500):"mouseenter"===t.type?setTimeout(()=>{(this.inTooltip||this.inTrigger)&&this.setTooltipDisplay(o)},250):(this.inTooltip=!1,this.inTrigger=!1,this.setTooltipDisplay(o))}positionTooltip(){let t=this.renderRoot.querySelector("a"),o=this.renderRoot.querySelector("div"),e=window.innerWidth;if(!t||!o||o.scrollHeight<1||o.scrollWidth<1)return void console.error("Tooltip cannot be positioned.");o.style.top="auto",o.style.left="auto",delete o.dataset.arrowPosition;let i=t.getBoundingClientRect(),r=o.scrollHeight,s=o.scrollWidth;"auto"!==this.position?this.positionTooltipExplicit(o,i,s,r,8,2):e-i.right>=s+8+2?this.positionTooltipOnRight(o,i,r,8,2):i.left>=s+8+2?this.positionTooltipOnLeft(o,i,r,s,8,2):i.top>=r+8+2?this.positionTooltipOnTop(o,i,s,r,8,2,e):this.positionTooltipOnBottom(o,i,s,8,2,e)}positionTooltipExplicit(t,o,e,i,r,s){switch(this.position){case"right":this.positionTooltipOnRight(t,o,i,r,s);break;case"left":this.positionTooltipOnLeft(t,o,i,e,r,s);break;case"top":this.positionTooltipOnTop(t,o,e,i,r,s,window.innerWidth);break;case"bottom":this.positionTooltipOnBottom(t,o,e,r,s,window.innerWidth)}}positionTooltipOnRight(t,o,e,i,r){t.dataset.arrowPosition="left",t.style.left=`${(1.4*o.width+i+r)*.1}rem`;let s=o.height/2-e/2,a=o.top+s<0,l=o.top+s+e>window.innerHeight;if(a||l)if(a)t.style.top=`${-(.1*o.top)}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${(o.top+o.height/2)*.1}rem`);else{let i=window.innerHeight-o.top;t.style.top=`${-(.1*(e-i))}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${(e-(i-o.height/2))*.1}rem`)}else t.style.top=`${.1*s}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${e/2*.1}rem`)}positionTooltipOnLeft(t,o,e,i,r,s){t.dataset.arrowPosition="right",t.style.left=`-${(i+s)*.1}rem`;let a=o.height/2-e/2,l=o.top+a<0,n=o.top+a+e>window.innerHeight;if(l||n)if(l)t.style.top=`${-(.1*o.top)}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${(o.top+o.height/2)*.1}rem`);else{let i=window.innerHeight-o.top;t.style.top=`${-(.1*(e-i))}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${(e-(i-o.height/2))*.1}rem`)}else t.style.top=`${.1*a}rem`,t.style.setProperty("--tooltip-arrow-top-position",`${e/2*.1}rem`)}positionTooltipOnTop(t,o,e,i,r,s,a){t.dataset.arrowPosition="bottom",t.style.top=`-${(i+r+s)*.1}rem`;let l=o.width/2-e/2,n=o.left+l<0,p=o.left+l+e>a;
604if(n||p)if(n)t.style.left=`${-(.1*o.left)}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${(o.left+o.width/2)*.1}rem`);else{let i=a-o.left;t.style.left=`${-(.1*(e-i))}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${(e-(i-o.width/2))*.1}rem`)}else t.style.left=`${.1*l}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${e/2*.1}rem`);t.style.setProperty("--tooltip-arrow-top-position",`${(i+r)*.1}rem`)}positionTooltipOnBottom(t,o,e,i,r,s){t.dataset.arrowPosition="top",t.style.top=`${(o.height+i+r)*.1}rem`;let a=o.width/2-e/2,l=o.left+a<0,n=o.left+a+e>s;if(l||n)if(l)t.style.left=`${-(.1*o.left)}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${(o.left+o.width/2)*.1}rem`);else{let i=s-o.left;t.style.left=`${-(.1*(e-i))}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${(e-(i-o.width/2))*.1}rem`)}else t.style.left=`${.1*a}rem`,t.style.setProperty("--tooltip-arrow-horizontal-position",`${e/2*.1}rem`);t.style.setProperty("--tooltip-arrow-top-position",`-${.1*i}rem`)}_handlePanelMouseEnter(t){this.externalWindow||this.suppressTooltip||this.tooltipDisplay(t,"show")}_handlePanelMouseLeave(t){this.externalWindow||this.suppressTooltip||this.tooltipDisplay(t,"hide")}};(0,n.c)([(0,s.b)({type:Boolean,reflect:!0})],c.prototype,"visible",2),(0,n.c)([(0,s.b)({type:Boolean,reflect:!0})],c.prototype,"externalWindow",2),(0,n.c)([(0,s.b)({type:String,reflect:!0})],c.prototype,"position",2),(0,n.c)([(0,s.b)({type:String,reflect:!0})],c.prototype,"size",2),(0,n.c)([(0,s.b)({type:Boolean,reflect:!0,attribute:"suppress-tooltip"})],c.prototype,"suppressTooltip",2),(0,n.c)([(0,s.c)()],c.prototype,"inTooltip",2),(0,n.c)([(0,s.c)()],c.prototype,"inTrigger",2),c=(0,n.c)([(0,a.a)("gds-tooltip")],c),e(46128),e(77159),e(61294),e(23827),e(8802)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.