PageSourceSearch

https://ecr-group.netlify.app/component---src-templates-faq-template-js-e75e1a4bf1fed3b1fac0.js

js ecr-group.netlify.app collected 2026-10-03 10:41:32 UTC 9,235 bytes, 248 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[871],{7084:function(t,e,n){var i=n(5444),o=n(7294),a=n(2788);e.Z=t=>{let{data:e,background:n}=t;const{0:a,1:s}=(0,o.useState)(null),p=(0,o.useRef)(null);return o.createElement(r,{id:"accordions-container",ref:p,background:n},null==e?void 0:e.map(((t,e)=>{var r,p,u,m;return o.createElement(l,{key:e,active:a===e,background:n},o.createElement(d,{active:a===e,onClick:()=>{var t;s((t=e)===a?null:t)}},o.createElement("div",{dangerouslySetInnerHTML:{__html:null==t||null===(r=t.node)||void 0===r||null===(p=r.data)||void 0===p?void 0:p.question.html}}),o.createElement(i.J,{type:"TRIANGLE_ARROW"})),o.createElement(c,{active:a===e,dangerouslySetInnerHTML:{__html:null==t||null===(u=t.node)||void 0===u||null===(m=u.data)||void 0===m?void 0:m.answer.html}}))})))};const r=a.default.div.withConfig({componentId:"sc-tp65zy-0"})`
2  position: relative;
3  max-height: 1020px;
4  overflow: auto;
5
6  &::-webkit-scrollbar {
7    display: none;
8  }
9`,l=a.default.div.withConfig({componentId:"sc-tp65zy-1"})`
10  background-color: ${t=>t.background};
11  margin-bottom: 15px;
12  box-shadow: ${t=>{let{theme:e}=t;return e.box.boxShadow}};
13  cursor: pointer;
14  -webkit-tap-highlight-color: transparent;
15`,d=a.default.button.withConfig({componentId:"sc-tp65zy-2"})`
16  background: transparent;
17  border: none;
18  cursor: pointer;
19  margin: 0;
20  position: relative;
21  width: 100%;
22  padding: 20px;
23
24  h1 {
25    color: white;
26    font-size: 16px;
27    line-height: 18px;
28    text-transform: uppercase;
29    margin: 0;
30    font-weight: 700;
31    text-align: left;
32    padding-right: 10px;
33
34    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
35      font-size: 20px;
36      line-height: 24px;
37      padding-right: 40px;
38    }
39  }
40
41  svg {
42    position: absolute;
43    transform: rotate(${t=>t.active?"180deg":"0"});
44    right: 10px;
45    top: 25px;
46
47    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
48      right: 30px;
49      top: 25px;
50    }
51  }
52`,c=a.default.div.withConfig({componentId:"sc-tp65zy-3"})`
53  overflow-y: auto;
54  max-height: ${t=>t.active?"300px":"0"};
55  transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
56  padding: 0 20px 0;
57  margin-top: 0;
58
59  ul {
60    margin-bottom: 32px;
61    li {
62      color: #e9e9e9;
63      font-size: 16px;
64      line-height: 30px;
65      font-weight: 400;
66      list-style-type: circle;
67      padding-left: 15px;
68      position: relative;
69
70      &::before {
71        position: absolute;
72        content: "";
73        width: 5px;
74        height: 5px;
75        left: 0;
76        top: 50%;
77        transform: translateY(-50%);
78        background: white;
79        border-radius: 50%;
80      }
81    }
82  }
83
84  p {
85    color: #e9e9e9;
86    font-size: 14px;
87    line-height: 20px;
88    font-weight: 400;
89    margin-bottom: 15px;
90
91    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
92      font-size: 20px;
93      line-height: 30px;
94    }
95  }
96`},1404:function(t,e,n){n.d(e,{S:function(){return a}});var i=n(7294),o=n(2788);const a=t=>{let{children:e,type:n="violet",container:o,clip:a="70%",sectionContainer:s=!1}=t;return i.createElement(r,{sectionContainer:s,container:o},i.createElement(d,null,i.createElement(l,{clip:a,type:n})),i.createElement(c,null,e))},r=o.default.div.withConfig({componentId:"sc-1moua8z-0"})`
97  padding-top: ${t=>{let{container:e,sectionContainer:n}=t;return n?"40px":e?"70px":"40px"}};
98  padding-bottom: ${t=>{let{container:e,sectionContainer:n}=t;return n?"40px":e?"0":"50"}};
99  position: relative;
100  @media (min-width: ${t=>{let{theme:e}=t;return e.media.desktop_min}}) {
101    padding-top: ${t=>{let{container:e,sectionContainer:n}=t;return n?"40px":e?"135px":"185px"}};
102  }
103
104  .header-bg {
105    position: absolute;
106    top: 0;
107    left: 0;
108    width: 100%;
109    height: 100%;
110  }
111`,l=o.default.div.withConfig({componentId:"sc-1moua8z-1"})`
112  position: absolute;
113  top: 0;
114  left: 0;
115  width: 100%;
116  height: 100%;
117  &:before {
118    content: "";
119    position: absolute;
120    width: 100%;
121    height: 100%;
122    top: 0;
123    left: 0;
124    background-color: ${t=>"violet"===t.type?"#473974":"#005475"};
125  }
126`,d=o.default.div.withConfig({componentId:"sc-1moua8z-2"})`
127  img {
128    z-index: -1;
129    width: 40% !important;
130    left: auto !important;
131    right: 0;
132  }
133`,c=o.default.div.withConfig({componentId:"sc-1moua8z-3"})`
134  position: relative;
135  z-index: 50;
136`},245:function(t,e,n){n.r(e),n.d(e,{default:function(){return x}});var i=n(7294),o=n(3864),a=n(2794),r=n(1404),l=n(2788),d=n(1082);var c=t=>{let{data:e,activeCategory:n,setActiveCategory:o}=t;const{0:a,1:r}=(0,i.useState)(!1),l=(0,i.useRef)();return(0,i.useEffect)((()=>{let t;return a&&(t=t=>{l.current&&l.current.contains(t.target)||r(!1)},document.addEventListener("click",t)),()=>document.removeEventListener("click",t)}),[a]),i.createElement(s,null,i.createElement("h5",null,"Categories: "),i.createElement(p,{listOpen:a},i.createElement("button",{onClick:()=>r(!a)},n),i.createElement("ul",{listOpen:a,ref:l},e.map((t=>{const e=t.document.data.name;return i.createElement("li",{onClick:()=>(o(e),void r(!1))},i.createElement(d.Link,{to:""},e))})))))};const s=l.default.div.withConfig({componentId:"sc-1p8k822-0"})`
137	display: flex;
138	justify-content: flex-start;
139	align-items: flex-start;
140	gap: 5px;
141	
142	h5 {
143		color: white;
144		font-size: 18px;
145		line-height: 28px;
146
147    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
148      font-size: 20px;
149      line-height: 32px;
150    }
151	}
152`,p=l.default.div.withConfig({componentId:"sc-1p8k822-1"})`
153	position: relative;
154	
155	button {
156		background: transparent;
157		border: none;
158    color: white;
159    font-size: 18px;
160    line-height: 28px;
161		cursor: pointer;
162		margin-left: 5px;
163
164    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
165      font-size: 20px;
166      line-height: 32px;
167    }
168
169    &:after {
170      content: '';
171      display: inline-block;
172      margin-left: 10px;
173      background-image: url("data:image/svg+xml,%3Csvg width='24' height='15' viewBox='0 0 24 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.9834 1.99996L11.9917 11.9917L1.99993 1.99997' stroke='white' stroke-width='3.07438'/%3E%3C/svg%3E%0A");
174      background-size: contain;
175      background-repeat: no-repeat;
176      width: 15px;
177      height: 10px;
178	    transform: rotate(${t=>t.listOpen?"180deg":"0"});
179    }
180	}
181
182  ul {
183    visibility: ${t=>t.listOpen?"visible":"hidden"};
184    max-height: ${t=>t.listOpen?"230px":"0"};
185    opacity: ${t=>t.listOpen?"1":"0"};
186    overflow: hidden;
187    transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
188    position: absolute;
189    top: 100%;
190    left: 0;
191    z-index: 10;
192    background: #2A95BF;
193	  min-width: 175px	;
194
195    li {
196      color: white;
197      padding: 8px;
198	    cursor: pointer;
199      transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
200	    position: relative;
201	    
202	    &::before {
203        position: absolute;
204		    content: "";
205		    left: 0;
206		    top: 0;
207		    height: 100%;
208		    width: 2px;
209		    background: white;
210		    opacity: 0;
211        transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
212	    }
213	    
214	    &:hover {
215		    background: ${t=>{let{theme:e}=t;return e.colors.secondary_color}};
216        transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
217		    
218		    &::before {
219			    opacity: 1;
220          transition: ${t=>{let{theme:e}=t;return e.durations.transition}};
221		    }
222	    }
223    }
224  }
225`;var u=n(5195),m=n(7084);var h=t=>{var e,n,o;let{data:a}=t;const{categories:l,questions:d}=a,{0:s,1:p}=(0,i.useState)([]),{0:h,1:x}=(0,i.useState)(null===(e=d[0])||void 0===e||null===(n=e.node)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.category.document.data.name);return(0,i.useEffect)((()=>{const t=d.filter((t=>{var e,n;return(null==t||null===(e=t.node)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.category.document.data.name)===h}));p(t)}),[h]),i.createElement(r.S,{type:"violet",container:!0},i.createElement(g,null,i.createElement(u.W,null,i.createElement(f,null,i.createElement("h2",null,"Faqs"),i.createElement(c,{activeCategory:h,setActiveCategory:x,data:l})),i.createElement(m.Z,{data:s,background:"rgba(0, 84, 117, 0.8)"}))))};const g=l.default.section.withConfig({componentId:"sc-1204isw-0"})`
226  position: relative;
227  z-index: 1;
228  padding-bottom: 40px;
229`,f=l.default.div.withConfig({componentId:"sc-1204isw-1"})`
230  @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
231    margin-bottom: 30px;
232  }
233
234  h2 {
235    color: white;
236    text-transform: uppercase;
237    font-size: 30px;
238    line-height: 37px;
239    margin-bottom: 15px;
240
241    @media (min-width: ${t=>{let{theme:e}=t;return e.media.tablet_min}}) {
242      font-size: 64px;
243      line-height: 78px;
244      margin-bottom: 30px;
245    }
246  }
247`;var x=t=>
247{let{data:e,pageContext:n,location:r}=t;const{allPrismicQuestion:l}=e,{categories:d}=n,c=l.edges;return i.createElement(o.Z,{location:r},i.createElement(a.Z,{pathname:r.pathname,title:"Glossary"}),i.createElement(h,{data:{categories:d,questions:c}}))}}}]);
248//# sourceMappingURL=component---src-templates-faq-template-js-e75e1a4bf1fed3b1fac0.js.map

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.