coer-elements 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/components/coer-grid/index.d.ts +1 -0
- package/components/index.d.ts +13 -0
- package/components/lib/coer-button/coer-button.component.d.ts +1 -1
- package/components/lib/coer-checkbox/coer-checkbox.component.d.ts +28 -0
- package/components/lib/coer-filebox/coer-filebox.component.d.ts +33 -0
- package/components/lib/coer-form/coer-form.component.d.ts +33 -0
- package/components/lib/coer-grid/coer-grid.component.d.ts +53 -0
- package/components/lib/coer-grid/coer-grid.extension.d.ts +105 -0
- package/components/lib/coer-grid/coer-grid.templates.d.ts +9 -0
- package/components/lib/coer-modal/coer-modal.component.d.ts +38 -0
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +56 -0
- package/components/lib/coer-page-title/coer-page-title.component.d.ts +12 -0
- package/components/lib/coer-selectbox/coer-selectbox.component.d.ts +75 -0
- package/components/lib/coer-switch/coer-switch.component.d.ts +31 -0
- package/components/lib/coer-tab/coer-tab.component.d.ts +35 -0
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +51 -0
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +57 -0
- package/components/lib/components.module.d.ts +24 -5
- package/directives/index.d.ts +3 -0
- package/directives/lib/coer-ref.directive.d.ts +14 -0
- package/directives/lib/directives.module.d.ts +8 -0
- package/directives/lib/life-cycle.directive.d.ts +14 -0
- package/esm2022/components/coer-grid/index.mjs +2 -0
- package/esm2022/components/index.mjs +14 -1
- package/esm2022/components/lib/coer-button/coer-button.component.mjs +2 -2
- package/esm2022/components/lib/coer-checkbox/coer-checkbox.component.mjs +84 -0
- package/esm2022/components/lib/coer-filebox/coer-filebox.component.mjs +104 -0
- package/esm2022/components/lib/coer-form/coer-form.component.mjs +102 -0
- package/esm2022/components/lib/coer-grid/coer-grid.component.mjs +515 -0
- package/esm2022/components/lib/coer-grid/coer-grid.extension.mjs +412 -0
- package/esm2022/components/lib/coer-grid/coer-grid.templates.mjs +30 -0
- package/esm2022/components/lib/coer-modal/coer-modal.component.mjs +108 -0
- package/esm2022/components/lib/coer-numberbox/coer-numberbox.component.mjs +260 -0
- package/esm2022/components/lib/coer-page-title/coer-page-title.component.mjs +44 -0
- package/esm2022/components/lib/coer-selectbox/coer-selectbox.component.mjs +339 -0
- package/esm2022/components/lib/coer-switch/coer-switch.component.mjs +94 -0
- package/esm2022/components/lib/coer-tab/coer-tab.component.mjs +116 -0
- package/esm2022/components/lib/coer-textarea/coer-textarea.component.mjs +157 -0
- package/esm2022/components/lib/coer-textbox/coer-textbox.component.mjs +196 -0
- package/esm2022/components/lib/components.module.mjs +93 -57
- package/esm2022/directives/index.mjs +4 -0
- package/esm2022/directives/lib/coer-ref.directive.mjs +23 -0
- package/esm2022/directives/lib/directives.module.mjs +25 -0
- package/esm2022/directives/lib/life-cycle.directive.mjs +29 -0
- package/esm2022/interfaces/coer-filebox/index.mjs +3 -0
- package/esm2022/interfaces/coer-grid/index.mjs +21 -0
- package/esm2022/interfaces/index.mjs +1 -3
- package/esm2022/interfaces/lib/coer-filebox/file-image.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-filebox/file.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-button-by-row.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-checkbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-numberbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-selectbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-switch.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-coer-textbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-column.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-data-source.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header-button.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header-export-button.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-header.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-import.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-checkbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-switch-change.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-input-textbox.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-item.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-keyup-enter.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-length.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-search.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-grid/grid-sort.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-menu/menu-option-selected.interface.mjs +2 -0
- package/esm2022/interfaces/lib/coer-menu/menu.interface.mjs +2 -0
- package/esm2022/interfaces/lib/page-title/breadcrumb.interface.mjs +2 -0
- package/esm2022/interfaces/lib/page-title/go-back.interface.mjs +2 -0
- package/esm2022/interfaces/page-title/index.mjs +3 -0
- package/esm2022/pipes/index.mjs +5 -0
- package/esm2022/pipes/lib/html.pipe.mjs +18 -0
- package/esm2022/pipes/lib/no-image.pipe.mjs +23 -0
- package/esm2022/pipes/lib/numeric-format.pipe.mjs +15 -0
- package/esm2022/pipes/lib/pipes.module.mjs +31 -0
- package/esm2022/public_api.mjs +3 -1
- package/esm2022/signals/lib/breakpoint.signal.mjs +2 -2
- package/esm2022/signals/lib/is-loading.signal.mjs +2 -2
- package/esm2022/signals/lib/is-modal-open.signal.mjs +2 -2
- package/esm2022/tools/index.mjs +3 -2
- package/esm2022/tools/lib/breadcrumbs.class.mjs +2 -2
- package/esm2022/tools/lib/date-time.class.mjs +14 -7
- package/esm2022/tools/lib/files.class.mjs +2 -2
- package/esm2022/tools/lib/menu.class.mjs +23 -0
- package/esm2022/tools/lib/page.class.mjs +6 -6
- package/esm2022/tools/lib/screen.class.mjs +9 -1
- package/esm2022/tools/lib/source.class.mjs +3 -3
- package/esm2022/tools/lib/tools.mjs +220 -0
- package/fesm2022/coer-elements.mjs +3296 -603
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/interfaces/coer-filebox/index.d.ts +2 -0
- package/interfaces/coer-grid/index.d.ts +20 -0
- package/interfaces/index.d.ts +0 -2
- package/interfaces/lib/coer-filebox/file-image.interface.d.ts +14 -0
- package/interfaces/lib/coer-filebox/file.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-button-by-row.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-coer-numberbox.interface.d.ts +12 -0
- package/interfaces/lib/coer-grid/grid-coer-selectbox.interface.d.ts +9 -0
- package/interfaces/lib/coer-grid/grid-coer-switch.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-coer-textbox.interface.d.ts +11 -0
- package/interfaces/lib/coer-grid/grid-column.interface.d.ts +22 -0
- package/interfaces/lib/coer-grid/grid-data-source.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-header-button.interface.d.ts +8 -0
- package/interfaces/lib/coer-grid/grid-header-export-button.interface.d.ts +10 -0
- package/interfaces/lib/coer-grid/grid-header.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-import.interface.d.ts +4 -0
- package/interfaces/lib/coer-grid/grid-input-checkbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-switch-change.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-input-textbox.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-item.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-keyup-enter.interface.d.ts +6 -0
- package/interfaces/lib/coer-grid/grid-length.interface.d.ts +5 -0
- package/interfaces/lib/coer-grid/grid-search.interface.d.ts +4 -0
- package/interfaces/lib/coer-grid/grid-sort.interface.d.ts +5 -0
- package/interfaces/lib/coer-menu/menu-option-selected.interface.d.ts +9 -0
- package/interfaces/lib/coer-menu/menu.interface.d.ts +6 -0
- package/interfaces/page-title/index.d.ts +2 -0
- package/package.json +1 -1
- package/pipes/index.d.ts +4 -0
- package/pipes/lib/html.pipe.d.ts +10 -0
- package/pipes/lib/no-image.pipe.d.ts +7 -0
- package/pipes/lib/numeric-format.pipe.d.ts +7 -0
- package/pipes/lib/pipes.module.d.ts +9 -0
- package/public_api.d.ts +2 -0
- package/signals/lib/is-loading.signal.d.ts +1 -1
- package/signals/lib/is-modal-open.signal.d.ts +1 -1
- package/src/images/no-image.png +0 -0
- package/src/images/no-user.png +0 -0
- package/src/interfaces/coer-filebox/index.ts +2 -0
- package/src/interfaces/coer-grid/index.ts +20 -0
- package/src/interfaces/coer-menu/index.ts +3 -0
- package/src/interfaces/index.ts +1 -3
- package/src/interfaces/lib/coer-filebox/file-image.interface.ts +14 -0
- package/src/interfaces/lib/coer-filebox/file.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-button-by-row.interface.ts +7 -0
- package/src/interfaces/lib/coer-grid/grid-checkbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-coer-numberbox.interface.ts +12 -0
- package/src/interfaces/lib/coer-grid/grid-coer-selectbox.interface.ts +9 -0
- package/src/interfaces/lib/coer-grid/grid-coer-switch.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-coer-textbox.interface.ts +11 -0
- package/src/interfaces/lib/coer-grid/grid-column.interface.ts +23 -0
- package/src/interfaces/lib/coer-grid/grid-data-source.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-header-button.interface.ts +8 -0
- package/src/interfaces/lib/coer-grid/grid-header-export-button.interface.ts +10 -0
- package/src/interfaces/lib/coer-grid/grid-header.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-import.interface.ts +4 -0
- package/src/interfaces/lib/coer-grid/grid-input-checkbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-input-switch-change.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-input-textbox.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-item.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-keyup-enter.interface.ts +6 -0
- package/src/interfaces/lib/coer-grid/grid-length.interface.ts +5 -0
- package/src/interfaces/lib/coer-grid/grid-search.interface.ts +4 -0
- package/src/interfaces/lib/coer-grid/grid-sort.interface.ts +5 -0
- package/src/interfaces/lib/coer-menu/menu-option-selected.interface.ts +10 -0
- package/src/interfaces/lib/coer-menu/menu-selected.interface.ts +11 -0
- package/src/interfaces/lib/coer-menu/menu.interface.ts +6 -0
- package/src/interfaces/page-title/index.ts +2 -0
- package/tools/index.d.ts +2 -1
- package/tools/lib/breadcrumbs.class.d.ts +1 -1
- package/tools/lib/date-time.class.d.ts +4 -2
- package/tools/lib/menu.class.d.ts +8 -0
- package/tools/lib/page.class.d.ts +4 -3
- package/tools/lib/screen.class.d.ts +3 -1
- package/tools/lib/source.class.d.ts +1 -1
- package/tools/lib/{generi-tools.d.ts → tools.d.ts} +7 -5
- package/esm2022/interfaces/lib/breadcrumb.interface.mjs +0 -2
- package/esm2022/interfaces/lib/go-back.interface.mjs +0 -2
- package/esm2022/tools/lib/generi-tools.mjs +0 -199
- /package/interfaces/lib/{breadcrumb.interface.d.ts → page-title/breadcrumb.interface.d.ts} +0 -0
- /package/interfaces/lib/{go-back.interface.d.ts → page-title/go-back.interface.d.ts} +0 -0
- /package/src/interfaces/lib/{breadcrumb.interface.ts → page-title/breadcrumb.interface.ts} +0 -0
- /package/src/interfaces/lib/{go-back.interface.ts → page-title/go-back.interface.ts} +0 -0
- /package/src/styles/{coer-elements.scss → index.scss} +0 -0
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Component, Inject, inject } from '@angular/core';
|
2
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
2
|
+
import { Component, Inject, inject } from '@angular/core';
|
3
|
+
import { CoerAlert } from '../../components/lib/coer-alert/coer-alert.component';
|
4
|
+
import { Breadcrumbs } from '../lib/breadcrumbs.class';
|
5
|
+
import { Source } from '../lib/source.class';
|
6
|
+
import { Tools } from './tools';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export class Page {
|
9
9
|
constructor(page) {
|
@@ -153,4 +153,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
153
153
|
type: Inject,
|
154
154
|
args: [String]
|
155
155
|
}] }] });
|
156
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3Rvb2xzL2xpYi9wYWdlLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQWEsTUFBTSxlQUFlLENBQUM7QUFDcEYsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBR3ZDLE1BQU0sT0FBTyxJQUFJO0lBd0NiLFlBQTRCLElBQVk7UUF0Q3hDLFdBQVc7UUFDUSxVQUFLLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0F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NrKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLl9zb3VyY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5nb0JhY2sgPSB7XHJcbiAgICAgICAgICAgICAgICBzaG93OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgcGF0aDogdGhpcy5fc291cmNlLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soKVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIEdvQmFjayA9IChwYXRoPzogc3RyaW5nKSA9PiAoKCkgPT4ge1xyXG4gICAgICAgIGlmIChwYXRoKSBCcmVhZGNydW1icy5SZW1vdmUocGF0aCk7XHJcbiAgICAgICAgZWxzZSBCcmVhZGNydW1icy5SZW1vdmVMYXN0KCk7XHJcbiAgICB9KTtcclxuXHJcblxyXG4gICAgLyoqIE5hdmlnYXRlIHRvIHByZXZpb3VzIHBhZ2UgKi9cclxuICAgIHByb3RlY3RlZCBHb1RvU291cmNlPFQ+KHBhZ2VSZXNwb25zZTogVCB8IG51bGwgPSBudWxsKTogdm9pZCB7XHJcbiAgICAgICAgaWYodGhpcy5fc291cmNlKSB7XHJcbiAgICAgICAgICAgIEJyZWFkY3J1bWJzLlJlbW92ZUxhc3QoKTtcclxuICAgICAgICAgICAgdGhpcy5TZXRQYWdlUmVzcG9uc2UocGFnZVJlc3BvbnNlKTtcclxuICAgICAgICAgICAgVG9vbHMuU2xlZXAoKS50aGVuKF8gPT4gdGhpcy5yb3V0ZXIubmF2aWdhdGVCeVVybCh0aGlzLl9zb3VyY2UhLnBhdGgpKTtcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBTZXRQYWdlUmVzcG9uc2U8VD4ocGFnZVJlc3BvbnNlOiBUIHwgbnVsbCA9IG51bGwpOiB2b2lkIHtcclxuICAgICAgICBpZiAoVG9vbHMuSXNOb3ROdWxsKHBhZ2VSZXNwb25zZSkpIHtcclxuICAgICAgICAgICAgdGhpcy5fcHJldmVudERlc3Ryb3kgPSB0cnVlO1xyXG4gICAgICAgICAgICBTb3VyY2UuU2V0UGFnZVJlc3BvbnNlKHBhZ2VSZXNwb25zZSk7XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcm90ZWN0ZWQgUmVsb2FkUGFnZSgpOiB2b2lkIHtcclxuICAgICAgICBCcmVhZGNydW1icy5SZW1vdmVMYXN0KCk7XHJcbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB3aW5kb3cubG9jYXRpb24ucmVsb2FkKCkpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBMb2codmFsdWU6IGFueSwgbG9nOiBzdHJpbmcgfCBudWxsID0gbnVsbCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChUb29scy5Jc05vdE51bGwobG9nKSkgY29uc29sZS5sb2coeyBsb2csIHZhbHVlIH0pO1xyXG4gICAgICAgIGVsc2UgY29uc29sZS5sb2codmFsdWUpO1xyXG4gICAgfVxyXG59Il19
|
156
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvc3JjL3Rvb2xzL2xpYi9wYWdlLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDekQsT0FBTyxFQUFpQixTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBYSxNQUFNLGVBQ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IHtcclxuICAgICAgICB0aGlzLnBhZ2VSZXNwb25zZSA9IFNvdXJjZS5HZXRQYWdlUmVzcG9uc2UoKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIEdldE5hdmlnYXRpb24oKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuX3NvdXJjZSkge1xyXG4gICAgICAgICAgICB0aGlzLmJyZWFkY3J1bWJzID0gQnJlYWRjcnVtYnMuR2V0KCkubWFwKGl0ZW0gPT4gT2JqZWN0LmFzc2lnbih7XHJcbiAgICAgICAgICAgICAgICBwYWdlOiBpdGVtLnBhZ2UsXHJcbiAgICAgICAgICAgICAgICBwYXRoOiBpdGVtLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soaXRlbS5wYXRoKVxyXG4gICAgICAgICAgICB9KSk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBlbHNlIHRoaXMuYnJlYWRjcnVtYnMgPSBbeyBwYWdlOiB0aGlzLl9wYWdlIH1dO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByaXZhdGUgU2V0R29CYWNrKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLl9zb3VyY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5nb0JhY2sgPSB7XHJcbiAgICAgICAgICAgICAgICBzaG93OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgcGF0aDogdGhpcy5fc291cmNlLnBhdGgsXHJcbiAgICAgICAgICAgICAgICBjbGljazogdGhpcy5Hb0JhY2soKVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIEdvQmFjayA9IChwYXRoPzogc3RyaW5nKSA9PiAoKCkgPT4ge1xyXG4gICAgICAgIGlmIChwYXRoKSBCcmVhZGNydW1icy5SZW1vdm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gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHByb3RlY3RlZCBMb2codmFsdWU6IGFueSwgbG9nOiBzdHJpbmcgfCBudWxsID0gbnVsbCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChUb29scy5Jc05vdE51bGwobG9nKSkgY29uc29sZS5sb2coeyBsb2csIHZhbHVlIH0pO1xyXG4gICAgICAgIGVsc2UgY29uc29sZS5sb2codmFsdWUpO1xyXG4gICAgfVxyXG59Il19
|
@@ -39,5 +39,13 @@ export class Screen {
|
|
39
39
|
});
|
40
40
|
};
|
41
41
|
}); }
|
42
|
+
/** */
|
43
|
+
static { this.BackButtonBrowser = new Observable(subscriber => {
|
44
|
+
window.addEventListener('popstate', popStateEvent => {
|
45
|
+
if (popStateEvent.state && popStateEvent.target) {
|
46
|
+
subscriber.next(popStateEvent.target.location.href);
|
47
|
+
}
|
48
|
+
});
|
49
|
+
}); }
|
42
50
|
}
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyZWVuLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvdG9vbHMvbGliL3NjcmVlbi5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBR2xDLE1BQU0sT0FBTyxNQUFNO0lBRVIsTUFBTSxLQUFLLFlBQVk7UUFDMUIsT0FBTyxNQUFNLENBQUMsVUFBVSxDQUFDO0lBQzdCLENBQUM7SUFHTSxNQUFNLEtBQUssYUFBYTtRQUMzQixPQUFPLE1BQU0sQ0FBQyxXQUFXLENBQUM7SUFDOUIsQ0FBQztJQUdNLE1BQU0sS0FBSyxZQUFZO1FBQzFCLE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PSBuZXcgT2JzZXJ2YWJsZTxJU2NyZWVuU2l6ZT4oc3Vic2NyaWJlciA9PiB7XHJcbiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoXCJsb2FkXCIsICgpID0+IHtcclxuICAgICAgICAgICAgd2luZG93LmRpc3BhdGNoRXZlbnQobmV3IEV2ZW50KCdyZXNpemUnKSk7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHdpbmRvdy5vbnJlc2l6ZSA9ICgpID0+IHtcclxuICAgICAgICAgICAgc3Vic2NyaWJlci5uZXh0KHtcclxuICAgICAgICAgICAgICAgIHdpZHRoOiB0aGlzLldJTkRPV19XSURUSCxcclxuICAgICAgICAgICAgICAgIGhlaWdodDogdGhpcy5XSU5ET1dfSEVJR0hULFxyXG4gICAgICAgICAgICAgICAgYnJlYWtwb2luOiB0aGlzLkJSRUFLUE9JTlRcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgfSk7XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBCYWNrQnV0dG9uQnJvd3NlciA9IG5ldyBPYnNlcnZhYmxlPHN0cmluZz4oc3Vic2NyaWJlciA9PiB7XHJcbiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ3BvcHN0YXRlJywgcG9wU3RhdGVFdmVudCA9PiB7XHJcbiAgICAgICAgICAgIGlmIChwb3BTdGF0ZUV2ZW50LnN0YXRlICYmIHBvcFN0YXRlRXZlbnQudGFyZ2V0KSB7XHJcbiAgICAgICAgICAgICAgICBzdWJzY3JpYmVyLm5leHQoKHBvcFN0YXRlRXZlbnQudGFyZ2V0IGFzIGFueSkubG9jYXRpb24uaHJlZik7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH0pO1xyXG59Il19
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { inject } from "@angular/core";
|
2
2
|
import { Router } from '@angular/router';
|
3
|
-
import { Breadcrumbs } from "
|
4
|
-
import { Tools } from
|
3
|
+
import { Breadcrumbs } from "../lib/breadcrumbs.class";
|
4
|
+
import { Tools } from "../lib/tools";
|
5
5
|
export class Source {
|
6
6
|
static { this.storage = 'COER-System'; }
|
7
7
|
/** */
|
@@ -77,4 +77,4 @@ export class Source {
|
|
77
77
|
sessionStorage.removeItem(this.storage);
|
78
78
|
}
|
79
79
|
}
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9zcmMvdG9vbHMvbGliL3NvdXJjZS5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDdkQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUVyQyxNQUFNLE9BQU8sTUFBTTthQUVTLFlBQU8sR0FBRyxhQUFhLENBQUM7SUFFaEQsTUFBTTtJQUNDLE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBWTtRQUMxQixNQUFNLE1BQU0sR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7UUFFOUIsSUFBSSxJQUFJLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQztRQUN0QixJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDO1lBQUUsSUFBSSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMs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O1xyXG4gICAgfVxyXG59Il19
|
@@ -0,0 +1,220 @@
|
|
1
|
+
import { signal } from "@angular/core";
|
2
|
+
const reference_signal = signal({});
|
3
|
+
export const Tools = {
|
4
|
+
/** Generate a Guid */
|
5
|
+
GetGuid: (seed = 'coer-system') => {
|
6
|
+
let time = new Date().getTime();
|
7
|
+
seed = seed.toString().trim();
|
8
|
+
return seed + `-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
|
9
|
+
const random = (time + Math.random() * 16) % 16 | 0;
|
10
|
+
time = Math.floor(time / 16);
|
11
|
+
return (c == 'x' ? random : (random & 0x3 | 0x8)).toString(16);
|
12
|
+
});
|
13
|
+
},
|
14
|
+
/** Returns true if the value is null or undefined, false otherwise */
|
15
|
+
IsNull: (value) => {
|
16
|
+
if (value === undefined)
|
17
|
+
return true;
|
18
|
+
if (value === null)
|
19
|
+
return true;
|
20
|
+
return false;
|
21
|
+
},
|
22
|
+
/** Returns true if the value is not null or undefined, false otherwise */
|
23
|
+
IsNotNull: (value) => {
|
24
|
+
if (value === undefined)
|
25
|
+
return false;
|
26
|
+
if (value === null)
|
27
|
+
return false;
|
28
|
+
return true;
|
29
|
+
},
|
30
|
+
/** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
|
31
|
+
IsOnlyWhiteSpace: (value) => {
|
32
|
+
if (value === undefined)
|
33
|
+
return true;
|
34
|
+
if (value === null)
|
35
|
+
return true;
|
36
|
+
if (typeof value === 'string' && value.trim() === '')
|
37
|
+
return true;
|
38
|
+
return false;
|
39
|
+
},
|
40
|
+
/** Returns true if has string value and is not only whitespace, false otherwise */
|
41
|
+
IsNotOnlyWhiteSpace: (value) => {
|
42
|
+
if (value === undefined)
|
43
|
+
return false;
|
44
|
+
if (value === null)
|
45
|
+
return false;
|
46
|
+
if (typeof value === 'string' && value.trim() === '')
|
47
|
+
return false;
|
48
|
+
return true;
|
49
|
+
},
|
50
|
+
/** Break reference of a object or array */
|
51
|
+
BreakReference: (object) => {
|
52
|
+
if (object === null)
|
53
|
+
return object;
|
54
|
+
if (typeof object === 'undefined')
|
55
|
+
return object;
|
56
|
+
if (typeof object === 'string')
|
57
|
+
return object;
|
58
|
+
if (typeof object === 'number')
|
59
|
+
return object;
|
60
|
+
if (typeof object === 'boolean')
|
61
|
+
return object;
|
62
|
+
const OBJECT = JSON.parse(JSON.stringify(object));
|
63
|
+
return (Array.isArray(OBJECT)) ? [...OBJECT] : { ...OBJECT };
|
64
|
+
},
|
65
|
+
/** Clean extra whitespaces */
|
66
|
+
CleanUpBlanks: (text) => {
|
67
|
+
if (Tools.IsNull(text))
|
68
|
+
return '';
|
69
|
+
let worlds = String(text).split(' ');
|
70
|
+
worlds = worlds.filter(x => x.length > 0);
|
71
|
+
return worlds.join(' ');
|
72
|
+
},
|
73
|
+
/** Get properties of an object */
|
74
|
+
GetObjectProperties: (obj) => {
|
75
|
+
const properties = [];
|
76
|
+
if (obj === null)
|
77
|
+
return properties;
|
78
|
+
if (typeof obj === 'undefined')
|
79
|
+
return properties;
|
80
|
+
if (typeof obj === 'string')
|
81
|
+
return properties;
|
82
|
+
if (typeof obj === 'number')
|
83
|
+
return properties;
|
84
|
+
if (typeof obj === 'boolean')
|
85
|
+
return properties;
|
86
|
+
for (const property in obj)
|
87
|
+
properties.push(String(property));
|
88
|
+
return properties;
|
89
|
+
},
|
90
|
+
/**
|
91
|
+
* Set an index and merge more arrays of the same type
|
92
|
+
* */
|
93
|
+
SetIndex: (array, ...args) => {
|
94
|
+
let index = 0;
|
95
|
+
for (const arg of args) {
|
96
|
+
array = Tools.BreakReference(array).concat(Tools.BreakReference(arg));
|
97
|
+
}
|
98
|
+
return Tools.BreakReference(array).map(item => Object.assign({ index: index++ }, item));
|
99
|
+
},
|
100
|
+
/** Set First Char To Lower */
|
101
|
+
FirstCharToLower: (text) => {
|
102
|
+
if (Tools.IsOnlyWhiteSpace(text))
|
103
|
+
return '';
|
104
|
+
const textArray = [];
|
105
|
+
for (let i = 0; i < text.length; i++) {
|
106
|
+
if (i === 0)
|
107
|
+
textArray.push(text[i].toLowerCase());
|
108
|
+
else
|
109
|
+
textArray.push(text[i]);
|
110
|
+
}
|
111
|
+
return textArray.join('');
|
112
|
+
},
|
113
|
+
/** Set First Char To Upper */
|
114
|
+
FirstCharToUpper: (text) => {
|
115
|
+
if (Tools.IsOnlyWhiteSpace(text))
|
116
|
+
return '';
|
117
|
+
const textArray = [];
|
118
|
+
for (let i = 0; i < text.length; i++) {
|
119
|
+
if (i === 0)
|
120
|
+
textArray.push(text[i].toUpperCase());
|
121
|
+
else
|
122
|
+
textArray.push(text[i]);
|
123
|
+
}
|
124
|
+
return textArray.join('');
|
125
|
+
},
|
126
|
+
/** Sort an array in ascending order by property */
|
127
|
+
SortBy: (array, property, propertyType = 'string') => {
|
128
|
+
switch (propertyType) {
|
129
|
+
case 'string': {
|
130
|
+
return array.sort((x, y) => {
|
131
|
+
if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim())
|
132
|
+
return -1;
|
133
|
+
else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim())
|
134
|
+
return 1;
|
135
|
+
else
|
136
|
+
return 0;
|
137
|
+
});
|
138
|
+
}
|
139
|
+
case 'number': {
|
140
|
+
return array.sort((x, y) => Number(x[property] - Number(y[property])));
|
141
|
+
}
|
142
|
+
}
|
143
|
+
},
|
144
|
+
/** Sort an array in descending order by property */
|
145
|
+
SortByDesc: (array, property, propertyType = 'string') => {
|
146
|
+
switch (propertyType) {
|
147
|
+
case 'string': {
|
148
|
+
return array.sort((x, y) => {
|
149
|
+
if (String(x[property]).toUpperCase().trim() < String(y[property]).toUpperCase().trim())
|
150
|
+
return 1;
|
151
|
+
else if (String(x[property]).toUpperCase().trim() > String(y[property]).toUpperCase().trim())
|
152
|
+
return -1;
|
153
|
+
else
|
154
|
+
return 0;
|
155
|
+
});
|
156
|
+
}
|
157
|
+
case 'number': {
|
158
|
+
return array.sort((x, y) => Number(Number(y[property])) - x[property]);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
},
|
162
|
+
/** Return a string with forman numeric */
|
163
|
+
GetNumericFormat: (value, decimals = 0) => {
|
164
|
+
if (Tools.IsOnlyWhiteSpace(value) || isNaN(Number(value))) {
|
165
|
+
return '0';
|
166
|
+
}
|
167
|
+
let valueInteger = '';
|
168
|
+
let valueDecimal = '';
|
169
|
+
value = value.toString().replaceAll(' ', '');
|
170
|
+
if (value.includes('.') || (decimals > 0)) {
|
171
|
+
valueInteger = value.includes('.') ? value.split('.')[0] : value;
|
172
|
+
if (decimals > 0) {
|
173
|
+
const PADDING = decimals - valueDecimal.length;
|
174
|
+
valueDecimal = value.includes('.') ? value.split('.')[1] : '';
|
175
|
+
for (let i = 0; i < PADDING; i++)
|
176
|
+
valueDecimal += '0';
|
177
|
+
valueDecimal = valueDecimal.substring(0, decimals);
|
178
|
+
valueDecimal = `.${valueDecimal}`;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
else {
|
182
|
+
valueInteger = value;
|
183
|
+
}
|
184
|
+
let counter = 0;
|
185
|
+
const VALUE_INTEGER_ARRAY = [];
|
186
|
+
for (const char of valueInteger.split('').reverse()) {
|
187
|
+
if (counter == 3) {
|
188
|
+
VALUE_INTEGER_ARRAY.push(',');
|
189
|
+
counter = 0;
|
190
|
+
}
|
191
|
+
VALUE_INTEGER_ARRAY.push(char);
|
192
|
+
++counter;
|
193
|
+
}
|
194
|
+
valueInteger = VALUE_INTEGER_ARRAY.reverse().join('');
|
195
|
+
return `${valueInteger}${valueDecimal}`;
|
196
|
+
},
|
197
|
+
/** Wait the time indicated */
|
198
|
+
Sleep: (milliseconds = 0, reference = null) => {
|
199
|
+
if (Tools.IsNull(reference)) {
|
200
|
+
return new Promise(Resolve => setTimeout(Resolve, milliseconds));
|
201
|
+
}
|
202
|
+
else
|
203
|
+
return new Promise(Resolve => {
|
204
|
+
reference = reference.replaceAll(' ', '_').toLowerCase();
|
205
|
+
if (reference_signal().hasOwnProperty(reference)) {
|
206
|
+
clearInterval(reference_signal()[reference]);
|
207
|
+
}
|
208
|
+
reference_signal.set(Object.assign(reference_signal(), {
|
209
|
+
[reference]: setTimeout(() => {
|
210
|
+
Resolve();
|
211
|
+
clearInterval(reference_signal()[reference]);
|
212
|
+
const _reference = { ...reference_signal() };
|
213
|
+
delete _reference[reference];
|
214
|
+
reference_signal.set({ ..._reference });
|
215
|
+
}, milliseconds)
|
216
|
+
}));
|
217
|
+
});
|
218
|
+
}
|
219
|
+
};
|
220
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3NyYy90b29scy9saWIvdG9vbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2QyxNQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBTSxFQUFFLENBQUMsQ0FBQztBQUV6QyxNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUc7SUFDakIsc0JBQXNCO0lBQ3RCLE9BQU8sRUFBRSxDQUFDLE9BQWUsYUFBYSxFQUFFLEVBQUU7UUFDdEMsSUFBSSxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUNoQyxJQUFJLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDLElBQUksRUFBRSxDQUFBO1FBQzdCLE9BQU8sSUFBSSxHQUFHLHVDQUF1QyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRTtZQUN6RSxNQUFNLE1BQU0sR0FBRyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsTUFBTSxFQ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29scy5Jc051bGwodGV4dCkpIHJldHVybiAnJztcclxuICAgICAgICBsZXQgd29ybGRzOiBzdHJpbmdbXSA9IFN0cmluZyh0ZXh0KS5zcGxpdCgnICcpO1xyXG4gICAgICAgIHdvcmxkcyA9IHdvcmxkcy5maWx0ZXIoeCA9PiB4Lmxlbmd0aCA+IDApO1xyXG4gICAgICAgIHJldHVybiB3b3JsZHMuam9pbignICcpO1xyXG4gICAgfSxcclxuXHJcblxyXG4gICAgLyoqIEdldCBwcm9wZXJ0aWVzIG9mIGFuIG9iamVjdCAqL1xyXG4gICAgR2V0T2JqZWN0UHJvcGVydGllczogPFQ+KG9iajogVCB8IG51bGwgfCB1bmRlZmluZWQpOiBzdHJpbmdbXSA9PiB7XHJcbiAgICAgICAgY29uc3QgcHJvcGVydGllczogc3RyaW5nW10gPSBbXTtcclxuICAgICAgICBpZiAob2JqID09PSBudWxsKSByZXR1cm4gcHJvcGVydGllcztcclxuICAgICAgICBpZiAodHlwZW9mIG9iaiA9PT0gJ3VuZGVmaW5lZCcpIHJldHVybiBwcm9wZXJ0aWVzO1xyXG4gICAgICAgIGlmICh0eXBlb2Ygb2JqID09PSAnc3RyaW5nJykgcmV0dXJuIHByb3BlcnRpZXM7XHJcbiAgICAgICAgaWYgKHR5cGVvZiBvYmogPT09ICdudW1iZXInKSByZXR1cm4gcHJvcGVydGllcztcclxuICAgICAgICBpZiAodHlwZW9mIG9iaiA9PT0gJ2Jvb2xlYW4nKSByZXR1cm4gcHJvcGVydGllcztcclxuICAgICAgICBmb3IoY29uc3QgcHJvcGVydHkgaW4gb2JqKSBwcm9wZXJ0aWVzLnB1c2goU3RyaW5nKHByb3BlcnR5KSk7XHJcbiAgICAgICAgcmV0dXJuIHByb3BlcnRpZXM7XHJcbiAgICB9LFxyXG5cclxuXHJcbiAgICAvKipcclxuICAgICAqIFNldCBhbiBpbmRleCBhbmQgbWVyZ2UgbW9yZSBhcnJheXMgb2YgdGhlIHNhbWUgdHlwZVxyXG4gICAgIC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gIEZpcnN0Q2hhclRvVXBwZXI6ICh0ZXh0OiBzdHJpbmcgfCBudWxsIHwgdW5kZWZpbmVkKTogc3RyaW5nID0+IHtcclxuICAgICAgICBpZiAoVG9vbHMuSXNPbmx5V2hpdGVTcGFjZSh0ZXh0KSkgcmV0dXJuICcnO1xyXG5cclxuICAgICAgICBjb25zdCB0ZXh0QXJyYXk6IHN0cmluZ1tdID0gW107XHJcbiAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8IHRleHQhLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmKGkgPT09IDApIHRleHRBcnJheS5wdXNoKHRleHQhW2ldLnRvVXBwZXJDYXNlKCkpO1xyXG4gICAgICAgICAgICBlbHNlIHRleHRBcnJheS5wdXNoKHRleHQhW2ldKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB0ZXh0QXJyYXkuam9pbignJyk7XHJcbiAgICB9LFxyXG5cclxuXHJcbiAgICAvKiogU29ydCBhbiBhcnJheSBpbiBhc2NlbmRpbmcgb3JkZXIgYnkgcHJvcGVydHkgKi9cclxuICAgIFNvcnRCeTogPFQ+KGFycmF5OiBUW10sIHByb3BlcnR5OiBzdHJpbmcsIHByb3BlcnR5VHlwZTogJ3N0cmluZycgfCAnbnVtYmVyJyA9ICdzdHJpbmcnKTogVFtdID0+IHtcclxuICAgICAgICBzd2l0Y2ggKHByb3BlcnR5VHlwZSkge1xyXG4gICAgICAgICAgICBjYXNlICdzdHJpbmcnOiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXkuc29ydCgoeDogYW55LCB5OiBhbnkpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoU3RyaW5nKHhbcHJvcGVydHldKS50b1VwcGVyQ2FzZSgpLnRyaW0oKSA8IFN0cmluZyh5W3Byb3BlcnR5XSkudG9VcHBlckNhc2UoKS50cmltKCkpIHJldHVybiAtMTtcclxuICAgICAgICAgICAgICAgICAgICBlbHNlI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dXQoKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIFJlc29sdmUoKTtcclxuICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHJlZmVyZW5jZV9zaWduYWwoKVtyZWZlcmVuY2UhXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgX3JlZmVyZW5jZSA9IHsgLi4ucmVmZXJlbmNlX3NpZ25hbCgpIH07XHJcbiAgICAgICAgICAgICAgICAgICAgZGVsZXRlIF9yZWZlcmVuY2VbcmVmZXJlbmNlIV07XHJcbiAgICAgICAgICAgICAgICAgICAgcmVmZXJlbmNlX3NpZ25hbC5zZXQoeyAuLi5fcmVmZXJlbmNlIH0pO1xyXG4gICAgICAgICAgICAgICAgfSwgbWlsbGlzZWNvbmRzKVxyXG4gICAgICAgICAgICB9KSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn07Il19
|