@myrmidon/gve-core 0.0.5 → 1.0.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/README.md +2 -0
- package/fesm2022/myrmidon-gve-core.mjs +370 -259
- package/fesm2022/myrmidon-gve-core.mjs.map +1 -1
- package/lib/components/batch-operation-editor/batch-operation-editor.component.d.ts +46 -0
- package/lib/components/chain-result-view/chain-result-view.component.d.ts +4 -1
- package/lib/components/feature-editor/feature-editor.component.d.ts +1 -1
- package/lib/components/feature-set-editor/feature-set-editor.component.d.ts +1 -1
- package/lib/components/snapshot-editor/snapshot-editor.component.d.ts +11 -9
- package/lib/components/steps-map/steps-map.component.d.ts +2 -0
- package/lib/models.d.ts +8 -0
- package/lib/services/gve-api.service.d.ts +33 -0
- package/package.json +10 -12
- package/public-api.d.ts +1 -0
- package/esm2022/lib/components/animation-timeline/animation-timeline.component.mjs +0 -207
- package/esm2022/lib/components/animation-timeline-set/animation-timeline-set.component.mjs +0 -154
- package/esm2022/lib/components/animation-tween/animation-tween.component.mjs +0 -184
- package/esm2022/lib/components/base-text-char/base-text-char.component.mjs +0 -46
- package/esm2022/lib/components/base-text-editor/base-text-editor.component.mjs +0 -115
- package/esm2022/lib/components/base-text-view/base-text-view.component.mjs +0 -159
- package/esm2022/lib/components/chain-operation-editor/chain-operation-editor.component.mjs +0 -570
- package/esm2022/lib/components/chain-result-view/chain-result-view.component.mjs +0 -222
- package/esm2022/lib/components/feature-editor/feature-editor.component.mjs +0 -200
- package/esm2022/lib/components/feature-set-editor/feature-set-editor.component.mjs +0 -175
- package/esm2022/lib/components/feature-set-view/feature-set-view.component.mjs +0 -100
- package/esm2022/lib/components/ln-heights-editor/ln-heights-editor.component.mjs +0 -126
- package/esm2022/lib/components/operation-source-editor/operation-source-editor.component.mjs +0 -131
- package/esm2022/lib/components/simple-tree/simple-tree.component.mjs +0 -72
- package/esm2022/lib/components/snapshot-editor/snapshot-editor.component.mjs +0 -863
- package/esm2022/lib/components/steps-map/steps-map.component.mjs +0 -77
- package/esm2022/lib/models.mjs +0 -2
- package/esm2022/lib/services/gve-api.service.mjs +0 -65
- package/esm2022/lib/services/settings.service.mjs +0 -87
- package/esm2022/lib/validators/svg-validators.mjs +0 -34
- package/esm2022/myrmidon-gve-core.mjs +0 -5
- package/esm2022/public-api.mjs +0 -22
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { CharChainOperation } from '@myrmidon/gve-snapshot-view';
|
|
5
|
+
import { PayloadMatDialogConfig } from '../../models';
|
|
6
|
+
import { GveApiService } from '../../services/gve-api.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* 🔑 `gve-batch-operation-editor`
|
|
10
|
+
*
|
|
11
|
+
* A component to edit a batch of operations. This component can be used both in a dialog
|
|
12
|
+
* and as a standalone component.
|
|
13
|
+
*
|
|
14
|
+
* - ▶️ `preset` (`string`): the optional preset text to parse.
|
|
15
|
+
* - 🔥 `operationsChange` (`CharChainOperation[]`): event emitted when operations change.
|
|
16
|
+
*/
|
|
17
|
+
export declare class BatchOperationEditorComponent implements OnInit {
|
|
18
|
+
private _api;
|
|
19
|
+
dialogRef?: MatDialogRef<BatchOperationEditorComponent> | undefined;
|
|
20
|
+
data?: PayloadMatDialogConfig<{
|
|
21
|
+
preset?: string;
|
|
22
|
+
}> | undefined;
|
|
23
|
+
private _preset?;
|
|
24
|
+
busy?: boolean;
|
|
25
|
+
parseError?: string;
|
|
26
|
+
text: FormControl<string | null>;
|
|
27
|
+
form: FormGroup;
|
|
28
|
+
/**
|
|
29
|
+
* The preset text to parse if any. Usually you start with a blank
|
|
30
|
+
* text, but sometimes you might want to pre-set it.
|
|
31
|
+
*/
|
|
32
|
+
get preset(): string | undefined | null;
|
|
33
|
+
set preset(value: string | undefined | null);
|
|
34
|
+
/**
|
|
35
|
+
* Emitted when operations change.
|
|
36
|
+
*/
|
|
37
|
+
readonly operationsChange: EventEmitter<CharChainOperation[]>;
|
|
38
|
+
constructor(formBuilder: FormBuilder, _api: GveApiService, dialogRef?: MatDialogRef<BatchOperationEditorComponent> | undefined, data?: PayloadMatDialogConfig<{
|
|
39
|
+
preset?: string;
|
|
40
|
+
}> | undefined);
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
parseOperations(): void;
|
|
43
|
+
close(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BatchOperationEditorComponent, [null, null, { optional: true; }, { optional: true; }]>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BatchOperationEditorComponent, "gve-batch-operation-editor", never, { "preset": { "alias": "preset"; "required": false; }; }, { "operationsChange": "operationsChange"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -8,7 +8,10 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
/**
|
|
9
9
|
* 🔑 `gve-chain-result-view`
|
|
10
10
|
*
|
|
11
|
-
* Component to display a chain result.
|
|
11
|
+
* Component to display a chain result. This provides a version picker
|
|
12
|
+
* by staged version or simple step, and shows the selected step's text
|
|
13
|
+
* and features, plus a steps map. User can pick a step from both the
|
|
14
|
+
* pickers or the map.
|
|
12
15
|
* Used by the `gve-snapshot-editor` component.
|
|
13
16
|
*
|
|
14
17
|
* - ▶️ `result` (`CharChainResult`): the result to display.
|
|
@@ -65,7 +65,7 @@ export declare class FeatureEditorComponent implements OnInit, OnDestroy {
|
|
|
65
65
|
/**
|
|
66
66
|
* Event emitted when the user saves the edited feature.
|
|
67
67
|
*/
|
|
68
|
-
featureChange: EventEmitter<
|
|
68
|
+
featureChange: EventEmitter<Feature | OperationFeature>;
|
|
69
69
|
name: FormControl<string>;
|
|
70
70
|
value: FormControl<string>;
|
|
71
71
|
setPolicy: FormControl<FeatureSetPolicy>;
|
|
@@ -60,7 +60,7 @@ export declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
|
|
|
60
60
|
/**
|
|
61
61
|
* Emitted when the features change.
|
|
62
62
|
*/
|
|
63
|
-
featuresChange: EventEmitter<
|
|
63
|
+
featuresChange: EventEmitter<Feature[] | OperationFeature[]>;
|
|
64
64
|
editedFeature?: Feature | OperationFeature;
|
|
65
65
|
filter: FormControl<string | null>;
|
|
66
66
|
filteredFeatures: Feature[] | OperationFeature[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
5
|
import { DialogService } from '@myrmidon/ng-mat-tools';
|
|
5
6
|
import { CharChainOperation, CharNode, GveAnimationTimeline, GveVisualEvent, Snapshot, SnapshotViewComponent, SnapshotViewData, SnapshotViewRenderEvent } from '@myrmidon/gve-snapshot-view';
|
|
6
7
|
import { VarBaseTextRange } from '../base-text-view/base-text-view.component';
|
|
@@ -18,8 +19,9 @@ import * as i0 from "@angular/core";
|
|
|
18
19
|
* - 🔥 `snapshotChange` (`Snapshot`): emitted when the user saves the edited snapshot.
|
|
19
20
|
* - 🔥 `snapshotCancel` (`void`): emitted when the user cancels the snapshot editing.
|
|
20
21
|
*/
|
|
21
|
-
export declare class SnapshotEditorComponent
|
|
22
|
+
export declare class SnapshotEditorComponent {
|
|
22
23
|
private _api;
|
|
24
|
+
private _dialog;
|
|
23
25
|
private _dialogService;
|
|
24
26
|
private _snackbar;
|
|
25
27
|
private readonly _nanoid;
|
|
@@ -66,7 +68,6 @@ export declare class SnapshotEditorComponent implements OnInit {
|
|
|
66
68
|
spcWidthOffset: FormControl<number>;
|
|
67
69
|
textStyle: FormControl<string | null>;
|
|
68
70
|
operations: FormControl<CharChainOperation[]>;
|
|
69
|
-
inputOps: FormControl<string | null>;
|
|
70
71
|
opStyle: FormControl<string | null>;
|
|
71
72
|
form: FormGroup;
|
|
72
73
|
imageUrl: FormControl<string | null>;
|
|
@@ -102,8 +103,7 @@ export declare class SnapshotEditorComponent implements OnInit {
|
|
|
102
103
|
result?: CharChainResult;
|
|
103
104
|
resultOperationId?: string;
|
|
104
105
|
initialStepIndex: number;
|
|
105
|
-
constructor(formBuilder: FormBuilder, _api: GveApiService, _dialogService: DialogService, _snackbar: MatSnackBar);
|
|
106
|
-
ngOnInit(): void;
|
|
106
|
+
constructor(formBuilder: FormBuilder, _api: GveApiService, _dialog: MatDialog, _dialogService: DialogService, _snackbar: MatSnackBar);
|
|
107
107
|
/**
|
|
108
108
|
* Set the view data for the snapshot view.
|
|
109
109
|
*
|
|
@@ -182,6 +182,7 @@ export declare class SnapshotEditorComponent implements OnInit {
|
|
|
182
182
|
* @returns Array of IDs found in the SVG content or undefined.
|
|
183
183
|
*/
|
|
184
184
|
private parseSvgIds;
|
|
185
|
+
private getTransparentIds;
|
|
185
186
|
/**
|
|
186
187
|
* Run the operations up to the specified index (included).
|
|
187
188
|
* This is called when:
|
|
@@ -198,12 +199,13 @@ export declare class SnapshotEditorComponent implements OnInit {
|
|
|
198
199
|
* operation in the snapshot at index. This is used when previewing
|
|
199
200
|
* the edited operation from within the operation editor.
|
|
200
201
|
*/
|
|
201
|
-
runTo(index: number, lastOperation?: CharChainOperation): Promise<
|
|
202
|
+
runTo(index: number, lastOperation?: CharChainOperation): Promise<CharChainResult>;
|
|
202
203
|
/**
|
|
203
|
-
* Run the operations up to the last operation if any
|
|
204
|
-
*
|
|
204
|
+
* Run the operations up to the last operation if any, updating the
|
|
205
|
+
* execution result. The execution result is always the result from
|
|
206
|
+
* all the operations, as users must be able to browse across its steps.
|
|
205
207
|
*/
|
|
206
|
-
runToLast(): void
|
|
208
|
+
runToLast(): Promise<void>;
|
|
207
209
|
/**
|
|
208
210
|
* Update the snapshot view by running the operations up to the
|
|
209
211
|
* currently edited operation if any.
|
|
@@ -22,6 +22,7 @@ import * as i0 from "@angular/core";
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class StepsMapComponent {
|
|
24
24
|
private _steps?;
|
|
25
|
+
lines: string[];
|
|
25
26
|
/**
|
|
26
27
|
* The steps to display.
|
|
27
28
|
*/
|
|
@@ -40,6 +41,7 @@ export declare class StepsMapComponent {
|
|
|
40
41
|
* the steps are set for the first time.
|
|
41
42
|
*/
|
|
42
43
|
selectedStepChange: EventEmitter<ChainOperationContextStep>;
|
|
44
|
+
private updateLines;
|
|
43
45
|
onStepClick(step: ChainOperationContextStep): void;
|
|
44
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepsMapComponent, never>;
|
|
45
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepsMapComponent, "gve-steps-map", never, { "steps": { "alias": "steps"; "required": false; }; "selectedStep": { "alias": "selectedStep"; "required": false; }; "textFontSize": { "alias": "textFontSize"; "required": false; }; }, { "selectedStepChange": "selectedStepChange"; }, never, never, true, never>;
|
package/lib/models.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MatDialogConfig } from "@angular/material/dialog";
|
|
1
2
|
/**
|
|
2
3
|
* API call result wrapper.
|
|
3
4
|
*/
|
|
@@ -5,3 +6,10 @@ export interface ResultWrapper<T> {
|
|
|
5
6
|
result?: T;
|
|
6
7
|
error?: string;
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* PayloadMatDialogConfig is a MatDialogConfig with a payload, used
|
|
11
|
+
* to pass data of type T to a dialog.
|
|
12
|
+
*/
|
|
13
|
+
export interface PayloadMatDialogConfig<T> extends MatDialogConfig {
|
|
14
|
+
payload?: T;
|
|
15
|
+
}
|
|
@@ -8,23 +8,56 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Execution step of a char-based chain operation.
|
|
9
9
|
*/
|
|
10
10
|
export interface ChainOperationContextStep {
|
|
11
|
+
/**
|
|
12
|
+
* The operation that was executed.
|
|
13
|
+
*/
|
|
11
14
|
operation: CharChainOperation;
|
|
15
|
+
/**
|
|
16
|
+
* The input version tag.
|
|
17
|
+
*/
|
|
12
18
|
inputTag: string;
|
|
19
|
+
/**
|
|
20
|
+
* The output version tag.
|
|
21
|
+
*/
|
|
13
22
|
outputTag: string;
|
|
23
|
+
/**
|
|
24
|
+
* The string synthetically representing the result.
|
|
25
|
+
*/
|
|
14
26
|
result?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The features emitted up to the executed operation.
|
|
29
|
+
* These are the features of the text as a whole, and
|
|
30
|
+
* those belonging to specific nodes.
|
|
31
|
+
*/
|
|
15
32
|
featureSet: {
|
|
16
33
|
features: OperationFeature[];
|
|
17
34
|
nodeFeatures: Record<string, OperationFeature[]>;
|
|
18
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* The reference node IDs of the operation which was
|
|
38
|
+
* executed.
|
|
39
|
+
*/
|
|
19
40
|
refNodeIds: number[];
|
|
20
41
|
}
|
|
21
42
|
/**
|
|
22
43
|
* Result of execution of a char-based chain.
|
|
23
44
|
*/
|
|
24
45
|
export interface CharChainResult {
|
|
46
|
+
/**
|
|
47
|
+
* The execution steps of the chain.
|
|
48
|
+
*/
|
|
25
49
|
steps: ChainOperationContextStep[];
|
|
50
|
+
/**
|
|
51
|
+
* The chain dump, which is the text representation of the chain.
|
|
52
|
+
*/
|
|
26
53
|
chainDump: string;
|
|
54
|
+
/**
|
|
55
|
+
* The list of unique tags in the chain.
|
|
56
|
+
*/
|
|
27
57
|
chainTags: string[];
|
|
58
|
+
/**
|
|
59
|
+
* The sets of nodes in their order, for each version tag.
|
|
60
|
+
*/
|
|
28
61
|
taggedNodes: {
|
|
29
62
|
[key: string]: CharNode[];
|
|
30
63
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/gve-core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Cadmus - GVE Angular frontend core components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GVE"
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
"name": "Daniele Fusi"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@angular/common": "^
|
|
18
|
-
"@angular/core": "^
|
|
19
|
-
"@cisstech/nge": "^
|
|
20
|
-
"@myrmidon/ng-mat-tools": "^
|
|
21
|
-
"@myrmidon/ng-tools": "^
|
|
22
|
-
"@myrmidon/gve-snapshot-view": "^
|
|
17
|
+
"@angular/common": "^19.0.0",
|
|
18
|
+
"@angular/core": "^19.0.0",
|
|
19
|
+
"@cisstech/nge": "^18.0.4",
|
|
20
|
+
"@myrmidon/ng-mat-tools": "^4.0.0",
|
|
21
|
+
"@myrmidon/ng-tools": "^4.0.0",
|
|
22
|
+
"@myrmidon/gve-snapshot-view": "^1.1.2",
|
|
23
23
|
"@svgdotjs/svg.js": "^3.2.4",
|
|
24
24
|
"gsap": "^3.12.5",
|
|
25
|
-
"monaco-editor": "^0.
|
|
26
|
-
"nanoid": "^5.0.
|
|
25
|
+
"monaco-editor": "^0.52.0",
|
|
26
|
+
"nanoid": "^5.0.8"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"tslib": "^2.
|
|
29
|
+
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"module": "fesm2022/myrmidon-gve-core.mjs",
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
".": {
|
|
39
39
|
"types": "./index.d.ts",
|
|
40
|
-
"esm2022": "./esm2022/myrmidon-gve-core.mjs",
|
|
41
|
-
"esm": "./esm2022/myrmidon-gve-core.mjs",
|
|
42
40
|
"default": "./fesm2022/myrmidon-gve-core.mjs"
|
|
43
41
|
}
|
|
44
42
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './lib/components/animation-tween/animation-tween.component';
|
|
|
4
4
|
export * from './lib/components/base-text-char/base-text-char.component';
|
|
5
5
|
export * from './lib/components/base-text-editor/base-text-editor.component';
|
|
6
6
|
export * from './lib/components/base-text-view/base-text-view.component';
|
|
7
|
+
export * from './lib/components/batch-operation-editor/batch-operation-editor.component';
|
|
7
8
|
export * from './lib/components/chain-operation-editor/chain-operation-editor.component';
|
|
8
9
|
export * from './lib/components/chain-result-view/chain-result-view.component';
|
|
9
10
|
export * from './lib/components/feature-editor/feature-editor.component';
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { ReactiveFormsModule, Validators, } from '@angular/forms';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
6
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
7
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
8
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
-
import { MatInputModule } from '@angular/material/input';
|
|
10
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
11
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
12
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { NgToolsModule, NgToolsValidators } from '@myrmidon/ng-tools';
|
|
14
|
-
import { AnimationTweenComponent } from '../animation-tween/animation-tween.component';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@angular/forms";
|
|
17
|
-
import * as i2 from "@angular/common";
|
|
18
|
-
import * as i3 from "@angular/material/button";
|
|
19
|
-
import * as i4 from "@angular/material/expansion";
|
|
20
|
-
import * as i5 from "@angular/material/form-field";
|
|
21
|
-
import * as i6 from "@angular/material/icon";
|
|
22
|
-
import * as i7 from "@angular/material/input";
|
|
23
|
-
import * as i8 from "@angular/material/select";
|
|
24
|
-
import * as i9 from "@angular/material/core";
|
|
25
|
-
import * as i10 from "@angular/material/tooltip";
|
|
26
|
-
/**
|
|
27
|
-
* 🔑 `gve-animation-timeline`
|
|
28
|
-
*
|
|
29
|
-
* A component to edit an animation timeline.
|
|
30
|
-
* Used by the `gve-animation-timeline-set` component.
|
|
31
|
-
*
|
|
32
|
-
* - ▶️ `timeline` (`GveAnimationTimeline`): the animation timeline to edit.
|
|
33
|
-
* - ▶️ `elementIds` (`string[]`): the IDs of the elements that can be selected
|
|
34
|
-
* by the tween.
|
|
35
|
-
* - ▶️ `tags` (`string[]`): the tags that can be used by the timeline.
|
|
36
|
-
* - 🔥 `timelineChange` (`GveAnimationTimeline`): emitted when the timeline
|
|
37
|
-
* is changed.
|
|
38
|
-
* - 🔥 `timelineCancel` (`void`): emitted when the timeline editing is canceled.
|
|
39
|
-
*/
|
|
40
|
-
export class AnimationTimelineComponent {
|
|
41
|
-
/**
|
|
42
|
-
* The animation timeline to edit.
|
|
43
|
-
*/
|
|
44
|
-
get timeline() {
|
|
45
|
-
return this._timeline;
|
|
46
|
-
}
|
|
47
|
-
set timeline(value) {
|
|
48
|
-
this._timeline = value || undefined;
|
|
49
|
-
this.updateForm(this._timeline);
|
|
50
|
-
}
|
|
51
|
-
constructor(formBuilder) {
|
|
52
|
-
/**
|
|
53
|
-
* The tags that can be used by the timeline.
|
|
54
|
-
*/
|
|
55
|
-
this.tags = [];
|
|
56
|
-
/**
|
|
57
|
-
* Emitted when the timeline is changed.
|
|
58
|
-
*/
|
|
59
|
-
this.timelineChange = new EventEmitter();
|
|
60
|
-
/**
|
|
61
|
-
* Emitted when the timeline editing is canceled.
|
|
62
|
-
*/
|
|
63
|
-
this.timelineCancel = new EventEmitter();
|
|
64
|
-
this.editedTweenIndex = -1;
|
|
65
|
-
this.tag = formBuilder.control('', {
|
|
66
|
-
nonNullable: true,
|
|
67
|
-
validators: [Validators.required, Validators.maxLength(100)],
|
|
68
|
-
});
|
|
69
|
-
this.tweens = formBuilder.control([], {
|
|
70
|
-
nonNullable: true,
|
|
71
|
-
validators: NgToolsValidators.strictMinLengthValidator(1),
|
|
72
|
-
});
|
|
73
|
-
this.vars = formBuilder.control(null, this.jsonValidator);
|
|
74
|
-
this.form = formBuilder.group({
|
|
75
|
-
tag: this.tag,
|
|
76
|
-
tweens: this.tweens,
|
|
77
|
-
vars: this.vars,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
jsonValidator(control) {
|
|
81
|
-
if (!control.value) {
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
JSON.parse(control.value);
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
catch (e) {
|
|
89
|
-
return { json: true };
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
updateForm(timeline) {
|
|
93
|
-
if (!timeline) {
|
|
94
|
-
this.form.reset();
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this.tag.setValue(timeline.tag);
|
|
98
|
-
this.tweens.setValue(timeline.tweens);
|
|
99
|
-
this.vars.setValue(timeline.vars || null);
|
|
100
|
-
this.form.markAsPristine();
|
|
101
|
-
}
|
|
102
|
-
addTween() {
|
|
103
|
-
this.editedTweenIndex = -1;
|
|
104
|
-
this.editedTween = {
|
|
105
|
-
label: 'tween #' + (this.tweens.value.length + 1),
|
|
106
|
-
type: 'to',
|
|
107
|
-
selector: '',
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
editTween(index) {
|
|
111
|
-
this.editedTweenIndex = index;
|
|
112
|
-
this.editedTween = this.tweens.value[index];
|
|
113
|
-
}
|
|
114
|
-
deleteTween(index) {
|
|
115
|
-
this.tweens.setValue(this.tweens.value.filter((_, i) => i !== index));
|
|
116
|
-
this.tweens.markAsDirty();
|
|
117
|
-
this.tweens.updateValueAndValidity();
|
|
118
|
-
}
|
|
119
|
-
closeTween() {
|
|
120
|
-
this.editedTween = undefined;
|
|
121
|
-
this.editedTweenIndex = -1;
|
|
122
|
-
}
|
|
123
|
-
saveTween(tween) {
|
|
124
|
-
if (this.editedTweenIndex === -1) {
|
|
125
|
-
this.tweens.setValue([...this.tweens.value, tween]);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
this.tweens.setValue(this.tweens.value.map((t, index) => index === this.editedTweenIndex ? tween : t));
|
|
129
|
-
}
|
|
130
|
-
this.tweens.markAsDirty();
|
|
131
|
-
this.tweens.updateValueAndValidity();
|
|
132
|
-
this.closeTween();
|
|
133
|
-
}
|
|
134
|
-
moveTweenUp(index) {
|
|
135
|
-
if (index < 1) {
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const tweens = [...this.tweens.value];
|
|
139
|
-
const tmp = tweens[index];
|
|
140
|
-
tweens[index] = tweens[index - 1];
|
|
141
|
-
tweens[index - 1] = tmp;
|
|
142
|
-
this.tweens.setValue(tweens);
|
|
143
|
-
this.tweens.markAsDirty();
|
|
144
|
-
this.tweens.updateValueAndValidity();
|
|
145
|
-
}
|
|
146
|
-
moveTweenDown(index) {
|
|
147
|
-
if (index >= this.tweens.value.length - 1) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const tweens = [...this.tweens.value];
|
|
151
|
-
const tmp = tweens[index];
|
|
152
|
-
tweens[index] = tweens[index + 1];
|
|
153
|
-
tweens[index + 1] = tmp;
|
|
154
|
-
this.tweens.setValue(tweens);
|
|
155
|
-
this.tweens.markAsDirty();
|
|
156
|
-
this.tweens.updateValueAndValidity();
|
|
157
|
-
}
|
|
158
|
-
getTimeline() {
|
|
159
|
-
return {
|
|
160
|
-
tag: this.tag.value || '',
|
|
161
|
-
tweens: this.tweens.value,
|
|
162
|
-
vars: this.vars.value || undefined,
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
close() {
|
|
166
|
-
this.timelineCancel.emit();
|
|
167
|
-
}
|
|
168
|
-
save() {
|
|
169
|
-
if (this.form.invalid) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
this._timeline = this.getTimeline();
|
|
173
|
-
this.timelineChange.emit(this._timeline);
|
|
174
|
-
this.form.markAsPristine();
|
|
175
|
-
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: AnimationTimelineComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: AnimationTimelineComponent, isStandalone: true, selector: "gve-animation-timeline", inputs: { timeline: "timeline", elementIds: "elementIds", tags: "tags" }, outputs: { timelineChange: "timelineChange", timelineCancel: "timelineCancel" }, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div class=\"form-row\">\r\n <!-- tag (bound) -->\r\n @if (tags.length) {\r\n <mat-form-field>\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"tag\">\r\n @for (t of tags; track t) {\r\n <mat-option [value]=\"t\">{{ t }}</mat-option>\r\n }\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.required && (tag.dirty || tag.touched)\"\r\n >tag required</mat-error\r\n >\r\n </mat-form-field>\r\n } @else {\r\n <!-- tag (free) -->\r\n <mat-form-field>\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.required && (tag.dirty || tag.touched)\"\r\n >tag required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n }\r\n\r\n <button\r\n mat-flat-button\r\n type=\"button\"\r\n color=\"primary\"\r\n class=\"mat-primary\"\r\n (click)=\"addTween()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> tween\r\n </button>\r\n </div>\r\n\r\n <!-- vars -->\r\n <div>\r\n <mat-form-field class=\"long-text\">\r\n <mat-label>vars</mat-label>\r\n <textarea matInput [formControl]=\"vars\"></textarea>\r\n <mat-hint>JSON object</mat-hint>\r\n <mat-error *ngIf=\"$any(vars).errors?.json && (vars.dirty || vars.touched)\"\r\n >invalid JSON</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- tweens -->\r\n <table>\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>label</th>\r\n <th>type</th>\r\n <th>selector</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (t of tweens.value; track t; let index = $index) {\r\n <tr>\r\n <td class=\"fit-width\">\r\n <!-- edit -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editTween(index)\"\r\n matTooltip=\"Edit tween\"\r\n >\r\n <mat-icon class=\"mat-primary\">edit</mat-icon>\r\n </button>\r\n <!-- delete -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteTween(index)\"\r\n matTooltip=\"Delete tween\"\r\n >\r\n <mat-icon class=\"mat-warn\">remove_circle</mat-icon>\r\n </button>\r\n <!-- up -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"moveTweenUp(index)\"\r\n matTooltip=\"Move tween up\"\r\n [disabled]=\"index === 0\"\r\n >\r\n <mat-icon>arrow_circle_up</mat-icon>\r\n </button>\r\n <!-- down -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"moveTweenDown(index)\"\r\n matTooltip=\"Move tween down\"\r\n [disabled]=\"index === tweens.value.length - 1\"\r\n >\r\n <mat-icon>arrow_circle_down</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n {{ t.label }}\r\n </td>\r\n <td>\r\n {{ t.type }}\r\n </td>\r\n <td>\r\n {{ t.selector }}\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n\r\n <!-- tween editor -->\r\n <mat-expansion-panel [expanded]=\"editedTween\" [disabled]=\"!editedTween\">\r\n @if (editedTween) {\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>tween {{ editedTween.label }}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n }\r\n <fieldset>\r\n <gve-animation-tween\r\n [elementIds]=\"elementIds\"\r\n [tween]=\"editedTween\"\r\n (tweenChange)=\"saveTween($event)\"\r\n (tweenCancel)=\"closeTween()\"\r\n />\r\n </fieldset>\r\n </mat-expansion-panel>\r\n\r\n <!-- buttons -->\r\n <div class=\"button-row\">\r\n <button\r\n type=\"button\"\r\n class=\"mat-warn\"\r\n mat-icon-button\r\n matTooltip=\"Close timeline\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon class=\"mat-warn\">clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"mat-primary\"\r\n mat-flat-button\r\n matTooltip=\"Save timeline\"\r\n [disabled]=\"form.invalid\"\r\n >\r\n <mat-icon class=\"mat-primary\">check_circle</mat-icon>\r\n timeline\r\n </button>\r\n </div>\r\n</form>\r\n", styles: [".form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}.button-row{display:flex;align-items:center;flex-wrap:wrap}.button-row *{flex:0 0 auto}.long-text{width:100%;max-width:800px}table{width:100%;border-collapse:collapse}th{color:#909090;font-weight:400;text-align:left;background-color:#e1e0e0}th,td{padding:4px;border-bottom:1px solid silver}tbody tr:nth-child(2n){background-color:#e8e8e8}td.fit-width{width:1px;white-space:nowrap}fieldset{border:1px solid silver;border-radius:6px;padding:8px;margin:8px 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i9.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: NgToolsModule }, { kind: "component", type: AnimationTweenComponent, selector: "gve-animation-tween", inputs: ["tween", "elementIds"], outputs: ["tweenChange", "tweenCancel"] }] }); }
|
|
178
|
-
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: AnimationTimelineComponent, decorators: [{
|
|
180
|
-
type: Component,
|
|
181
|
-
args: [{ selector: 'gve-animation-timeline', standalone: true, imports: [
|
|
182
|
-
CommonModule,
|
|
183
|
-
ReactiveFormsModule,
|
|
184
|
-
MatButtonModule,
|
|
185
|
-
MatCheckboxModule,
|
|
186
|
-
MatExpansionModule,
|
|
187
|
-
MatFormFieldModule,
|
|
188
|
-
MatIconModule,
|
|
189
|
-
MatInputModule,
|
|
190
|
-
MatSelectModule,
|
|
191
|
-
MatTabsModule,
|
|
192
|
-
MatTooltipModule,
|
|
193
|
-
NgToolsModule,
|
|
194
|
-
AnimationTweenComponent,
|
|
195
|
-
], template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div class=\"form-row\">\r\n <!-- tag (bound) -->\r\n @if (tags.length) {\r\n <mat-form-field>\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"tag\">\r\n @for (t of tags; track t) {\r\n <mat-option [value]=\"t\">{{ t }}</mat-option>\r\n }\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.required && (tag.dirty || tag.touched)\"\r\n >tag required</mat-error\r\n >\r\n </mat-form-field>\r\n } @else {\r\n <!-- tag (free) -->\r\n <mat-form-field>\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.required && (tag.dirty || tag.touched)\"\r\n >tag required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n }\r\n\r\n <button\r\n mat-flat-button\r\n type=\"button\"\r\n color=\"primary\"\r\n class=\"mat-primary\"\r\n (click)=\"addTween()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> tween\r\n </button>\r\n </div>\r\n\r\n <!-- vars -->\r\n <div>\r\n <mat-form-field class=\"long-text\">\r\n <mat-label>vars</mat-label>\r\n <textarea matInput [formControl]=\"vars\"></textarea>\r\n <mat-hint>JSON object</mat-hint>\r\n <mat-error *ngIf=\"$any(vars).errors?.json && (vars.dirty || vars.touched)\"\r\n >invalid JSON</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- tweens -->\r\n <table>\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>label</th>\r\n <th>type</th>\r\n <th>selector</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (t of tweens.value; track t; let index = $index) {\r\n <tr>\r\n <td class=\"fit-width\">\r\n <!-- edit -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editTween(index)\"\r\n matTooltip=\"Edit tween\"\r\n >\r\n <mat-icon class=\"mat-primary\">edit</mat-icon>\r\n </button>\r\n <!-- delete -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteTween(index)\"\r\n matTooltip=\"Delete tween\"\r\n >\r\n <mat-icon class=\"mat-warn\">remove_circle</mat-icon>\r\n </button>\r\n <!-- up -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"moveTweenUp(index)\"\r\n matTooltip=\"Move tween up\"\r\n [disabled]=\"index === 0\"\r\n >\r\n <mat-icon>arrow_circle_up</mat-icon>\r\n </button>\r\n <!-- down -->\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"moveTweenDown(index)\"\r\n matTooltip=\"Move tween down\"\r\n [disabled]=\"index === tweens.value.length - 1\"\r\n >\r\n <mat-icon>arrow_circle_down</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n {{ t.label }}\r\n </td>\r\n <td>\r\n {{ t.type }}\r\n </td>\r\n <td>\r\n {{ t.selector }}\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n\r\n <!-- tween editor -->\r\n <mat-expansion-panel [expanded]=\"editedTween\" [disabled]=\"!editedTween\">\r\n @if (editedTween) {\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>tween {{ editedTween.label }}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n }\r\n <fieldset>\r\n <gve-animation-tween\r\n [elementIds]=\"elementIds\"\r\n [tween]=\"editedTween\"\r\n (tweenChange)=\"saveTween($event)\"\r\n (tweenCancel)=\"closeTween()\"\r\n />\r\n </fieldset>\r\n </mat-expansion-panel>\r\n\r\n <!-- buttons -->\r\n <div class=\"button-row\">\r\n <button\r\n type=\"button\"\r\n class=\"mat-warn\"\r\n mat-icon-button\r\n matTooltip=\"Close timeline\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon class=\"mat-warn\">clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"mat-primary\"\r\n mat-flat-button\r\n matTooltip=\"Save timeline\"\r\n [disabled]=\"form.invalid\"\r\n >\r\n <mat-icon class=\"mat-primary\">check_circle</mat-icon>\r\n timeline\r\n </button>\r\n </div>\r\n</form>\r\n", styles: [".form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}.button-row{display:flex;align-items:center;flex-wrap:wrap}.button-row *{flex:0 0 auto}.long-text{width:100%;max-width:800px}table{width:100%;border-collapse:collapse}th{color:#909090;font-weight:400;text-align:left;background-color:#e1e0e0}th,td{padding:4px;border-bottom:1px solid silver}tbody tr:nth-child(2n){background-color:#e8e8e8}td.fit-width{width:1px;white-space:nowrap}fieldset{border:1px solid silver;border-radius:6px;padding:8px;margin:8px 0}\n"] }]
|
|
196
|
-
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { timeline: [{
|
|
197
|
-
type: Input
|
|
198
|
-
}], elementIds: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}], tags: [{
|
|
201
|
-
type: Input
|
|
202
|
-
}], timelineChange: [{
|
|
203
|
-
type: Output
|
|
204
|
-
}], timelineCancel: [{
|
|
205
|
-
type: Output
|
|
206
|
-
}] } });
|
|
207
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uLXRpbWVsaW5lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiI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AgIG1hdFRvb2x0aXA9XCJFZGl0IHR3ZWVuXCJcclxuICAgICAgICAgID5cclxuICAgICAgICAgICAgPG1hdC1pY29uIGNsYXNzPVwibWF0LXByaW1hcnlcIj5lZGl0PC9tYXQtaWNvbj5cclxuICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgPCEtLSBkZWxldGUgLS0+XHJcbiAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgY29sb3I9XCJ3YXJuXCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cImRlbGV0ZVR3ZWVuKGluZGV4KVwiXHJcbiAgICAgICAgICAgIG1hdFRvb2x0aXA9XCJEZWxldGUgdHdlZW5cIlxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJtYXQtd2FyblwiPnJlbW92ZV9jaXJjbGU8L21hdC1pY29uPlxyXG4gICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICA8IS0tIHVwIC0tPlxyXG4gICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgIChjbGljayk9XCJtb3ZlVHdlZW5VcChpbmRleClcIlxyXG4gICAgICAgICAgICBtYXRUb29sdGlwPVwiTW92ZSB0d2VlbiB1cFwiXHJcbiAgICAgICAgICAgIFtkaXNhYmxlZF09XCJpbmRleCA9PT0gMFwiXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICAgIDxtYXQtaWNvbj5hcnJvd19jaXJjbGVfdXA8L21hdC1pY29uPlxyXG4gICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICA8IS0tIGRvd24gLS0+XHJcbiAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAg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