PageSourceSearch

https://www.geico.com/_next/static/chunks/gds-gds-fab-js.44c2ff5b4477d98d.js

js geico.com collected 2026-09-24 08:33:55 UTC 7,488 bytes, 190 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17378],{9135:(t,e,i)=>{i.r(e),i.d(e,{GdsFab:()=>l});var o=i(24291),s=i(85065),r=i(40629),n=i(11598),a=(0,r.b)`
2  :host {
3    display: block;
4  }
5
6  :host ::slotted(*) {
7    box-shadow: var(--fab-shadow1-box-shadow), var(--fab-shadow2-box-shadow);
8    border-radius: var(--button-border-radius);
9    background: var(--color-card);
10  }
11`,l=class extends r.g{constructor(){super(...arguments),this.position="bottom-right-slide"}connectedCallback(){super.connectedCallback();let t=new CSSStyleSheet;t.replaceSync(a.cssText),this.shadowRoot.adoptedStyleSheets=[t]}render(){return(0,r.c)`
12      <gds-show-hide position="${this.position}" visible>
13        <slot></slot>
14      </gds-show-hide>
15    `}};(0,n.c)([(0,o.b)({type:String,reflect:!0})],l.prototype,"position",2),l=(0,n.c)([(0,s.a)("gds-fab")],l),i(46128),i(41088),i(8802)},24291:(t,e,i)=>{i.d(e,{a:()=>o,b:()=>s,c:()=>r,d:()=>a,e:()=>m});var o=t=>e=>"function"==typeof e?(customElements.define(t,e),e):((t,e)=>{let{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){customElements.define(t,e)}}})(t,e);function s(t){return(e,i)=>void 0!==i?void e.constructor.createProperty(i,t):"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}:{...e,finisher(i){i.createProperty(e.key,t)}}}function r(t){return s({...t,state:!0})}var n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){let o=null!=(s=i.originalKey)?s:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{let s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),t?.(s,o)}};function a(t,e){return n({descriptor:i=>{let o={get(){var e,i;return null!=(i=null==(e=this.renderRoot)?void 0:e.querySelector(t))?i:null},enumerable:!0,configurable:!0};if(e){let e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!=(o=null==(i=this.renderRoot)?void 0:i.querySelector(t))?o:null),this[e]}}return o}})}var l,d=(null==(l=window.HTMLSlotElement)?void 0:l.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function m(t){let{slot:e,selector:i}=t??{};return n({descriptor:o=>({get(){var o;let s="slot"+(e?`[name=${e}]`:":not([name])"),r=null==(o=this.renderRoot)?void 0:o.querySelector(s),n=null!=r?d(r,t):[];return i?n.filter(t=>t.matches(i)):n},enumerable:!0,configurable:!0})})}},41088:(t,e,i)=>{i.d(e,{a:()=>o});var o={bubbles:!0,cancelable:!1,composed:!0}},46128:(t,e,i)=>{i.d(e,{a:()=>d});var o=i(41088),s=i(24291),r=i(85065),n=i(40629),a=i(11598),l=(0,n.b)`
16  :host {
17    display: none;
18    opacity: 0;
19    transition: all 0.5s;
20  }
21
22  :host([display]) {
23    display: block;
24  }
25
26  :host([fadeIn]) {
27    opacity: 1;
28  }
29
30  @keyframes slideIn {
31    from {
32      transform: translateY(50%);
33    }
34    to {
35      transform: translateY(0);
36    }
37  }
38
39  @keyframes slideOut {
40    from {
41      transform: translateY(0);
42    }
43    to {
44      transform: translateY(50%);
45    }
46  }
47
48  @keyframes slideInTop {
49    from {
50      transform: translate(-50%, -100%);
51    }
52    to {
53      transform: translate(-50%, 0);
54    }
55  }
56
57  @keyframes slideOutTop {
58    from {
59      transform: translate(-50%, 0);
60    }
61    to {
62      transform: translate(-50%, -100%);
63    }
64  }
65
66  @keyframes slideInTopRight {
67    from {
68      transform: translate(100%, 0%);
69    }
70    to {
71      transform: translate(0, 0);
72    }
73  }
74
75  @keyframes slideOutTopRight {
76    from {
77      transform: translate(0, 0);
78    }
79    to {
80      transform: translate(100%, 0%);
81    }
82  }
83
84  @keyframes slideInBottomRight {
85    from {
86      transform: translateY(100%);
87    }
88    to {
89      transform: translateY(0);
90    }
91  }
92
93  @keyframes slideInBottomLeft {
94    from {
95      transform: translateY(100%);
96    }
97    to {
98      transform: translateY(0);
99    }
100  }
101
102  @keyframes slideInBottom {
103    from {
104      transform: translate(-50%, 100%);
105    }
106    to {
107      transform: translate(-50%, 0);
108    }
109  }
110
111  @keyframes slideOutBottom {
112    from {
113      transform: translate(-50%, 0);
114    }
115    to {
116      transform: translate(-50%, 100%);
117    }
118  }
119
120  :host([slideIn]) {
121    transform: translateY(50%);
122    animation: slideIn 0.5s forwards;
123  }
124
125  :host([slideOut]) {
126    animation: slideOut 0.5s forwards;
127  }
128
129  :host([position="top-slide"]) {
130    top: var(--show-hide-margin);
131    left: 50%;
132    position: fixed;
133    z-index: 1000;
134    animation: slideOutTop 0.5s forwards;
135  }
136
137  :host([position="top-slide"][animate]) {
138    animation: slideInTop 0.5s forwards;
139  }
140
141  :host([position="bottom-right-slide"]) {
142    bottom: var(--show-hide-margin);
143    right: var(--show-hide-margin);
144    position: fixed;
145    z-index: 1000;
146    animation: slideOutBottomRight 0.5s forwards;
147  }
148
149  :host([position="bottom-right-slide"][animate]) {
150    animation: slideInBottomRight 0.5s forwards;
151  }
152
153  :host([position="bottom-left-slide"]) {
154    bottom: var(--show-hide-margin);
155    left: var(--show-hide-margin);
156    position: fixed;
157    z-index: 1000;
158    animation: slideOutBottomLeft 0.5s forwards;
159  }
160
161  :host([position="bottom-left-slide"][animate]) {
162    animation: slideInBottomLeft 0.5s forwards;
163  }
164
165  :host([position="bottom-slide"]) {
166    bottom: var(--show-hide-margin);
167    transform: translate(-50%, 100%);
168    left: 50%;
169    position: fixed;
170    z-index: 1000;
171    animation: slideOutBottom 0.5s forwards;
172  }
173
174  :host([position="bottom-slide"][animate]) {
175    animation: slideInBottom 0.5s forwards;
176  }
177
178  :host([position="top-right-slide"]) {
179    top: var(--show-hide-margin);
180    right: var(--show-hide-margin);
181    position: fixed;
182    z-index: 1000;
183    animation: slideOutTopRight 0.5s forwards;
184  }
185
186  :host([position="top-right-slide"][animate]) {
187    transform: translate(0%, 0%);
188    animation: slideInTopRight 0.5s forwards;
189  }
190`,d=class extends n.g{constructor(){super(...arguments),this.visible=!1,this.slide=!1,this.position="inline"}render(){return(0,n.c)`<slot></slot>`}connectedCallback(){super.connectedCallback();let t=new CSSStyleSheet;t.replaceSync(l.cssText),this.shadowRoot.adoptedStyleSheets=[t]}updated(t){t.has("visible")&&(this.dispatchEvent(new CustomEvent("visibility-changed",{detail:{visible:this.visible},...o.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,a.c)([(0,s.b)({type:Boolean,reflect:!0})],d.prototype,"visible",2),(0,a.c)([(0,s.b)({type:Boolean,reflect:!0})],d.prototype,"slide",2),(0,a.c)([(0,s.b)()],d.prototype,"position",2),(0,a.c)([(0,s.c)()],d.prototype,"fadeInTimerId",2),(0,a.c)([(0,s.c)()],d.prototype,"fadeOutTimerId",2),d=(0,a.c)([(0,r.a)("gds-show-hide")],d)}}]);

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.