@genesislcap/foundation-header 10.3.1 → 11.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/styles/index.d.ts +1 -1
- package/dist/dts/styles/index.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/components/components.js +0 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/index.federated.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/main/index.js +0 -1
- package/dist/esm/main/main.js +4 -5
- package/dist/esm/main/main.styles.js +1 -4
- package/dist/esm/main/main.template.js +0 -1
- package/dist/esm/styles/colors.js +0 -1
- package/dist/esm/styles/index.js +1 -2
- package/dist/esm/styles/styles.js +0 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/logger.js +0 -1
- package/package.json +12 -10
- package/dist/1.0.0.remoteEntry.js +0 -1
- package/dist/185.185.90f433f531991b7de936.js +0 -2
- package/dist/185.bfe96e990dc6f09220d09b8c95f4b54c.js.map +0 -1
- package/dist/31607cf9ccd469a62208.svg +0 -3
- package/dist/338.338.6641454ca7888d1fe36e.js +0 -2
- package/dist/338.94cb9596c131c99ac58a37f38ad25ce7.js.map +0 -1
- package/dist/397.397.2a1b48dbb33962f24b3a.js +0 -3
- package/dist/397.397.2a1b48dbb33962f24b3a.js.LICENSE.txt +0 -1
- package/dist/397.83dbb3ca8f1fe8d1a694b8c2feffc11b.js.map +0 -1
- package/dist/453.453.a2247ddad6f6385d77e5.js +0 -326
- package/dist/453.547b1f466caf28aca7644e9032ba33d9.js.map +0 -1
- package/dist/506.216099078d895d583f069d47bbbbc118.js.map +0 -1
- package/dist/506.506.2df96cfa49403c056e18.js +0 -3
- package/dist/506.506.2df96cfa49403c056e18.js.LICENSE.txt +0 -4
- package/dist/540.540.16a5312961af053a4ac4.js +0 -2
- package/dist/540.6abb416013642069288d5369cb3126c7.js.map +0 -1
- package/dist/641.5d1b071000ebacbeffeb45846633c4ce.js.map +0 -1
- package/dist/641.641.0d19c60ce5b96cee96e9.js +0 -3
- package/dist/641.641.0d19c60ce5b96cee96e9.js.LICENSE.txt +0 -4
- package/dist/667.667.76a963874a8ced0ba03f.js +0 -2
- package/dist/667.e80f70ba5418c8fd00213d1c8ef97b86.js.map +0 -1
- package/dist/853.234215e17d31fe35e24b3b9241a6b6fd.js.map +0 -1
- package/dist/853.853.2cdc8d94fdad1718e016.js +0 -2
- package/dist/868.868.1c7d7e3d7821494b3ae2.js +0 -3434
- package/dist/868.f796e350acd03aa052fa27272aa83afc.js.map +0 -1
- package/dist/dashboard.json +0 -1
- package/dist/dts/styles/typography.d.ts +0 -5
- package/dist/dts/styles/typography.d.ts.map +0 -1
- package/dist/esm/components/components.js.map +0 -1
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/index.federated.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/main/index.js.map +0 -1
- package/dist/esm/main/main.js.map +0 -1
- package/dist/esm/main/main.styles.js.map +0 -1
- package/dist/esm/main/main.template.js.map +0 -1
- package/dist/esm/styles/colors.js.map +0 -1
- package/dist/esm/styles/index.js.map +0 -1
- package/dist/esm/styles/styles.js.map +0 -1
- package/dist/esm/styles/typography.js +0 -20
- package/dist/esm/styles/typography.js.map +0 -1
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/esm/utils/logger.js.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/foundationHeader.685f4ee8e2cde1d2ba841d4feadbe883.js.map +0 -1
- package/dist/index.ejs +0 -23
- package/dist/index.html +0 -10
- package/dist/info.ejs +0 -13
- package/dist/info.html +0 -19
- package/dist/main.3ceec8a83bd7daabb733313329a49b5e.js.map +0 -1
- package/dist/main.af1b29c4ad243e418158.js +0 -2
- package/dist/npm.analytics.13d3017bcb2734b958e1c261c7e620d1.js.map +0 -1
- package/dist/npm.analytics.343.868701a34bf55591b35e.js +0 -2
- package/dist/npm.consola.713.a6a01a645775febbd05a.js +0 -2
- package/dist/npm.consola.d0475457692e79d2065981689ecbe6c8.js.map +0 -1
- package/dist/npm.dialog-polyfill.39e8a4cd9784ad9e0690d28f17eefeb3.js.map +0 -1
- package/dist/npm.dialog-polyfill.47.857e1cc698756a1d4d9f.js +0 -2
- package/dist/npm.finos.690.1d362c820f7a29e44178.js +0 -2
- package/dist/npm.finos.7eb5017b5506c0dd6de2c2bee763a997.js.map +0 -1
- package/dist/npm.fortawesome.104.6fdfed399ac3d4bcd076.js +0 -2
- package/dist/npm.fortawesome.96f1e7115d1e111bde725447b64f04a9.js.map +0 -1
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js +0 -6406
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js.LICENSE.txt +0 -14
- package/dist/npm.microsoft.93b16332ce7f1e3a889ad69e0403d652.js.map +0 -1
- package/dist/npm.rxjs.271.3c690069442a312eaee2.js +0 -2
- package/dist/npm.rxjs.3e4127a7515023cc78b8548028afb653.js.map +0 -1
- package/dist/remoteEntry.js +0 -2
- package/dist/serve.json +0 -3
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[453],{9190:(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var n=o(6221),i=o.n(n),r=o(7758),a=o.n(r)()(i());a.push([e.id,"/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n","",{version:3,sources:["webpack://./src/main/main.css"],names:[],mappings:"AAAA,sBAAsB;;AAEtB;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX;;AAEA;EACE,kBAAkB;AACpB",sourcesContent:["/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n"],sourceRoot:""}]);const c=a},7758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);n&&a[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},6221:e=>{"use strict";e.exports=function(e){var t=e[1],o=e[3];if(!o)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),r="/*# ".concat(i," */");return[t].concat([r]).join("\n")}return[t].join("\n")}},3278:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var r={},a=[],c=0;c<e.length;c++){var s=e[c],l=n.base?s[0]+n.base:s[0],d=r[l]||0,u="".concat(l," ").concat(d);r[l]=d+1;var p=o(u),g={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(g);else{var v=i(g,n);n.byIndex=c,t.splice(c,0,{identifier:u,updater:v,references:1})}a.push(u)}return a}function i(e,t){var o=t.domAPI(t);o.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,i){var r=n(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var c=o(r[a]);t[c].references--}for(var s=n(e,i),l=0;l<r.length;l++){var d=o(r[l]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=s}}},547:e=>{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},2593:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5604:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},8391:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var i=void 0!==o.layer;i&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,i&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7784:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},453:(e,t,o)=>{"use strict";o.r(t),o.d(t,{MainStyles:()=>E,NavTemplate:()=>N,Navigation:()=>H});var n=o(2617),i=o(1273);const r=`\n @font-face {\n font-family: Segoe UI;\n font-weight: 300;\n src: local("Segoe UI Semilight"), local("Segoe UI");\n }\n\n * {\n ${((e="normal",t="normal")=>`\n font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; \n font-style: ${e};\n font-weight: ${t};\n`)()}\n }\n`;var a=o(3278),c=o.n(a),s=o(8391),l=o.n(s),d=o(547),u=o.n(d),p=o(5604),g=o.n(p),v=o(2593),h=o.n(v),f=o(7784),m=o.n(f),b=o(9190),y={};y.styleTagTransform=m(),y.setAttributes=g(),y.insert=u().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=h();c()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;var x=o(4157),w=o(4954);const $=(e,t=1)=>new x.h(e.r,e.g,e.b,t).toStringWebRGBA();var k,z;!function(e){e.blue="#0eafe2",e.purple="#654df9"}(k||(k={})),function(e){e.black="#000000",e.white="#FFFFFF",e.almostWhite="#F1F1F1",e.lightGrey="#2E3339",e.mediumGrey="#2C2F33",e.darkGrey="#1F2126",e.darkerGrey="#141519"}(z||(z={}));const A=$((0,w.in)("#FFF"),.5),_=$((0,w.in)("#FFF"),.05),S=$((0,w.in)(k.blue),.5),E=i.css`
|
|
2
|
-
${r}
|
|
3
|
-
:host {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
|
|
7
|
-
--primary-gradient-angle: -113.5deg;
|
|
8
|
-
--design-unit: 2.5;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
zero-design-system-provider,
|
|
12
|
-
.dynamic-template {
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.nav-listbox {
|
|
17
|
-
background: ${n.neutralLayer2};
|
|
18
|
-
display: flex;
|
|
19
|
-
flex: 1;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
fast-listbox {
|
|
27
|
-
border-color: var(--rapid-ag-background-color);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.nav-leftside {
|
|
31
|
-
background: ${n.neutralLayer2};
|
|
32
|
-
flex: 1;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
align-items: center;
|
|
35
|
-
margin-left: calc(var(--design-unit) * 6px);
|
|
36
|
-
display: flex;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.nav-leftside:focus-within {
|
|
40
|
-
box-shadow: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
::slotted(fast-option),
|
|
44
|
-
.nav-listbox fast-option {
|
|
45
|
-
margin: 0 calc(var(--design-unit) * 2px);
|
|
46
|
-
padding: 0 calc(var(--design-unit) * 6px);
|
|
47
|
-
|
|
48
|
-
--focus-stroke-width: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
::slotted(fast-option.selected),
|
|
52
|
-
.nav-listbox fast-option.selected {
|
|
53
|
-
background: ${S};
|
|
54
|
-
color: ${z.white};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
::slotted(fast-option:not(.selected)),
|
|
58
|
-
.nav-listbox fast-option:not(.selected) {
|
|
59
|
-
background-color: ${_};
|
|
60
|
-
color: #c9c9c9;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
::slotted(fast-option:not(.selected):hover),
|
|
64
|
-
.nav-listbox fast-option:not(.selected):hover {
|
|
65
|
-
background-color: ${A};
|
|
66
|
-
color: ${z.white};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.top-layout zero-icon {
|
|
70
|
-
position: absolute;
|
|
71
|
-
right: calc(var(--design-unit) * 6px);
|
|
72
|
-
top: 50%;
|
|
73
|
-
transform: translateY(-50%);
|
|
74
|
-
font-size: 25px;
|
|
75
|
-
opacity: 80%;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.logout-container zero-icon {
|
|
80
|
-
padding: 0 calc(var(--design-unit) * 3px);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.nav-listbox .bars-container {
|
|
84
|
-
margin-right: calc(var(--design-unit) * 3px);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.user-container zero-icon {
|
|
88
|
-
font-size: 20px;
|
|
89
|
-
margin-right: calc(var(--design-unit) * 2px);
|
|
90
|
-
color: #879ba6;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.group-container zero-icon {
|
|
94
|
-
padding-right: 10px;
|
|
95
|
-
color: #879ba6;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.nav-listbox .bars-container zero-icon {
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
font-size: calc(var(--design-unit) * 8px);
|
|
101
|
-
background: linear-gradient(
|
|
102
|
-
var(--primary-gradient-angle),
|
|
103
|
-
${k.blue} 0%,
|
|
104
|
-
${k.purple} 100%
|
|
105
|
-
)
|
|
106
|
-
top/100% 1px,
|
|
107
|
-
linear-gradient(
|
|
108
|
-
var(--primary-gradient-angle),
|
|
109
|
-
${k.blue} 0%,
|
|
110
|
-
${k.purple} 100%
|
|
111
|
-
)
|
|
112
|
-
bottom/100% 1px;
|
|
113
|
-
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
114
|
-
-webkit-background-clip: text;
|
|
115
|
-
-webkit-text-fill-color: transparent;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.logo-container {
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
margin-right: calc(var(--design-unit) * 3px);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.logo {
|
|
125
|
-
height: calc(var(--design-unit) * 8px);
|
|
126
|
-
width: calc(var(--design-unit) * 10px);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.nav-rightside {
|
|
130
|
-
display: flex;
|
|
131
|
-
flex: 1;
|
|
132
|
-
flex-direction: row;
|
|
133
|
-
align-items: center;
|
|
134
|
-
justify-content: flex-end;
|
|
135
|
-
margin-right: calc(var(--design-unit) * 6px);
|
|
136
|
-
color: #c9c9c9;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.user-container {
|
|
140
|
-
background-color: ${_};
|
|
141
|
-
padding: calc(var(--design-unit) * 1px);
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
display: flex;
|
|
144
|
-
align-items: center;
|
|
145
|
-
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
146
|
-
cursor: pointer;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.icon-container {
|
|
150
|
-
font-size: 20px;
|
|
151
|
-
padding: calc(var(--design-unit) * 3px);
|
|
152
|
-
margin-right: calc(var(--design-unit) * 4px);
|
|
153
|
-
color: #879ba6;
|
|
154
|
-
cursor: pointer;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.open-nav {
|
|
158
|
-
width: 300px;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.top-layout {
|
|
162
|
-
background: linear-gradient(
|
|
163
|
-
var(--primary-gradient-angle),
|
|
164
|
-
${k.blue} 0%,
|
|
165
|
-
${k.purple} 100%
|
|
166
|
-
)
|
|
167
|
-
top/100% 1px,
|
|
168
|
-
linear-gradient(
|
|
169
|
-
var(--primary-gradient-angle),
|
|
170
|
-
${k.blue} 0%,
|
|
171
|
-
${k.purple} 100%
|
|
172
|
-
)
|
|
173
|
-
bottom/100% 1px;
|
|
174
|
-
background-origin: border-box;
|
|
175
|
-
background-size: cover;
|
|
176
|
-
background-repeat: no-repeat;
|
|
177
|
-
width: 100%;
|
|
178
|
-
height: 15%;
|
|
179
|
-
max-height: 120px;
|
|
180
|
-
display: flex;
|
|
181
|
-
flex-direction: row;
|
|
182
|
-
align-items: center;
|
|
183
|
-
position: relative;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.top-layout img {
|
|
187
|
-
width: 50px;
|
|
188
|
-
margin-left: calc(var(--design-unit) * 6px);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.top-layout zero-icon:hover {
|
|
192
|
-
opacity: 100%;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.group-container {
|
|
196
|
-
height: 100%;
|
|
197
|
-
display: flex;
|
|
198
|
-
flex-direction: column;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
::slotted(zero-tree-view) {
|
|
202
|
-
--type-ramp-base-font-size: 12px;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
::slotted(div) {
|
|
206
|
-
color: ${k.blue};
|
|
207
|
-
font-size: var(--type-ramp-minus-1-font-size);
|
|
208
|
-
margin-bottom: calc(var(--design-unit) * 4px);
|
|
209
|
-
padding-left: calc(var(--design-unit) * 4px);
|
|
210
|
-
padding-right: calc(var(--design-unit) * 4px);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.nav-preferences {
|
|
214
|
-
width: 100%;
|
|
215
|
-
height: 25%;
|
|
216
|
-
max-height: 250px;
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
justify-content: flex-start;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.logout-container {
|
|
223
|
-
align-items: center;
|
|
224
|
-
background-color: var(--neutral-fill-rest);
|
|
225
|
-
border: calc(var(--stroke-width) * 1px) solid ${_};
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-direction: row;
|
|
229
|
-
height: 8%;
|
|
230
|
-
max-height: 80px;
|
|
231
|
-
padding: 3%;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.logout-container:hover {
|
|
235
|
-
background-color: var(--neutral-fill-hover);
|
|
236
|
-
}
|
|
237
|
-
`,C=i.html`
|
|
238
|
-
<zero-flyout
|
|
239
|
-
position="left"
|
|
240
|
-
?closed=${e=>!e.sideNavOpen}
|
|
241
|
-
@closed=${e=>e.toggleNavVisibility()}
|
|
242
|
-
>
|
|
243
|
-
<img slot="title" src=${e=>e.logoSrc} class="logo" part="side-nav-logo" />
|
|
244
|
-
<slot name="menu-contents"></slot>
|
|
245
|
-
<div slot="footer" class="logout-container" @click=${e=>e.logout()}>
|
|
246
|
-
<zero-icon name="sign-out-alt"></zero-icon>
|
|
247
|
-
Sign out
|
|
248
|
-
</div>
|
|
249
|
-
</zero-flyout>
|
|
250
|
-
`,T=i.html`
|
|
251
|
-
<zero-button appearance="neutral-grey" value="1" @click=${e=>e.navigateTo("protected")}>
|
|
252
|
-
<zero-icon name="home"></zero-icon>
|
|
253
|
-
Home
|
|
254
|
-
</zero-button>
|
|
255
|
-
<fast-option value="2" @click=${e=>e.navigateTo("not-found")}>
|
|
256
|
-
<zero-icon name="users"></zero-icon>
|
|
257
|
-
Profiles
|
|
258
|
-
</fast-option>
|
|
259
|
-
`,F=i.html`
|
|
260
|
-
<template>
|
|
261
|
-
${(0,i.repeat)((e=>e.routeButtons),i.html`
|
|
262
|
-
<zero-button
|
|
263
|
-
appearance="neutral-grey"
|
|
264
|
-
slot="routes"
|
|
265
|
-
value="${e=>e.index}"
|
|
266
|
-
@click=${(e,t)=>t.parent.navigateTo(e.path)}
|
|
267
|
-
>
|
|
268
|
-
<zero-icon variant="${e=>e.variant}" name="${e=>e.icon}"></zero-icon>
|
|
269
|
-
${e=>e.title}
|
|
270
|
-
</zero-button>
|
|
271
|
-
`)}
|
|
272
|
-
</template>
|
|
273
|
-
`,N=i.html`
|
|
274
|
-
${(0,i.when)((e=>!e.hideSideBar),C)}
|
|
275
|
-
<div class="nav-listbox">
|
|
276
|
-
<div class="nav-leftside">
|
|
277
|
-
${(0,i.when)((e=>!e.hideSideBar),i.html`
|
|
278
|
-
<div class="bars-container" @click=${e=>e.toggleNavVisibility()}>
|
|
279
|
-
<zero-icon name="bars"></zero-icon>
|
|
280
|
-
</div>
|
|
281
|
-
`)}
|
|
282
|
-
<div class="logo-container"><img src=${e=>e.logoSrc} class="logo" part="logo" /></div>
|
|
283
|
-
<slot name="routes">
|
|
284
|
-
${e=>e.routeButtons?F:T}
|
|
285
|
-
</slot>
|
|
286
|
-
</div>
|
|
287
|
-
<div class="nav-rightside">
|
|
288
|
-
${(0,i.when)((e=>e.showLuminanceToggleButton),i.html`
|
|
289
|
-
<div class="icon-container">
|
|
290
|
-
<zero-icon
|
|
291
|
-
@click=${e=>e.luminanceIconEvent()}
|
|
292
|
-
variant="regular"
|
|
293
|
-
name="moon"
|
|
294
|
-
></zero-icon>
|
|
295
|
-
</div>
|
|
296
|
-
`)}
|
|
297
|
-
${(0,i.when)((e=>e.showMiscToggleButton),i.html`
|
|
298
|
-
<div class="icon-container">
|
|
299
|
-
<zero-icon @click=${e=>e.miscIconEvent()} name="th"></zero-icon>
|
|
300
|
-
</div>
|
|
301
|
-
`)}
|
|
302
|
-
${(0,i.when)((e=>e.showNotificationsButton),i.html`
|
|
303
|
-
<div class="icon-container">
|
|
304
|
-
<zero-icon
|
|
305
|
-
variant="regular"
|
|
306
|
-
@click=${e=>e.notificationIconEvent()}
|
|
307
|
-
name="bell"
|
|
308
|
-
></zero-icon>
|
|
309
|
-
</div>
|
|
310
|
-
`)}
|
|
311
|
-
<zero-button appearance="neutral-grey">
|
|
312
|
-
<zero-icon name="user-circle"></zero-icon>
|
|
313
|
-
${e=>e.userName}
|
|
314
|
-
</zero-button>
|
|
315
|
-
</div>
|
|
316
|
-
</div>
|
|
317
|
-
`,B=i.html`
|
|
318
|
-
<zero-design-system-provider ${(0,i.ref)("provider")}>
|
|
319
|
-
<div class="dynamic-template">${e=>e.selectTemplate()}</div>
|
|
320
|
-
</zero-design-system-provider>
|
|
321
|
-
`,I=i.html`
|
|
322
|
-
...
|
|
323
|
-
`,M=i.html`
|
|
324
|
-
${N}
|
|
325
|
-
`;var U=o(5373),j=o(2140),R=o(2848),L=o(6483);const O=(0,o(7981).createLogger)("foundation-header");var Z;(0,n.provideFASTDesignSystem)().register(n.allComponents),function(e){e.local="local",e.remote="remote"}(Z||(Z={}));const D=()=>(0,U.__awaiter)(void 0,void 0,void 0,(function*(){let e=Z.remote;try{return yield o.e(993).then(o.t.bind(o,2993,23))}catch(t){return e=Z.local,yield o.e(671).then(o.t.bind(o,3671,23))}finally{O.debug(`Using '${e}' version of foundationZero/DesignSystem`)}}));var G=o(6547);const W="foundation-header";let H=class extends((0,R.EventEmitter)(i.FASTElement)){constructor(){super(...arguments),this.ready=!1,this.sideNavOpen=!1,this.logoSrc=G}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,U.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),O.debug(`${W} is now connected to the DOM`),yield this.loadRemotes(),this.userName=this.auth.loggedUserResult?this.auth.loggedUserResult.username:"Genesis User"}))}loadRemotes(){return(0,U.__awaiter)(this,void 0,void 0,(function*(){yield(0,U.__awaiter)(void 0,void 0,void 0,(function*(){const{registerZeroDesignSystem:e}=yield D();return{ZeroDesignSystem:e()}}));this.ready=!0}))}selectTemplate(){return this.ready?M:I}logout(){return(0,U.__awaiter)(this,void 0,void 0,(function*(){O.debug("logout submission");try{const e=yield this.auth.logout();if(!e.success)return void O.error("Couldn't log out",e);O.debug("logged out",e),yield this.credentialManager.preventSilentAccess(),this.navigateTo("/")}catch(e){O.error(`Error: ${e.message}`)}}))}navigateTo(e){try{O.debug("navigateTo",e),L.AW.path.push(e)}catch(e){O.error(`Error: ${e.message}`)}}toggleNavVisibility(){this.sideNavOpen=!this.sideNavOpen}luminanceIconEvent(){this.$emit("luminance-icon-clicked")}miscIconEvent(){this.$emit("misc-icon-clicked")}notificationIconEvent(){this.$emit("notification-icon-clicked")}};(0,U.__decorate)([j.Auth],H.prototype,"auth",void 0),(0,U.__decorate)([j.CredentialManager],H.prototype,"credentialManager",void 0),(0,U.__decorate)([i.observable],H.prototype,"provider",void 0),(0,U.__decorate)([i.observable],H.prototype,"ready",void 0),(0,U.__decorate)([i.observable],H.prototype,"userName",void 0),(0,U.__decorate)([i.observable],H.prototype,"sideNavOpen",void 0),(0,U.__decorate)([(0,i.attr)({attribute:"logo-src"})],H.prototype,"logoSrc",void 0),(0,U.__decorate)([(0,i.attr)({mode:"boolean",attribute:"show-luminance-toggle-button"})],H.prototype,"showLuminanceToggleButton",void 0),(0,U.__decorate)([(0,i.attr)({mode:"boolean",attribute:"show-misc-toggle-button"})],H.prototype,"showMiscToggleButton",void 0),(0,U.__decorate)([(0,i.attr)({mode:"boolean",attribute:"show-notification-button"})],H.prototype,"showNotificationsButton",void 0),(0,U.__decorate)([(0,i.attr)({mode:"boolean",attribute:"hide-side-bar"})],H.prototype,"hideSideBar",void 0),(0,U.__decorate)([i.observable],H.prototype,"routeButtons",void 0),H=(0,U.__decorate)([(0,i.customElement)({name:W,template:B,styles:E})],H)},6547:(e,t,o)=>{"use strict";e.exports=o.p+"31607cf9ccd469a62208.svg"}}]);
|
|
326
|
-
//# sourceMappingURL=453.547b1f466caf28aca7644e9032ba33d9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://@genesislcap/foundation-header/./src/main/main.css","webpack://@genesislcap/foundation-header/../node_modules/css-loader/dist/runtime/api.js","webpack://@genesislcap/foundation-header/../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@genesislcap/foundation-header/../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@genesislcap/foundation-header/./src/styles/typography.ts","webpack://@genesislcap/foundation-header/./src/main/main.css?7e44","webpack://@genesislcap/foundation-header/./src/styles/colors.ts","webpack://@genesislcap/foundation-header/./src/main/main.styles.ts","webpack://@genesislcap/foundation-header/./src/main/main.template.ts","webpack://@genesislcap/foundation-header/./src/utils/logger.ts","webpack://@genesislcap/foundation-header/./src/components/components.ts","webpack://@genesislcap/foundation-header/./src/main/main.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","stylesFontFaces","weight","mixinSegoeUI","getWebRGBA","rgb","alpha","r","g","b","toStringWebRGBA","PrimaryRapidColorHEX","ColorHEX","defaultBackgroundHover","defaultBackgroundItem","backgroundNavOption","blue","MainStyles","neutralLayer2","white","purple","sideNavTemplate","html","x","sideNavOpen","toggleNavVisibility","logoSrc","logout","defaultRouteButtonsTemplate","navigateTo","routeButtonsTemplate","repeat","routeButtons","c","parent","path","variant","icon","title","NavTemplate","when","hideSideBar","showLuminanceToggleButton","luminanceIconEvent","showMiscToggleButton","miscIconEvent","showNotificationsButton","notificationIconEvent","userName","DynamicTemplate","ref","selectTemplate","LoadingTemplate","MainTemplate","logger","createLogger","ResourceType","provideFASTDesignSystem","register","allComponents","loadZeroDesignSystem","type","remote","local","debug","Navigation","EventEmitter","FASTElement","ready","logo","connectedCallback","loadRemotes","auth","loggedUserResult","username","registerZeroDesignSystem","ZeroDesignSystem","success","error","credentialManager","preventSilentAccess","err","message","$emit","Auth","CredentialManager","observable","attr","attribute","mode","customElement","name","template","styles"],"mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4JAA6J,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,iCAAiC,MAAQ,GAAG,SAAW,2FAA2F,eAAiB,CAAC,6JAA6J,WAAa,MAE/iB,S,wBCDAD,EAAOE,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWN,EAAuBK,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,CACT,IAAGI,KAAK,GACV,EAGAT,EAAKU,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,iBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASK,KAE7B,IAAIC,EAAyB,CAAC,EAC9B,GAAIJ,EACF,IAAK,IAAIK,EAAI,EAAGA,EAAIhB,KAAKM,OAAQU,IAAK,CACpC,IAAIrB,EAAKK,KAAKgB,GAAG,GACP,MAANrB,IACFoB,EAAuBpB,IAAM,EAEjC,CAEF,IAAK,IAAIsB,EAAK,EAAGA,EAAKR,EAAQH,OAAQW,IAAM,CAC1C,IAAIf,EA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AWD,UAAW,6B,4CAWpC,kBADC,IAAAD,MAAK,CAAEE,KAAM,UAAWD,UAAW,8B,+CASpC,kBADC,IAAAD,MAAK,CAAEE,KAAM,UAAWD,UAAW,mB,mCAMxB,iBAAX,EAAAF,Y,mCA5EUrB,GAAU,kBALtB,IAAAyB,eAAc,CACbC,KAAI,EACJC,SAAQ,EACRC,OAAM,KAEK5B,E","file":"453.453.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* index.ejs styling */\\n\\nhtml,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\\n:not(:defined) {\\n visibility: hidden;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA,sBAAsB;;AAEtB;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX;;AAEA;EACE,kBAAkB;AACpB\",\"sourcesContent\":[\"/* index.ejs styling */\\n\\nhtml,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\\n:not(:defined) {\\n visibility: hidden;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","/**\n * TODO: Bring all the style and typography mixins into the design system package\n */\n\nconst mixinSegoeUI = (style = 'normal', weight = 'normal') => `\n font-family: \"Segoe UI\", \"Helvetica Neue\", Arial, sans-serif; \n font-style: ${style};\n font-weight: ${weight};\n`;\n\nexport const stylesFontFaces = `\n @font-face {\n font-family: Segoe UI;\n font-weight: 300;\n src: local(\"Segoe UI Semilight\"), local(\"Segoe UI\");\n }\n\n * {\n ${mixinSegoeUI()}\n }\n`;\n","\n import API from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { ColorRGBA64, parseColorHexRGB } from '@microsoft/fast-colors';\n\nexport const getWebRGBA = (rgb: ColorRGBA64, alpha: number = 1.0) => {\n const rgba = new ColorRGBA64(rgb.r, rgb.g, rgb.b, alpha);\n return rgba.toStringWebRGBA();\n};\n\nexport enum PrimaryRapidColorHEX {\n blue = '#0eafe2',\n purple = '#654df9',\n}\n\nexport enum ColorHEX {\n black = '#000000',\n white = '#FFFFFF',\n almostWhite = '#F1F1F1',\n\n lightGrey = '#2E3339',\n\n mediumGrey = '#2C2F33',\n\n darkGrey = '#1F2126',\n darkerGrey = '#141519',\n}\n\nconst backgroundHoverOpacity = 0.5;\nconst backgroundItemOpacity = 0.05;\nconst backgroundNavOptionOpacity = 0.5;\n\nexport const defaultBackgroundHover = getWebRGBA(parseColorHexRGB('#FFF'), backgroundHoverOpacity);\nexport const defaultBackgroundItem = getWebRGBA(parseColorHexRGB('#FFF'), backgroundItemOpacity);\nexport const backgroundNavOption = getWebRGBA(\n parseColorHexRGB(PrimaryRapidColorHEX.blue),\n backgroundNavOptionOpacity\n);\n","import {\n neutralFillFocus,\n neutralLayer2,\n neutralStrokeHover,\n neutralStrokeRest,\n} from '@microsoft/fast-components';\nimport { css } from '@microsoft/fast-element';\nimport { stylesFontFaces } from '../styles';\nimport './main.css';\nimport {\n backgroundNavOption,\n ColorHEX,\n defaultBackgroundHover,\n defaultBackgroundItem,\n PrimaryRapidColorHEX,\n} from '../styles/colors';\n\n/**\n * Base styles for the foundation-header\n *\n * @returns ElementStyles instance for the foundation-header\n *\n * @public\n */\nexport const MainStyles = css`\n ${stylesFontFaces}\n :host {\n display: flex;\n flex-direction: row;\n\n --primary-gradient-angle: -113.5deg;\n --design-unit: 2.5;\n }\n\n zero-design-system-provider,\n .dynamic-template {\n width: 100%;\n }\n\n .nav-listbox {\n background: ${neutralLayer2};\n display: flex;\n flex: 1;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);\n }\n\n fast-listbox {\n border-color: var(--rapid-ag-background-color);\n }\n\n .nav-leftside {\n background: ${neutralLayer2};\n flex: 1;\n flex-direction: row;\n align-items: center;\n margin-left: calc(var(--design-unit) * 6px);\n display: flex;\n }\n\n .nav-leftside:focus-within {\n box-shadow: none;\n }\n\n ::slotted(fast-option),\n .nav-listbox fast-option {\n margin: 0 calc(var(--design-unit) * 2px);\n padding: 0 calc(var(--design-unit) * 6px);\n\n --focus-stroke-width: 0;\n }\n\n ::slotted(fast-option.selected),\n .nav-listbox fast-option.selected {\n background: ${backgroundNavOption};\n color: ${ColorHEX.white};\n }\n\n ::slotted(fast-option:not(.selected)),\n .nav-listbox fast-option:not(.selected) {\n background-color: ${defaultBackgroundItem};\n color: #c9c9c9;\n }\n\n ::slotted(fast-option:not(.selected):hover),\n .nav-listbox fast-option:not(.selected):hover {\n background-color: ${defaultBackgroundHover};\n color: ${ColorHEX.white};\n }\n\n .top-layout zero-icon {\n position: absolute;\n right: calc(var(--design-unit) * 6px);\n top: 50%;\n transform: translateY(-50%);\n font-size: 25px;\n opacity: 80%;\n cursor: pointer;\n }\n\n .logout-container zero-icon {\n padding: 0 calc(var(--design-unit) * 3px);\n }\n\n .nav-listbox .bars-container {\n margin-right: calc(var(--design-unit) * 3px);\n }\n\n .user-container zero-icon {\n font-size: 20px;\n margin-right: calc(var(--design-unit) * 2px);\n color: #879ba6;\n }\n\n .group-container zero-icon {\n padding-right: 10px;\n color: #879ba6;\n }\n\n .nav-listbox .bars-container zero-icon {\n cursor: pointer;\n font-size: calc(var(--design-unit) * 8px);\n background: linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n top/100% 1px,\n linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n bottom/100% 1px;\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n .logo-container {\n display: flex;\n align-items: center;\n margin-right: calc(var(--design-unit) * 3px);\n }\n\n .logo {\n height: calc(var(--design-unit) * 8px);\n width: calc(var(--design-unit) * 10px);\n }\n\n .nav-rightside {\n display: flex;\n flex: 1;\n flex-direction: row;\n align-items: center;\n justify-content: flex-end;\n margin-right: calc(var(--design-unit) * 6px);\n color: #c9c9c9;\n }\n\n .user-container {\n background-color: ${defaultBackgroundItem};\n padding: calc(var(--design-unit) * 1px);\n font-size: 14px;\n display: flex;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 1px);\n cursor: pointer;\n }\n\n .icon-container {\n font-size: 20px;\n padding: calc(var(--design-unit) * 3px);\n margin-right: calc(var(--design-unit) * 4px);\n color: #879ba6;\n cursor: pointer;\n }\n\n .open-nav {\n width: 300px;\n }\n\n .top-layout {\n background: linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n top/100% 1px,\n linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n bottom/100% 1px;\n background-origin: border-box;\n background-size: cover;\n background-repeat: no-repeat;\n width: 100%;\n height: 15%;\n max-height: 120px;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: relative;\n }\n\n .top-layout img {\n width: 50px;\n margin-left: calc(var(--design-unit) * 6px);\n }\n\n .top-layout zero-icon:hover {\n opacity: 100%;\n }\n\n .group-container {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n ::slotted(zero-tree-view) {\n --type-ramp-base-font-size: 12px;\n }\n\n ::slotted(div) {\n color: ${PrimaryRapidColorHEX.blue};\n font-size: var(--type-ramp-minus-1-font-size);\n margin-bottom: calc(var(--design-unit) * 4px);\n padding-left: calc(var(--design-unit) * 4px);\n padding-right: calc(var(--design-unit) * 4px);\n }\n\n .nav-preferences {\n width: 100%;\n height: 25%;\n max-height: 250px;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n\n .logout-container {\n align-items: center;\n background-color: var(--neutral-fill-rest);\n border: calc(var(--stroke-width) * 1px) solid ${defaultBackgroundItem};\n cursor: pointer;\n display: flex;\n flex-direction: row;\n height: 8%;\n max-height: 80px;\n padding: 3%;\n }\n\n .logout-container:hover {\n background-color: var(--neutral-fill-hover);\n }\n`;\n","import { html, ref, repeat, when } from '@microsoft/fast-element';\nimport type { ViewTemplate } from '@microsoft/fast-element';\nimport type { Navigation } from './main';\n\nconst sideNavTemplate = html<Navigation>`\n <zero-flyout\n position=\"left\"\n ?closed=${(x) => !x.sideNavOpen}\n @closed=${(x) => x.toggleNavVisibility()}\n >\n <img slot=\"title\" src=${(x) => x.logoSrc} class=\"logo\" part=\"side-nav-logo\" />\n <slot name=\"menu-contents\"></slot>\n <div slot=\"footer\" class=\"logout-container\" @click=${(x) => x.logout()}>\n <zero-icon name=\"sign-out-alt\"></zero-icon>\n Sign out\n </div>\n </zero-flyout>\n`;\n\nconst defaultRouteButtonsTemplate = html<Navigation>`\n <zero-button appearance=\"neutral-grey\" value=\"1\" @click=${(x) => x.navigateTo('protected')}>\n <zero-icon name=\"home\"></zero-icon>\n Home\n </zero-button>\n <fast-option value=\"2\" @click=${(x) => x.navigateTo('not-found')}>\n <zero-icon name=\"users\"></zero-icon>\n Profiles\n </fast-option>\n`;\n\nconst routeButtonsTemplate = html<Navigation>`\n <template>\n ${repeat(\n (x) => x.routeButtons,\n html`\n <zero-button\n appearance=\"neutral-grey\"\n slot=\"routes\"\n value=\"${(x) => x.index}\"\n @click=${(x, c) => c.parent.navigateTo(x.path)}\n >\n <zero-icon variant=\"${(x) => x.variant}\" name=\"${(x) => x.icon}\"></zero-icon>\n ${(x) => x.title}\n </zero-button>\n `\n )}\n </template>\n`;\n\n/**\n * Template for Navigation class\n *\n * @remarks\n *\n * Contains the template for both the sidenav and the navigation bar\n *\n * @typeParam Navigation - Navigation class\n *\n * @returns ViewTemplate instance of the Navigation html\n *\n * @public\n */\nexport const NavTemplate = html<Navigation>`\n ${when((x) => !x.hideSideBar, sideNavTemplate)}\n <div class=\"nav-listbox\">\n <div class=\"nav-leftside\">\n ${when(\n (x) => !x.hideSideBar,\n html<Navigation>`\n <div class=\"bars-container\" @click=${(x) => x.toggleNavVisibility()}>\n <zero-icon name=\"bars\"></zero-icon>\n </div>\n `\n )}\n <div class=\"logo-container\"><img src=${(x) => x.logoSrc} class=\"logo\" part=\"logo\" /></div>\n <slot name=\"routes\">\n ${(x) => (x.routeButtons ? routeButtonsTemplate : defaultRouteButtonsTemplate)}\n </slot>\n </div>\n <div class=\"nav-rightside\">\n ${when(\n (x) => x.showLuminanceToggleButton,\n html<Navigation>`\n <div class=\"icon-container\">\n <zero-icon\n @click=${(x) => x.luminanceIconEvent()}\n variant=\"regular\"\n name=\"moon\"\n ></zero-icon>\n </div>\n `\n )}\n ${when(\n (x) => x.showMiscToggleButton,\n html<Navigation>`\n <div class=\"icon-container\">\n <zero-icon @click=${(x) => x.miscIconEvent()} name=\"th\"></zero-icon>\n </div>\n `\n )}\n ${when(\n (x) => x.showNotificationsButton,\n html<Navigation>`\n <div class=\"icon-container\">\n <zero-icon\n variant=\"regular\"\n @click=${(x) => x.notificationIconEvent()}\n name=\"bell\"\n ></zero-icon>\n </div>\n `\n )}\n <zero-button appearance=\"neutral-grey\">\n <zero-icon name=\"user-circle\"></zero-icon>\n ${(x) => x.userName}\n </zero-button>\n </div>\n </div>\n`;\n\n/**\n * Top level template for Navigation class\n *\n * @remarks\n *\n * Dynamic template which wraps the code in a provider\n *\n * @typeParam Navigation - Navigation class\n *\n * @returns ViewTemplate instance of the Navigation html\n *\n * @internal\n */\nexport const DynamicTemplate: ViewTemplate<Navigation> = html`\n <zero-design-system-provider ${ref('provider')}>\n <div class=\"dynamic-template\">${(x) => x.selectTemplate()}</div>\n </zero-design-system-provider>\n`;\n\n/**\n * Loading template for the Navigation class\n *\n * @remarks\n *\n * Template used to indicate loading to the user\n *\n * @typeParam Navigation - Navigation class\n *\n * @returns ViewTemplate instance of the Loading html\n *\n * @internal\n */\nexport const LoadingTemplate: ViewTemplate<Navigation> = html`\n ...\n`;\n\n/**\n * Render template for the Navigation class\n *\n * @remarks\n *\n * Template used when the class has finished loading\n *\n * @typeParam Navigation - Navigation class\n *\n * @returns ViewTemplate instance of the Main html\n *\n * @internal\n */\nexport const MainTemplate: ViewTemplate<Navigation> = html`\n ${NavTemplate}\n`;\n","import { createLogger } from '@genesislcap/foundation-utils';\nexport const logger = createLogger('foundation-header');\n","/**\n * These DS / Component imports will be replaced with an import from the local alpha design system.\n * We're just fixing something on our side to allow you to extend zero.\n */\nimport { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';\nimport { logger } from '../utils';\n\nprovideFASTDesignSystem().register(allComponents);\n\nenum ResourceType {\n local = 'local',\n remote = 'remote',\n}\n\nfunction loadZeroFallback() {\n return import(\n /* webpackMode: \"lazy\" */\n '@genesislcap/foundation-zero'\n );\n}\n\nexport const loadZeroDesignSystem = async () => {\n let type = ResourceType.remote;\n try {\n // @ts-ignore\n return await import('foundationZero/ZeroDesignSystem');\n } catch (e) {\n type = ResourceType.local;\n return await loadZeroFallback();\n } finally {\n logger.debug(`Using '${type}' version of foundationZero/DesignSystem`);\n }\n};\n\n/**\n * Load the wp5 module federation remote versions, or fallback to code split bundled versions.\n * You would really be targeting the client's design system, components etc here. For now just targeting zero.\n */\nexport const loadRemotes = async () => {\n const { registerZeroDesignSystem } = await loadZeroDesignSystem();\n return {\n ZeroDesignSystem: registerZeroDesignSystem(),\n };\n};\n","import { Auth, CredentialManager, LogoutResult } from '@genesislcap/foundation-comms';\nimport { EventEmitter } from '@genesislcap/foundation-events';\nimport { FASTElement, customElement, observable, attr, html } from '@microsoft/fast-element';\nimport { Route } from '@microsoft/fast-router';\nimport { DynamicTemplate as template, LoadingTemplate, MainTemplate } from './main.template';\nimport { MainStyles as styles } from './main.styles';\nimport { logger } from '../utils';\nimport { classNames } from '@microsoft/fast-web-utilities';\nimport * as Components from '../components';\nimport { Flyout } from '@genesislcap/foundation-zero';\nimport logo from '../assets/logo.svg';\n\nconst name = 'foundation-header';\n\n/**\n * Events dispatched by the navigation control buttons\n * @public\n */\nexport type NavEventDetailMap = {\n 'luminance-icon-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n};\n\n// We'd add extra types to our event map via type intersection here if needed\ntype EventMap = NavEventDetailMap;\n\n/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar\n * and flyout menu. There are multiple ways that the behaviour of the component can be configured\n * - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default).\n * - navigation links at the left-hand side of the navigation bar.\n * - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners\n * - The contents of the flyout menu.\n *\n * @param logo-src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n * @param show-luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n * @param show-misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n * @param show-misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @public\n */\n@customElement({\n name,\n template,\n styles,\n})\nexport class Navigation extends EventEmitter<EventMap>(FASTElement) {\n @Auth auth!: Auth;\n @CredentialManager credentialManager!: CredentialManager;\n @observable provider!: any;\n @observable ready: boolean = false;\n\n /**\n * Username of the logged in user\n */\n @observable public userName: string;\n\n @observable sideNavOpen = false;\n\n public async connectedCallback() {\n super.connectedCallback();\n logger.debug(`${name} is now connected to the DOM`);\n await this.loadRemotes();\n\n this.userName = this.auth.loggedUserResult\n ? this.auth.loggedUserResult.username\n : 'Genesis User';\n }\n\n /**\n * Optional attribute which controls the icon to show on the navigation bar and flyout\n * Control via `logo-src`\n *\n * @remarks\n *\n * If this attribute is not set then the Genesis logo is shown instead\n */\n @attr({ attribute: 'logo-src' }) logoSrc: any = logo;\n\n /**\n * Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar\n * Control via`show-luminance-toggle-button`\n *\n * @remarks\n *\n * If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event\n */\n @attr({ mode: 'boolean', attribute: 'show-luminance-toggle-button' })\n showLuminanceToggleButton: boolean;\n\n /**\n * Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar\n * Control via `show-luminance-toggle-button`\n *\n * @remarks\n *\n * If the user clicks the icon when shown then this class will emit the 'misc-icon-clicked' event\n */\n @attr({ mode: 'boolean', attribute: 'show-misc-toggle-button' }) showMiscToggleButton: boolean;\n\n /**\n * Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar\n * Control via `show-notification-button`\n *\n * @remarks\n *\n * If the user clicks the icon when shown then this class will emit the 'notification-icon-clicked' event\n */\n @attr({ mode: 'boolean', attribute: 'show-notification-button' })\n showNotificationsButton: boolean;\n\n /**\n * Boolean attribute which controls whether to include the sideNav component\n * Control via`hide-side-bar`\n *\n */\n @attr({ mode: 'boolean', attribute: 'hide-side-bar' })\n hideSideBar: boolean;\n\n /**\n * If present the defined route buttons will be rendered in the header 'routes' slot\n */\n @observable routeButtons: Array<{\n index: number;\n path: string;\n title: string;\n icon: string;\n variant: string;\n }>;\n\n /**\n * Load remote components\n *\n * @remarks\n *\n * With regards to module federation\n *\n * @internal\n */\n async loadRemotes() {\n const remoteComponents = await Components.loadRemotes();\n this.ready = true;\n }\n\n selectTemplate() {\n return this.ready ? MainTemplate : LoadingTemplate;\n }\n\n /**\n * Logs the user out of their session\n *\n * @remarks\n *\n * Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires\n * the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.\n *\n * @public\n */\n public async logout() {\n logger.debug('logout submission');\n try {\n const result: LogoutResult = await this.auth.logout();\n if (!result.success) {\n logger.error(`Couldn't log out`, result);\n return;\n }\n logger.debug('logged out', result);\n await this.credentialManager.preventSilentAccess();\n this.navigateTo('/');\n } catch (err) {\n logger.error(`Error: ${err.message}`);\n }\n }\n\n /**\n * Changes the route of the current page\n *\n * @remarks\n *\n * Requires setup of the Router and usage of the FAST Router\n *\n * @param path - string represeting the new route to move to\n *\n * @public\n */\n public navigateTo(path: string) {\n try {\n logger.debug('navigateTo', path);\n Route.path.push(path);\n } catch (err) {\n logger.error(`Error: ${err.message}`);\n }\n }\n\n /**\n * Opens the flyout menu on the left hand side\n *\n * @remarks\n *\n * Activated when the user clicks on the menu button on the navigation\n * bar left hand side\n *\n * @internal\n */\n toggleNavVisibility() {\n this.sideNavOpen = !this.sideNavOpen;\n }\n\n /**\n * Emits the event corresponding to the luminance icon being clicked\n *\n * @remarks\n *\n * Activated when the user clicks on the moon icon on the navigation\n * bar right hand side\n *\n * @internal\n */\n luminanceIconEvent() {\n this.$emit('luminance-icon-clicked');\n }\n\n /**\n * Emits the event corresponding to the miscellaneous icon being clicked\n *\n * @remarks\n *\n * Activated when the user clicks on the menu icon on the navigation\n * bar right hand side\n *\n * @internal\n */\n miscIconEvent() {\n this.$emit('misc-icon-clicked');\n }\n\n /**\n * Emits the event corresponding to the notification icon being clicked\n *\n * @remarks\n *\n * Activated when the user clicks on the bell icon on the navigation\n * bar right hand side\n *\n * @internal\n */\n notificationIconEvent() {\n this.$emit('notification-icon-clicked');\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../node_modules/exenv-es6/dist/can-use-dom.js","webpack://@genesislcap/foundation-header/../node_modules/tabbable/dist/index.esm.js"],"names":["canUseDOM","window","document","createElement","candidateSelectors","candidateSelector","join","NoElement","Element","matches","prototype","msMatchesSelector","webkitMatchesSelector","getRootNode","element","ownerDocument","getTabindex","node","isScope","tabIndex","test","tagName","isContentEditable","isNaN","parseInt","getAttribute","isInput","isNonTabbableRadio","type","isRadio","name","radioSet","radioScope","form","queryRadios","querySelectorAll","CSS","escape","err","console","error","message","checked","nodes","i","length","getCheckedRadio","isTabbableRadio","isZeroArea","_node$getBoundingClie","getBoundingClientRect","width","height","isNodeMatchingSelectorFocusable","options","disabled","isHiddenInput","_ref","displayCheck","getShadowRoot","getComputedStyle","visibility","nodeUnderDetails","call","parentElement","nodeRootHost","host","nodeIsAttached","contains","originalNode","rootNode","shadowRoot","assignedSlot","getClientRects","isHidden","Array","slice","apply","children","some","child","isDetailsWithSummary","parentNode","item","isDisabledFromFieldset","isNodeMatchingSelectorTabbable","isTabbable","Error","focusableCandidateSelector","concat","isFocusable"],"mappings":";kJAGO,SAASA,IACZ,QAA4B,oBAAXC,SAA0BA,OAAOC,WAAYD,OAAOC,SAASC,cAClF,C,wECDA,IAAIC,EAAqB,CAAC,QAAS,SAAU,WAAY,UAAW,SAAU,uBAAwB,kBAAmB,kBAAmB,mDAAoD,gCAAiC,WAC7NC,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use\n */\nexport function canUseDOM() {\n return !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n}\n","/*!\n* tabbable 5.3.3\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\nvar candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])', 'details>summary:first-of-type', 'details'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n return element.getRootNode();\n} : function (element) {\n return element.ownerDocument;\n};\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\n\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n\n candidates = candidates.filter(filter);\n return candidates;\n};\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidatesScope\n * @property {Element} scope contains inner candidates\n * @property {Element[]} candidates\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidatesScope>}\n */\n\n\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n } // iterate over shadow content if possible\n\n\n var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n\n return candidates;\n};\n\nvar getTabindex = function getTabindex(node, isScope) {\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n //\n // isScope is positive for custom element with shadow root or slot that by default\n // have tabIndex -1, but need to be sorted by document order in order for their\n // content to be inserted in the correct position\n if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {\n return 0;\n }\n }\n\n return node.tabIndex;\n};\n\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\n\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\n\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\n\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\n\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\n\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n\n var radioScope = node.form || getRootNode(node);\n\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n\n var radioSet;\n\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\n\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\n\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n\n return width === 0 && height === 0;\n};\n\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n } // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n\n\n var nodeRootHost = getRootNode(node).host;\n var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n\n if (!displayCheck || displayCheck === 'full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n\n node = originalNode;\n } // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n\n if (nodeIsAttached) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n } // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n } // visible, as far as we can tell, or per current `displayCheck` mode\n\n\n return false;\n}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\n\n\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>\n\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i); // when the first <legend> (in document order) is found\n\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n } // the disabled <fieldset> containing `node` has no <legend>\n\n\n return true;\n }\n\n parentNode = parentNode.parentElement;\n }\n } // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n\n\n return false;\n};\n\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n\n return true;\n};\n\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n\n return true;\n};\n\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n } // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n\n\n return false;\n};\n/**\n * @param {Array.<Element|CandidatesScope>} candidates\n * @returns Element[]\n */\n\n\nvar sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scope;\n var element = isScope ? item.scope : item;\n var candidateTabindex = getTabindex(element, isScope);\n var elements = isScope ? sortByOrder(item.candidates) : element;\n\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\n\nvar tabbable = function tabbable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isValidShadowRootTabbable\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n\n return sortByOrder(candidates);\n};\n\nvar focusable = function focusable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n\n return candidates;\n};\n\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorTabbable(options, node);\n};\n\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\n\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 506.506.2df96cfa49403c056e18.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[506,641],{176:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{N:()=>r})},726:(e,t,n)=>{"use strict";n.d(t,{EB:()=>w,Wq:()=>m});var r=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},c=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},d=function(e){return"INPUT"===e.tagName},l=function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},f=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},s=function(e,t){return!(t.disabled||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;var i=u(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return f(e)}else{if("function"==typeof r){for(var d=e;e;){var l=e.parentElement,s=u(e);if(l&&!l.shadowRoot&&!0===r(l))return f(e);e=e.assignedSlot?e.assignedSlot:l||s===e.ownerDocument?l:s.host}e=d}if(c)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},p=function(e,t){return!(l(t)||c(t)<0||!s(e,t))},m=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&p(t,e)},h=r.concat("iframe").join(","),w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,h)&&s(t,e)}}}]);
|
|
3
|
-
//# sourceMappingURL=506.216099078d895d583f069d47bbbbc118.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[540,667],{6540:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultEventEmitterDI:()=>v,EventEmitter:()=>p,EventEmitterDI:()=>d,createInputEmitter:()=>u,createSelectEmitter:()=>c,customEvent:()=>i,getBaseEmitArgs:()=>a,registerEmitter:()=>m,targetFirstSelectedValue:()=>l,targetValue:()=>s});var n=r(2681);const a=(...e)=>{let[t,r,n]=e,a=r;var i;if(((null==(i=r)?void 0:i.hasOwnProperty("bubbles"))||(null==i?void 0:i.hasOwnProperty("cancelable"))||(null==i?void 0:i.hasOwnProperty("composed")))&&(n=r,a=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,a,n]},i=e=>e.event,s=e=>e.event.target.value,l=e=>{var t,r;return null===(r=null===(t=e.event.target)||void 0===t?void 0:t.firstSelectedOption)||void 0===r?void 0:r.value},o=e=>(t,r)=>(n,a)=>n.$emit(String(t),e(a),r),u=()=>o(s),c=()=>o(l);class v{emit(...e){const[t,...r]=e,[n,i,s]=a(...r);return t.$emit(n,i,s)}}const d=n.DI.createInterface((e=>e.singleton(v))),m=()=>n.DI.createInterface((e=>e.aliasTo(d))),p=e=>class extends e{$emit(...e){const[t,r,n]=a(...e);return super.$emit(t,r,n)}}}}]);
|
|
2
|
-
//# sourceMappingURL=540.6abb416013642069288d5369cb3126c7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../foundation-events/dist/esm/types.js","webpack://@genesislcap/foundation-header/../foundation-events/dist/esm/eventEmitter/eventEmitterDI.js","webpack://@genesislcap/foundation-header/../foundation-events/dist/esm/eventEmitter/eventEmitterMixin.js"],"names":["getBaseEmitArgs","args","type","detailOrOptions","options","detail","candidate","hasOwnProperty","undefined","Error","customEvent","ctx","event","targetValue","target","value","targetFirstSelectedValue","_a","_b","firstSelectedOption","createChangeEmitter","valueGetter","x","c","$emit","String","createInputEmitter","createSelectEmitter","DefaultEventEmitterDI","emit","origin","rest","EventEmitterDI","DI","singleton","registerEmitter","aliasTo","EventEmitter","Base","super"],"mappings":"uZAAA,MAGaA,EAAkB,IAAIC,KAC/B,IAAKC,EAAMC,EAAiBC,GAAWH,EACnCI,EAASF,EALK,IAACG,EAUnB,KAVkCA,OAAfA,EAMDH,QAN6D,EAASG,EAAUC,eAAe,cAChHD,aAA6C,EAASA,EAAUC,eAAe,iBAC/ED,aAA6C,EAASA,EAAUC,eAAe,gBAK5EH,EAAUD,EACVE,OAASG,GAEO,iBAATN,EACP,MAAM,IAAIO,MAAM,4CAEpB,MAAO,CAACP,EAAMG,EAAQD,EAAQ,EAErBM,EAAeC,GAAQA,EAAIC,MAC3BC,EAAeF,GAAQA,EAAIC,MAAME,OAAOC,MACxCC,EAA4BL,IAAU,IAAIM,EAAIC,EAAI,OAAsG,QAA9FA,EAAiC,QAA3BD,EAAKN,EAAIC,MAAME,cAA2B,IAAPG,OAAgB,EAASA,EAAGE,2BAAwC,IAAPD,OAAgB,EAASA,EAAGH,KAAK,EACxMK,EAAuBC,GAAgB,CAACnB,EAAME,IAAY,CAACkB,EAAGC,IAAMD,EAAEE,MAAMC,OAAOvB,GAAOmB,EAAYE,GAAInB,GACnGsB,EAAqB,IAAMN,EAAoBP,GAC/Cc,EAAsB,IAAMP,EAAoBJ,GClBtD,MAAMY,EACTC,QAAQ5B,GACJ,MAAO6B,KAAWC,GAAQ9B,GACnBC,EAAMG,EAAQD,GAAWJ,KAAmB+B,GACnD,OAAOD,EAAON,MAAMtB,EAAMG,EAAQD,EACtC,EAEG,MAAM4B,EAAiB,EAAAC,GAAA,iBAAoBX,GAAMA,EAAEY,UAAUN,KACvDO,EAAkB,IACpB,EAAAF,GAAA,iBAAoBX,GAAMA,EAAEc,QAAQJ,KCVlCK,EAAgBC,GAAS,cAAcA,EAChDd,SAASvB,GACL,MAAOC,EAAMG,EAAQD,GAAWJ,KAAmBC,GACnD,OAAOsC,MAAMf,MAAMtB,EAAMG,EAAQD,EACrC,E","file":"540.540.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["const isEmitOptions = (candidate) => (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('bubbles')) ||\n (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('cancelable')) ||\n (candidate === null || candidate === void 0 ? void 0 : candidate.hasOwnProperty('composed'));\nexport const getBaseEmitArgs = (...args) => {\n let [type, detailOrOptions, options] = args;\n let detail = detailOrOptions;\n if (isEmitOptions(detailOrOptions)) {\n options = detailOrOptions;\n detail = undefined;\n }\n if (typeof type !== 'string') {\n throw new Error('$emit event types must be typeof string.');\n }\n return [type, detail, options];\n};\nexport const customEvent = (ctx) => ctx.event;\nexport const targetValue = (ctx) => ctx.event.target.value;\nexport const targetFirstSelectedValue = (ctx) => { var _a, _b; return (_b = (_a = ctx.event.target) === null || _a === void 0 ? void 0 : _a.firstSelectedOption) === null || _b === void 0 ? void 0 : _b.value; };\nconst createChangeEmitter = (valueGetter) => (type, options) => (x, c) => x.$emit(String(type), valueGetter(c), options);\nexport const createInputEmitter = () => createChangeEmitter(targetValue);\nexport const createSelectEmitter = () => createChangeEmitter(targetFirstSelectedValue);\n//# sourceMappingURL=types.js.map","import { DI } from '@microsoft/fast-foundation';\nimport { getBaseEmitArgs } from '../types';\nexport class DefaultEventEmitterDI {\n emit(...args) {\n const [origin, ...rest] = args;\n const [type, detail, options] = getBaseEmitArgs(...rest);\n return origin.$emit(type, detail, options);\n }\n}\nexport const EventEmitterDI = DI.createInterface((x) => x.singleton(DefaultEventEmitterDI));\nexport const registerEmitter = () => {\n return DI.createInterface((x) => x.aliasTo(EventEmitterDI));\n};\n//# sourceMappingURL=eventEmitterDI.js.map","import { getBaseEmitArgs, } from '../types';\nexport const EventEmitter = (Base) => class extends Base {\n $emit(...args) {\n const [type, detail, options] = getBaseEmitArgs(...args);\n return super.$emit(type, detail, options);\n }\n};\n//# sourceMappingURL=eventEmitterMixin.js.map"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../node_modules/exenv-es6/dist/can-use-dom.js","webpack://@genesislcap/foundation-header/../node_modules/tabbable/dist/index.esm.js"],"names":["canUseDOM","window","document","createElement","candidateSelectors","candidateSelector","join","NoElement","Element","matches","prototype","msMatchesSelector","webkitMatchesSelector","getRootNode","element","ownerDocument","getTabindex","node","isScope","tabIndex","test","tagName","isContentEditable","isNaN","parseInt","getAttribute","isInput","isNonTabbableRadio","type","isRadio","name","radioSet","radioScope","form","queryRadios","querySelectorAll","CSS","escape","err","console","error","message","checked","nodes","i","length","getCheckedRadio","isTabbableRadio","isZeroArea","_node$getBoundingClie","getBoundingClientRect","width","height","isNodeMatchingSelectorFocusable","options","disabled","isHiddenInput","_ref","displayCheck","getShadowRoot","getComputedStyle","visibility","nodeUnderDetails","call","parentElement","nodeRootHost","host","nodeIsAttached","contains","originalNode","rootNode","shadowRoot","assignedSlot","getClientRects","isHidden","Array","slice","apply","children","some","child","isDetailsWithSummary","parentNode","item","isDisabledFromFieldset","isNodeMatchingSelectorTabbable","isTabbable","Error","focusableCandidateSelector","concat","isFocusable"],"mappings":";kJAGO,SAASA,IACZ,QAA4B,oBAAXC,SAA0BA,OAAOC,WAAYD,OAAOC,SAASC,cAClF,C,wECDA,IAAIC,EAAqB,CAAC,QAAS,S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ClD,C","file":"641.641.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["/**\n * Checks if the DOM is available to access and use\n */\nexport function canUseDOM() {\n return !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n}\n","/*!\n* tabbable 5.3.3\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\nvar candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])', 'details>summary:first-of-type', 'details'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n return element.getRootNode();\n} : function (element) {\n return element.ownerDocument;\n};\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\n\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n\n candidates = candidates.filter(filter);\n return candidates;\n};\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidatesScope\n * @property {Element} scope contains inner candidates\n * @property {Element[]} candidates\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidatesScope>}\n */\n\n\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n } // iterate over shadow content if possible\n\n\n var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n\n return candidates;\n};\n\nvar getTabindex = function getTabindex(node, isScope) {\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n //\n // isScope is positive for custom element with shadow root or slot that by default\n // have tabIndex -1, but need to be sorted by document order in order for their\n // content to be inserted in the correct position\n if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {\n return 0;\n }\n }\n\n return node.tabIndex;\n};\n\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\n\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\n\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\n\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\n\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\n\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n\n var radioScope = node.form || getRootNode(node);\n\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n\n var radioSet;\n\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\n\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\n\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n\n return width === 0 && height === 0;\n};\n\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n } // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n\n\n var nodeRootHost = getRootNode(node).host;\n var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n\n if (!displayCheck || displayCheck === 'full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n\n node = originalNode;\n } // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n\n if (nodeIsAttached) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n } // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n } // visible, as far as we can tell, or per current `displayCheck` mode\n\n\n return false;\n}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\n\n\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>\n\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i); // when the first <legend> (in document order) is found\n\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n } // the disabled <fieldset> containing `node` has no <legend>\n\n\n return true;\n }\n\n parentNode = parentNode.parentElement;\n }\n } // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n\n\n return false;\n};\n\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n\n return true;\n};\n\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n\n return true;\n};\n\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n } // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n\n\n return false;\n};\n/**\n * @param {Array.<Element|CandidatesScope>} candidates\n * @returns Element[]\n */\n\n\nvar sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scope;\n var element = isScope ? item.scope : item;\n var candidateTabindex = getTabindex(element, isScope);\n var elements = isScope ? sortByOrder(item.candidates) : element;\n\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\n\nvar tabbable = function tabbable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isValidShadowRootTabbable\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n\n return sortByOrder(candidates);\n};\n\nvar focusable = function focusable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n\n return candidates;\n};\n\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorTabbable(options, node);\n};\n\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\n\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n"],"sourceRoot":""}
|