@genesislcap/foundation-testing 9.0.1-alpha-b5c5eb7.0
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/MODULE_FEDERATION.md +11 -0
- package/README.md +255 -0
- package/dist/1.0.0.remoteEntry.js +1 -0
- package/dist/191.0099ca6c24422254d51d36c222dc6023.js.map +1 -0
- package/dist/191.191.613504f8a55556ba573c.js +2 -0
- package/dist/259.1ff0e7689abdc0527a57f2eb20369ada.js.map +1 -0
- package/dist/259.259.724449a74ba114ef0d82.js +2 -0
- package/dist/415.32cf4cabeed75f5d759d12434a4de5c7.js.map +1 -0
- package/dist/415.415.ee8e35767118401bccab.js +3 -0
- package/dist/415.415.ee8e35767118401bccab.js.LICENSE.txt +4 -0
- package/dist/623.1b885cabcffad0807eeb0de7ad5dd497.js.map +1 -0
- package/dist/623.623.148af50848667bfda381.js +3 -0
- package/dist/623.623.148af50848667bfda381.js.LICENSE.txt +4 -0
- package/dist/755.497b49c90948bc3e157823cb2632c52a.js.map +1 -0
- package/dist/755.755.5f9603173373118bd373.js +2 -0
- package/dist/772.772.6fed5dfc27e91bebaacc.js +2 -0
- package/dist/772.8116969a190f5c8bc076b1604d507de7.js.map +1 -0
- package/dist/dashboard.json +1 -0
- package/dist/dts/component/fixture.d.ts +93 -0
- package/dist/dts/component/fixture.d.ts.map +1 -0
- package/dist/dts/component/index.d.ts +2 -0
- package/dist/dts/component/index.d.ts.map +1 -0
- package/dist/dts/index.d.ts +11 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/index.federated.d.ts +1 -0
- package/dist/dts/index.federated.d.ts.map +1 -0
- package/dist/dts/jsdom/setup.d.ts +14 -0
- package/dist/dts/jsdom/setup.d.ts.map +1 -0
- package/dist/dts/playwright/index.d.ts +5 -0
- package/dist/dts/playwright/index.d.ts.map +1 -0
- package/dist/dts/playwright/setup.d.ts +13 -0
- package/dist/dts/playwright/setup.d.ts.map +1 -0
- package/dist/dts/playwright/test.d.ts +16 -0
- package/dist/dts/playwright/test.d.ts.map +1 -0
- package/dist/dts/suite/index.d.ts +2 -0
- package/dist/dts/suite/index.d.ts.map +1 -0
- package/dist/dts/suite/suite.d.ts +127 -0
- package/dist/dts/suite/suite.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/logger.d.ts +8 -0
- package/dist/dts/utils/logger.d.ts.map +1 -0
- package/dist/dts/uvu/index.d.ts +2 -0
- package/dist/dts/uvu/index.d.ts.map +1 -0
- package/dist/dts/uvu/uvu.d.ts +8 -0
- package/dist/dts/uvu/uvu.d.ts.map +1 -0
- package/dist/esm/component/fixture.js +87 -0
- package/dist/esm/component/fixture.js.map +1 -0
- package/dist/esm/component/index.js +2 -0
- package/dist/esm/component/index.js.map +1 -0
- package/dist/esm/index.federated.js +2 -0
- package/dist/esm/index.federated.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/jsdom/setup.js +92 -0
- package/dist/esm/jsdom/setup.js.map +1 -0
- package/dist/esm/playwright/index.js +5 -0
- package/dist/esm/playwright/index.js.map +1 -0
- package/dist/esm/playwright/setup.js +24 -0
- package/dist/esm/playwright/setup.js.map +1 -0
- package/dist/esm/playwright/test.js +22 -0
- package/dist/esm/playwright/test.js.map +1 -0
- package/dist/esm/suite/index.js +2 -0
- package/dist/esm/suite/index.js.map +1 -0
- package/dist/esm/suite/suite.js +144 -0
- package/dist/esm/suite/suite.js.map +1 -0
- package/dist/esm/utils/index.js +2 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/logger.js +9 -0
- package/dist/esm/utils/logger.js.map +1 -0
- package/dist/esm/uvu/index.js +2 -0
- package/dist/esm/uvu/index.js.map +1 -0
- package/dist/esm/uvu/uvu.js +8 -0
- package/dist/esm/uvu/uvu.js.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/foundation-testing.api.json +1288 -0
- package/dist/foundation-testing.d.ts +255 -0
- package/dist/foundation-testing.iife.min.js +15 -0
- package/dist/foundation-testing.js +6991 -0
- package/dist/foundation-testing.min.js +15 -0
- package/dist/foundationTesting.db8dd99e6cb1a53c58d5d48831729dc0.js.map +1 -0
- package/dist/index.ejs +23 -0
- package/dist/index.html +14 -0
- package/dist/info.ejs +13 -0
- package/dist/main.c5f312e26acb28a2836d58614701899c.js.map +1 -0
- package/dist/main.ce9669d02474786f9fdc.js +2 -0
- package/dist/npm.consola.713.2f64f3cac7864c3b4057.js +2 -0
- package/dist/npm.consola.8813a44257414a02ed3be5608793f087.js.map +1 -0
- package/dist/npm.diff.83d06b572c2ee1bd4957fc9f121bf65a.js.map +1 -0
- package/dist/npm.diff.852.9166591dbfda57fefcc7.js +2 -0
- package/dist/npm.microsoft.127.8c2d0309b2c5ee49f9ed.js +1469 -0
- package/dist/npm.microsoft.127.8c2d0309b2c5ee49f9ed.js.LICENSE.txt +14 -0
- package/dist/npm.microsoft.53571229b0cfc6a6b1b069cfe9a8483d.js.map +1 -0
- package/dist/remoteEntry.js +2 -0
- package/dist/serve.json +3 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/api/foundation-testing.componentcontext.container.md +11 -0
- package/docs/api/foundation-testing.componentcontext.designsystem.md +11 -0
- package/docs/api/foundation-testing.componentcontext.md +22 -0
- package/docs/api/foundation-testing.createcomponentsuite.md +93 -0
- package/docs/api/foundation-testing.createlogicsuite.md +54 -0
- package/docs/api/foundation-testing.elementgetter.md +12 -0
- package/docs/api/foundation-testing.fixture.connect.md +21 -0
- package/docs/api/foundation-testing.fixture.disconnect.md +21 -0
- package/docs/api/foundation-testing.fixture.document.md +13 -0
- package/docs/api/foundation-testing.fixture.element.md +13 -0
- package/docs/api/foundation-testing.fixture.md +31 -0
- package/docs/api/foundation-testing.fixture.parent.md +18 -0
- package/docs/api/foundation-testing.fixture.template.md +13 -0
- package/docs/api/foundation-testing.fixture.view.md +13 -0
- package/docs/api/foundation-testing.fixtureoptions.context.md +13 -0
- package/docs/api/foundation-testing.fixtureoptions.designsystem.md +13 -0
- package/docs/api/foundation-testing.fixtureoptions.document.md +13 -0
- package/docs/api/foundation-testing.fixtureoptions.md +24 -0
- package/docs/api/foundation-testing.fixtureoptions.parent.md +13 -0
- package/docs/api/foundation-testing.fixtureoptions.source.md +13 -0
- package/docs/api/foundation-testing.logger.md +18 -0
- package/docs/api/foundation-testing.logiccontext.md +20 -0
- package/docs/api/foundation-testing.logiccontext.runcases.md +23 -0
- package/docs/api/foundation-testing.md +35 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +87 -0
- package/license.txt +46 -0
- package/package.json +116 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Genesis Foundation Testing
|
|
2
|
+
|
|
3
|
+
## [Module Federation](https://webpack.js.org/concepts/module-federation)
|
|
4
|
+
|
|
5
|
+
This package is federated locally during development by running the webpack part of the build.
|
|
6
|
+
|
|
7
|
+
| Remote Name | Port |
|
|
8
|
+
| --------------------- | ----- |
|
|
9
|
+
| foundationTesting | 3050 |
|
|
10
|
+
|
|
11
|
+
Default production enablement remains dependent on [pending architectural decisions](https://bit.ly/3LLHUhK).
|
package/README.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Genesis Foundation Testing
|
|
2
|
+
|
|
3
|
+
[](https://lerna.js.org/)
|
|
4
|
+
[](https://www.typescriptlang.org/)
|
|
5
|
+
|
|
6
|
+
`foundation-testing` provides shared unit and e2e testing functionality.
|
|
7
|
+
|
|
8
|
+
### [API Docs](./docs/api/index.md)
|
|
9
|
+
|
|
10
|
+
## Unit Testing with UVU
|
|
11
|
+
|
|
12
|
+
Unit testing is provided by [UVU](https://github.com/lukeed/uvu)
|
|
13
|
+
|
|
14
|
+
### UVU Features
|
|
15
|
+
|
|
16
|
+
* Super [lightweight](https://npm.anvaka.com/#/view/2d/uvu)
|
|
17
|
+
* Extremely [performant](https://github.com/lukeed/uvu/tree/master#benchmarks)
|
|
18
|
+
* Individually executable test files
|
|
19
|
+
* Supports `async`/`await` tests
|
|
20
|
+
* Supports native ES Modules
|
|
21
|
+
* Browser-Compatible
|
|
22
|
+
* Familiar API
|
|
23
|
+
|
|
24
|
+
## E2E Testing with Playwright
|
|
25
|
+
|
|
26
|
+
E2E testing is provided by [Playwright](https://playwright.dev/docs/intro)
|
|
27
|
+
|
|
28
|
+
### Playwright Features
|
|
29
|
+
|
|
30
|
+
* Run tests across all browsers.
|
|
31
|
+
* Execute tests in parallel.
|
|
32
|
+
* Enjoy context isolation out of the box.
|
|
33
|
+
* Capture videos, screenshots and other artifacts on failure.
|
|
34
|
+
* Integrate your POMs as extensible fixtures.
|
|
35
|
+
|
|
36
|
+
## Test Organisation
|
|
37
|
+
|
|
38
|
+
Unit testing specific logic can be done by adding a test file alongside the source file.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
logic.ts
|
|
42
|
+
logic.test.ts
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If your test spans more than one file or is more of an end-to-end test, you may wish to add your test to your package's
|
|
46
|
+
`/test` directory instead. An example structure might be:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
├── src
|
|
50
|
+
│ └── logic.ts
|
|
51
|
+
│ └── logic.test.ts
|
|
52
|
+
│ └── component.ts
|
|
53
|
+
│ └── component.test.ts
|
|
54
|
+
├── test
|
|
55
|
+
│ └── e2e
|
|
56
|
+
│ └── baseline.e2e.ts
|
|
57
|
+
│ └── unit
|
|
58
|
+
│ └── baseline.test.ts
|
|
59
|
+
├── jsdom.setup.ts
|
|
60
|
+
├── package.json
|
|
61
|
+
└── playwright.config.ts
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The contents of your package's `jsdom.setup.ts` may simply be:
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
export * from '@genesislcap/foundation-testing/jsdom';
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The contents of your package's `playwright.config.ts` may include:
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import { PlaywrightTestConfig } from '@playwright/test';
|
|
74
|
+
const config: PlaywrightTestConfig = {
|
|
75
|
+
testMatch: '**/*.e2e.ts',
|
|
76
|
+
globalSetup: '@genesislcap/foundation-testing/playwright', // returns teardown
|
|
77
|
+
projects: [
|
|
78
|
+
{
|
|
79
|
+
name: 'Chrome Stable',
|
|
80
|
+
use: {
|
|
81
|
+
browserName: 'chromium',
|
|
82
|
+
channel: 'chrome',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
};
|
|
87
|
+
export default config;
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Test Scripts
|
|
91
|
+
|
|
92
|
+
The test related scripts to add to your package's `package.json` file may include:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
"test": "npm run test:unit && npm run test:e2e",
|
|
96
|
+
"test:coverage": "c8 --include=src npm run test:unit",
|
|
97
|
+
"test:coverage:report": "npm run test:coverage && c8 report --reporter=text-lcov > coverage.lcov",
|
|
98
|
+
"test:coverage:report:nyc": "npm run test:unit:browser -- --cov && npx nyc report --reporter=html",
|
|
99
|
+
"test:e2e": "npx playwright test --config=./playwright.config.ts",
|
|
100
|
+
"test:e2e:debug": "cross-env PWDEBUG=1 npm run test:e2e",
|
|
101
|
+
"test:unit": "npm run test:unit:node",
|
|
102
|
+
"test:unit:browser": "playwright-test \"./**/*.test.ts\" --runner uvu",
|
|
103
|
+
"test:unit:browser:watch": "npm run test:unit:browser -- -w -d",
|
|
104
|
+
"test:unit:node": "npm run test:unit:node:src && npm run test:unit:node:test",
|
|
105
|
+
"test:unit:node:src": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./src \".*.test.ts\"",
|
|
106
|
+
"test:unit:node:test": "uvu -r tsm -r esm -r ./jsdom.setup.ts ./test/unit \".*.test.ts\"",
|
|
107
|
+
"test:unit:watch": "watchlist src test -- npm run test:unit"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
To provide the dev dependencies for these test scripts you would need to install:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
@playwright/test playwright-test c8 esm jsdom tsm uvu watchlist
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
_We are working on enhancing the `genx` cli to abstract test running, so you can offload this setup and tasks._
|
|
117
|
+
|
|
118
|
+
## Testing Logic
|
|
119
|
+
|
|
120
|
+
The `logic.test.ts` will likely leverage `createLogicSuite`, which is used to test function output given certain input
|
|
121
|
+
arguments. Based on user feedback, these arguments are now passed as an array by convention:
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
// logic.test.ts
|
|
125
|
+
import { createLogicSuite } from '@genesislcap/foundation-testing';
|
|
126
|
+
import { myFunction } from './logic';
|
|
127
|
+
|
|
128
|
+
const Suite = createLogicSuite('myFunction');
|
|
129
|
+
Suite('myFunction should provide expected results', ({ runCases }) => {
|
|
130
|
+
runCases(myFunction, [
|
|
131
|
+
[['1'], true],
|
|
132
|
+
[[123], true],
|
|
133
|
+
[['60%'], true],
|
|
134
|
+
[['$60'], false],
|
|
135
|
+
[['1.1'], false],
|
|
136
|
+
[[''], false],
|
|
137
|
+
[[true], false],
|
|
138
|
+
[[null], false],
|
|
139
|
+
[[undefined], false],
|
|
140
|
+
]);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
Suite.run();
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Testing Components
|
|
147
|
+
|
|
148
|
+
The `component.test.ts` or any test which directly or in-directly makes use of the DI will leverage
|
|
149
|
+
`createComponentSuite`. Apart from setting up and tearing down your element fixture with a wrapping design system and DI
|
|
150
|
+
container, this util also allows you to provide DI container mocks, which will be required for certain testing flows.
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
// component.test.ts
|
|
154
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
155
|
+
import { ConnectMock } from '@genesislcap/foundation-comms/testing';
|
|
156
|
+
import { assert, createComponentSuite, Registration } from '@genesislcap/foundation-testing';
|
|
157
|
+
import { MyComponent } from './component';
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* As we're using tag name in the Suite, we hold a reference to avoid tree shaking.
|
|
161
|
+
*/
|
|
162
|
+
MyComponent;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Create mock
|
|
166
|
+
*/
|
|
167
|
+
const connectMock = new ConnectMock();
|
|
168
|
+
connectMock.nextMetadata = {
|
|
169
|
+
FIELD: [
|
|
170
|
+
{
|
|
171
|
+
NAME: 'foo',
|
|
172
|
+
TYPE: 'bar',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Resister mock instance
|
|
179
|
+
*/
|
|
180
|
+
const mocks = [Registration.instance(Connect, connectMock)];
|
|
181
|
+
|
|
182
|
+
const Suite = createComponentSuite<MyComponent>(
|
|
183
|
+
'MyComponent',
|
|
184
|
+
'my-component', // < or () => myComponent() if your component is composeable
|
|
185
|
+
null,
|
|
186
|
+
mocks,
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
Suite('Can be created in the DOM', async ({ element }) => {
|
|
190
|
+
assert.ok(element);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
Suite('Connect is mocked in the container', async ({ container }) => {
|
|
194
|
+
const serviceMock = container.get(Connect);
|
|
195
|
+
assert.instance(serviceMock, ConnectMock);
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
Suite('Attr changes update internals as expected', async ({ element }) => {
|
|
199
|
+
element.setAttribute('resource-name', 'ALL_USERS');
|
|
200
|
+
assert.match(element.optionsHash, /ALL_USERS/);
|
|
201
|
+
element.setAttribute('order-by', 'USERNAME');
|
|
202
|
+
assert.match(element.optionsHash, /USERNAME/);
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
Suite('Connect.getMetadata returns expected nextMetadata', async ({ container }) => {
|
|
206
|
+
const serviceMock = container.get(Connect) as ConnectMock;
|
|
207
|
+
/**
|
|
208
|
+
* Assert base case
|
|
209
|
+
*/
|
|
210
|
+
let serviceMeta = await serviceMock.getMetadata('someResource');
|
|
211
|
+
assert.is(serviceMeta.FIELD[0].NAME, 'foo');
|
|
212
|
+
/**
|
|
213
|
+
* Apply next and assert
|
|
214
|
+
*/
|
|
215
|
+
const metadata = {
|
|
216
|
+
FIELD: [
|
|
217
|
+
{
|
|
218
|
+
NAME: 'hello',
|
|
219
|
+
TYPE: 'world',
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
};
|
|
223
|
+
serviceMock.nextMetadata = {
|
|
224
|
+
...metadata,
|
|
225
|
+
};
|
|
226
|
+
serviceMeta = await serviceMock.getMetadata('someResource');
|
|
227
|
+
assert.equal(serviceMeta, {
|
|
228
|
+
...metadata,
|
|
229
|
+
});
|
|
230
|
+
// TODO: Trigger and cross check component reactions to underlying data changes
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
Suite.run();
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Testing E2E
|
|
237
|
+
|
|
238
|
+
The `baseline.e2e.ts` will leverage `playwright`, and test cases will have access to the fixtures provided during setup.
|
|
239
|
+
|
|
240
|
+
```typescript
|
|
241
|
+
import { expect } from '@playwright/test';
|
|
242
|
+
import { test } from '@genesislcap/foundation-testing/e2e';
|
|
243
|
+
|
|
244
|
+
test('baseline test', async ({ page }) => {
|
|
245
|
+
await page.goto('https://playwright.dev/');
|
|
246
|
+
const name = await page.innerText('.navbar__title');
|
|
247
|
+
expect(name).toBe('Playwright');
|
|
248
|
+
});
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
_We will be adding more details on E2E in future updates._
|
|
252
|
+
|
|
253
|
+
## License
|
|
254
|
+
|
|
255
|
+
Note: this project provides front end dependencies and uses licensed components listed in the next section, thus licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var foundationTesting;(()=>{"use strict";var e,t,r,n,a,o,i,f,l,s,u,d,c={451:(e,t,r)=>{var n={"./index":()=>r.e(755).then((()=>()=>r(755)))},a=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),o=(e,t)=>{if(r.S){var n=r.S.default,a="default";if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[a]=e,r.I(a,t)}};r.d(t,{get:()=>a,init:()=>o})}},p={};function h(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}},n=!0;try{c[e].call(r.exports,r,r.exports,h),n=!1}finally{n&&delete p[e]}return r.exports}h.m=c,h.c=p,e=[],h.O=(t,r,n,a)=>{if(!r){var o=1/0;for(s=0;s<e.length;s++){for(var[r,n,a]=e[s],i=!0,f=0;f<r.length;f++)(!1&a||o>=a)&&Object.keys(h.O).every((e=>h.O[e](r[f])))?r.splice(f--,1):(i=!1,a<o&&(o=a));if(i){e.splice(s--,1);var l=n();void 0!==l&&(t=l)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[r,n,a]},h.d=(e,t)=>{for(var r in t)h.o(t,r)&&!h.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},h.f={},h.e=e=>Promise.all(Object.keys(h.f).reduce(((t,r)=>(h.f[r](e,t),t)),[])),h.u=e=>(({127:"npm.microsoft",713:"npm.consola",852:"npm.diff"}[e]||e)+"."+e+"."+{127:"8c2d0309b2c5ee49f9ed",147:"a54af8a5adb9094ffaff",191:"613504f8a55556ba573c",259:"724449a74ba114ef0d82",415:"ee8e35767118401bccab",495:"b11308e0e345099bb22e",623:"148af50848667bfda381",713:"2f64f3cac7864c3b4057",755:"5f9603173373118bd373",758:"a5dc6c57a41294ba6b90",772:"6fed5dfc27e91bebaacc",852:"9166591dbfda57fefcc7"}[e]+".js"),h.miniCssF=e=>{},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="@genesislcap/foundation-testing:",h.l=(e,n,a,o)=>{if(t[e])t[e].push(n);else{var i,f;if(void 0!==a)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var u=l[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+a){i=u;break}}i||(f=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,h.nc&&i.setAttribute("nonce",h.nc),i.setAttribute("data-webpack",r+a),i.src=e),t[e]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var a=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),f&&document.head.appendChild(i)}},h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{h.S={};var e={},t={};h.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];h.o(h.S,r)||(h.S[r]={});var o=h.S[r],i="@genesislcap/foundation-testing",f=(e,t,r,n)=>{var a=o[e]=o[e]||{},f=a[t];(!f||!f.loaded&&(!n!=!f.eager?n:i>f.from))&&(a[t]={get:r,from:i,eager:!!n})},l=[];return"default"===r&&(f("@genesislcap/foundation-utils","9.0.0",(()=>Promise.all([h.e(127),h.e(713),h.e(147),h.e(259),h.e(758)]).then((()=>()=>h(259))))),f("@microsoft/fast-element","1.11.0",(()=>h.e(127).then((()=>()=>h(759))))),f("@microsoft/fast-foundation","2.47.0",(()=>Promise.all([h.e(127),h.e(147),h.e(495),h.e(415)]).then((()=>()=>h(916))))),f("tslib","1.14.1",(()=>h.e(127).then((()=>()=>h(160))))),f("tslib","1.14.1",(()=>h.e(127).then((()=>()=>h(726))))),f("tslib","2.5.0",(()=>h.e(191).then((()=>()=>h(191)))))),e[r]=l.length?Promise.all(l).then((()=>e[r]=1)):1}}})(),h.p="/",n=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},a=(e,t)=>{e=n(e),t=n(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var a=e[r],o=(typeof a)[0];if(r>=t.length)return"u"==o;var i=t[r],f=(typeof i)[0];if(o!=f)return"o"==o&&"n"==f||"s"==f||"u"==o;if("o"!=o&&"u"!=o&&a!=i)return a<i;r++}},o=(e,t)=>{if(0 in e){t=n(t);var r=e[0],a=r<0;a&&(r=-r-1);for(var i=0,f=1,l=!0;;f++,i++){var s,u,d=f<e.length?(typeof e[f])[0]:"";if(i>=t.length||"o"==(u=(typeof(s=t[i]))[0]))return!l||("u"==d?f>r&&!a:""==d!=a);if("u"==u){if(!l||"u"!=d)return!1}else if(l)if(d==u)if(f<=r){if(s!=e[f])return!1}else{if(a?s>e[f]:s<e[f])return!1;s!=e[f]&&(l=!1)}else if("s"!=d&&"n"!=d){if(a||f<=r)return!1;l=!1,f--}else{if(f<=r||u<d!=a)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,f--)}}var c=[],p=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?p()|p():2==h?p()&p():h?o(h,t):!p())}return!!p()},i=(e,t,r)=>{var n=e[t];return(t=Object.keys(n).reduce(((e,t)=>!o(r,t)||e&&!a(e,t)?e:t),0))&&n[t]},f=e=>(e.loaded=1,e.get()),l=(e=>function(t,r,n,a){var o=h.I(t);return o&&o.then?o.then(e.bind(e,t,h.S[t],r,n,a)):e(t,h.S[t],r,n,a)})(((e,t,r,n,a)=>{var o=t&&h.o(t,r)&&i(t,r,n);return o?f(o):a()})),s={},u={147:()=>l("default","@microsoft/fast-element",[1,1,7,0],(()=>h.e(127).then((()=>()=>h(759))))),951:()=>l("default","@microsoft/fast-foundation",[1,2,33,2],(()=>Promise.all([h.e(127),h.e(495),h.e(623)]).then((()=>()=>h(916))))),304:()=>l("default","tslib",[1,2,3,1],(()=>h.e(191).then((()=>()=>h(191))))),495:()=>l("default","tslib",[1,2,3,1],(()=>h.e(127).then((()=>()=>h(726))))),64:()=>l("default","@genesislcap/foundation-utils",[1,9,0,0],(()=>Promise.all([h.e(127),h.e(713),h.e(259)]).then((()=>()=>h(259)))))},d={147:[147],495:[495],758:[951,304],772:[64]},h.f.consumes=(e,t)=>{h.o(d,e)&&d[e].forEach((e=>{if(h.o(s,e))return t.push(s[e]);var r=t=>{s[e]=0,h.m[e]=r=>{delete h.c[e],r.exports=t()}},n=t=>{delete s[e],h.m[e]=r=>{throw delete h.c[e],t}};try{var a=u[e]();a.then?t.push(s[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}))},(()=>{var e={466:0,490:0};h.f.j=(t,r)=>{var n=h.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(49[05]|147|758)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=h.p+h.u(t),i=new Error;h.l(o,(r=>{if(h.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}}),"chunk-"+t,t)}},h.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[o,i,f]=r,l=0;for(n in i)h.o(i,n)&&(h.m[n]=i[n]);if(f)var s=f(h);for(t&&t(r);l<o.length;l++)a=o[l],h.o(e,a)&&e[a]&&e[a][0](),e[o[l]]=0;return h.O(s)},r=self.webpackChunk_genesislcap_foundation_testing=self.webpackChunk_genesislcap_foundation_testing||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var v=h.O(void 0,[490],(()=>h(451)));v=h.O(v),foundationTesting=v})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-testing/../node_modules/tslib/tslib.es6.js"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__decorate","decorators","target","key","desc","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","__esDecorate","ctor","descriptorIn","contextIn","initializers","extraInitializers","accept","f","_","kind","descriptor","name","done","context","access","addInitializer","push","result","get","set","init","__runInitializers","thisArg","value","useValue","__propKey","x","concat","__setFunctionName","prefix","description","configurable","__metadata","metadataKey","metadataValue","metadata","__awaiter","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","then","__generator","body","y","g","label","sent","trys","ops","verb","Symbol","iterator","v","op","pop","__createBinding","o","m","k","k2","undefined","__esModule","writable","enumerable","__exportStar","__values","__read","ar","error","__spread","__spreadArrays","il","a","j","jl","__spreadArray","to","from","pack","l","slice","__await","__asyncGenerator","asyncIterator","q","resume","fulfill","settle","shift","__asyncDelegator","__asyncValues","__makeTemplateObject","cooked","raw","__setModuleDefault","__importStar","mod","__importDefault","default","__classPrivateFieldGet","receiver","state","has","__classPrivateFieldSet","__classPrivateFieldIn"],"mappings":"wtBAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,CAAG,GAC1E,SAAUD,EAAGC,GAAK,IA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MAAT2C,EAAeF,EAAE3C,KAAK+I,EAAUpF,GAAShB,EAAIA,EAAEgB,MAAQA,EAAQqF,EAAMzF,IAAIwF,EAAUpF,GAASA,CACxG,CAEO,SAASwF,EAAsBH,EAAOD,GACzC,GAAiB,OAAbA,GAA0C,iBAAbA,GAA6C,mBAAbA,EAA0B,MAAM,IAAI7I,UAAU,0CAC/G,MAAwB,mBAAV8I,EAAuBD,IAAaC,EAAQA,EAAMC,IAAIF,EACxE,C","file":"191.191.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.push(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.push(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_genesislcap_foundation_testing=self.webpackChunk_genesislcap_foundation_testing||[]).push([[191],{191:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__extends:()=>o,__assign:()=>a,__rest:()=>i,__decorate:()=>c,__param:()=>u,__esDecorate:()=>f,__runInitializers:()=>l,__propKey:()=>s,__setFunctionName:()=>p,__metadata:()=>y,__awaiter:()=>d,__generator:()=>h,__createBinding:()=>_,__exportStar:()=>b,__values:()=>v,__read:()=>w,__spread:()=>m,__spreadArrays:()=>g,__spreadArray:()=>O,__await:()=>j,__asyncGenerator:()=>P,__asyncDelegator:()=>S,__asyncValues:()=>x,__makeTemplateObject:()=>E,__importStar:()=>I,__importDefault:()=>k,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__classPrivateFieldIn:()=>D});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function u(e,t){return function(r,n){t(r,n,e)}}function f(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,f="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,s=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var h in n)d[h]="access"===h?{}:n[h];for(var h in n.access)d.access[h]=n.access[h];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var _=(0,r[y])("accessor"===u?{get:s.get,set:s.set}:s[f],d);if("accessor"===u){if(void 0===_)continue;if(null===_||"object"!=typeof _)throw new TypeError("Object expected");(c=i(_.get))&&(s.get=c),(c=i(_.set))&&(s.set=c),(c=i(_.init))&&o.push(c)}else(c=i(_))&&("field"===u?o.push(c):s[f]=c)}l&&Object.defineProperty(l,n.name,s),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function s(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function c(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}u((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var _=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||_(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function O(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function j(e){return this instanceof j?(this.v=e,this):new j(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof j?Promise.resolve(r.value.v).then(u,f):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function u(e){c("next",e)}function f(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:j(e[n](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&_(t,e,r);return T(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function A(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}}}]);
|
|
2
|
+
//# sourceMappingURL=191.0099ca6c24422254d51d36c222dc6023.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/observer/observer.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/logger/logger.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/utils/logger.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/data/inMemoryDatabase.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/decorators/renderOnChange.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/designSystem/designSystem.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/directives/sync/sync.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/env/index.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/formatters/datetime.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/mappers/dto/serverRow.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/mixins/pendingState/pendingState.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/mixins/lifecycle/lifecycle.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/resource/types.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/serializers/json/json.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/styles/color.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/styles/dom.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/styles/slotted-styles.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/styles/typography.js","webpack://@genesislcap/foundation-testing/../node_modules/uuid/dist/esm-browser/rng.js","webpack://@genesislcap/foundation-testing/../node_modules/uuid/dist/esm-browser/regex.js","webpack://@genesislcap/foundation-testing/../node_modules/uuid/dist/esm-browser/validate.js","webpack://@genesislcap/foundation-testing/../node_modules/uuid/dist/esm-browser/stringify.js","webpack://@genesislcap/foundation-testing/../node_modules/uuid/dist/esm-browser/v4.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/uuid/uuid.js","webpack://@genesislcap/foundation-testing/../foundation-utils/dist/esm/window/window.js"],"names":["createObserver","listeners","subscribe","listener","push","filter","l","publish","event","forEach","defaultLoggerOptions","level","createLogger","name","options","withTag","logger","InMemoryDatabase","constructor","uuid","this","isWorking","records","beforeUpdateListeners","afterUpdateListeners","create","newValue","__awaiter","id","createRemoteId","update","read","record","debug","JSON","stringify","err","error","value","Object","assign","dataRecord","delete","success","visit","visitor","values","onBeforeUpdate","onAfterUpdate","renderOnChange","target","render","assureDesignSystem","module","Error","provideDesignSystem","defaultEventMap","Map","customUpdateTarget","targetName","bind","source","context","updateTarget","originalBind","call","addEventListener","changeEvent","changeHandler","unbind","originalUnbind","removeEventListener","SyncDirective","HTMLBindingDirective","binding","convert","eventName","keyAttr","super","conversionType","createBehavior","behavior","_a","tag","tagName","get","determineChangeEvent","checked","last","bindingObserver","key","propertySource","propertyName","msSinceEpoch","Date","getTime","isNaN","undefined","length","Number","String","Boolean","sync","isDev","isoDateSliceEnd","formatDateTimestamp","timestamp","toISOString","slice","isoDateTimeSliceEnd","formatDateTimeTimestamp","replace","formatTimestamp","withTime","DefaultServerRowDTOMapper","fromDTO","dto","_b","_c","serverRowMetadata","operation","DETAILS","OPERATION","toLowerCase","rowRef","ROW_REF","toDTO","entity","toUpperCase","ServerRowDTOMapper","DI","x","singleton","PendingStateEvents","PendingState","Base","Pending","arguments","pendingCount","resolvedCount","hasPendingChildren","progress","connectedCallback","state","onPendingState","disconnectedCallback","detail","promise","$emit","message","__decorate","observable","prototype","LifecycleMixin","_instances","__containingLayout","__tryFindContainingLayout","args","add","set","cloneNode","deep","thisClone","deepClone","Array","from","childNodes","child","appendChild","copy","document","createElement","getAttributeNames","at","setAttribute","getAttribute","shouldRunDisconnect","__classPrivateFieldGet","dragging","shouldRunConnect","__classPrivateFieldSet","WeakMap","WeakSet","e","getRootNode","Document","DocumentFragment","shadowHost","host","ResourceType","local","remote","DefaultJSONSerializer","serialize","object","deserialize","input","ok","text","then","parse","data","JSONSerializer","DesignToken","activeColorScheme","withDefault","elem","insertDocumentCSSRule","cssRule","styleElementId","styleElement","getElementById","headElement","head","getElementsByTagName","styleIndex","sheet","insertRule","deleteRule","removeChild","insertDocumentLink","href","links","querySelectorAll","index","link","rel","SlottedStyles","FASTElement","stylesChanged","prev","next","parentElement","$fastController","removeStyles","addStyles","customElement","loadFontFaces","fontFaceRules","FontStyle","FontWeight","getFontMixin","family","style","Normal","weight","Regular","getRandomValues","rnds8","Uint8Array","rng","crypto","msCrypto","byteToHex","i","toString","substr","arr","offset","TypeError","buf","rnds","random","UUIDService","createId","withLogging","UUID","inIFrame","window","self","top","inSymphonyDesktop","userAgent","navigator","includes","POPUP_DEFAULT_WIDTH","POPUP_DEFAULT_HEIGHT","openPopup","urlNavigate","popUpWidth","popUpHeight","left","innerWidth","screenX","innerHeight","screenY","popupWindow","open","focus"],"mappings":"g5BAAO,MAAMA,EAAiB,KAC1B,IAAIC,EAAY,GAChB,MAAO,CACHC,UAAUC,IACNF,EAAUG,KAAKD,GACR,IAAOF,EAAYA,EAAUI,QAAQC,GAAMA,IAAMH,KAE5DI,QAAQC,GACJP,EAAUQ,SAASH,GAAMA,EAAEE,IAC/B,EACH,E,sBCRL,MACaE,EAAuB,CAChCC,MAFkB,GAIf,SAASC,EAAaC,EAAMC,EAAUJ,GAGzC,OAFmB,WAAeI,GACRC,QAAQF,EAEtC,CCTO,MAAMG,EAASJ,EAAa,oBCE5B,MAAMK,EACTC,YAAYC,GACRC,KAAKD,KAAOA,EACZC,KAAKC,WAAY,EACjBD,KAAKE,QAAU,CAAC,EAChBF,KAAKG,sBAAwBvB,IAC7BoB,KAAKI,qBAAuBxB,GAChC,CACAyB,OAAOC,GACH,OAAO,IAAAC,WAAUP,UAAM,OAAQ,GAAQ,YACnC,MAAMQ,QAAWR,KAAKD,KAAKU,iBAC3B,OAAOT,KAAKU,OAAOF,EAAIF,EAC3B,GACJ,CACAK,KAAKH,GACD,OAAO,IAAAD,WAAUP,UAAM,OAAQ,GAAQ,YACnC,IAAIY,EACJ,IACIZ,KAAKC,WAAY,EACjBW,EAASZ,KAAKE,QAAQM,GACtBZ,EAAOiB,MAAM,iBAAiBC,KAAKC,UAAUH,KACjD,CACA,MAAOI,GAEH,MADApB,EAAOqB,MAAM,sBAAuBD,GAC9BA,CACV,C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let listeners = [];\n return {\n subscribe(listener) {\n listeners.push(listener);\n return () => (listeners = listeners.filter((l) => l !== listener));\n },\n publish(event) {\n listeners.forEach((l) => l(event));\n },\n };\n};\n//# sourceMappingURL=observer.js.map","import consola from 'consola/src/browser';\nexport { LogLevel } from 'consola';\nconst logLevelDebug = 4;\nexport const defaultLoggerOptions = {\n level: logLevelDebug,\n};\nexport function createLogger(name, options = defaultLoggerOptions) {\n const baseLogger = consola.create(options);\n const logger = baseLogger.withTag(name);\n return logger;\n}\n//# sourceMappingURL=logger.js.map","import { createLogger } from '../logger';\nexport const logger = createLogger('foundation-utils');\n//# sourceMappingURL=logger.js.map","import { __awaiter } from \"tslib\";\nimport { createObserver } from '../observer';\nimport { logger } from '../utils';\nexport class InMemoryDatabase {\n constructor(uuid) {\n this.uuid = uuid;\n this.isWorking = false;\n this.records = {};\n this.beforeUpdateListeners = createObserver();\n this.afterUpdateListeners = createObserver();\n }\n create(newValue) {\n return __awaiter(this, void 0, void 0, function* () {\n const id = yield this.uuid.createRemoteId();\n return this.update(id, newValue);\n });\n }\n read(id) {\n return __awaiter(this, void 0, void 0, function* () {\n let record;\n try {\n this.isWorking = true;\n record = this.records[id];\n logger.debug(`Database.read ${JSON.stringify(record)}`);\n }\n catch (err) {\n logger.error('Database.read error', err);\n throw err;\n }\n finally {\n this.isWorking = false;\n }\n return {\n value: record,\n };\n });\n }\n update(id, newValue) {\n return __awaiter(this, void 0, void 0, function* () {\n const record = Object.assign(Object.assign({}, newValue), { id });\n const dataRecord = record;\n try {\n this.isWorking = true;\n this.beforeUpdateListeners.publish({\n value: this.records[id],\n newValue: record,\n });\n this.records[id] = dataRecord;\n this.afterUpdateListeners.publish({\n value: record,\n });\n logger.debug(`Database.create success ${JSON.stringify(dataRecord)}`);\n }\n catch (err) {\n logger.error('Database.create error', err);\n throw err;\n }\n finally {\n this.isWorking = false;\n }\n return {\n value: record,\n };\n });\n }\n delete(id) {\n return __awaiter(this, void 0, void 0, function* () {\n let success = true;\n try {\n this.isWorking = true;\n success = delete this.records[id];\n logger.debug(`Database.delete ${id}`);\n }\n catch (err) {\n logger.error('Database.delete error', err);\n throw err;\n }\n finally {\n this.isWorking = false;\n }\n return {\n id,\n success,\n };\n });\n }\n visit(visitor) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n this.isWorking = true;\n Object.values(this.records).forEach(visitor);\n logger.debug(`Database.visit complete`);\n }\n catch (err) {\n logger.error('Database.visit error', err);\n throw err;\n }\n finally {\n this.isWorking = false;\n }\n });\n }\n onBeforeUpdate(listener) {\n return this.beforeUpdateListeners.subscribe(listener);\n }\n onAfterUpdate(listener) {\n return this.afterUpdateListeners.subscribe(listener);\n }\n}\n//# sourceMappingURL=inMemoryDatabase.js.map","export function renderOnChange(target, name) {\n target[name + 'Changed'] = target.render;\n}\n//# sourceMappingURL=renderOnChange.js.map","export function assureDesignSystem(module) {\n if (!module) {\n throw new Error('Undefined design system module');\n }\n if (typeof module.provideDesignSystem !== 'function') {\n throw new Error('Required `provideDesignSystem` function missing from design system module');\n }\n return module;\n}\n//# sourceMappingURL=designSystem.js.map","import { HTMLBindingDirective, } from '@microsoft/fast-element';\nexport const defaultEventMap = new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n]);\nfunction customUpdateTarget(value) {\n if (this['keyAttr']) {\n }\n else {\n this.target[this.targetName] = value;\n }\n}\nfunction bind(source, context) {\n if (this['keyAttr']) {\n this.updateTarget = customUpdateTarget;\n }\n this.originalBind.call(this, source, context);\n this.target.addEventListener(this.changeEvent, this.changeHandler);\n}\nfunction unbind() {\n this.originalUnbind.call(this);\n this.target.removeEventListener(this.changeEvent, this.changeHandler);\n}\nfunction determineChangeEvent(target, eventName) {\n var _a;\n const tag = target.tagName;\n if (eventName === 'default') {\n return (_a = defaultEventMap.get(tag)) !== null && _a !== void 0 ? _a : 'change';\n }\n return eventName;\n}\nclass SyncDirective extends HTMLBindingDirective {\n constructor(binding, convert, eventName, keyAttr) {\n super(binding);\n this.keyAttr = keyAttr;\n this.conversionType = convert;\n this.eventName = eventName;\n }\n createBehavior(target) {\n const behavior = super.createBehavior(target);\n behavior.originalBind = behavior.bind;\n behavior.originalUnbind = behavior.unbind;\n behavior.keyAttr = this.keyAttr;\n behavior.bind = bind;\n behavior.unbind = unbind;\n behavior.changeEvent = determineChangeEvent(target, this.eventName);\n behavior.changeHandler = () => {\n const value = this.conversionType === 'boolean' ? behavior.target.checked : behavior.target.value;\n if (this.keyAttr) {\n const last = behavior.bindingObserver.last;\n const key = behavior.target[this.keyAttr];\n last.propertySource[last.propertyName][key] = this.convert(value);\n }\n else {\n const last = behavior.bindingObserver.last;\n last.propertySource[last.propertyName] = this.convert(value);\n }\n };\n return behavior;\n }\n convert(value) {\n if (value === undefined || value === null)\n return value;\n switch (this.conversionType) {\n case 'time':\n const msSinceEpoch = new Date(value).getTime();\n return isNaN(msSinceEpoch) ? undefined : msSinceEpoch;\n case 'number':\n return value.length ? Number(value) : undefined;\n case 'string':\n return String(value);\n case 'boolean':\n return Boolean(value);\n default:\n return value;\n }\n }\n}\nexport function sync(binding, conversionType = 'string', eventName = 'default', keyAttr) {\n return new SyncDirective(binding, conversionType, eventName, keyAttr);\n}\n//# sourceMappingURL=sync.js.map","export const isDev = () => !process.env.NODE_ENV || process.env.NODE_ENV === 'development';\n//# sourceMappingURL=index.js.map","const isoDateSliceEnd = 10;\nexport function formatDateTimestamp(timestamp) {\n if (!timestamp || isNaN(timestamp))\n return null;\n return new Date(timestamp).toISOString().slice(0, isoDateSliceEnd);\n}\nconst isoDateTimeSliceEnd = 19;\nexport function formatDateTimeTimestamp(timestamp) {\n if (!timestamp || isNaN(timestamp))\n return null;\n return new Date(timestamp).toISOString().slice(0, isoDateTimeSliceEnd).replace('T', ' ');\n}\nexport function formatTimestamp(timestamp, withTime) {\n if (withTime) {\n return formatDateTimeTimestamp(timestamp);\n }\n return formatDateTimestamp(timestamp);\n}\n//# sourceMappingURL=datetime.js.map","import { DI } from '@microsoft/fast-foundation';\nexport class DefaultServerRowDTOMapper {\n constructor() {\n this.fromDTO = (dto) => {\n var _a, _b, _c;\n return ({\n serverRowMetadata: {\n operation: (_b = (_a = dto === null || dto === void 0 ? void 0 : dto.DETAILS) === null || _a === void 0 ? void 0 : _a.OPERATION) === null || _b === void 0 ? void 0 : _b.toLowerCase(),\n rowRef: (_c = dto === null || dto === void 0 ? void 0 : dto.DETAILS) === null || _c === void 0 ? void 0 : _c.ROW_REF,\n },\n });\n };\n this.toDTO = (entity) => {\n var _a, _b, _c;\n return ({\n DETAILS: {\n OPERATION: (_b = (_a = entity === null || entity === void 0 ? void 0 : entity.serverRowMetadata) === null || _a === void 0 ? void 0 : _a.operation) === null || _b === void 0 ? void 0 : _b.toUpperCase(),\n ROW_REF: (_c = entity === null || entity === void 0 ? void 0 : entity.serverRowMetadata) === null || _c === void 0 ? void 0 : _c.rowRef,\n },\n });\n };\n }\n}\nexport const ServerRowDTOMapper = DI.createInterface((x) => x.singleton(DefaultServerRowDTOMapper));\n//# sourceMappingURL=serverRow.js.map","import { __awaiter, __decorate } from \"tslib\";\nimport { observable } from '@microsoft/fast-element';\nimport { logger } from '../../utils';\nexport var PendingStateEvents;\n(function (PendingStateEvents) {\n PendingStateEvents[\"state\"] = \"pending-state\";\n PendingStateEvents[\"error\"] = \"pending-state-error\";\n})(PendingStateEvents || (PendingStateEvents = {}));\nexport const PendingState = (Base) => {\n class Pending extends Base {\n constructor() {\n super(...arguments);\n this.pendingCount = 0;\n this.resolvedCount = 0;\n this.hasPendingChildren = false;\n }\n get progress() {\n return this.resolvedCount / this.pendingCount;\n }\n connectedCallback() {\n super.connectedCallback();\n logger.debug(`PendingState mixin is now connected to the DOM`);\n this.addEventListener(PendingStateEvents.state, this.onPendingState);\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n logger.debug(`PendingState mixin is now disconnected from the DOM`);\n this.removeEventListener(PendingStateEvents.state, this.onPendingState);\n }\n onPendingState({ detail }) {\n return __awaiter(this, void 0, void 0, function* () {\n const { promise } = detail;\n if (promise) {\n this.hasPendingChildren = true;\n this.pendingCount += 1;\n try {\n yield promise;\n }\n catch (error) {\n this.$emit(PendingStateEvents.error, {\n message: `Error in pending-state promise: ${error}`,\n error,\n });\n }\n finally {\n this.resolvedCount += 1;\n if (this.pendingCount === this.resolvedCount) {\n this.hasPendingChildren = false;\n }\n }\n }\n });\n }\n }\n __decorate([\n observable\n ], Pending.prototype, \"hasPendingChildren\", void 0);\n return Pending;\n};\n//# sourceMappingURL=pendingState.js.map","import { __classPrivateFieldGet, __classPrivateFieldSet } from \"tslib\";\nexport const LifecycleMixin = (Base) => { var _instances, __containingLayout, __tryFindContainingLayout, _a; return _a = class extends Base {\n constructor(...args) {\n super(args);\n _instances.add(this);\n __containingLayout.set(this, null);\n }\n cloneNode(deep) {\n const thisClone = this.deepClone();\n if (deep) {\n Array.from(this.childNodes).forEach((child) => {\n thisClone.appendChild(child.cloneNode(true));\n });\n }\n return thisClone;\n }\n deepClone() {\n const copy = document.createElement(this.tagName.toLowerCase());\n this.getAttributeNames().forEach((at) => copy.setAttribute(at, this.getAttribute(at)));\n return copy;\n }\n get shouldRunDisconnect() {\n if (__classPrivateFieldGet(this, __containingLayout, \"f\") === null)\n return true;\n return !__classPrivateFieldGet(this, __containingLayout, \"f\").dragging;\n }\n get shouldRunConnect() {\n return this.shouldRunDisconnect;\n }\n connectedCallback() {\n super.connectedCallback();\n if (__classPrivateFieldGet(this, __containingLayout, \"f\") === null) {\n __classPrivateFieldSet(this, __containingLayout, __classPrivateFieldGet(this, _instances, \"m\", __tryFindContainingLayout).call(this, this), \"f\");\n }\n }\n },\n __containingLayout = new WeakMap(),\n _instances = new WeakSet(),\n __tryFindContainingLayout = function __tryFindContainingLayout(e) {\n if (e.getRootNode() instanceof Document || e.getRootNode() instanceof DocumentFragment) {\n return null;\n }\n const shadowHost = e.getRootNode().host;\n if (shadowHost.constructor.name === 'FoundationLayout') {\n return shadowHost;\n }\n return __classPrivateFieldGet(this, _instances, \"m\", __tryFindContainingLayout).call(this, shadowHost);\n },\n _a; };\n//# sourceMappingURL=lifecycle.js.map","export const ResourceType = {\n local: 'local',\n remote: 'remote',\n};\n//# sourceMappingURL=types.js.map","import { DI } from '@microsoft/fast-foundation';\nclass DefaultJSONSerializer {\n constructor() {\n this.serialize = (object) => JSON.stringify(object);\n }\n deserialize(input) {\n if (input && input.ok) {\n return input.text().then((text) => JSON.parse(text));\n }\n if (input && input.data) {\n input = input.data;\n }\n return JSON.parse(input);\n }\n}\nexport const JSONSerializer = DI.createInterface((x) => x.singleton(DefaultJSONSerializer));\n//# sourceMappingURL=json.js.map","import { baseLayerLuminance, StandardLuminance } from '@microsoft/fast-components';\nimport { DesignToken } from '@microsoft/fast-foundation';\nconst { create } = DesignToken;\nexport const activeColorScheme = create('active-color-scheme').withDefault((elem) => baseLayerLuminance.getValueFor(elem) === StandardLuminance.LightMode ? 'light' : 'dark');\n//# sourceMappingURL=color.js.map","import { logger } from '../utils/logger';\nexport const insertDocumentCSSRule = (cssRule, styleElementId) => {\n var _a;\n let styleElement = document.getElementById(styleElementId);\n if (styleElement) {\n logger.debug(`\n An element with the id of '${styleElementId}' already exists and likely has the css rules applied.\n `);\n return;\n }\n const headElement = (_a = document.head) !== null && _a !== void 0 ? _a : document.getElementsByTagName('head')[0];\n styleElement = document.createElement('style');\n styleElement.id = styleElementId;\n headElement.appendChild(styleElement);\n const styleIndex = styleElement.sheet.insertRule(cssRule);\n return () => {\n if (!styleElement) {\n return;\n }\n styleElement.sheet.deleteRule(styleIndex);\n headElement.removeChild(styleElement);\n };\n};\nexport const insertDocumentLink = (href) => {\n const links = document.head.querySelectorAll('link');\n for (const index in links)\n if (links[index].href === href)\n return;\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = href;\n document.head.appendChild(link);\n};\n//# sourceMappingURL=dom.js.map","import { __decorate } from \"tslib\";\nimport { customElement, FASTElement, observable } from '@microsoft/fast-element';\nlet SlottedStyles = class SlottedStyles extends FASTElement {\n stylesChanged(prev, next) {\n if (prev) {\n this.parentElement.$fastController.removeStyles(prev);\n }\n this.parentElement.$fastController.addStyles(next);\n }\n};\n__decorate([\n observable\n], SlottedStyles.prototype, \"styles\", void 0);\nSlottedStyles = __decorate([\n customElement({\n name: 'slotted-styles',\n })\n], SlottedStyles);\nexport { SlottedStyles };\n//# sourceMappingURL=slotted-styles.js.map","import { insertDocumentCSSRule } from './dom';\nexport const loadFontFaces = (fontFaceRules, styleElementId) => {\n insertDocumentCSSRule(fontFaceRules, styleElementId);\n};\nexport var FontStyle;\n(function (FontStyle) {\n FontStyle[\"Italic\"] = \"italic\";\n FontStyle[\"Normal\"] = \"normal\";\n})(FontStyle || (FontStyle = {}));\nexport var FontWeight;\n(function (FontWeight) {\n FontWeight[FontWeight[\"Thin\"] = 100] = \"Thin\";\n FontWeight[FontWeight[\"Light\"] = 300] = \"Light\";\n FontWeight[FontWeight[\"Regular\"] = 400] = \"Regular\";\n FontWeight[FontWeight[\"Medium\"] = 500] = \"Medium\";\n FontWeight[FontWeight[\"Bold\"] = 700] = \"Bold\";\n FontWeight[FontWeight[\"Black\"] = 900] = \"Black\";\n})(FontWeight || (FontWeight = {}));\nexport const getFontMixin = (family, style = FontStyle.Normal, weight = FontWeight.Regular) => `\n font-family: ${family};\n font-style: ${style};\n font-weight: ${weight};\n`;\n//# sourceMappingURL=typography.js.map","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import { __awaiter } from \"tslib\";\nimport { v4 as uuidv4 } from 'uuid';\nimport { DI } from '@microsoft/fast-foundation';\nimport { logger } from '../utils';\nclass UUIDService {\n constructor() { }\n createId(withLogging = false) {\n const id = uuidv4();\n withLogging && logger.debug(`UUID.createID ${id}`);\n return id;\n }\n createRemoteId(withLogging = false) {\n return __awaiter(this, void 0, void 0, function* () {\n const id = uuidv4();\n withLogging && logger.debug(`UUID.createRemoteID ${id}`);\n return id;\n });\n }\n}\nexport const UUID = DI.createInterface((x) => x.singleton(UUIDService));\n//# sourceMappingURL=uuid.js.map","export const inIFrame = () => {\n try {\n return window.self !== window.top;\n }\n catch (e) {\n return true;\n }\n};\nexport const inSymphonyDesktop = () => {\n const userAgent = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent;\n return (userAgent === null || userAgent === void 0 ? void 0 : userAgent.includes('Symphony')) && (userAgent === null || userAgent === void 0 ? void 0 : userAgent.includes('Electron'));\n};\nexport const POPUP_DEFAULT_WIDTH = 483;\nexport const POPUP_DEFAULT_HEIGHT = 600;\nexport const openPopup = (urlNavigate, target, popUpWidth = POPUP_DEFAULT_WIDTH, popUpHeight = POPUP_DEFAULT_HEIGHT) => {\n const left = window.innerWidth / 2 - popUpWidth / 2 + window.screenX;\n const top = window.innerHeight / 2 - popUpHeight / 2 + window.screenY;\n const popupWindow = window.open(urlNavigate, target, 'width=' +\n popUpWidth +\n ', height=' +\n popUpHeight +\n ', top=' +\n top +\n ', left=' +\n left +\n ', scrollbars=yes');\n if (popupWindow.focus) {\n popupWindow.focus();\n }\n return popupWindow;\n};\n//# sourceMappingURL=window.js.map"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_genesislcap_foundation_testing=self.webpackChunk_genesislcap_foundation_testing||[]).push([[259],{259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultServerRowDTOMapper:()=>k,FontStyle:()=>V,FontWeight:()=>G,InMemoryDatabase:()=>l,JSONSerializer:()=>U,LifecycleMixin:()=>I,LogLevel:()=>s.LogLevel,POPUP_DEFAULT_HEIGHT:()=>se,POPUP_DEFAULT_WIDTH:()=>oe,PendingState:()=>O,PendingStateEvents:()=>N,ResourceType:()=>L,ServerRowDTOMapper:()=>R,SlottedStyles:()=>x,UUID:()=>ne,activeColorScheme:()=>W,assureDesignSystem:()=>h,createLogger:()=>c,createObserver:()=>i,defaultEventMap:()=>v,defaultLoggerOptions:()=>a,formatDateTimeTimestamp:()=>T,formatDateTimestamp:()=>E,formatTimestamp:()=>_,getFontMixin:()=>J,inIFrame:()=>re,inSymphonyDesktop:()=>ie,insertDocumentCSSRule:()=>$,insertDocumentLink:()=>B,isDev:()=>w,loadFontFaces:()=>H,openPopup:()=>ae,renderOnChange:()=>u,sync:()=>b});var r=n(304);const i=()=>{let e=[];return{subscribe:t=>(e.push(t),()=>e=e.filter((e=>e!==t))),publish(t){e.forEach((e=>e(t)))}}};var o=n(100),s=n(708);const a={level:4};function c(e,t=a){return o.Z.create(t).withTag(e)}const d=c("foundation-utils");class l{constructor(e){this.uuid=e,this.isWorking=!1,this.records={},this.beforeUpdateListeners=i(),this.afterUpdateListeners=i()}create(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.uuid.createRemoteId();return this.update(t,e)}))}read(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){let t;try{this.isWorking=!0,t=this.records[e],d.debug(`Database.read ${JSON.stringify(t)}`)}catch(e){throw d.error("Database.read error",e),e}finally{this.isWorking=!1}return{value:t}}))}update(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},t),{id:e}),r=n;try{this.isWorking=!0,this.beforeUpdateListeners.publish({value:this.records[e],newValue:n}),this.records[e]=r,this.afterUpdateListeners.publish({value:n}),d.debug(`Database.create success ${JSON.stringify(r)}`)}catch(e){throw d.error("Database.create error",e),e}finally{this.isWorking=!1}return{value:n}}))}delete(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){let t=!0;try{this.isWorking=!0,t=delete this.records[e],d.debug(`Database.delete ${e}`)}catch(e){throw d.error("Database.delete error",e),e}finally{this.isWorking=!1}return{id:e,success:t}}))}visit(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){try{this.isWorking=!0,Object.values(this.records).forEach(e),d.debug("Database.visit complete")}catch(e){throw d.error("Database.visit error",e),e}finally{this.isWorking=!1}}))}onBeforeUpdate(e){return this.beforeUpdateListeners.subscribe(e)}onAfterUpdate(e){return this.afterUpdateListeners.subscribe(e)}}function u(e,t){e[t+"Changed"]=e.render}function h(e){if(!e)throw new Error("Undefined design system module");if("function"!=typeof e.provideDesignSystem)throw new Error("Required `provideDesignSystem` function missing from design system module");return e}var g=n(147);const v=new Map([["FAST-TEXT-AREA","input"],["FAST-TEXT-FIELD","input"],["FOUNDATION-TEXT-AREA","input"],["FOUNDATION-TEXT-FIELD","input"],["INPUT","input"],["ZERO-TEXT-FIELD","input"]]);function f(e){this.keyAttr||(this.target[this.targetName]=e)}function p(e,t){this.keyAttr&&(this.updateTarget=f),this.originalBind.call(this,e,t),this.target.addEventListener(this.changeEvent,this.changeHandler)}function m(){this.originalUnbind.call(this),this.target.removeEventListener(this.changeEvent,this.changeHandler)}class y extends g.HTMLBindingDirective{constructor(e,t,n,r){super(e),this.keyAttr=r,this.conversionType=t,this.eventName=n}createBehavior(e){const t=super.createBehavior(e);return t.originalBind=t.bind,t.originalUnbind=t.unbind,t.keyAttr=this.keyAttr,t.bind=p,t.unbind=m,t.changeEvent=function(e,t){var n;const r=e.tagName;return"default"===t?null!==(n=v.get(r))&&void 0!==n?n:"change":t}(e,this.eventName),t.changeHandler=()=>{const e="boolean"===this.conversionType?t.target.checked:t.target.value;if(this.keyAttr){const n=t.bindingObserver.last,r=t.target[this.keyAttr];n.propertySource[n.propertyName][r]=this.convert(e)}else{const n=t.bindingObserver.last;n.propertySource[n.propertyName]=this.convert(e)}},t}convert(e){if(null==e)return e;switch(this.conversionType){case"time":const t=new Date(e).getTime();return isNaN(t)?void 0:t;case"number":return e.length?Number(e):void 0;case"string":return String(e);case"boolean":return Boolean(e);default:return e}}}function b(e,t="string",n="default",r){return new y(e,t,n,r)}const w=()=>!1,D=10;function E(e){return!e||isNaN(e)?null:new Date(e).toISOString().slice(0,D)}const S=19;function T(e){return!e||isNaN(e)?null:new Date(e).toISOString().slice(0,S).replace("T"," ")}function _(e,t){return t?T(e):E(e)}var C=n(951);class k{constructor(){this.fromDTO=e=>{var t,n,r;return{serverRowMetadata:{operation:null===(n=null===(t=null==e?void 0:e.DETAILS)||void 0===t?void 0:t.OPERATION)||void 0===n?void 0:n.toLowerCase(),rowRef:null===(r=null==e?void 0:e.DETAILS)||void 0===r?void 0:r.ROW_REF}}},this.toDTO=e=>{var t,n,r;return{DETAILS:{OPERATION:null===(n=null===(t=null==e?void 0:e.serverRowMetadata)||void 0===t?void 0:t.operation)||void 0===n?void 0:n.toUpperCase(),ROW_REF:null===(r=null==e?void 0:e.serverRowMetadata)||void 0===r?void 0:r.rowRef}}}}}const R=C.DI.createInterface((e=>e.singleton(k)));var N;!function(e){e.state="pending-state",e.error="pending-state-error"}(N||(N={}));const O=e=>{class t extends e{constructor(){super(...arguments),this.pendingCount=0,this.resolvedCount=0,this.hasPendingChildren=!1}get progress(){return this.resolvedCount/this.pendingCount}connectedCallback(){super.connectedCallback(),d.debug("PendingState mixin is now connected to the DOM"),this.addEventListener(N.state,this.onPendingState)}disconnectedCallback(){super.disconnectedCallback(),d.debug("PendingState mixin is now disconnected from the DOM"),this.removeEventListener(N.state,this.onPendingState)}onPendingState({detail:e}){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const{promise:t}=e;if(t){this.hasPendingChildren=!0,this.pendingCount+=1;try{yield t}catch(e){this.$emit(N.error,{message:`Error in pending-state promise: ${e}`,error:e})}finally{this.resolvedCount+=1,this.pendingCount===this.resolvedCount&&(this.hasPendingChildren=!1)}}}))}}return(0,r.__decorate)([g.observable],t.prototype,"hasPendingChildren",void 0),t},I=e=>{var t,n,i,o;return o=class extends e{constructor(...e){super(e),t.add(this),n.set(this,null)}cloneNode(e){const t=this.deepClone();return e&&Array.from(this.childNodes).forEach((e=>{t.appendChild(e.cloneNode(!0))})),t}deepClone(){const e=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((t=>e.setAttribute(t,this.getAttribute(t)))),e}get shouldRunDisconnect(){return null===(0,r.__classPrivateFieldGet)(this,n,"f")||!(0,r.__classPrivateFieldGet)(this,n,"f").dragging}get shouldRunConnect(){return this.shouldRunDisconnect}connectedCallback(){super.connectedCallback(),null===(0,r.__classPrivateFieldGet)(this,n,"f")&&(0,r.__classPrivateFieldSet)(this,n,(0,r.__classPrivateFieldGet)(this,t,"m",i).call(this,this),"f")}},n=new WeakMap,t=new WeakSet,i=function e(n){if(n.getRootNode()instanceof Document||n.getRootNode()instanceof DocumentFragment)return null;const i=n.getRootNode().host;return"FoundationLayout"===i.constructor.name?i:(0,r.__classPrivateFieldGet)(this,t,"m",e).call(this,i)},o},L={local:"local",remote:"remote"};class A{constructor(){this.serialize=e=>JSON.stringify(e)}deserialize(e){return e&&e.ok?e.text().then((e=>JSON.parse(e))):(e&&e.data&&(e=e.data),JSON.parse(e))}}const U=C.DI.createInterface((e=>e.singleton(A)));var F=n(193),P=n(251);const{create:M}=C.DesignToken,W=M("active-color-scheme").withDefault((e=>F.q2.getValueFor(e)===P.h.LightMode?"light":"dark")),$=(e,t)=>{var n;let r=document.getElementById(t);if(r)return void d.debug(`\n An element with the id of '${t}' already exists and likely has the css rules applied.\n `);const i=null!==(n=document.head)&&void 0!==n?n:document.getElementsByTagName("head")[0];r=document.createElement("style"),r.id=t,i.appendChild(r);const o=r.sheet.insertRule(e);return()=>{r&&(r.sheet.deleteRule(o),i.removeChild(r))}},B=e=>{const t=document.head.querySelectorAll("link");for(const n in t)if(t[n].href===e)return;const n=document.createElement("link");n.rel="stylesheet",n.href=e,document.head.appendChild(n)};let x=class extends g.FASTElement{stylesChanged(e,t){e&&this.parentElement.$fastController.removeStyles(e),this.parentElement.$fastController.addStyles(t)}};(0,r.__decorate)([g.observable],x.prototype,"styles",void 0),x=(0,r.__decorate)([(0,g.customElement)({name:"slotted-styles"})],x);const H=(e,t)=>{$(e,t)};var V,G;!function(e){e.Italic="italic",e.Normal="normal"}(V||(V={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(G||(G={}));const J=(e,t=V.Normal,n=G.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${n};\n`;var X,j=new Uint8Array(16);function q(){if(!X&&!(X="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return X(j)}const z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Z=function(e){return"string"==typeof e&&z.test(e)};for(var Y=[],K=0;K<256;++K)Y.push((K+256).toString(16).substr(1));const Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Y[e[t+0]]+Y[e[t+1]]+Y[e[t+2]]+Y[e[t+3]]+"-"+Y[e[t+4]]+Y[e[t+5]]+"-"+Y[e[t+6]]+Y[e[t+7]]+"-"+Y[e[t+8]]+Y[e[t+9]]+"-"+Y[e[t+10]]+Y[e[t+11]]+Y[e[t+12]]+Y[e[t+13]]+Y[e[t+14]]+Y[e[t+15]]).toLowerCase();if(!Z(n))throw TypeError("Stringified UUID is invalid");return n};const ee=function(e,t,n){var r=(e=e||{}).random||(e.rng||q)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Q(r)};class te{constructor(){}createId(e=!1){const t=ee();return e&&d.debug(`UUID.createID ${t}`),t}createRemoteId(e=!1){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=ee();return e&&d.debug(`UUID.createRemoteID ${t}`),t}))}}const ne=C.DI.createInterface((e=>e.singleton(te))),re=()=>{try{return window.self!==window.top}catch(e){return!0}},ie=()=>{const e=null===navigator||void 0===navigator?void 0:navigator.userAgent;return(null==e?void 0:e.includes("Symphony"))&&(null==e?void 0:e.includes("Electron"))},oe=483,se=600,ae=(e,t,n=oe,r=se)=>{const i=window.innerWidth/2-n/2+window.screenX,o=window.innerHeight/2-r/2+window.screenY,s=window.open(e,t,"width="+n+", height="+r+", top="+o+", left="+i+", scrollbars=yes");return s.focus&&s.focus(),s}}}]);
|
|
2
|
+
//# sourceMappingURL=259.1ff0e7689abdc0527a57f2eb20369ada.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-testing/../node_modules/exenv-es6/dist/can-use-dom.js","webpack://@genesislcap/foundation-testing/../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":";oJAGO,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,EAAmCD,EAAmBE,KAAK,KAC3DC,EAA+B,oBAAZC,QACnBC,EAAUF,EAAY,WAAa,EAAIC,QAAQE,UAAUD,SAAWD,QAAQE,UAAUC,mBAAqBH,QAAQE,UAAUE,sBAC7HC,GAAeN,GAAaC,QAAQE,UAAUG,YAAc,SAAUC,GACxE,OAAOA,EAAQD,aACjB,EAAI,SAAUC,GACZ,OAAOA,EAAQC,aACjB,EAoHIC,EAAc,SAAqBC,EAAMC,GAC3C,OAAID,EAAKE,SAAW,IAYbD,GAAW,0BAA0BE,KAAKH,EAAKI,UAAYJ,EAAKK,oBAAsBC,MAAMC,SAASP,EAAKQ,aAAa,YAAa,KAChI,EAIJR,EAAKE,QACd,EAMIO,EAAU,SAAiBT,GAC7B,MAAwB,UAAjBA,EAAKI,OACd,EAsDIM,EAAqB,SAA4BV,GACnD,OALY,SAAiBA,G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ASnD,EAErF,CAGA,OAAO,CACT,CAEAiE,EAAaA,EAAWlB,aAC1B,CAKF,OAAO,CACT,CAIgCoB,CAAuBnE,GAKvD,EAEIoE,EAAiC,SAAwC/B,EAASrC,GACpF,QAAIU,EAAmBV,IAASD,EAAYC,GAAQ,IAAMoC,EAAgCC,EAASrC,GAKrG,EAiFIqE,EAAa,SAAoBrE,EAAMqC,GAGzC,GAFAA,EAAUA,GAAW,CAAC,GAEjBrC,EACH,MAAM,IAAIsE,MAAM,oBAGlB,OAA8C,IAA1C9E,EAAQsD,KAAK9C,EAAMZ,IAIhBgF,EAA+B/B,EAASrC,EACjD,EAEIuE,EAA4CpF,EAAmBqF,OAAO,UAAUnF,KAAK,KAErFoF,EAAc,SAAqBzE,EAAMqC,GAG3C,GAFAA,EAAUA,GAAW,CAAC,GAEjBrC,EACH,MAAM,IAAIsE,MAAM,oBAGlB,OAAuD,IAAnD9E,EAAQsD,KAAK9C,EAAMuE,IAIhBnC,EAAgCC,EAASrC,EAClD,C","file":"415.415.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":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 415.415.ee8e35767118401bccab.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_genesislcap_foundation_testing=self.webpackChunk_genesislcap_foundation_testing||[]).push([[415,623],{861:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{N:()=>o})},642:(e,t,n)=>{"use strict";n.d(t,{EB:()=>w,Wq:()=>m});var o=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],r=o.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},l=function(e){return"INPUT"===e.tagName},d=function(e){return function(e){return l(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(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 r=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!r||r===e}(e)},f=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},s=function(e,t){return!(t.disabled||function(e){return l(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(r,"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 o){for(var l=e;e;){var d=e.parentElement,s=u(e);if(d&&!d.shadowRoot&&!0===o(d))return f(e);e=e.assignedSlot?e.assignedSlot:d||s===e.ownerDocument?d:s.host}e=l}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 o=t.children.item(n);if("LEGEND"===o.tagName)return!!a.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},p=function(e,t){return!(d(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,r)&&p(t,e)},h=o.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=415.32cf4cabeed75f5d759d12434a4de5c7.js.map
|