@mikezimm/fps-library-v2 1.0.121 → 1.0.123
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/CHANGELOG.md +14 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts +1 -0
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js +2 -1
- package/lib/components/atoms/TeachBubble/IMinTeachBubble.js.map +1 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts +2 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js +32 -16
- package/lib/components/atoms/TeachBubble/SampleTeachBubbles.js.map +1 -1
- package/lib/components/atoms/TeachBubble/component.d.ts.map +1 -1
- package/lib/components/atoms/TeachBubble/component.js +5 -1
- package/lib/components/atoms/TeachBubble/component.js.map +1 -1
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts +10 -0
- package/lib/components/atoms/TeachBubble/getTeacher.d.ts.map +1 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js +17 -0
- package/lib/components/atoms/TeachBubble/getTeacher.js.map +1 -0
- package/lib/components/molecules/Performance/IPerformanceSettings.d.ts +20 -0
- package/lib/components/molecules/Performance/IPerformanceSettings.d.ts.map +1 -0
- package/lib/components/molecules/Performance/IPerformanceSettings.js +2 -0
- package/lib/components/molecules/Performance/IPerformanceSettings.js.map +1 -0
- package/lib/components/molecules/Performance/functions.d.ts +4 -1
- package/lib/components/molecules/Performance/functions.d.ts.map +1 -1
- package/lib/components/molecules/Performance/functions.js +14 -2
- package/lib/components/molecules/Performance/functions.js.map +1 -1
- package/lib/pnpjs/Common/IFpsErrorObject.d.ts +2 -0
- package/lib/pnpjs/Common/IFpsErrorObject.d.ts.map +1 -1
- package/lib/pnpjs/SourceItems/IMinSourceFetchProps.d.ts +2 -0
- package/lib/pnpjs/SourceItems/IMinSourceFetchProps.d.ts.map +1 -1
- package/lib/pnpjs/SourceItems/Interface.d.ts.map +1 -1
- package/lib/pnpjs/SourceItems/getSourceItems.d.ts.map +1 -1
- package/lib/pnpjs/SourceItems/getSourceItems.js +6 -1
- package/lib/pnpjs/SourceItems/getSourceItems.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,12 +5,25 @@ npm run build
|
|
|
5
5
|
npm version major/minor/patch
|
|
6
6
|
npm publish --access=public
|
|
7
7
|
|
|
8
|
-
npm install @mikezimm/fps-library-v2@1.0.
|
|
8
|
+
npm install @mikezimm/fps-library-v2@1.0.123
|
|
9
9
|
|
|
10
10
|
# Changelog
|
|
11
11
|
|
|
12
12
|
NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
|
|
13
13
|
|
|
14
|
+
## 1.0.123 - 2023-Feb-09: build performance right into getSourceItems
|
|
15
|
+
- add getTeachBubbles for Teaching Bubbles
|
|
16
|
+
- update AllTeachBubbles sample
|
|
17
|
+
- update makeBubbleElementFromBubbles to not error out when TeachBubbleArray.length === 0
|
|
18
|
+
- add op?: ILoadPerformanceOps; to IPerformanceSettings which is used to trigger the updates in 1.0.122
|
|
19
|
+
|
|
20
|
+
## 1.0.122 - 2023-Feb-09: build performance right into getSourceItems
|
|
21
|
+
- create IPerformanceSettings in src/components/molecules/Performance/IPerformanceSettings.tsx
|
|
22
|
+
- add performanceSettings: IPerformanceSettings; to IMinSourceFetchProps
|
|
23
|
+
- add performanceOp?: IPerformanceOp; to IFpsErrorObject
|
|
24
|
+
- create startPerformOpV2 and updatePerformanceEndV2 which do performance if it's defined in IMinSourceFetchProps
|
|
25
|
+
- add performanceOp into getSourceItems if it's part of sourceProps
|
|
26
|
+
|
|
14
27
|
## 1.0.121 - 2023-Feb-09: Compliance, ALVFM
|
|
15
28
|
- update IFpsErrorObject and checkItemsResults to include: loaded & refreshId... can now be dropped right into state :)
|
|
16
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinTeachBubble.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IMinTeachBubble.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAEvB;AAED;;;;;;;;;GASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinTeachBubble.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IMinTeachBubble.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/IMinTeachBubble.tsx"],"names":[],"mappings":"AACA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAa7C;;;;;;;;;GASG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { IMinTeachBubble } from "./IMinTeachBubble";
|
|
2
|
-
export
|
|
2
|
+
export type ITeachGroups = 'MainPivot' | 'Contacts' | 'Site';
|
|
3
|
+
export declare const AllTeachBubbles: IMinTeachBubble[];
|
|
3
4
|
//# sourceMappingURL=SampleTeachBubbles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleTeachBubbles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleTeachBubbles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAO7D,eAAO,MAAM,eAAe,EAAE,eAAe,EA0B5C,CAAA"}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
// import { IMinTeachBubble } from "@mikezimm/fps-library-v2/lib/components/atoms/TeachBubble/IMinTeachBubble";
|
|
2
|
+
import { ReplaceWpId } from "./IMinTeachBubble";
|
|
3
|
+
const MainPivot = 'MainPivot';
|
|
4
|
+
const Contacts = 'Contacts';
|
|
5
|
+
const defaultMessage = `Click for more information`;
|
|
6
|
+
export const AllTeachBubbles = [
|
|
7
|
+
{
|
|
8
|
+
// step: 0,
|
|
9
|
+
// target: `#ComplHomeBanner${wpId}`,
|
|
10
|
+
target: `#${MainPivot}Home${ReplaceWpId}`,
|
|
11
|
+
headline: `Quick summary of your site`,
|
|
12
|
+
message: `This provides a quick overview of what a recent audit found on your site.`,
|
|
13
|
+
}, {
|
|
14
|
+
// step: 0,
|
|
15
|
+
target: `#${Contacts}Committee${ReplaceWpId}`,
|
|
16
|
+
headline: `'Committee' tab`,
|
|
17
|
+
message: ``,
|
|
18
|
+
// message: `${defaultMessage}`,
|
|
19
|
+
}, {
|
|
20
|
+
// step: 1,
|
|
21
|
+
target: `#${Contacts}Coordinators${ReplaceWpId}`,
|
|
22
|
+
headline: `'Coordinators' tab`,
|
|
23
|
+
message: ``,
|
|
24
|
+
// message: `${defaultMessage}`,
|
|
25
|
+
}, {
|
|
26
|
+
// step: 0,
|
|
27
|
+
target: `#${MainPivot}Details${ReplaceWpId}`,
|
|
28
|
+
headline: `'Details' Tab`,
|
|
29
|
+
message: ``,
|
|
30
|
+
// message: `${defaultMessage}`,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
17
33
|
//# sourceMappingURL=SampleTeachBubbles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleTeachBubbles.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleTeachBubbles.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/SampleTeachBubbles.tsx"],"names":[],"mappings":"AAEA,+GAA+G;AAC/G,OAAO,EAAmB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIjE,MAAM,SAAS,GAAiB,WAAW,CAAC;AAC5C,MAAM,QAAQ,GAAiB,UAAU,CAAC;AAE1C,MAAM,cAAc,GAAW,4BAA4B,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAA0B;IACpD;QACE,WAAW;QACX,qCAAqC;QACrC,MAAM,EAAE,IAAI,SAAS,OAAO,WAAW,EAAE;QACzC,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE,2EAA2E;KACrF,EAAE;QACD,WAAW;QACX,MAAM,EAAE,IAAI,QAAQ,YAAY,WAAW,EAAE;QAC7C,QAAQ,EAAE,iBAAiB;QAC3B,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC,EAAE;QACD,WAAW;QACX,MAAM,EAAE,IAAI,QAAQ,eAAe,WAAW,EAAE;QAChD,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC,EAAC;QACA,WAAW;QACX,MAAM,EAAE,IAAI,SAAS,UAAU,WAAW,EAAE;QAC5C,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,EAAE;QACX,gCAAgC;KACjC;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,wBAAgB,4BAA4B,CAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAC,eAAe,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAK,GAAG,CAAC,OAAO,CA4BzJ"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TeachingBubble } from 'office-ui-fabric-react/lib/TeachingBubble';
|
|
3
|
+
import { check4Gulp } from '@mikezimm/fps-pnp2/lib/services/sp/CheckGulping';
|
|
3
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
5
|
export function makeBubbleElementFromBubbles(teachBubble, TeachBubbleArray, setTeachBubble, closeTour) {
|
|
5
|
-
if (teachBubble === null)
|
|
6
|
+
if (teachBubble === null || TeachBubbleArray.length === 0) {
|
|
7
|
+
if (check4Gulp() === true)
|
|
8
|
+
console.log('makeBubbleElementFromBubbles not started', teachBubble, TeachBubbleArray);
|
|
6
9
|
return null;
|
|
10
|
+
}
|
|
7
11
|
const theBubble = TeachBubbleArray[teachBubble];
|
|
8
12
|
const nextBubble = teachBubble === TeachBubbleArray.length - 1 ? 0 : teachBubble + 1;
|
|
9
13
|
const prevBubble = teachBubble === 0 ? TeachBubbleArray.length - 1 : teachBubble - 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,8DAA8D;AAC9D,MAAM,UAAU,4BAA4B,CAAE,WAAmB,EAAE,gBAAkC,EAAE,cAAmB,EAAE,SAAc;IAExI,IAAK,WAAW,KAAK,IAAI,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAI;QAC5D,IAAK,UAAU,EAAE,KAAK,IAAI;YAAG,OAAO,CAAC,GAAG,CAAE,0CAA0C,EAAE,WAAW,EAAE,gBAAgB,CAAE,CAAC;QACtH,OAAO,IAAI,CAAC;KACb;IAED,MAAM,SAAS,GAAoB,gBAAgB,CAAE,WAAW,CAAE,CAAC;IACnE,MAAM,UAAU,GAAW,WAAW,KAAK,gBAAgB,CAAC,MAAM,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IAC5F,MAAM,UAAU,GAAW,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAE,CAAC,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IAC5F,gFAAgF;IAChF,MAAM,MAAM,GAAgB;QACxB,oBAAC,cAAc,IACb,MAAM,EAAG,SAAS,CAAC,MAAM,EACzB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAG,SAAS,CAAC,QAAQ,EAC7B,SAAS,EAAG,GAAG,EAAE,GAAG,SAAS,EAAG,CAAA,CAAC,CAAC,EAClC,kBAAkB,EAAG,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAE,UAAU,CAAE,EAAE,EACvF,oBAAoB,EAAG,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAE,UAAU,CAAE,EAAE,EAC7F,aAAa,EAAG,GAAI,WAAW,GAAG,CAAE,OAAQ,gBAAgB,CAAC,MAAO,EAAE;YAEpE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAO,GAAI,SAAS,CAAC,OAAQ,EAAE,CAAQ;YACnE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAO,GAAI,SAAS,CAAC,OAAQ,EAAE,CAAQ,CACtD,CACf,CAAA;IAEN,OAAO,MAAM,CAAC;AAEhB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IMinTeachBubble } from "./IMinTeachBubble";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param AllTeachBubbles
|
|
5
|
+
* @param wpId
|
|
6
|
+
* @param teach - Beginning of Ids ( LESS # symbol which is automatically added )
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTeachBubbles(AllTeachBubbles: IMinTeachBubble[], wpId: string, teach: string): IMinTeachBubble[];
|
|
10
|
+
//# sourceMappingURL=getTeacher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTeacher.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/getTeacher.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,eAAe,EAAE,eAAe,EAAE,EAAG,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAI,eAAe,EAAE,CAKrH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { check4Gulp } from "@mikezimm/fps-pnp2/lib/services/sp/CheckGulping";
|
|
2
|
+
import { ReplaceWpId } from "./IMinTeachBubble";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param AllTeachBubbles
|
|
6
|
+
* @param wpId
|
|
7
|
+
* @param teach - Beginning of Ids ( LESS # symbol which is automatically added )
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export function getTeachBubbles(AllTeachBubbles, wpId, teach) {
|
|
11
|
+
const theseBubbles = AllTeachBubbles.filter(bubble => { return bubble.target.indexOf(`#${teach}`) === 0; });
|
|
12
|
+
theseBubbles.map(bubble => { bubble.target.replace(ReplaceWpId, wpId); });
|
|
13
|
+
if (check4Gulp() === true)
|
|
14
|
+
console.log(console.log('getTeachBubbles', theseBubbles));
|
|
15
|
+
return theseBubbles;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=getTeacher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTeacher.js","sourceRoot":"","sources":["../../../../src/components/atoms/TeachBubble/getTeacher.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAmB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAE,eAAkC,EAAG,IAAY,EAAE,KAAa;IAC/F,MAAM,YAAY,GAAsB,eAAe,CAAC,MAAM,CAAE,MAAM,CAAC,EAAE,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC,CAAE,CAAC;IACjI,YAAY,CAAC,GAAG,CAAE,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAE,WAAW,EAAE,IAAI,CAAE,CAAA,CAAA,CAAC,CAAC,CAAC;IAC3E,IAAK,UAAU,EAAE,KAAK,IAAI;QAAG,OAAO,CAAC,GAAG,CAAE,OAAO,CAAC,GAAG,CAAE,iBAAiB,EAAE,YAAY,CAAE,CAAE,CAAC;IAC3F,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DisplayMode } from '../../../common/interfaces/@msft/1.15.2/displayMode';
|
|
2
|
+
import { ILoadPerformanceOps, IPerformanceOp } from './IPerformance';
|
|
3
|
+
/**
|
|
4
|
+
* Add this to ISource Props and performance will automatically be added to the return object
|
|
5
|
+
*/
|
|
6
|
+
export interface IPerformanceSettings extends IStartPerformOp {
|
|
7
|
+
updateMiliseconds: boolean;
|
|
8
|
+
op?: ILoadPerformanceOps;
|
|
9
|
+
}
|
|
10
|
+
export interface IStartPerformOp {
|
|
11
|
+
label: string;
|
|
12
|
+
editMode?: DisplayMode | null;
|
|
13
|
+
includeMsStr?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IEndPerformOp {
|
|
16
|
+
op: IPerformanceOp;
|
|
17
|
+
updateMiliseconds: boolean;
|
|
18
|
+
count: number | null;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=IPerformanceSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPerformanceSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/IPerformanceSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,iBAAiB,EAAE,OAAO,CAAC;IAC3B,EAAE,CAAC,EAAE,mBAAmB,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPerformanceSettings.js","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/IPerformanceSettings.tsx"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DisplayMode } from '../../../common/interfaces/@msft/1.15.2/displayMode';
|
|
2
2
|
import { IPerformanceOp, ILoadPerformanceSS7, ILoadPerformanceALVFM, ILoadPerformance, IPerformanceOpWithDetails } from './IPerformance';
|
|
3
|
+
import { IStartPerformOp, IEndPerformOp } from './IPerformanceSettings';
|
|
3
4
|
export declare function createBasePerformanceInit(editMode: DisplayMode, monitor: boolean): ILoadPerformance;
|
|
4
5
|
export declare function startPerformanceInit_ALVFM(editMode: DisplayMode, monitor: boolean): ILoadPerformanceALVFM;
|
|
5
6
|
export declare function startPerformanceInit_SS7(classic: boolean, modern: boolean, reload: boolean, editMode: DisplayMode, monitor: boolean): ILoadPerformanceSS7;
|
|
7
|
+
export declare function startPerformOp(label: string, editMode: DisplayMode | null, includeMsStr?: boolean): IPerformanceOp;
|
|
6
8
|
/**
|
|
7
9
|
*
|
|
8
10
|
* @param label
|
|
@@ -10,8 +12,9 @@ export declare function startPerformanceInit_SS7(classic: boolean, modern: boole
|
|
|
10
12
|
* @param includeMsStr - Add time MS to startStr so that it is easier to verify timing. https://github.com/mikezimm/pivottiles7/issues/192
|
|
11
13
|
* @returns
|
|
12
14
|
*/
|
|
13
|
-
export declare function
|
|
15
|
+
export declare function startPerformOpV2(props: IStartPerformOp): IPerformanceOp;
|
|
14
16
|
export declare function updatePerformanceEnd(op: IPerformanceOp, updateMiliseconds: boolean, count: number | null): IPerformanceOp;
|
|
17
|
+
export declare function updatePerformanceEndV2(props: IEndPerformOp): IPerformanceOp;
|
|
15
18
|
export declare function updatePerformOpSimple(ops: IPerformanceOp[], count: number | null): IPerformanceOp[];
|
|
16
19
|
export declare function startPerformOpDetail(ops: IPerformanceOpWithDetails[], label: string, editMode: DisplayMode, update?: boolean, count?: number | null): IPerformanceOpWithDetails[];
|
|
17
20
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/functions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/functions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACzI,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAExE,wBAAgB,yBAAyB,CAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAG,OAAO,GAAK,gBAAgB,CAqBvG;AAED,wBAAgB,0BAA0B,CAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAG,OAAO,GAAK,qBAAqB,CAM7G;AAED,wBAAgB,wBAAwB,CAAE,OAAO,EAAG,OAAO,EAAE,MAAM,EAAG,OAAO,EAAE,MAAM,EAAG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAG,OAAO,GAAK,mBAAmB,CAWhK;AAED,wBAAgB,cAAc,CAAG,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,EAAE,YAAY,GAAE,OAAe,kBAE1G;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAG,KAAK,EAAE,eAAe,kBAexD;AAGD,wBAAgB,oBAAoB,CAAE,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAG,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,kBAE1G;AAED,wBAAgB,sBAAsB,CAAE,KAAK,EAAE,aAAa,kBAY3D;AAED,wBAAgB,qBAAqB,CAAG,GAAG,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,oBAOlF;AAED,wBAAgB,oBAAoB,CAAG,GAAG,EAAE,yBAAyB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAE,OAAc,EAAE,KAAK,GAAE,MAAM,GAAG,IAAW,+BAkBjK"}
|
|
@@ -25,6 +25,9 @@ export function startPerformanceInit_SS7(classic, modern, reload, editMode, moni
|
|
|
25
25
|
loadPerformance.jsEval = null;
|
|
26
26
|
return loadPerformance;
|
|
27
27
|
}
|
|
28
|
+
export function startPerformOp(label, editMode, includeMsStr = false) {
|
|
29
|
+
return startPerformOpV2({ label: label, editMode: editMode, includeMsStr: includeMsStr });
|
|
30
|
+
}
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
* @param label
|
|
@@ -32,19 +35,28 @@ export function startPerformanceInit_SS7(classic, modern, reload, editMode, moni
|
|
|
32
35
|
* @param includeMsStr - Add time MS to startStr so that it is easier to verify timing. https://github.com/mikezimm/pivottiles7/issues/192
|
|
33
36
|
* @returns
|
|
34
37
|
*/
|
|
35
|
-
export function
|
|
38
|
+
export function startPerformOpV2(props) {
|
|
39
|
+
if (!props)
|
|
40
|
+
return null;
|
|
41
|
+
const { includeMsStr, label, editMode } = props;
|
|
36
42
|
const start = new Date();
|
|
37
43
|
const startStr = includeMsStr === true ? `${start.toLocaleTimeString()} : ${start.getMilliseconds()}` : start.toLocaleTimeString();
|
|
38
44
|
const result = {
|
|
39
45
|
label: label,
|
|
40
46
|
start: start,
|
|
41
47
|
startStr: startStr,
|
|
42
|
-
mode: editMode,
|
|
48
|
+
mode: editMode ? editMode : null,
|
|
43
49
|
details: [], //Could be used to trace individual file loads
|
|
44
50
|
};
|
|
45
51
|
return result;
|
|
46
52
|
}
|
|
47
53
|
export function updatePerformanceEnd(op, updateMiliseconds, count) {
|
|
54
|
+
return updatePerformanceEndV2({ op: op, updateMiliseconds: updateMiliseconds, count: count });
|
|
55
|
+
}
|
|
56
|
+
export function updatePerformanceEndV2(props) {
|
|
57
|
+
if (!props)
|
|
58
|
+
return null;
|
|
59
|
+
const { op, updateMiliseconds, count } = props;
|
|
48
60
|
op.end = new Date();
|
|
49
61
|
op.endStr = op.end.toLocaleTimeString();
|
|
50
62
|
if (updateMiliseconds === true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/functions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/components/molecules/Performance/functions.tsx"],"names":[],"mappings":"AAMA,MAAM,UAAU,yBAAyB,CAAE,QAAqB,EAAE,OAAiB;IAE/E,MAAM,eAAe,GAAqB;QACtC,MAAM,EAAG,IAAI,IAAI,EAAE;QACnB,WAAW,EAAE,IAAW;QAExB,IAAI,EAAE,EAAG;QACT,GAAG,EAAE;YACH,KAAK,EAAG,IAAW;YACnB,OAAO,EAAG,IAAW;SACtB;QAED,OAAO,EAAE,OAAc;QACvB,OAAO,EAAE,EAAE;QAEX,IAAI,EAAE,QAAQ;KAEjB,CAAC;IAEF,OAAO,eAAe,CAAC;AAE3B,CAAC;AAED,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AI,GAAG,GAAG,CAAC,MAAM,GAAE,CAAC,CAAC;QAC3B,GAAG,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAE,CAAC;KAC9D;IACD,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAG,GAAgC,EAAE,KAAa,EAAE,QAAqB,EAAE,SAAkB,IAAI,EAAE,QAAuB,IAAI;IAC9J,IAAK,GAAG,EAAG;QAEP,MAAM,IAAI,GAAW,GAAG,CAAC,MAAM,GAAE,CAAC,CAAC;QAEnC,IAAK,MAAM,KAAK,IAAI,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAG;YACrC,GAAG,CAAC,IAAI,CAAC,GAAG,oBAAoB,CAAE,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAE,CAAC;SAChE;QAED,IAAK,KAAK,IAAI,GAAG,CAAE,IAAI,CAAE,EAAE;YACvB,IAAK,OAAO,GAAG,CAAE,IAAI,CAAE,CAAC,OAAO,KAAK,QAAQ,EAAG;gBAC3C,GAAG,CAAE,IAAI,CAAE,CAAC,OAAO,CAAC,IAAI,CAAE,cAAc,CAAE,KAAK,EAAE,QAAQ,CAAE,CAAE,CAAC;aACjE;SAEJ;aAAM;YAAE,OAAO,CAAC,GAAG,CAAE,mDAAoD,KAAM,YAAa,IAAK,EAAE,CAAC,CAAA;SAAC;KACzG;IAED,OAAO,GAAG,CAAC;AACf,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IHelpfullInput, IHelpfullOutput } from "../../logic/Errors/friendly";
|
|
2
2
|
import { IFPSResultStatus } from "@mikezimm/fps-pnp2/lib/services/sp/IFPSResultStatus";
|
|
3
|
+
import { IPerformanceOp } from "../../components/molecules/Performance/IPerformance";
|
|
3
4
|
export interface IBlankErrorObj {
|
|
4
5
|
status: IFPSResultStatus;
|
|
5
6
|
e: any;
|
|
@@ -11,6 +12,7 @@ export interface IBlankErrorObj {
|
|
|
11
12
|
export interface IFpsErrorObject extends IBlankErrorObj {
|
|
12
13
|
errorInfo?: IHelpfullOutput;
|
|
13
14
|
errorInput?: IHelpfullInput;
|
|
15
|
+
performanceOp?: IPerformanceOp;
|
|
14
16
|
loaded?: boolean;
|
|
15
17
|
refreshId?: string;
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFpsErrorObject.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Common/IFpsErrorObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"IFpsErrorObject.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Common/IFpsErrorObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,gBAAgB,CAAC;IACzB,CAAC,EAAE,GAAG,CAAC;CACR;AAED;;;GAGG;AAEH,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPerformanceSettings } from "../../components/molecules/Performance/IPerformanceSettings";
|
|
1
2
|
import { ISeriesSortObject } from "../../logic/indexes/ArraySortingNumbers";
|
|
2
3
|
export interface IMinSourceFetchProps {
|
|
3
4
|
webUrl: string;
|
|
@@ -7,5 +8,6 @@ export interface IMinSourceFetchProps {
|
|
|
7
8
|
restFilter?: string;
|
|
8
9
|
fetchCount: number;
|
|
9
10
|
orderBy?: ISeriesSortObject;
|
|
11
|
+
performanceSettings?: IPerformanceSettings;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=IMinSourceFetchProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/IMinSourceFetchProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"IMinSourceFetchProps.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/IMinSourceFetchProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;CAE5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/Interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Interface.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/Interface.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAG,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,SAAS,EAAE,eAAe,CAAC;CAC5B;AAID,MAAM,WAAW,iBAAiB;IAEhC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB;AAID,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IAGxD,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAG5B,OAAO,EAAE,MAAM,CAAC;IAEhB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAE5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceItems.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/getSourceItems.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAqB,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"getSourceItems.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/getSourceItems.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAqB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAIjF;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAM,OAAO,CAAC,eAAe,CAAC,CAa3J"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { fetchAnyItems } from "@mikezimm/fps-pnp2/lib/services/sp/fetch/items/fetch";
|
|
2
2
|
import { checkItemsResults } from '../Common/CheckItemsResults';
|
|
3
3
|
import { createMinFetchProps } from "./createMinFetchProps";
|
|
4
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from "../../components/molecules/Performance/functions";
|
|
4
5
|
/**
|
|
5
6
|
* getSourceItems calls the Pnp function to get the results which returns the raw error.
|
|
6
7
|
* This function then will convert the error into the helpful error and return the standard IItemsError object.
|
|
@@ -11,9 +12,13 @@ import { createMinFetchProps } from "./createMinFetchProps";
|
|
|
11
12
|
* @returns
|
|
12
13
|
*/
|
|
13
14
|
export async function getSourceItems(sourceProps, alertMe, consoleLog) {
|
|
15
|
+
const { performanceSettings } = sourceProps;
|
|
14
16
|
const FetchProps = createMinFetchProps(sourceProps, alertMe, consoleLog);
|
|
17
|
+
const performanceOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
15
18
|
const initialResult = await fetchAnyItems(FetchProps);
|
|
16
|
-
const result = checkItemsResults(initialResult, `fps-library-v2: getSourceItems ~
|
|
19
|
+
const result = checkItemsResults(initialResult, `fps-library-v2: getSourceItems ~ 24`, alertMe, consoleLog);
|
|
20
|
+
result.performanceOp = performanceSettings ?
|
|
21
|
+
updatePerformanceEndV2({ op: performanceOp, updateMiliseconds: performanceSettings.updateMiliseconds, count: result.items.length }) : null;
|
|
17
22
|
return result;
|
|
18
23
|
}
|
|
19
24
|
//# sourceMappingURL=getSourceItems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSourceItems.js","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/getSourceItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAGrF,OAAO,EAAE,iBAAiB,EAAmB,MAAM,6BAA6B,CAAC;AACjF,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