@igo2/common 1.8.1 → 1.9.3
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/bundles/igo2-common.umd.js +10700 -10473
- package/bundles/igo2-common.umd.js.map +1 -1
- package/esm2015/igo2-common.js +5 -5
- package/esm2015/lib/action/action.module.js +29 -28
- package/esm2015/lib/action/actionbar/actionbar-item.component.js +257 -257
- package/esm2015/lib/action/actionbar/actionbar.component.js +385 -387
- package/esm2015/lib/action/actionbar/actionbar.module.js +59 -58
- package/esm2015/lib/action/index.js +3 -3
- package/esm2015/lib/action/shared/action.enums.js +7 -7
- package/esm2015/lib/action/shared/action.interfaces.js +2 -1
- package/esm2015/lib/action/shared/index.js +4 -4
- package/esm2015/lib/action/shared/store.js +8 -8
- package/esm2015/lib/backdrop/backdrop.component.js +30 -30
- package/esm2015/lib/backdrop/backdrop.module.js +25 -24
- package/esm2015/lib/backdrop/index.js +2 -2
- package/esm2015/lib/badge-icon/badge-icon.directive.js +125 -121
- package/esm2015/lib/badge-icon/badge-icon.module.js +26 -25
- package/esm2015/lib/badge-icon/index.js +2 -2
- package/esm2015/lib/clickout/clickout.directive.js +32 -32
- package/esm2015/lib/clickout/clickout.module.js +24 -23
- package/esm2015/lib/clickout/index.js +2 -2
- package/esm2015/lib/clone/clone.module.js +24 -23
- package/esm2015/lib/clone/clone.pipe.js +24 -24
- package/esm2015/lib/clone/index.js +2 -2
- package/esm2015/lib/collapsible/collapse.directive.js +55 -55
- package/esm2015/lib/collapsible/collapsible.component.js +63 -63
- package/esm2015/lib/collapsible/collapsible.module.js +27 -26
- package/esm2015/lib/collapsible/index.js +3 -3
- package/esm2015/lib/confirm-dialog/confirm-dialog.component.js +50 -51
- package/esm2015/lib/confirm-dialog/confirm-dialog.module.js +29 -28
- package/esm2015/lib/confirm-dialog/confirm-dialog.service.js +22 -23
- package/esm2015/lib/confirm-dialog/index.js +3 -3
- package/esm2015/lib/context-menu/context-menu.directive.js +135 -89
- package/esm2015/lib/context-menu/context-menu.module.js +24 -23
- package/esm2015/lib/context-menu/index.js +2 -2
- package/esm2015/lib/custom-html/custom-html.component.js +32 -32
- package/esm2015/lib/custom-html/custom-html.module.js +49 -48
- package/esm2015/lib/custom-html/custom-html.pipe.js +18 -19
- package/esm2015/lib/custom-html/index.js +3 -3
- package/esm2015/lib/drag-drop/drag-drop.directive.js +88 -88
- package/esm2015/lib/drag-drop/drag-drop.module.js +24 -23
- package/esm2015/lib/drag-drop/index.js +2 -2
- package/esm2015/lib/dynamic-component/dynamic-component.module.js +33 -32
- package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.js +124 -125
- package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.js +30 -29
- package/esm2015/lib/dynamic-component/index.js +3 -3
- package/esm2015/lib/dynamic-component/shared/dynamic-component.interfaces.js +2 -1
- package/esm2015/lib/dynamic-component/shared/dynamic-component.js +174 -174
- package/esm2015/lib/dynamic-component/shared/dynamic-component.service.js +29 -29
- package/esm2015/lib/dynamic-component/shared/index.js +4 -4
- package/esm2015/lib/entity/entity-selector/entity-selector.component.js +201 -202
- package/esm2015/lib/entity/entity-selector/entity-selector.module.js +34 -33
- package/esm2015/lib/entity/entity-table/entity-table-row.directive.js +137 -137
- package/esm2015/lib/entity/entity-table/entity-table.component.js +912 -916
- package/esm2015/lib/entity/entity-table/entity-table.module.js +77 -76
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.component.js +138 -140
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.interface.js +2 -1
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.module.js +30 -29
- package/esm2015/lib/entity/entity.module.js +33 -32
- package/esm2015/lib/entity/index.js +6 -6
- package/esm2015/lib/entity/shared/entity.enums.js +27 -27
- package/esm2015/lib/entity/shared/entity.interfaces.js +2 -1
- package/esm2015/lib/entity/shared/entity.utils.js +67 -67
- package/esm2015/lib/entity/shared/index.js +10 -10
- package/esm2015/lib/entity/shared/state.js +191 -191
- package/esm2015/lib/entity/shared/store.js +288 -288
- package/esm2015/lib/entity/shared/strategies/filter-custom-function.js +79 -79
- package/esm2015/lib/entity/shared/strategies/filter-selection.js +84 -84
- package/esm2015/lib/entity/shared/strategies/index.js +4 -4
- package/esm2015/lib/entity/shared/strategies/strategy.js +75 -75
- package/esm2015/lib/entity/shared/transaction.js +316 -316
- package/esm2015/lib/entity/shared/view.js +315 -315
- package/esm2015/lib/entity/shared/watcher.js +120 -120
- package/esm2015/lib/flexible/flexible.component.js +158 -159
- package/esm2015/lib/flexible/flexible.module.js +24 -23
- package/esm2015/lib/flexible/flexible.type.js +2 -1
- package/esm2015/lib/flexible/index.js +3 -3
- package/esm2015/lib/form/form/form.component.js +125 -125
- package/esm2015/lib/form/form/form.module.js +42 -41
- package/esm2015/lib/form/form-field/form-field-select.component.js +132 -132
- package/esm2015/lib/form/form-field/form-field-text.component.js +108 -108
- package/esm2015/lib/form/form-field/form-field-textarea.component.js +110 -110
- package/esm2015/lib/form/form-field/form-field.component.js +77 -78
- package/esm2015/lib/form/form-field/form-field.module.js +76 -75
- package/esm2015/lib/form/form-field/index.js +5 -5
- package/esm2015/lib/form/form-group/form-group.component.js +110 -110
- package/esm2015/lib/form/form-group/form-group.module.js +42 -41
- package/esm2015/lib/form/form.module.js +51 -50
- package/esm2015/lib/form/index.js +5 -5
- package/esm2015/lib/form/shared/form-field-component.js +7 -7
- package/esm2015/lib/form/shared/form-field.service.js +29 -29
- package/esm2015/lib/form/shared/form.interfaces.js +2 -1
- package/esm2015/lib/form/shared/form.service.js +77 -77
- package/esm2015/lib/form/shared/form.utils.js +40 -40
- package/esm2015/lib/form/shared/index.js +6 -6
- package/esm2015/lib/home-button/home-button.component.js +35 -0
- package/esm2015/lib/home-button/home-button.module.js +43 -0
- package/esm2015/lib/home-button/index.js +2 -0
- package/esm2015/lib/image/image.module.js +24 -23
- package/esm2015/lib/image/index.js +2 -2
- package/esm2015/lib/image/secure-image.pipe.js +48 -51
- package/esm2015/lib/interactive-tour/index.js +5 -5
- package/esm2015/lib/interactive-tour/interactive-tour.component.js +140 -142
- package/esm2015/lib/interactive-tour/interactive-tour.interface.js +2 -1
- package/esm2015/lib/interactive-tour/interactive-tour.loader.js +44 -46
- package/esm2015/lib/interactive-tour/interactive-tour.module.js +42 -41
- package/esm2015/lib/interactive-tour/interactive-tour.service.js +285 -288
- package/esm2015/lib/json-dialog/index.js +3 -3
- package/esm2015/lib/json-dialog/json-dialog.component.js +116 -117
- package/esm2015/lib/json-dialog/json-dialog.module.js +29 -28
- package/esm2015/lib/json-dialog/json-dialog.service.js +24 -25
- package/esm2015/lib/keyvalue/index.js +2 -2
- package/esm2015/lib/keyvalue/keyvalue.module.js +24 -23
- package/esm2015/lib/keyvalue/keyvalue.pipe.js +18 -18
- package/esm2015/lib/list/index.js +3 -3
- package/esm2015/lib/list/list-item.directive.js +165 -165
- package/esm2015/lib/list/list.component.js +266 -266
- package/esm2015/lib/list/list.module.js +29 -28
- package/esm2015/lib/panel/index.js +2 -2
- package/esm2015/lib/panel/panel.component.js +67 -67
- package/esm2015/lib/panel/panel.module.js +19 -18
- package/esm2015/lib/sidenav/index.js +2 -2
- package/esm2015/lib/sidenav/sidenav-shim.directive.js +55 -56
- package/esm2015/lib/sidenav/sidenav.module.js +24 -23
- package/esm2015/lib/spinner/index.js +3 -3
- package/esm2015/lib/spinner/spinner-activity.directive.js +47 -49
- package/esm2015/lib/spinner/spinner.component.js +40 -40
- package/esm2015/lib/spinner/spinner.module.js +21 -20
- package/esm2015/lib/stop-propagation/index.js +3 -3
- package/esm2015/lib/stop-propagation/stop-drop-propagation.directive.js +22 -22
- package/esm2015/lib/stop-propagation/stop-propagation.directive.js +21 -21
- package/esm2015/lib/stop-propagation/stop-propagation.module.js +25 -24
- package/esm2015/lib/table/index.js +6 -6
- package/esm2015/lib/table/table-action-color.enum.js +7 -7
- package/esm2015/lib/table/table-database.js +28 -28
- package/esm2015/lib/table/table-datasource.js +61 -61
- package/esm2015/lib/table/table-model.interface.js +2 -1
- package/esm2015/lib/table/table.component.js +310 -311
- package/esm2015/lib/table/table.module.js +69 -68
- package/esm2015/lib/tool/index.js +3 -3
- package/esm2015/lib/tool/shared/index.js +6 -6
- package/esm2015/lib/tool/shared/tool-component.js +9 -9
- package/esm2015/lib/tool/shared/tool.interface.js +2 -1
- package/esm2015/lib/tool/shared/tool.service.js +43 -43
- package/esm2015/lib/tool/shared/toolbox.enums.js +7 -7
- package/esm2015/lib/tool/shared/toolbox.js +179 -179
- package/esm2015/lib/tool/tool.module.js +34 -33
- package/esm2015/lib/tool/toolbox/toolbox.animation.js +10 -10
- package/esm2015/lib/tool/toolbox/toolbox.component.js +261 -262
- package/esm2015/lib/tool/toolbox/toolbox.module.js +38 -37
- package/esm2015/lib/widget/index.js +3 -3
- package/esm2015/lib/widget/shared/index.js +4 -4
- package/esm2015/lib/widget/shared/widget.interfaces.js +2 -1
- package/esm2015/lib/widget/shared/widget.js +4 -4
- package/esm2015/lib/widget/shared/widget.service.js +20 -21
- package/esm2015/lib/widget/widget-outlet/widget-outlet.component.js +121 -122
- package/esm2015/lib/widget/widget-outlet/widget-outlet.module.js +34 -33
- package/esm2015/lib/widget/widget.module.js +34 -33
- package/esm2015/lib/workspace/index.js +4 -4
- package/esm2015/lib/workspace/shared/index.js +4 -4
- package/esm2015/lib/workspace/shared/store.js +40 -40
- package/esm2015/lib/workspace/shared/workspace.interfaces.js +2 -1
- package/esm2015/lib/workspace/shared/workspace.js +117 -117
- package/esm2015/lib/workspace/workspace-selector/workspace-selector.component.js +54 -55
- package/esm2015/lib/workspace/workspace-selector/workspace-selector.module.js +34 -33
- package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.js +93 -94
- package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.js +34 -33
- package/esm2015/lib/workspace/workspace.module.js +29 -28
- package/esm2015/public_api.js +72 -70
- package/fesm2015/igo2-common.js +9015 -8846
- package/fesm2015/igo2-common.js.map +1 -1
- package/igo2-common.d.ts +5 -5
- package/lib/action/action.module.d.ts +8 -7
- package/lib/action/actionbar/actionbar-item.component.d.ts +78 -78
- package/lib/action/actionbar/actionbar.component.d.ts +146 -146
- package/lib/action/actionbar/actionbar.module.d.ts +20 -19
- package/lib/action/index.d.ts +2 -2
- package/lib/action/shared/action.enums.d.ts +5 -5
- package/lib/action/shared/action.interfaces.d.ts +17 -17
- package/lib/action/shared/index.d.ts +3 -3
- package/lib/action/shared/store.d.ts +8 -8
- package/lib/backdrop/backdrop.component.d.ts +9 -9
- package/lib/backdrop/backdrop.module.d.ts +10 -9
- package/lib/backdrop/index.d.ts +1 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +32 -27
- package/lib/badge-icon/badge-icon.module.d.ts +11 -10
- package/lib/badge-icon/index.d.ts +1 -1
- package/lib/clickout/clickout.directive.d.ts +10 -10
- package/lib/clickout/clickout.module.d.ts +9 -8
- package/lib/clickout/index.d.ts +1 -1
- package/lib/clone/clone.module.d.ts +9 -8
- package/lib/clone/clone.pipe.d.ts +7 -7
- package/lib/clone/index.d.ts +1 -1
- package/lib/collapsible/collapse.directive.d.ts +19 -19
- package/lib/collapsible/collapsible.component.d.ts +13 -13
- package/lib/collapsible/collapsible.module.d.ts +12 -11
- package/lib/collapsible/index.d.ts +2 -2
- package/lib/confirm-dialog/confirm-dialog.component.d.ts +9 -9
- package/lib/confirm-dialog/confirm-dialog.module.d.ts +12 -11
- package/lib/confirm-dialog/confirm-dialog.service.d.ts +10 -10
- package/lib/confirm-dialog/index.d.ts +2 -2
- package/lib/context-menu/context-menu.directive.d.ts +27 -21
- package/lib/context-menu/context-menu.module.d.ts +9 -8
- package/lib/context-menu/index.d.ts +1 -1
- package/lib/custom-html/custom-html.component.d.ts +9 -9
- package/lib/custom-html/custom-html.module.d.ts +16 -15
- package/lib/custom-html/custom-html.pipe.d.ts +10 -10
- package/lib/custom-html/index.d.ts +2 -2
- package/lib/drag-drop/drag-drop.directive.d.ts +14 -14
- package/lib/drag-drop/drag-drop.module.d.ts +9 -8
- package/lib/drag-drop/index.d.ts +1 -1
- package/lib/dynamic-component/dynamic-component.module.d.ts +8 -7
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +70 -70
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +11 -10
- package/lib/dynamic-component/index.d.ts +2 -2
- package/lib/dynamic-component/shared/dynamic-component.d.ts +88 -88
- package/lib/dynamic-component/shared/dynamic-component.interfaces.d.ts +3 -3
- package/lib/dynamic-component/shared/dynamic-component.service.d.ts +18 -18
- package/lib/dynamic-component/shared/index.d.ts +3 -3
- package/lib/entity/entity-selector/entity-selector.component.d.ts +92 -92
- package/lib/entity/entity-selector/entity-selector.module.d.ts +13 -12
- package/lib/entity/entity-table/entity-table-row.directive.d.ts +69 -69
- package/lib/entity/entity-table/entity-table.component.d.ts +275 -275
- package/lib/entity/entity-table/entity-table.module.d.ts +23 -22
- package/lib/entity/entity-table-paginator/entity-table-paginator.component.d.ts +49 -49
- package/lib/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +8 -8
- package/lib/entity/entity-table-paginator/entity-table-paginator.module.d.ts +11 -10
- package/lib/entity/entity.module.d.ts +10 -9
- package/lib/entity/index.d.ts +5 -5
- package/lib/entity/shared/entity.enums.d.ts +22 -22
- package/lib/entity/shared/entity.interfaces.d.ts +88 -88
- package/lib/entity/shared/entity.utils.d.ts +49 -49
- package/lib/entity/shared/index.d.ts +9 -9
- package/lib/entity/shared/state.d.ts +103 -103
- package/lib/entity/shared/store.d.ts +176 -176
- package/lib/entity/shared/strategies/filter-custom-function.d.ts +51 -51
- package/lib/entity/shared/strategies/filter-selection.d.ts +48 -48
- package/lib/entity/shared/strategies/index.d.ts +3 -3
- package/lib/entity/shared/strategies/strategy.d.ts +56 -56
- package/lib/entity/shared/transaction.d.ts +168 -168
- package/lib/entity/shared/view.d.ts +193 -193
- package/lib/entity/shared/watcher.d.ts +72 -72
- package/lib/flexible/flexible.component.d.ts +41 -41
- package/lib/flexible/flexible.module.d.ts +9 -8
- package/lib/flexible/flexible.type.d.ts +2 -2
- package/lib/flexible/index.d.ts +2 -2
- package/lib/form/form/form.component.d.ts +53 -53
- package/lib/form/form/form.module.d.ts +12 -11
- package/lib/form/form-field/form-field-select.component.d.ts +48 -48
- package/lib/form/form-field/form-field-text.component.d.ts +41 -41
- package/lib/form/form-field/form-field-textarea.component.d.ts +41 -41
- package/lib/form/form-field/form-field.component.d.ts +34 -34
- package/lib/form/form-field/form-field.module.d.ts +21 -20
- package/lib/form/form-field/index.d.ts +4 -4
- package/lib/form/form-group/form-group.component.d.ts +49 -49
- package/lib/form/form-group/form-group.module.d.ts +14 -13
- package/lib/form/form.module.d.ts +13 -12
- package/lib/form/index.d.ts +4 -4
- package/lib/form/shared/form-field-component.d.ts +1 -1
- package/lib/form/shared/form-field.service.d.ts +19 -19
- package/lib/form/shared/form.interfaces.d.ts +57 -57
- package/lib/form/shared/form.service.d.ts +15 -15
- package/lib/form/shared/form.utils.d.ts +11 -11
- package/lib/form/shared/index.d.ts +5 -5
- package/lib/home-button/home-button.component.d.ts +9 -0
- package/lib/home-button/home-button.module.d.ts +15 -0
- package/lib/home-button/index.d.ts +1 -0
- package/lib/image/image.module.d.ts +9 -8
- package/lib/image/index.d.ts +1 -1
- package/lib/image/secure-image.pipe.d.ts +11 -11
- package/lib/interactive-tour/index.d.ts +4 -4
- package/lib/interactive-tour/interactive-tour.component.d.ts +30 -30
- package/lib/interactive-tour/interactive-tour.interface.d.ts +32 -32
- package/lib/interactive-tour/interactive-tour.loader.d.ts +18 -18
- package/lib/interactive-tour/interactive-tour.module.d.ts +12 -11
- package/lib/interactive-tour/interactive-tour.service.d.ts +29 -29
- package/lib/json-dialog/index.d.ts +2 -2
- package/lib/json-dialog/json-dialog.component.d.ts +13 -13
- package/lib/json-dialog/json-dialog.module.d.ts +13 -12
- package/lib/json-dialog/json-dialog.service.d.ts +10 -10
- package/lib/keyvalue/index.d.ts +1 -1
- package/lib/keyvalue/keyvalue.module.d.ts +9 -8
- package/lib/keyvalue/keyvalue.pipe.d.ts +7 -7
- package/lib/list/index.d.ts +2 -2
- package/lib/list/list-item.directive.d.ts +43 -43
- package/lib/list/list.component.d.ts +51 -51
- package/lib/list/list.module.d.ts +14 -13
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/panel.component.d.ts +11 -11
- package/lib/panel/panel.module.d.ts +8 -7
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav-shim.directive.d.ts +20 -20
- package/lib/sidenav/sidenav.module.d.ts +9 -8
- package/lib/spinner/index.d.ts +2 -2
- package/lib/spinner/spinner-activity.directive.d.ts +32 -32
- package/lib/spinner/spinner.component.d.ts +12 -12
- package/lib/spinner/spinner.module.d.ts +10 -9
- package/lib/stop-propagation/index.d.ts +2 -2
- package/lib/stop-propagation/stop-drop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.module.d.ts +10 -9
- package/lib/table/index.d.ts +5 -5
- package/lib/table/table-action-color.enum.d.ts +5 -5
- package/lib/table/table-database.d.ts +10 -10
- package/lib/table/table-datasource.d.ts +17 -17
- package/lib/table/table-model.interface.d.ts +28 -28
- package/lib/table/table.component.d.ts +40 -40
- package/lib/table/table.module.d.ts +20 -19
- package/lib/tool/index.d.ts +2 -2
- package/lib/tool/shared/index.d.ts +5 -5
- package/lib/tool/shared/tool-component.d.ts +2 -2
- package/lib/tool/shared/tool.interface.d.ts +18 -18
- package/lib/tool/shared/tool.service.d.ts +30 -30
- package/lib/tool/shared/toolbox.d.ts +95 -95
- package/lib/tool/shared/toolbox.enums.d.ts +5 -5
- package/lib/tool/tool.module.d.ts +10 -9
- package/lib/tool/toolbox/toolbox.animation.d.ts +2 -2
- package/lib/tool/toolbox/toolbox.component.d.ts +127 -127
- package/lib/tool/toolbox/toolbox.module.d.ts +13 -12
- package/lib/widget/index.d.ts +2 -2
- package/lib/widget/shared/index.d.ts +3 -3
- package/lib/widget/shared/widget.d.ts +4 -4
- package/lib/widget/shared/widget.interfaces.d.ts +12 -12
- package/lib/widget/shared/widget.service.d.ts +10 -10
- package/lib/widget/widget-outlet/widget-outlet.component.d.ts +71 -71
- package/lib/widget/widget-outlet/widget-outlet.module.d.ts +12 -11
- package/lib/widget/widget.module.d.ts +8 -7
- package/lib/workspace/index.d.ts +3 -3
- package/lib/workspace/shared/index.d.ts +3 -3
- package/lib/workspace/shared/store.d.ts +20 -20
- package/lib/workspace/shared/workspace.d.ts +108 -108
- package/lib/workspace/shared/workspace.interfaces.d.ts +11 -11
- package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +35 -35
- package/lib/workspace/workspace-selector/workspace-selector.module.d.ts +12 -11
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +57 -57
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +12 -11
- package/lib/workspace/workspace.module.d.ts +9 -8
- package/package.json +8 -7
- package/public_api.d.ts +68 -66
- package/style/common.theming.scss +12 -236
- package/style/partial/action.scss +18 -18
- package/style/partial/common.variables.scss +8 -8
- package/bundles/igo2-common.umd.min.js +0 -17
- package/bundles/igo2-common.umd.min.js.map +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/button"),require("@angular/material/card"),require("@angular/material/checkbox"),require("@angular/material/icon"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/tooltip"),require("@igo2/core"),require("typy"),require("rxjs"),require("rxjs/operators"),require("@igo2/utils"),require("@angular/material/form-field"),require("@angular/material/select"),require("@angular/material/core"),require("@angular/material/table"),require("@angular/material/sort"),require("scroll-into-view-if-needed"),require("@angular/material/paginator"),require("@angular/common/http"),require("ngx-cacheable"),require("@ngx-translate/core"),require("@angular/platform-browser"),require("@angular/cdk/overlay"),require("@angular/material/badge"),require("@angular/material/dialog"),require("@angular/cdk/portal"),require("@angular/material/input"),require("@angular/forms"),require("angular-shepherd"),require("@angular/material/sidenav"),require("@angular/material/progress-spinner"),require("@angular/cdk/table"),require("@angular/cdk/collections"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@igo2/common",["exports","@angular/core","@angular/common","@angular/material/button","@angular/material/card","@angular/material/checkbox","@angular/material/icon","@angular/material/list","@angular/material/menu","@angular/material/tooltip","@igo2/core","typy","rxjs","rxjs/operators","@igo2/utils","@angular/material/form-field","@angular/material/select","@angular/material/core","@angular/material/table","@angular/material/sort","scroll-into-view-if-needed","@angular/material/paginator","@angular/common/http","ngx-cacheable","@ngx-translate/core","@angular/platform-browser","@angular/cdk/overlay","@angular/material/badge","@angular/material/dialog","@angular/cdk/portal","@angular/material/input","@angular/forms","angular-shepherd","@angular/material/sidenav","@angular/material/progress-spinner","@angular/cdk/table","@angular/cdk/collections","@angular/animations"],e):e(((t=t||self).igo2=t.igo2||{},t.igo2.common={}),t.ng.core,t.ng.common,t.ng.material.button,t.ng.material.card,t.ng.material.checkbox,t.ng.material.icon,t.ng.material.list,t.ng.material.menu,t.ng.material.tooltip,t.core,t.typy,t.rxjs,t.rxjs.operators,t.utils,t.ng.material.formField,t.ng.material.select,t.ng.material.core,t.ng.material.table,t.ng.material.sort,t.scrollIntoView,t.ng.material.paginator,t.ng.common.http,t.ngxCacheable,t["ngxt-core"],t.ng.platformBrowser,t.ng.cdk.overlay,t.ng.material.badge,t.ng.material.dialog,t.ng.cdk.portal,t.ng.material.input,t.ng.forms,t.angularShepherd,t.ng.material.sidenav,t.ng.material.progressSpinner,t.ng.cdk.table,t.ng.cdk.collections,t.ng.animations)}(this,(function(t,e,n,o,i,r,a,s,l,c,u,p,d,f,h,g,m,v,y,b,C,x,M,w,S,I,O,T,$,E,P,j,k,F,_,D,B,V){"use strict";p=p&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C;
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */
|
|
16
|
-
var A=function(t,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function R(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function N(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function L(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}Object.create;function H(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function q(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(J(arguments[e]));return t}var z,K,U,W;Object.create;function Q(t,e){return p(t,e).safeObject}function G(t){var e=t.meta||{};return e.id?e.id:Q(t,e.idProperty||"id")}function Y(t){var e=t.meta||{};return e.title?e.title:Q(t,e.titleProperty||"title")}(z=t.EntityOperationType||(t.EntityOperationType={})).Insert="Insert",z.Update="Update",z.Delete="Delete",(K=t.EntityTableColumnRenderer||(t.EntityTableColumnRenderer={})).Default="Default",K.HTML="HTML",K.UnsanitizedHTML="UnsanitizedHTML",K.Icon="Icon",K.ButtonGroup="ButtonGroup",(U=t.EntityTableScrollBehavior||(t.EntityTableScrollBehavior={})).Auto="auto",U.Instant="instant",U.Smooth="smooth",(W=t.EntityTableSelectionState||(t.EntityTableSelectionState={})).None="None",W.All="All",W.Some="Some";var X=function(){function t(t){void 0===t&&(t={}),this.index=new Map,this.change$=new d.ReplaySubject(1),this.store=t.store?t.store:void 0,this.getKey=t.getKey?t.getKey:this.store?this.store.getKey:G,this.next()}return t.prototype.clear=function(){this.index.size>0&&(this.index.clear(),this.next())},t.prototype.get=function(t){return this.index.get(this.getKey(t))||{}},t.prototype.set=function(t,e){this.setMany([t],e)},t.prototype.setMany=function(t,e){var n=this;t.forEach((function(t){n.index.set(n.getKey(t),Object.assign({},e))})),this.next()},t.prototype.setAll=function(t){var e=this;Array.from(this.index.keys()).forEach((function(n){e.index.set(n,Object.assign({},t))})),this.next()},t.prototype.update=function(t,e,n){void 0===n&&(n=!1),this.updateMany([t],e,n)},t.prototype.updateMany=function(t,e,n){var o=this;if(void 0===n&&(n=!1),!0===n)return this.updateManyExclusive(t,e);t.forEach((function(t){var n=Object.assign({},o.get(t),e);o.index.set(o.getKey(t),n)})),this.next()},t.prototype.reverse=function(t,e){this.reverseMany([t],e)},t.prototype.reverseMany=function(t,e){var n=this;t.forEach((function(t){var o=n.get(t),i=e.reduce((function(t,e){return t[e]=o[e]||!1,t}),{}),r=n.reverseChanges(i),a=Object.assign({},o,r);n.index.set(n.getKey(t),a)})),this.next()},t.prototype.updateAll=function(t){var e=this,n=this.getAllKeys();Array.from(n).forEach((function(n){var o=Object.assign({},e.index.get(n),t);e.index.set(n,o)})),this.next()},t.prototype.updateManyExclusive=function(t,e){var n=this,o=this.reverseChanges(e),i=t.map((function(t){return n.getKey(t)}));new Set(i.concat(Array.from(this.getAllKeys()))).forEach((function(t){var r=n.index.get(t)||{};i.indexOf(t)>=0?n.index.set(t,Object.assign({},r,e)):!0===Object.keys(o).some((function(t){return void 0!==r[t]&&r[t]!==o[t]}))&&n.index.set(t,Object.assign({},r,o))})),this.next()},t.prototype.reverseChanges=function(t){return Object.entries(t).reduce((function(t,e){var n=J(e,2),o=n[0],i=n[1];return"boolean"==typeof i&&(t[o]=!i),t}),{})},t.prototype.getAllKeys=function(){var t=this.store?Array.from(this.store.index.keys()):[];return new Set(Array.from(this.index.keys()).concat(t))},t.prototype.next=function(){this.change$.next()},t}(),Z=function(){function t(t){this.source$=t,this.values$=new d.BehaviorSubject([]),this.lifted=!1,this.joins=[],this.filter$=new d.BehaviorSubject(void 0),this.filters$=new d.BehaviorSubject([]),this.filterIndex=new Map,this.sort$=new d.BehaviorSubject(void 0),this.getKey$=new d.BehaviorSubject(void 0),this.count$=new d.BehaviorSubject(0),this.empty$=new d.BehaviorSubject(!0)}return Object.defineProperty(t.prototype,"getKey",{get:function(){return this.getKey$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.count$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.empty$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),t.prototype.get=function(t){if(void 0===this._index)throw new Error("This view has no index, therefore, this method is unavailable.");return this.index.get(t)},t.prototype.all=function(){return this.values$.value},t.prototype.all$=function(){return this.values$},t.prototype.firstBy=function(t){return this.values$.value.find(t)},t.prototype.firstBy$=function(t){return this.values$.pipe(f.map((function(e){return e.find(t)})))},t.prototype.manyBy=function(t){return this.values$.value.filter(t)},t.prototype.manyBy$=function(t){return this.values$.pipe(f.map((function(e){return e.filter(t)})))},t.prototype.clear=function(){this.filter(void 0),this.sort(void 0)},t.prototype.destroy=function(){void 0!==this.values$$&&this.values$$.unsubscribe(),this.clear()},t.prototype.createIndex=function(t){return this._index=new Map,this.getKey$.next(t),this},t.prototype.join=function(t){if(!0===this.lifted)throw new Error("This view has already been lifted, therefore, no join is allowed.");return this.joins.push(t),this},t.prototype.filter=function(t){return this.filter$.next(t),this},t.prototype.addFilter=function(t){var e=h.uuid();return this.filterIndex.set(e,t),this.filters$.next(Array.from(this.filterIndex.values())),e},t.prototype.removeFilter=function(t){this.filterIndex.delete(t),this.filters$.next(Array.from(this.filterIndex.values()))},t.prototype.sort=function(t){return this.sort$.next(t),this},t.prototype.lift=function(){var t=this;this.lifted=!0;var e=[this.joins.length>0?this.liftJoinedSource():this.liftSource(),this.filters$,this.filter$,this.sort$,this.getKey$];this.values$$=d.combineLatest(e).pipe(f.skip(1),f.debounceTime(5)).subscribe((function(e){var n=J(e,5),o=n[0],i=n[1],r=n[2],a=n[3],s=n[4],l=t.processValues(o,i,r,a),c=void 0!==s;t.setValues(l,c)}))},t.prototype.liftSource=function(){return this.source$},t.prototype.liftJoinedSource=function(){var t=this,e=[this.source$,d.combineLatest(this.joins.map((function(t){return t.source})))];return d.combineLatest(e).pipe(f.map((function(e){var n=J(e,2),o=n[0],i=n[1];return o.reduce((function(e,n){var o=t.computeJoinedValue(n,i);return void 0!==o&&e.push(o),e}),[])})))},t.prototype.computeJoinedValue=function(t,e){for(var n=t,o=0;void 0!==n&&o<this.joins.length;)n=this.joins[o].reduce(n,e[o]),o+=1;return n},t.prototype.processValues=function(t,e,n,o){return t=t.slice(0),t=this.filterValues(t,e.concat([n])),t=this.sortValues(t,o)},t.prototype.filterValues=function(t,e){return 0===e.length?t:t.filter((function(t){return e.filter((function(t){return void 0!==t})).every((function(e){return e(t)}))}))},t.prototype.sortValues=function(t,e){return void 0===e?t:t.sort((function(t,n){return h.ObjectUtils.naturalCompare(e.valueAccessor(t),e.valueAccessor(n),e.direction,e.nullsFirst)}))},t.prototype.setValues=function(t,e){!0===e&&(this._index=this.generateIndex(t)),this.values$.next(t);var n=t.length,o=0===n;this.count$.next(n),this.empty$.next(o)},t.prototype.generateIndex=function(t){var e=this,n=t.map((function(t){return[e.getKey(t),t]}));return new Map(n)},t}(),tt=function(){function t(t,e){void 0===e&&(e={}),this.entities$=new d.BehaviorSubject([]),this.count$=new d.BehaviorSubject(0),this.empty$=new d.BehaviorSubject(!0),this._pristine=!0,this.strategies=[],this.getKey=e.getKey?e.getKey:G,this.getProperty=e.getProperty?e.getProperty:Q,this.state=this.createStateManager(),this.view=this.createDataView(),this.stateView=this.createStateView(),this.view.lift(),this.stateView.lift(),t.length>0?this.load(t):this._index=this.generateIndex(t)}return Object.defineProperty(t.prototype,"count",{get:function(){return this.count$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.empty$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!1,configurable:!0}),t.prototype.get=function(t){return this.index.get(t)},t.prototype.all=function(){return this.entities$.value},t.prototype.load=function(t,e){void 0===e&&(e=!0),this._index=this.generateIndex(t),this._pristine=e,this.next()},t.prototype.softClear=function(){this.index&&this.index.size>0?(this.index.clear(),this._pristine=!0,this.next()):this.index&&this.updateCount()},t.prototype.clear=function(){this.stateView.clear(),this.view.clear(),this.state.clear(),this.softClear()},t.prototype.destroy=function(){this.stateView.destroy(),this.view.destroy(),this.clear()},t.prototype.insert=function(t){this.insertMany([t])},t.prototype.insertMany=function(t){var e=this;t.forEach((function(t){return e.index.set(e.getKey(t),t)})),this._pristine=!1,this.next()},t.prototype.update=function(t){this.updateMany([t])},t.prototype.updateMany=function(t){var e=this;t.forEach((function(t){return e.index.set(e.getKey(t),t)})),this._pristine=!1,this.next()},t.prototype.delete=function(t){this.deleteMany([t])},t.prototype.deleteMany=function(t){var e=this;t.forEach((function(t){return e.index.delete(e.getKey(t))})),this._pristine=!1,this.next()},t.prototype.addStrategy=function(t,e){if(void 0===e&&(e=!1),void 0!==this.strategies.find((function(e){return t.constructor===e.constructor})))throw new Error("A strategy of this type already exists on that EntityStore.");return this.strategies.push(t),t.bindStore(this),!0===e&&t.activate(),this},t.prototype.removeStrategy=function(t){var e=this.strategies.indexOf(t);return e>=0&&(this.strategies.splice(e,1),t.unbindStore(this)),this},t.prototype.getStrategyOfType=function(t){return this.strategies.find((function(e){return e instanceof t}))},t.prototype.activateStrategyOfType=function(t){var e=this.getStrategyOfType(t);void 0!==e&&e.activate()},t.prototype.deactivateStrategyOfType=function(t){var e=this.getStrategyOfType(t);void 0!==e&&e.deactivate()},t.prototype.generateIndex=function(t){var e=this,n=t.map((function(t){return[e.getKey(t),t]}));return new Map(n)},t.prototype.next=function(){this.entities$.next(Array.from(this.index.values())),this.updateCount()},t.prototype.updateCount=function(){var t=this.index.size,e=0===t;this.count$.next(t),this.empty$.next(e)},t.prototype.createStateManager=function(){return new X({store:this})},t.prototype.createDataView=function(){return new Z(this.entities$)},t.prototype.createStateView=function(){var t=this;return new Z(this.view.all$()).join({source:this.state.change$,reduce:function(e){var n=t.getKey(e),o=t.state.get(e),i=t.stateView.get(n);if(void 0!==i&&i.entity===e&&t.statesAreTheSame(i.state,o))return i;var r=i?i.revision+1:1;return{entity:e,state:o,revision:r,ref:n+"-"+r}}}).createIndex((function(e){return t.getKey(e.entity)}))},t.prototype.statesAreTheSame=function(t,e){if(t===e)return!0;var n=0===Object.keys(t).length,o=0===Object.keys(e).length;return n&&o},t}(),et=function(){function t(t,e){this.innerStateIndex=new Map,this.setChangeDetector(e),this.setStore(t)}return t.prototype.destroy=function(){this.setChangeDetector(void 0),this.setStore(void 0)},t.prototype.setStore=function(t){if(void 0===t)return this.teardownObservers(),this.innerStateIndex.clear(),void(this.store=void 0);this.setStore(void 0),this.store=t,this.setupObservers(),this.detectChanges()},t.prototype.setChangeDetector=function(t){this.cdRef=t},t.prototype.setupObservers=function(){var t=this;this.teardownObservers(),this.entities$$=this.store.entities$.subscribe((function(e){return t.onEntitiesChange(e)})),this.state$$=this.store.state.change$.pipe(f.skip(1)).subscribe((function(){return t.onStateChange()}))},t.prototype.teardownObservers=function(){void 0!==this.entities$$&&this.entities$$.unsubscribe(),void 0!==this.state$$&&this.state$$.unsubscribe(),this.entities$$=void 0,this.state$$=void 0},t.prototype.onEntitiesChange=function(t){this.detectChanges()},t.prototype.onStateChange=function(){var t,e,n=!1,o=this.store.state.index,i=this.innerStateIndex;o.size!==i.size&&(n=this.detectChanges());var r=Array.from(o.keys());try{for(var a=H(r),s=a.next();!s.done;s=a.next()){var l=s.value,c=o.get(l),u=i.get(l);!1===n&&(void 0===u?n=this.detectChanges():h.ObjectUtils.objectsAreEquivalent(c,u)||(n=this.detectChanges())),this.innerStateIndex.set(l,Object.assign({},c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}},t.prototype.detectChanges=function(){return void 0!==this.cdRef&&this.cdRef.detectChanges(),!0},t}(),nt=function(){function e(t){void 0===t&&(t={}),this.inCommitPhase$=new d.BehaviorSubject(!1),this.getKey=t.getKey?t.getKey:G,this.operations=new tt([],{getKey:function(t){return t.key}})}return Object.defineProperty(e.prototype,"empty$",{get:function(){return this.operations.empty$},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this.empty$.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inCommitPhase",{get:function(){return this.inCommitPhase$.value},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.operations.destroy()},e.prototype.insert=function(t,e,n){var o=this.getOperationByEntity(t);void 0!==o&&this.removeOperation(o),this.doInsert(t,e,n)},e.prototype.update=function(e,n,o,i){var r=this.getOperationByEntity(n);if(void 0!==r){if(this.removeOperation(r),r.type===t.EntityOperationType.Insert)return void this.doInsert(n,o,i);r.type===t.EntityOperationType.Update&&(e=r.previous)}this.doUpdate(e,n,o,i)},e.prototype.delete=function(e,n,o){var i=this.getOperationByEntity(e);void 0===i||(this.removeOperation(i),i.type!==t.EntityOperationType.Insert)?this.doDelete(e,n,o):void 0!==n&&n.delete(e)},e.prototype.commit=function(t,e){var n=this;return this.inCommitPhase$.next(!0),e(this,t).pipe(f.catchError((function(){return d.of(new Error)})),f.tap((function(e){e instanceof Error?n.onCommitError(t):n.onCommitSuccess(t)})))},e.prototype.commitAll=function(t){var e=this.getOperationsInCommit();return this.commit(e,t)},e.prototype.rollback=function(){this.rollbackOperations(this.operations.all())},e.prototype.rollbackOperations=function(e){var n,o;this.checkInCommitPhase();var i=new Map;try{for(var r=H(e),a=r.next();!a.done;a=r.next()){var s=a.value,l=s.store;if(void 0!==s.store){var c=i.get(l);void 0===c&&(c=new Map([[t.EntityOperationType.Delete,[]],[t.EntityOperationType.Update,[]],[t.EntityOperationType.Insert,[]]]),i.set(l,c)),c.get(s.type).push(s)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}Array.from(i.keys()).forEach((function(e){var n=i.get(e),o=n.get(t.EntityOperationType.Delete);e.insertMany(o.map((function(t){return t.previous})));var r=n.get(t.EntityOperationType.Update);e.updateMany(r.map((function(t){return t.previous})));var a=n.get(t.EntityOperationType.Insert);e.deleteMany(a.map((function(t){return t.current})))})),this.operations.deleteMany(e),this.inCommitPhase$.next(!1)},e.prototype.clear=function(){this.operations.clear(),this.inCommitPhase$.next(!1)},e.prototype.getOperationByEntity=function(t){return this.operations.get(this.getKey(t))},e.prototype.mergeTransaction=function(t){var e=this;this.checkInCommitPhase(),t.operations.all().forEach((function(t){e.addOperation(t)}))},e.prototype.doInsert=function(e,n,o){this.addOperation({key:this.getKey(e),type:t.EntityOperationType.Insert,previous:void 0,current:e,store:n,meta:o}),void 0!==n&&n.insert(e)},e.prototype.doUpdate=function(e,n,o,i){this.addOperation({key:this.getKey(n),type:t.EntityOperationType.Update,previous:e,current:n,store:o,meta:i}),void 0!==o&&o.update(n)},e.prototype.doDelete=function(e,n,o){this.addOperation({key:this.getKey(e),type:t.EntityOperationType.Delete,previous:e,current:void 0,store:n,meta:o}),void 0!==n&&n.delete(e)},e.prototype.resolveOperations=function(t){this.operations.deleteMany(t)},e.prototype.onCommitSuccess=function(t){this.resolveOperations(t),this.inCommitPhase$.next(!1)},e.prototype.onCommitError=function(t){this.inCommitPhase$.next(!1)},e.prototype.addOperation=function(t){this.checkInCommitPhase(),this.operations.insert(t),this.operations.state.update(t,{added:!0})},e.prototype.removeOperation=function(t){this.checkInCommitPhase(),this.operations.delete(t),this.operations.state.update(t,{added:!1})},e.prototype.getOperationsInCommit=function(){return this.operations.stateView.manyBy((function(t){return!0===t.state.added})).map((function(t){return t.entity}))},e.prototype.checkInCommitPhase=function(){if(!0===this.inCommitPhase)throw new Error("This transaction is in the commit phase. Cannot complete this operation.")},e}(),ot=function(){function t(t){void 0===t&&(t={}),this.options=t,this.stores=[],this.active$=new d.BehaviorSubject(!1),this.options=t}return Object.defineProperty(t.prototype,"active",{get:function(){return this.active$.value},enumerable:!1,configurable:!0}),t.prototype.activate=function(){!0===this.active&&this.doDeactivate(),this.active$.next(!0),this.doActivate()},t.prototype.deactivate=function(){this.active$.next(!1),this.doDeactivate()},t.prototype.bindStore=function(t){this.stores.indexOf(t)<0&&this.stores.push(t)},t.prototype.unbindStore=function(t){var e=this.stores.indexOf(t);e>=0&&this.stores.splice(e,1)},t.prototype.doActivate=function(){},t.prototype.doDeactivate=function(){},t}(),it=function(t){function e(e){var n=t.call(this,e)||this;return n.options=e,n.filters=new Map,n}return R(e,t),e.prototype.bindStore=function(e){t.prototype.bindStore.call(this,e),!0===this.active&&this.filterStore(e)},e.prototype.unbindStore=function(e){t.prototype.unbindStore.call(this,e),!0===this.active&&this.unfilterStore(e)},e.prototype.doActivate=function(){this.filterAll()},e.prototype.doDeactivate=function(){this.unfilterAll()},e.prototype.filterAll=function(){var t=this;this.stores.forEach((function(e){return t.filterStore(e)}))},e.prototype.unfilterAll=function(){var t=this;this.stores.forEach((function(e){return t.unfilterStore(e)}))},e.prototype.filterStore=function(t){this.filters.set(t,t.stateView.addFilter(this.options.filterClauseFunc))},e.prototype.unfilterStore=function(t){var e=this.filters.get(t);void 0!==e&&(t.stateView.removeFilter(e),this.filters.delete(t))},e}(ot),rt=function(t){function e(){var e=t.apply(this,q(arguments))||this;return e.filters=new Map,e}return R(e,t),e.prototype.bindStore=function(e){t.prototype.bindStore.call(this,e),!0===this.active&&this.filterStore(e)},e.prototype.unbindStore=function(e){t.prototype.unbindStore.call(this,e),!0===this.active&&this.unfilterStore(e)},e.prototype.doActivate=function(){this.filterAll()},e.prototype.doDeactivate=function(){this.unfilterAll()},e.prototype.filterAll=function(){var t=this;this.stores.forEach((function(e){return t.filterStore(e)}))},e.prototype.unfilterAll=function(){var t=this;this.stores.forEach((function(e){return t.unfilterStore(e)}))},e.prototype.filterStore=function(t){if(!this.filters.has(t)){this.filters.set(t,t.stateView.addFilter((function(t){return!0===t.state.selected})))}},e.prototype.unfilterStore=function(t){var e=this.filters.get(t);void 0!==e&&(t.stateView.removeFilter(e),this.filters.delete(t))},e}(ot);function at(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-option",4),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("value",o.emptyValue),e.ɵɵadvance(1),e.ɵɵtextInterpolate(o.emptyText)}}function st(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-option",4),e.ɵɵtext(1),e.ɵɵpipe(2,"async"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("value",o.multiSelectValue),e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,2,o.multiText$))}}function lt(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-option",4),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext();e.ɵɵproperty("value",o.entity),e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",i.titleAccessor(o.entity)," ")}}var ct=function(){function t(t){this.cdRef=t,this.selected$=new d.BehaviorSubject(void 0),this.multiText$=new d.BehaviorSubject(void 0),this.multiSelectValue={id:"IGO_MULTI_SELECT"},this.emptyValue={id:"IGO_EMPTY_SELECT"},this.titleAccessor=Y,this.emptyText=void 0,this.multi=!1,this.multiAllText="All",this.multiNoneText="None",this.disabled=!1,this.selectedChange=new e.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this.watcher=new et(this.store,this.cdRef),this.selected$$=this.store.stateView.manyBy$((function(t){return!0===t.state.selected})).subscribe((function(e){var n=e.map((function(t){return t.entity}));t.onSelectFromStore(n)}))},t.prototype.ngOnDestroy=function(){this.watcher.destroy(),this.selected$$.unsubscribe()},t.prototype.onSelectionChange=function(t){var e=this,n=t.value instanceof Array?t.value:[t.value],o=n.find((function(t){return t===e.multiSelectValue})),i=n.filter((function(t){return t!==e.multiSelectValue}));void 0!==o&&(i.length===this.store.count?i=[]:i.length<this.store.count&&(i=this.store.all())),0===(i=i.filter((function(t){return t!==e.emptyValue}))).length?this.store.state.updateAll({selected:!1}):this.store.state.updateMany(i,{selected:!0},!0);var r=this.multi?i:t.value;this.selectedChange.emit({selected:!0,value:r})},t.prototype.onSelectFromStore=function(t){if(!0===this.multi)this.selected$.next(t);else{var e=t.length>0?t[0]:void 0;this.selected$.next(e)}this.updateMultiToggleWithEntities(t)},t.prototype.updateMultiToggleWithEntities=function(t){t.length===this.store.count&&this.multiText$.value!==this.multiNoneText?this.multiText$.next(this.multiNoneText):t.length<this.store.count&&this.multiText$.value!==this.multiAllText&&this.multiText$.next(this.multiAllText)},t}();ct.ɵfac=function(t){return new(t||ct)(e.ɵɵdirectiveInject(e.ChangeDetectorRef))},ct.ɵcmp=e.ɵɵdefineComponent({type:ct,selectors:[["igo-entity-selector"]],inputs:{store:"store",titleAccessor:"titleAccessor",emptyText:"emptyText",multi:"multi",multiAllText:"multiAllText",multiNoneText:"multiNoneText",placeholder:"placeholder",disabled:"disabled"},outputs:{selectedChange:"selectedChange"},decls:7,vars:11,consts:[[1,"igo-entity-selector"],[3,"disabled","value","multiple","placeholder","selectionChange"],[3,"value",4,"ngIf"],["ngFor","",3,"ngForOf"],[3,"value"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"mat-form-field",0),e.ɵɵelementStart(1,"mat-select",1),e.ɵɵlistener("selectionChange",(function(t){return n.onSelectionChange(t)})),e.ɵɵpipe(2,"async"),e.ɵɵtemplate(3,at,2,2,"mat-option",2),e.ɵɵtemplate(4,st,3,4,"mat-option",2),e.ɵɵtemplate(5,lt,2,2,"ng-template",3),e.ɵɵpipe(6,"async"),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("disabled",n.disabled)("value",e.ɵɵpipeBind1(2,7,n.selected$))("multiple",n.multi)("placeholder",n.placeholder),e.ɵɵadvance(2),e.ɵɵproperty("ngIf",void 0!==n.emptyText&&!1===n.multi),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!0===n.multi),e.ɵɵadvance(1),e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(6,9,n.store.stateView.all$())))},directives:[g.MatFormField,m.MatSelect,n.NgIf,n.NgForOf,v.MatOption],pipes:[n.AsyncPipe],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});var ut=function(){function t(){}return t.prototype.onClick=function(t){t.stopPropagation()},t}();ut.ɵfac=function(t){return new(t||ut)},ut.ɵdir=e.ɵɵdefineDirective({type:ut,selectors:[["","igoStopPropagation",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("click",(function(t){return n.onClick(t)}))}});var pt=function(){function n(n,o){this.renderer=n,this.el=o,this.selection=!1,this.selectOnClick=!0,this.highlightSelection=!0,this._selected=!1,this.scrollBehavior=t.EntityTableScrollBehavior.Auto,this.select=new e.EventEmitter}return Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){!1!==this.selection&&t!==this._selected&&(this.toggleSelected(t),this.scroll())},enumerable:!1,configurable:!0}),n.prototype.onClick=function(){!1!==this.selection&&!1!==this.selectOnClick&&(this.toggleSelected(!0),this.select.emit(this))},n.prototype.toggleSelected=function(t){this._selected=t,!0===t?(this.addCls(n.selectedCls),!0===this.highlightSelection&&this.addCls(n.highlightedCls)):(this.removeCls(n.selectedCls),this.removeCls(n.highlightedCls))},n.prototype.scroll=function(){!0===this._selected&&C(this.el.nativeElement,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"nearest"})},n.prototype.addCls=function(t){this.renderer.addClass(this.el.nativeElement,t)},n.prototype.removeCls=function(t){this.renderer.removeClass(this.el.nativeElement,t)},n}();pt.selectedCls="igo-entity-table-row-selected",pt.highlightedCls="igo-entity-table-row-highlighted",pt.ɵfac=function(t){return new(t||pt)(e.ɵɵdirectiveInject(e.Renderer2),e.ɵɵdirectiveInject(e.ElementRef))},pt.ɵdir=e.ɵɵdefineDirective({type:pt,selectors:[["","igoEntityTableRow",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("click",(function(){return n.onClick()}))},inputs:{selection:"selection",selectOnClick:"selectOnClick",highlightSelection:"highlightSelection",selected:"selected",scrollBehavior:"scrollBehavior"},outputs:{select:"select"}});var dt=function(){function t(t,n){var o=this;this.languageService=t,this.mediaService=n,this.disabled=!1,this.hidePageSize=!1,this.pageIndex=0,this.pageSize=50,this.pageSizeOptions=[5,10,20,50,100,200],this.showFirstLastButtons=!0,this.paginationLabelTranslation$$=[],this.entitySortChange$=new d.BehaviorSubject(!1),this.length=0,this.paginatorChange=new e.EventEmitter,this.rangeLabel=function(t,e,n){var i=new d.BehaviorSubject("");if(o.paginationLabelTranslation$$.push(o.languageService.translate.get("igo.common.paginator.of").subscribe((function(t){i.next(t)}))),0===n||0===e)return"0 "+i.value+" "+n;var r=t*e;return r+1+" - "+(r<(n=Math.max(n,0))?Math.min(r+e,n):r+e)+" "+i.value+" "+n}}return t.prototype.ngOnChanges=function(){var t=this;this.unsubscribeAll(),this.count$$=this.store.stateView.count$.subscribe((function(e){t.length=e,t.emitPaginator()})),this.entitySortChange$$=this.entitySortChange$.subscribe((function(){t.paginator&&t.paginator.firstPage()})),this.initPaginatorOptions(),this.translateLabels()},t.prototype.initPaginatorOptions=function(){var t,e,n,o,i,r;this.disabled=(null===(t=this.paginatorOptions)||void 0===t?void 0:t.disabled)||this.disabled,this.pageIndex=(null===(e=this.paginatorOptions)||void 0===e?void 0:e.pageIndex)||this.pageIndex,this.pageSize=(null===(n=this.paginatorOptions)||void 0===n?void 0:n.pageSize)||this.pageSize,this.pageSizeOptions=(null===(o=this.paginatorOptions)||void 0===o?void 0:o.pageSizeOptions)||this.pageSizeOptions,this.mediaService.isMobile()?(this.showFirstLastButtons=!1,this.hidePageSize=!0):(this.showFirstLastButtons=(null===(i=this.paginatorOptions)||void 0===i?void 0:i.showFirstLastButtons)||this.showFirstLastButtons,this.hidePageSize=(null===(r=this.paginatorOptions)||void 0===r?void 0:r.hidePageSize)||this.hidePageSize)},t.prototype.translateLabels=function(){var t=this;this.paginationLabelTranslation$$.push(this.languageService.translate.get("igo.common.paginator.firstPageLabel").subscribe((function(e){t.paginator._intl.firstPageLabel=e}))),this.paginator._intl.getRangeLabel=this.rangeLabel,this.paginationLabelTranslation$$.push(this.languageService.translate.get("igo.common.paginator.itemsPerPageLabel").subscribe((function(e){t.paginator._intl.itemsPerPageLabel=e}))),this.paginationLabelTranslation$$.push(this.languageService.translate.get("igo.common.paginator.lastPageLabel").subscribe((function(e){t.paginator._intl.lastPageLabel=e}))),this.paginationLabelTranslation$$.push(this.languageService.translate.get("igo.common.paginator.nextPageLabel").subscribe((function(e){t.paginator._intl.nextPageLabel=e}))),this.paginationLabelTranslation$$.push(this.languageService.translate.get("igo.common.paginator.previousPageLabel").subscribe((function(e){t.paginator._intl.previousPageLabel=e})))},t.prototype.unsubscribeAll=function(){this.paginationLabelTranslation$$.map((function(t){return t.unsubscribe()})),this.count$$&&this.count$$.unsubscribe(),this.entitySortChange$$&&this.entitySortChange$$.unsubscribe()},t.prototype.ngOnDestroy=function(){this.unsubscribeAll()},t.prototype.emitPaginator=function(){this.paginatorChange.emit(this.paginator)},t}();dt.ɵfac=function(t){return new(t||dt)(e.ɵɵdirectiveInject(u.LanguageService),e.ɵɵdirectiveInject(u.MediaService))},dt.ɵcmp=e.ɵɵdefineComponent({type:dt,selectors:[["igo-entity-table-paginator"]],viewQuery:function(t,n){var o;(1&t&&e.ɵɵstaticViewQuery(x.MatPaginator,!0),2&t)&&(e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.paginator=o.first))},inputs:{entitySortChange$:"entitySortChange$",store:"store",paginatorOptions:"paginatorOptions"},outputs:{page:"page",paginatorChange:"paginatorChange"},features:[e.ɵɵNgOnChangesFeature],decls:1,vars:7,consts:[[3,"disabled","hidePageSize","length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"mat-paginator",0),e.ɵɵlistener("page",(function(){return n.emitPaginator()})),e.ɵɵelementEnd()),2&t&&e.ɵɵproperty("disabled",n.disabled)("hidePageSize",n.hidePageSize)("length",n.length)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.showFirstLastButtons)},directives:[x.MatPaginator],styles:["[_nghost-%COMP%]{margin-top:-10px;padding-right:15px}@media only screen and (orientation:landscape) and (max-width:959px),only screen and (orientation:portrait) and (max-width:599px){[_nghost-%COMP%]{margin-top:0;padding-right:5px}}"],changeDetection:0});var ft=function(){function t(t){this.http=t}return t.prototype.transform=function(t){var e=new M.HttpHeaders({"Content-Type":"text/plain",activityInterceptor:"false"});return this.http.get(t,{headers:e,responseType:"blob"}).pipe(f.switchMap((function(t){return new d.Observable((function(e){var n=new FileReader;n.readAsDataURL(t),n.onloadend=function(){e.next(n.result),e.complete()}}))})))},t}();ft.ɵfac=function(t){return new(t||ft)(e.ɵɵdirectiveInject(M.HttpClient))},ft.ɵpipe=e.ɵɵdefinePipe({name:"secureImage",type:ft,pure:!0}),N([w.Cacheable({maxCacheCount:20}),L("design:type",Function),L("design:paramtypes",[String]),L("design:returntype",d.Observable)],ft.prototype,"transform",null);var ht=function(){function t(t){this._sanitizer=t}return t.prototype.transform=function(t){return this._sanitizer.bypassSecurityTrustHtml(t)},t}();function gt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementContainerStart(0),e.ɵɵelementStart(1,"mat-checkbox",11),e.ɵɵlistener("change",(function(t){return e.ɵɵrestoreView(o),e.ɵɵnextContext(3).onToggleRows(t.checked)})),e.ɵɵelementEnd(),e.ɵɵelementContainerEnd()}if(2&t){var i=n.ngIf,r=e.ɵɵnextContext(3);e.ɵɵadvance(1),e.ɵɵproperty("checked",i===r.entityTableSelectionState.All)("indeterminate",i===r.entityTableSelectionState.Some)}}function mt(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,gt,2,2,"ng-container",10),e.ɵɵpipe(2,"async"),e.ɵɵelementContainerEnd()),2&t){var o=e.ɵɵnextContext(2);e.ɵɵadvance(1),e.ɵɵproperty("ngIf",e.ɵɵpipeBind1(2,1,o.selectionState$))}}function vt(t,n){if(1&t&&(e.ɵɵelementStart(0,"th",9),e.ɵɵtemplate(1,mt,3,3,"ng-container",10),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o.selectMany)}}function yt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"td",12),e.ɵɵelementStart(1,"mat-checkbox",13),e.ɵɵlistener("mousedown",(function(t){return e.ɵɵrestoreView(o),t.shiftKey?t.preventDefault():null}))("click",(function(t){e.ɵɵrestoreView(o);var i=n.$implicit,r=e.ɵɵnextContext();return t.shiftKey?r.onShiftToggleRow(!r.rowIsSelected(i),i,t):t.stopPropagation()}))("change",(function(t){e.ɵɵrestoreView(o);var i=n.$implicit;return e.ɵɵnextContext().onToggleRow(t.checked,i)})),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("checked",r.rowIsSelected(i))}}function bt(t,n){if(1&t&&(e.ɵɵelementStart(0,"th",16),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit;e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",o.title," ")}}function Ct(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,bt,2,1,"th",15),e.ɵɵelementContainerEnd())}function xt(t,n){if(1&t&&(e.ɵɵelementStart(0,"th",9),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit;e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",o.title," ")}}function Mt(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,xt,2,1,"th",3),e.ɵɵelementContainerEnd())}function wt(t,n){if(1&t&&(e.ɵɵelementStart(0,"td",20),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext().$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.getCellClass(o,i)),e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",r.getValue(o,i)," ")}}function St(t,n){if(1&t&&(e.ɵɵelement(0,"img",24),e.ɵɵpipe(1,"async"),e.ɵɵpipe(2,"secureImage")),2&t){var o=e.ɵɵnextContext(2).$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵpropertyInterpolate("src",e.ɵɵpipeBind1(1,1,e.ɵɵpipeBind1(2,3,r.getValue(o,i))),e.ɵɵsanitizeUrl)}}function It(t,n){1&t&&(e.ɵɵelementStart(0,"span"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵtextInterpolate1("",e.ɵɵpipeBind1(2,1,"igo.common.entity-table.targetHtmlUrl")," "))}function Ot(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"td",20),e.ɵɵelementStart(1,"a",21),e.ɵɵlistener("click",(function(t){return e.ɵɵrestoreView(o),t.stopPropagation()})),e.ɵɵtemplate(2,St,3,5,"img",22),e.ɵɵtemplate(3,It,3,3,"ng-template",null,23,e.ɵɵtemplateRefExtractor),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵreference(4),r=e.ɵɵnextContext().$implicit,a=e.ɵɵnextContext(3).$implicit,s=e.ɵɵnextContext();e.ɵɵproperty("ngClass",s.getCellClass(r,a)),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("href",s.getValue(r,a),e.ɵɵsanitizeUrl),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",s.isImg(s.getValue(r,a)))("ngIfElse",i)}}function Tt(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,wt,2,2,"td",18),e.ɵɵtemplate(2,Ot,5,4,"ng-template",null,19,e.ɵɵtemplateRefExtractor),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵreference(3),r=e.ɵɵnextContext(3).$implicit,a=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!a.isUrl(a.getValue(o,r)))("ngIfElse",i)}}function $t(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Tt,4,2,"ng-container",17),e.ɵɵelementContainerEnd())}function Et(t,n){if(1&t&&e.ɵɵelement(0,"td",27),2&t){var o=e.ɵɵnextContext().$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.getCellClass(o,i))("innerHTML",r.getValue(o,i),e.ɵɵsanitizeHtml)}}function Pt(t,n){if(1&t&&(e.ɵɵelement(0,"img",24),e.ɵɵpipe(1,"async"),e.ɵɵpipe(2,"secureImage")),2&t){var o=e.ɵɵnextContext(2).$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵpropertyInterpolate("src",e.ɵɵpipeBind1(1,1,e.ɵɵpipeBind1(2,3,r.getValue(o,i))),e.ɵɵsanitizeUrl)}}function jt(t,n){1&t&&(e.ɵɵelementStart(0,"span"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵtextInterpolate1("",e.ɵɵpipeBind1(2,1,"igo.geo.targetHtmlUrl")," "))}function kt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"td",20),e.ɵɵelementStart(1,"a",21),e.ɵɵlistener("click",(function(t){return e.ɵɵrestoreView(o),t.stopPropagation()})),e.ɵɵtemplate(2,Pt,3,5,"img",22),e.ɵɵtemplate(3,jt,3,3,"ng-template",null,23,e.ɵɵtemplateRefExtractor),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵreference(4),r=e.ɵɵnextContext().$implicit,a=e.ɵɵnextContext(3).$implicit,s=e.ɵɵnextContext();e.ɵɵproperty("ngClass",s.getCellClass(r,a)),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("href",s.getValue(r,a),e.ɵɵsanitizeUrl),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",s.isImg(s.getValue(r,a)))("ngIfElse",i)}}function Ft(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Et,1,2,"td",25),e.ɵɵtemplate(2,kt,5,4,"ng-template",null,26,e.ɵɵtemplateRefExtractor),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵreference(3),r=e.ɵɵnextContext(3).$implicit,a=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!a.isUrl(a.getValue(o,r)))("ngIfElse",i)}}function _t(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Ft,4,2,"ng-container",17),e.ɵɵelementContainerEnd())}function Dt(t,n){if(1&t&&(e.ɵɵelement(0,"td",27),e.ɵɵpipe(1,"sanitizeHtml")),2&t){var o=e.ɵɵnextContext().$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.getCellClass(o,i))("innerHTML",e.ɵɵpipeBind1(1,2,r.getValue(o,i)),e.ɵɵsanitizeHtml)}}function Bt(t,n){if(1&t&&(e.ɵɵelement(0,"img",24),e.ɵɵpipe(1,"async"),e.ɵɵpipe(2,"secureImage")),2&t){var o=e.ɵɵnextContext(2).$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵpropertyInterpolate("src",e.ɵɵpipeBind1(1,1,e.ɵɵpipeBind1(2,3,r.getValue(o,i))),e.ɵɵsanitizeUrl)}}function Vt(t,n){1&t&&(e.ɵɵelementStart(0,"span"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵtextInterpolate1("",e.ɵɵpipeBind1(2,1,"igo.geo.targetHtmlUrl")," "))}function At(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"td",20),e.ɵɵelementStart(1,"a",21),e.ɵɵlistener("click",(function(t){return e.ɵɵrestoreView(o),t.stopPropagation()})),e.ɵɵtemplate(2,Bt,3,5,"img",22),e.ɵɵtemplate(3,Vt,3,3,"ng-template",null,23,e.ɵɵtemplateRefExtractor),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵreference(4),r=e.ɵɵnextContext().$implicit,a=e.ɵɵnextContext(3).$implicit,s=e.ɵɵnextContext();e.ɵɵproperty("ngClass",s.getCellClass(r,a)),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("href",s.getValue(r,a),e.ɵɵsanitizeUrl),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",s.isImg(s.getValue(r,a)))("ngIfElse",i)}}function Rt(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Dt,2,4,"td",25),e.ɵɵtemplate(2,At,5,4,"ng-template",null,28,e.ɵɵtemplateRefExtractor),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵreference(3),r=e.ɵɵnextContext(3).$implicit,a=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!a.isUrl(a.getValue(o,r)))("ngIfElse",i)}}function Nt(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Rt,4,2,"ng-container",17),e.ɵɵelementContainerEnd())}function Lt(t,n){if(1&t&&(e.ɵɵelementStart(0,"td",20),e.ɵɵelement(1,"mat-icon",30),e.ɵɵelementEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.getCellClass(o,i)),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("svgIcon",r.getValue(o,i))}}function Ht(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Lt,2,2,"td",29),e.ɵɵelementContainerEnd())}function Jt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"button",34),e.ɵɵlistener("click",(function(){e.ɵɵrestoreView(o);var t=e.ɵɵnextContext().$implicit,n=e.ɵɵnextContext().$implicit;return e.ɵɵnextContext(4).onButtonClick(t.click,n)})),e.ɵɵelement(1,"mat-icon",30),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext().$implicit;e.ɵɵproperty("color",i.color),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("svgIcon",i.icon)}}function qt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"button",35),e.ɵɵlistener("click",(function(){e.ɵɵrestoreView(o);var t=e.ɵɵnextContext().$implicit,n=e.ɵɵnextContext().$implicit;return e.ɵɵnextContext(4).onButtonClick(t.click,n)})),e.ɵɵelement(1,"mat-icon",30),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext().$implicit;e.ɵɵproperty("color",i.color),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("svgIcon",i.icon)}}function zt(t,n){if(1&t&&(e.ɵɵelementStart(0,"span"),e.ɵɵtemplate(1,Jt,2,2,"button",32),e.ɵɵtemplate(2,qt,2,2,"button",33),e.ɵɵelementEnd()),2&t){var o=n.$implicit;e.ɵɵadvance(1),e.ɵɵproperty("ngIf","mat-icon-button"===o.style),e.ɵɵadvance(1),e.ɵɵproperty("ngIf","mat-icon-button"!==o.style)}}function Kt(t,n){if(1&t&&(e.ɵɵelementStart(0,"td",20),e.ɵɵtemplate(1,zt,3,2,"span",31),e.ɵɵelementEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext(3).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.getCellClass(o,i)),e.ɵɵadvance(1),e.ɵɵproperty("ngForOf",r.getValue(o,i))}}function Ut(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Kt,2,2,"td",29),e.ɵɵelementContainerEnd())}function Wt(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,$t,2,0,"ng-container",10),e.ɵɵtemplate(2,_t,2,0,"ng-container",10),e.ɵɵtemplate(3,Nt,2,0,"ng-container",10),e.ɵɵtemplate(4,Ht,2,0,"ng-container",10),e.ɵɵtemplate(5,Ut,2,0,"ng-container",10),e.ɵɵelementContainerEnd()),2&t){var o=n.ngIf,i=e.ɵɵnextContext(2);e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o===i.entityTableColumnRenderer.Default),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o===i.entityTableColumnRenderer.HTML),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o===i.entityTableColumnRenderer.UnsanitizedHTML),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o===i.entityTableColumnRenderer.Icon),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o===i.entityTableColumnRenderer.ButtonGroup)}}function Qt(t,n){if(1&t&&(e.ɵɵelementContainerStart(0,14),e.ɵɵtemplate(1,Ct,2,0,"ng-container",10),e.ɵɵtemplate(2,Mt,2,0,"ng-container",10),e.ɵɵtemplate(3,Wt,6,5,"ng-container",10),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext();e.ɵɵproperty("matColumnDef",o.name),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",i.columnIsSortable(o)),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!i.columnIsSortable(o)),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",i.getColumnRenderer(o))}}function Gt(t,n){if(1&t&&e.ɵɵelement(0,"tr",36),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("ngClass",o.getHeaderClass())}}function Yt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"tr",37),e.ɵɵlistener("select",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext().onRowSelect(t)}))("click",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext().onRowClick(t)})),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("scrollBehavior",r.scrollBehavior)("ngClass",r.getRowClass(i))("selection",r.selection)("selected",r.rowIsSelected(i))}}function Xt(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"igo-entity-table-paginator",38),e.ɵɵlistener("paginatorChange",(function(t){return e.ɵɵrestoreView(o),e.ɵɵnextContext().paginatorChange(t)})),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("store",i.store)("paginatorOptions",i.paginatorOptions)("entitySortChange$",i.entitySortChange$)}}ht.ɵfac=function(t){return new(t||ht)(e.ɵɵdirectiveInject(I.DomSanitizer))},ht.ɵpipe=e.ɵɵdefinePipe({name:"sanitizeHtml",type:ht,pure:!0});var Zt,te=function(){function n(n){this.cdRef=n,this.entitySortChange$=new d.BehaviorSubject(!1),this.entityTableColumnRenderer=t.EntityTableColumnRenderer,this.entityTableSelectionState=t.EntityTableSelectionState,this.selectionState$=new d.BehaviorSubject(void 0),this.scrollBehavior=t.EntityTableScrollBehavior.Auto,this.sortNullsFirst=!1,this.withPaginator=!1,this.entityClick=new e.EventEmitter,this.entitySelectChange=new e.EventEmitter,this.entitySortChange=new e.EventEmitter(void 0),this.dataSource=new y.MatTableDataSource}return Object.defineProperty(n.prototype,"paginator",{get:function(){return this._paginator},set:function(t){this._paginator=t,this.dataSource.paginator=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"headers",{get:function(){var t=this.template.columns.filter((function(t){return!1!==t.visible})).map((function(t){return t.name}));return!0===this.selectionCheckbox&&(t=["selectionCheckbox"].concat(t)),t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selection",{get:function(){return this.template.selection||!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectionCheckbox",{get:function(){return this.template.selectionCheckbox||!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectMany",{get:function(){return this.template.selectMany||!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fixedHeader",{get:function(){return void 0===this.template.fixedHeader||this.template.fixedHeader},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.handleDatasource(),this.dataSource.paginator=this.paginator},n.prototype.ngOnChanges=function(t){var e=t.store;e&&e.currentValue!==e.previousValue&&this.handleDatasource()},n.prototype.handleDatasource=function(){var t=this;this.unsubscribeStore(),this.selection$$=this.store.stateView.manyBy$((function(t){return!0===t.state.selected})).subscribe((function(e){var n=e[0],o=t.store.stateView.all().indexOf(n),i=t.paginator?t.paginator.pageSize*(t.paginator.pageIndex+1):0,r=t.paginator?i-t.paginator.pageSize:0;if(t.paginator&&(o<r||o>=i)){var a=Math.floor(o/t.paginator.pageSize);t.dataSource.paginator.pageIndex=a}t.selectionState$.next(t.computeSelectionState(e))})),this.dataSource$$=this.store.stateView.all$().subscribe((function(e){t.dataSource.data=e}))},n.prototype.ngOnDestroy=function(){this.unsubscribeStore()},n.prototype.unsubscribeStore=function(){this.selection$$&&this.selection$$.unsubscribe(),this.dataSource$$&&this.dataSource$$.unsubscribe()},n.prototype.getTrackByFunction=function(){return function(t,e){return e.ref}},n.prototype.refresh=function(){this.cdRef.detectChanges()},n.prototype.paginatorChange=function(t){this.paginator=t},n.prototype.onSort=function(t){var e=this,n=t.direction,o=this.template.columns.find((function(e){return e.name===t.active}));"asc"===n||"desc"===n?(this.store.stateView.sort({valueAccessor:function(t){return e.getValue(t,o)},direction:n,nullsFirst:this.sortNullsFirst}),this.entitySortChange.emit({column:o,direction:n}),this.entitySortChange$.next(!0)):this.store.stateView.sort(void 0)},n.prototype.onRowClick=function(t){this.lastRecordCheckedKey=this.store.stateView.getKey(t),this.entityClick.emit(t.entity)},n.prototype.onRowSelect=function(t){if(!1!==this.selection){var e=t.entity;this.store.state.update(e,{selected:!0},!0),this.entitySelectChange.emit({added:[e]})}},n.prototype.onToggleRows=function(t){if(!1!==this.selection&&(this.store.state.updateAll({selected:t}),!0===t)){var e=this.store.stateView.all().map((function(t){return t.entity}));this.entitySelectChange.emit({added:[e]})}},n.prototype.onToggleRow=function(t,e){if(!1!==this.selection){var n=e.entity,o=!0===t&&!this.selectMany;this.store.state.update(n,{selected:t},o),!0===t&&this.entitySelectChange.emit({added:[n]}),this.lastRecordCheckedKey=this.store.stateView.getKey(e)}},n.prototype.onShiftToggleRow=function(t,e,n){if(!1!==this.selection)if(!1!==this.selectMany&&void 0!==this.lastRecordCheckedKey){var o=window.document.createRange();o.selectNode(n.target),window.getSelection().removeAllRanges(),window.getSelection().addRange(o),n.stopImmediatePropagation();var i=this.store.stateView.all(),r=i.indexOf(e),a=this.store.stateView.get(this.lastRecordCheckedKey),s=[r,i.indexOf(a)],l=i.slice(Math.min.apply(Math,q(s)),Math.max.apply(Math,q(s))+1).map((function(t){return t.entity}));this.store.state.updateMany(l,{selected:t}),!0===t&&this.entitySelectChange.emit({added:l}),this.lastRecordCheckedKey=this.store.stateView.getKey(e)}else this.onToggleRow(t,e)},n.prototype.computeSelectionState=function(e){var n=t.EntityTableSelectionState,o=e.length;return 0===o?n.None:o===this.store.stateView.count?n.All:n.Some},n.prototype.columnIsSortable=function(t){var e=t.sort;return void 0===e&&(e=void 0!==this.template.sort&&this.template.sort),e},n.prototype.rowIsSelected=function(t){var e=t.state;return!!e.selected&&e.selected},n.prototype.isImg=function(t){return!!this.isUrl(t)&&-1!==["jpg","png","gif"].indexOf(t.split(".").pop().toLowerCase())},n.prototype.isUrl=function(t){return"string"==typeof t&&("https://"===t.slice(0,8)||"http://"===t.slice(0,7))},n.prototype.getValue=function(t,e){var n=t.entity;return void 0!==e.valueAccessor?e.valueAccessor(n,t):void 0!==this.template.valueAccessor?this.template.valueAccessor(n,e.name,t):this.store.getProperty(n,e.name)},n.prototype.getColumnRenderer=function(e){return void 0!==e.renderer?e.renderer:t.EntityTableColumnRenderer.Default},n.prototype.getTableClass=function(){return{"igo-entity-table-with-selection":this.selection}},n.prototype.getHeaderClass=function(){var t=this.template.headerClassFunc;return t instanceof Function?t():{}},n.prototype.getRowClass=function(t){var e=t.entity,n=this.template.rowClassFunc;return n instanceof Function?n(e,t):{}},n.prototype.getCellClass=function(t,e){var n=t.entity,o={},i=this.template.cellClassFunc;i instanceof Function&&Object.assign(o,i(n,e,t));var r=e.cellClassFunc;return r instanceof Function&&Object.assign(o,r(n,t)),o},n.prototype.onButtonClick=function(t,e){"function"==typeof t&&t(e.entity,e)},n}();function ee(t,n){if(1&t&&(e.ɵɵelement(0,"mat-icon",7),e.ɵɵpipe(1,"async")),2&t){var o=e.ɵɵnextContext(3);e.ɵɵpropertyInterpolate("svgIcon",e.ɵɵpipeBind1(1,1,o.icon$))}}function ne(t,n){if(1&t&&(e.ɵɵelementStart(0,"button",5),e.ɵɵpipe(1,"async"),e.ɵɵtemplate(2,ee,2,3,"mat-icon",6),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2);e.ɵɵproperty("color",o.color)("disabled",e.ɵɵpipeBind1(1,3,o.disabled$)),e.ɵɵadvance(2),e.ɵɵproperty("ngIf",o.withIcon)}}function oe(t,n){if(1&t&&(e.ɵɵelementStart(0,"h4",8),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2);e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,1,o.title))}}function ie(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"mat-list-item",2),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onClick()})),e.ɵɵpipe(1,"translate"),e.ɵɵpipe(2,"async"),e.ɵɵpipe(3,"async"),e.ɵɵtemplate(4,ne,3,5,"button",3),e.ɵɵtemplate(5,oe,3,3,"h4",4),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("matTooltip",i.withTooltip?e.ɵɵpipeBind1(1,4,e.ɵɵpipeBind1(2,6,i.tooltip$)||i.title):"")("ngClass",e.ɵɵpipeBind1(3,8,i.ngClass$)),e.ɵɵadvance(4),e.ɵɵproperty("ngIf",i.withIcon),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",i.withTitle)}}function re(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"mat-checkbox",11),e.ɵɵlistener("change",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext(2).action.handler()})),e.ɵɵpipe(1,"async"),e.ɵɵtext(2),e.ɵɵpipe(3,"translate"),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext(2);e.ɵɵproperty("checked",e.ɵɵpipeBind1(1,2,i.checkCondition$)),e.ɵɵadvance(2),e.ɵɵtextInterpolate1(" ",e.ɵɵpipeBind1(3,4,i.title)," ")}}function ae(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-list-item",9),e.ɵɵpipe(1,"translate"),e.ɵɵpipe(2,"async"),e.ɵɵpipe(3,"async"),e.ɵɵtemplate(4,re,4,6,"mat-checkbox",10),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("matTooltip",o.withTooltip?e.ɵɵpipeBind1(1,3,e.ɵɵpipeBind1(2,5,o.tooltip$)||o.title):"")("ngClass",e.ɵɵpipeBind1(3,7,o.ngClass$)),e.ɵɵadvance(4),e.ɵɵproperty("ngIf",o.withTitle)}}te.ɵfac=function(t){return new(t||te)(e.ɵɵdirectiveInject(e.ChangeDetectorRef))},te.ɵcmp=e.ɵɵdefineComponent({type:te,selectors:[["igo-entity-table"]],inputs:{store:"store",paginator:"paginator",template:"template",scrollBehavior:"scrollBehavior",sortNullsFirst:"sortNullsFirst",withPaginator:"withPaginator",paginatorOptions:"paginatorOptions"},outputs:{entityClick:"entityClick",entitySelectChange:"entitySelectChange",entitySortChange:"entitySortChange"},features:[e.ɵɵNgOnChangesFeature],decls:9,vars:8,consts:[[1,"table-container"],["mat-table","","matSort","",3,"ngClass","dataSource","trackBy","matSortChange"],["matColumnDef","selectionCheckbox",1,"mat-cell-checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",3,"ngClass",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","igoEntityTableRow","",3,"scrollBehavior","ngClass","selection","selected","select","click",4,"matRowDef","matRowDefColumns"],[3,"store","paginatorOptions","entitySortChange$","paginatorChange",4,"ngIf"],["mat-header-cell",""],[4,"ngIf"],[3,"checked","indeterminate","change"],["mat-cell",""],[3,"checked","mousedown","click","change"],[3,"matColumnDef"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header",""],[4,"matCellDef"],["mat-cell","","class","mat-cell-text",3,"ngClass",4,"ngIf","ngIfElse"],["isAnUrlDefault",""],["mat-cell","",1,"mat-cell-text",3,"ngClass"],["target","_blank","rel","noopener noreferrer",3,"href","click"],["width","50","heigth","auto",3,"src",4,"ngIf","ngIfElse"],["notImg",""],["width","50","heigth","auto",3,"src"],["mat-cell","","class","mat-cell-text",3,"ngClass","innerHTML",4,"ngIf","ngIfElse"],["isAnUrlHTML",""],["mat-cell","",1,"mat-cell-text",3,"ngClass","innerHTML"],["isAnUrlUnsanitizedHTML",""],["mat-cell","","class","mat-cell-text",3,"ngClass",4,"matCellDef"],[3,"svgIcon"],[4,"ngFor","ngForOf"],["igoStopPropagation","","mat-icon-button","",3,"color","click",4,"ngIf"],["igoStopPropagation","","mat-mini-fab","",3,"color","click",4,"ngIf"],["igoStopPropagation","","mat-icon-button","",3,"color","click"],["igoStopPropagation","","mat-mini-fab","",3,"color","click"],["mat-header-row","",3,"ngClass"],["mat-row","","igoEntityTableRow","",3,"scrollBehavior","ngClass","selection","selected","select","click"],[3,"store","paginatorOptions","entitySortChange$","paginatorChange"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"div",0),e.ɵɵelementStart(1,"table",1),e.ɵɵlistener("matSortChange",(function(t){return n.onSort(t)})),e.ɵɵelementContainerStart(2,2),e.ɵɵtemplate(3,vt,2,1,"th",3),e.ɵɵtemplate(4,yt,2,1,"td",4),e.ɵɵelementContainerEnd(),e.ɵɵtemplate(5,Qt,4,4,"ng-container",5),e.ɵɵtemplate(6,Gt,1,1,"tr",6),e.ɵɵtemplate(7,Yt,1,4,"tr",7),e.ɵɵelementEnd(),e.ɵɵtemplate(8,Xt,1,3,"igo-entity-table-paginator",8),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("ngClass",n.getTableClass())("dataSource",n.dataSource)("trackBy",n.getTrackByFunction()),e.ɵɵadvance(4),e.ɵɵproperty("ngForOf",n.template.columns),e.ɵɵadvance(1),e.ɵɵproperty("matHeaderRowDef",n.headers)("matHeaderRowDefSticky",n.fixedHeader),e.ɵɵadvance(1),e.ɵɵproperty("matRowDefColumns",n.headers),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.withPaginator))},directives:[y.MatTable,b.MatSort,n.NgClass,y.MatColumnDef,y.MatHeaderCellDef,y.MatCellDef,n.NgForOf,y.MatHeaderRowDef,y.MatRowDef,n.NgIf,y.MatHeaderCell,r.MatCheckbox,y.MatCell,b.MatSortHeader,a.MatIcon,o.MatButton,ut,y.MatHeaderRow,y.MatRow,pt,dt],pipes:[n.AsyncPipe,ft,S.TranslatePipe,ht],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.table-compact[_nghost-%COMP%] .mat-checkbox .mat-checkbox-ripple, .table-compact[_nghost-%COMP%] tr.mat-header-row[_ngcontent-%COMP%]{height:36px}.table-compact[_nghost-%COMP%] .mat-checkbox .mat-checkbox-ripple, .table-compact[_nghost-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:28px}.table-container[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.mat-cell-text[_ngcontent-%COMP%]{overflow:hidden;word-wrap:break-word}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 3px}entity-table[_ngcontent-%COMP%] table.igo-entity-table-with-selection[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{-o-box-shadow:2px 0 2px 0 #ddd;box-shadow:2px 0 2px 0 #ddd;cursor:pointer}table[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:7px}"],changeDetection:0}),(Zt=t.ActionbarMode||(t.ActionbarMode={})).Dock="dock",Zt.Overlay="overlay",Zt.Context="context";var se=function(){function t(){this.disabled$=new d.BehaviorSubject(!1),this.checkCondition$=new d.BehaviorSubject(void 0),this.icon$=new d.BehaviorSubject(void 0),this.tooltip$=new d.BehaviorSubject(void 0),this.noDisplay$=new d.BehaviorSubject(!1),this.ngClass$=new d.BehaviorSubject({}),this.color="default",this.withTitle=!0,this.withIcon=!0,this.withTooltip=!0,this.trigger=new e.EventEmitter}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.disabled$.value},set:function(t){this.disabled$.next(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noDisplay",{get:function(){return this.noDisplay$.value},set:function(t){this.noDisplay$.next(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.action.title},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t,e,n,o=this,i=this.action.args||[];void 0!==this.action.ngClass&&(this.ngClass$$=(t=this.action).ngClass.apply(t,q(i)).subscribe((function(t){return o.updateNgClass(t)}))),d.isObservable(this.action.icon)?this.icon$$=this.action.icon.subscribe((function(t){return o.updateIcon(t)})):this.updateIcon(this.action.icon),d.isObservable(this.action.checkCondition)?this.checkCondition$$=this.action.checkCondition.subscribe((function(t){return o.updateCheckCondition(t)})):this.updateCheckCondition(this.action.checkCondition),d.isObservable(this.action.tooltip)?this.tooltip$$=this.action.tooltip.subscribe((function(t){return o.updateTooltip(t)})):this.updateTooltip(this.action.tooltip),void 0!==this.action.availability&&(this.availability$$=(e=this.action).availability.apply(e,q(i)).subscribe((function(t){return o.disabled=!t}))),this.disabled$$=this.disabled$.subscribe((function(t){return o.updateNgClass({"igo-actionbar-item-disabled":t})})),void 0!==this.action.display&&(this.display$$=(n=this.action).display.apply(n,q(i)).subscribe((function(t){return o.noDisplay=!t}))),this.noDisplay$$=this.noDisplay$.subscribe((function(t){return o.updateNgClass({"igo-actionbar-item-no-display":t})}))},t.prototype.ngOnDestroy=function(){void 0!==this.ngClass$$&&(this.ngClass$$.unsubscribe(),this.ngClass$$=void 0),void 0!==this.availability$$&&(this.availability$$.unsubscribe(),this.availability$$=void 0),void 0!==this.display$$&&(this.display$$.unsubscribe(),this.display$$=void 0),void 0!==this.checkCondition$$&&(this.checkCondition$$.unsubscribe(),this.checkCondition$$=void 0),void 0!==this.icon$$&&(this.icon$$.unsubscribe(),this.icon$$=void 0),void 0!==this.tooltip$$&&(this.tooltip$$.unsubscribe(),this.tooltip$$=void 0),this.disabled$$.unsubscribe(),this.noDisplay$$.unsubscribe()},t.prototype.onClick=function(){!0!==this.disabled&&this.trigger.emit(this.action)},t.prototype.updateNgClass=function(t){this.ngClass$.next(Object.assign({},this.ngClass$.value,t))},t.prototype.updateTooltip=function(t){this.tooltip$.next(t)},t.prototype.updateCheckCondition=function(t){this.checkCondition$.next(t)},t.prototype.updateIcon=function(t){this.icon$.next(t)},t}();function le(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"div",5),e.ɵɵelementStart(1,"button",6),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext(2).scrollUp()})),e.ɵɵpipe(2,"translate"),e.ɵɵelement(3,"mat-icon",7),e.ɵɵelementEnd(),e.ɵɵelementEnd()}2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("matTooltip",e.ɵɵpipeBind1(2,1,"igo.common.actionbar.scrollUp")))}function ce(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"igo-actionbar-item",8),e.ɵɵlistener("trigger",(function(){e.ɵɵrestoreView(o);var t=e.ɵɵnextContext(2);return t.onTriggerAction(t.toggleCollapseAction)})),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext(2);e.ɵɵproperty("withTitle",!1)("withIcon",!0)("color",i.color)("disabled",i.store.view.empty)("action",i.toggleCollapseAction)}}function ue(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"igo-actionbar-item",11),e.ɵɵlistener("trigger",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext(3).onTriggerAction(t)})),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext(3);e.ɵɵproperty("withTitle",r.withTitle)("withIcon",r.withIcon)("withTooltip",r.withTooltip)("color",r.color)("disabled",r.store.state.get(i).disabled)("action",i)}}function pe(t,n){if(1&t&&(e.ɵɵtemplate(0,ue,1,6,"ng-template",9,10,e.ɵɵtemplateRefExtractor),e.ɵɵpipe(2,"async")),2&t){var o=e.ɵɵnextContext(2);e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(2,1,o.store.view.all$()))}}function de(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"div",12),e.ɵɵelementStart(1,"button",6),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext(2).scrollDown()})),e.ɵɵpipe(2,"translate"),e.ɵɵelement(3,"mat-icon",13),e.ɵɵelementEnd(),e.ɵɵelementEnd()}2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("matTooltip",e.ɵɵpipeBind1(2,1,"igo.common.actionbar.scrollDown")))}function fe(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-list"),e.ɵɵtemplate(1,le,4,3,"div",2),e.ɵɵtemplate(2,ce,1,5,"igo-actionbar-item",3),e.ɵɵtemplate(3,pe,3,3,void 0,0),e.ɵɵtemplate(4,de,4,3,"div",4),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o.heightCondition&&o.positionConditionTop&&o.isDesktop),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o.withToggleButton),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!o.collapsed),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o.heightCondition&&o.positionConditionLow&&o.isDesktop)}}function he(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"igo-actionbar-item",18),e.ɵɵlistener("trigger",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext(2).onTriggerAction(t)})),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext(2);e.ɵɵproperty("withTitle",r.withTitle)("withIcon",r.withIcon)("color",r.color)("action",i)}}function ge(t,n){if(1&t&&(e.ɵɵelementStart(0,"div"),e.ɵɵelementStart(1,"button",14),e.ɵɵpipe(2,"translate"),e.ɵɵelement(3,"mat-icon",15),e.ɵɵelementEnd(),e.ɵɵelementStart(4,"mat-menu",16,17),e.ɵɵelementStart(6,"mat-list"),e.ɵɵtemplate(7,he,1,4,"ng-template",9),e.ɵɵpipe(8,"async"),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t){var o=e.ɵɵreference(5),i=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("matTooltip",e.ɵɵpipeBind1(2,10,"igo.common.actionbar.icon"))("matMenuTriggerFor",o)("disabled",i.store.view.empty)("color",i.iconColor),e.ɵɵadvance(2),e.ɵɵproperty("svgIcon",i.icon),e.ɵɵadvance(1),e.ɵɵclassMap(i.overlayClass),e.ɵɵproperty("xPosition",i.xPosition)("yPosition",i.yPosition),e.ɵɵadvance(3),e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(8,12,i.store.view.all$()))}}function me(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"igo-actionbar-item",18),e.ɵɵlistener("trigger",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext(2).onTriggerAction(t)})),e.ɵɵelementEnd(),e.ɵɵelement(1,"br")}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext(2);e.ɵɵproperty("withTitle",r.withTitle)("withIcon",r.withIcon)("color",r.color)("action",i)}}function ve(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-card",19),e.ɵɵelementStart(1,"mat-list"),e.ɵɵtemplate(2,me,2,4,"ng-template",9),e.ɵɵpipe(3,"async"),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(2),e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(3,1,o.store.view.all$()))}}se.ɵfac=function(t){return new(t||se)},se.ɵcmp=e.ɵɵdefineComponent({type:se,selectors:[["igo-actionbar-item"]],inputs:{action:"action",color:"color",withTitle:"withTitle",withIcon:"withIcon",withTooltip:"withTooltip",disabled:"disabled",noDisplay:"noDisplay"},outputs:{trigger:"trigger"},decls:2,vars:2,consts:[["matTooltipClass","actionbarItemTooltip","matTooltipShowDelay","500",3,"matTooltip","ngClass","click",4,"ngIf"],["class","item-checkbox","matTooltipClass","actionbarItemTooltip","matTooltipShowDelay","500",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipClass","actionbarItemTooltip","matTooltipShowDelay","500",3,"matTooltip","ngClass","click"],["mat-list-avatar","","mat-icon-button","",3,"color","disabled",4,"ngIf"],["matLine","",4,"ngIf"],["mat-list-avatar","","mat-icon-button","",3,"color","disabled"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["matLine",""],["matTooltipClass","actionbarItemTooltip","matTooltipShowDelay","500",1,"item-checkbox",3,"matTooltip","ngClass"],[3,"checked","change",4,"ngIf"],[3,"checked","change"]],template:function(t,n){1&t&&(e.ɵɵtemplate(0,ie,6,10,"mat-list-item",0),e.ɵɵtemplate(1,ae,5,9,"mat-list-item",1)),2&t&&(e.ɵɵproperty("ngIf",!n.action.checkbox),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.action.checkbox))},directives:[n.NgIf,s.MatListItem,c.MatTooltip,n.NgClass,o.MatButton,s.MatListAvatarCssMatStyler,a.MatIcon,v.MatLine,r.MatCheckbox],pipes:[S.TranslatePipe,n.AsyncPipe],styles:["mat-list-item.igo-actionbar-item-disabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.26);cursor:default!important}mat-list-item.igo-actionbar-item-no-display[_ngcontent-%COMP%]{display:none}mat-checkbox[_ngcontent-%COMP%]{padding:12px}.item-checkbox[_ngcontent-%COMP%]{height:56px}.item-checkbox[_ngcontent-%COMP%] .mat-checkbox-label{margin-left:20px}"],changeDetection:0});var ye=function(){function e(e,n,o,i){var r=this;this.overlay=e,this.elRef=n,this.cdRef=o,this.mediaService=i,this.actionbarMode=t.ActionbarMode,this.collapsed=!1,this.toggleCollapseAction={id:"actionbar_toggle",icon:"dots-vertical",handler:function(){r.collapsed=!r.collapsed}},this.heightCondition$=new d.BehaviorSubject(!1),this.positionConditionTop$=new d.BehaviorSubject(!0),this.positionConditionLow$=new d.BehaviorSubject(!0),this.mode=t.ActionbarMode.Dock,this.withToggleButton=!1,this.horizontal=!1,this.color="default",this.iconColor="default",this.withTitle=!0,this.withTooltip=!0,this.scrollActive=!0,this.withIcon=!0,this.icon="dots-horizontal",this.xPosition="before",this.yPosition="above",this._overlayClass=""}return Object.defineProperty(e.prototype,"overlayClass",{get:function(){return[this._overlayClass,"igo-actionbar-overlay"].join(" ")},set:function(t){this._overlayClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"withTitleClass",{get:function(){return this.withTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"withIconClass",{get:function(){return this.withIcon},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return this.horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"heightCondition",{get:function(){var t=this.elRef.nativeElement;return!1===this.scrollActive&&t.clientHeight<t.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionConditionTop",{get:function(){return 0!==this.elRef.nativeElement.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionConditionLow",{get:function(){var t=this.elRef.nativeElement;return!(t.scrollTop>=t.scrollHeight-t.clientHeight)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesktop",{get:function(){return this.mediaService.getMedia()===u.Media.Desktop},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(t){var e=t.store;e&&e.currentValue!==e.previousValue&&(void 0!==this.watcher&&this.watcher.destroy(),this.watcher=new et(this.store,this.cdRef))},e.prototype.ngOnDestroy=function(){this.watcher.destroy()},e.prototype.onTriggerAction=function(t){var e=t.args||[];t.handler.apply(t,q(e))},e.prototype.scrollDown=function(){this.elRef.nativeElement.scrollBy(0,52)},e.prototype.scrollUp=function(){this.elRef.nativeElement.scrollBy(0,-52)},e}();ye.ɵfac=function(t){return new(t||ye)(e.ɵɵdirectiveInject(O.Overlay),e.ɵɵdirectiveInject(e.ElementRef),e.ɵɵdirectiveInject(e.ChangeDetectorRef),e.ɵɵdirectiveInject(u.MediaService))},ye.ɵcmp=e.ɵɵdefineComponent({type:ye,selectors:[["igo-actionbar"]],hostVars:6,hostBindings:function(t,n){2&t&&e.ɵɵclassProp("with-title",n.withTitleClass)("with-icon",n.withIconClass)("horizontal",n.horizontalClass)},inputs:{store:"store",mode:"mode",withToggleButton:"withToggleButton",horizontal:"horizontal",color:"color",iconColor:"iconColor",withTitle:"withTitle",withTooltip:"withTooltip",scrollActive:"scrollActive",withIcon:"withIcon",icon:"icon",xPosition:"xPosition",yPosition:"yPosition",overlayClass:"overlayClass"},features:[e.ɵɵNgOnChangesFeature],decls:3,vars:3,consts:[[4,"ngIf"],["class","context-menu-card mat-elevation-z4",4,"ngIf"],["id","topChevron",4,"ngIf"],["color","accent",3,"withTitle","withIcon","color","disabled","action","trigger",4,"ngIf"],["id","lowChevron",4,"ngIf"],["id","topChevron"],["mat-icon-button","","tooltip-position","below","matTooltipShowDelay","500",3,"matTooltip","click"],["svgIcon","chevron-up"],["color","accent",3,"withTitle","withIcon","color","disabled","action","trigger"],["ngFor","",3,"ngForOf"],["buttonContent",""],["color","accent",3,"withTitle","withIcon","withTooltip","color","disabled","action","trigger"],["id","lowChevron"],["svgIcon","chevron-down"],["mat-icon-button","","tooltip-position","below","matTooltipShowDelay","500",1,"buttonOverlay",3,"matTooltip","matMenuTriggerFor","disabled","color"],[3,"svgIcon"],["overlapTrigger","true",1,"igo-compact-menu","igo-no-min-width-menu",3,"xPosition","yPosition"],["actionbarMenu","matMenu"],["color","accent",3,"withTitle","withIcon","color","action","trigger"],[1,"context-menu-card","mat-elevation-z4"]],template:function(t,n){1&t&&(e.ɵɵtemplate(0,fe,5,4,"mat-list",0),e.ɵɵtemplate(1,ge,9,14,"div",0),e.ɵɵtemplate(2,ve,4,3,"mat-card",1)),2&t&&(e.ɵɵproperty("ngIf",n.mode===n.actionbarMode.Dock),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.mode===n.actionbarMode.Overlay),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.mode===n.actionbarMode.Context))},directives:[n.NgIf,s.MatList,o.MatButton,c.MatTooltip,a.MatIcon,se,n.NgForOf,l.MatMenuTrigger,l._MatMenu,i.MatCard],pipes:[S.TranslatePipe,n.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto;position:relative}button[_ngcontent-%COMP%]{margin:4px}.buttonOverlay[_ngcontent-%COMP%]{margin:0}mat-list[_ngcontent-%COMP%]{padding-top:0}.horizontal[_nghost-%COMP%]{max-width:100%;overflow:unset}.horizontal[_nghost-%COMP%] mat-list[_ngcontent-%COMP%]{white-space:nowrap;width:auto}.horizontal[_nghost-%COMP%] igo-actionbar-item[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mat-list .mat-list-item .mat-list-text>*{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;line-height:18px;max-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:normal}[_nghost-%COMP%] .mat-list-base .mat-list-item.mat-list-item-with-avatar{height:46px}[_nghost-%COMP%] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content{display:-webkit-flex;height:46px;padding:3px}[_nghost-%COMP%] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content>mat-icon{padding:8px}igo-actionbar-item[_ngcontent-%COMP%] mat-list-item [mat-list-avatar]{height:auto;width:40px}igo-actionbar-item[_ngcontent-%COMP%] mat-list-item:hover{cursor:pointer}.context-menu-card[_ngcontent-%COMP%]{margin:10px;padding:8px 3px}#topChevron[_ngcontent-%COMP%]{background-color:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:3}@media (-ms-high-contrast:active),(-ms-high-contrast:none){#topChevron[_ngcontent-%COMP%]{position:fixed;top:unset}}@supports (-ms-accelerator:true){#topChevron[_ngcontent-%COMP%]{position:fixed;top:unset}}#lowChevron[_ngcontent-%COMP%]{background-color:#fff;bottom:0;position:fixed;position:-webkit-sticky;position:sticky;z-index:3}"],changeDetection:0});var be=function(){};be.ɵmod=e.ɵɵdefineNgModule({type:be}),be.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||be)},imports:[[n.CommonModule,u.IgoLanguageModule,o.MatButtonModule,a.MatIconModule,c.MatTooltipModule,l.MatMenuModule,s.MatListModule,i.MatCardModule,r.MatCheckboxModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(be,{declarations:[ye,se],imports:[n.CommonModule,u.IgoLanguageModule,o.MatButtonModule,a.MatIconModule,c.MatTooltipModule,l.MatMenuModule,s.MatListModule,i.MatCardModule,r.MatCheckboxModule],exports:[ye]});var Ce=function(){};Ce.ɵmod=e.ɵɵdefineNgModule({type:Ce}),Ce.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ce)},providers:[],imports:[[n.CommonModule,be],be]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ce,{imports:[n.CommonModule,be],exports:[be]});var xe=function(t){return{"igo-backdrop-shown":t}},Me=function(){function t(){}return Object.defineProperty(t.prototype,"shown",{get:function(){return this._shown},set:function(t){this._shown=t},enumerable:!1,configurable:!0}),t}();Me.ɵfac=function(t){return new(t||Me)},Me.ɵcmp=e.ɵɵdefineComponent({type:Me,selectors:[["igo-backdrop"]],inputs:{shown:"shown"},decls:1,vars:3,consts:[[3,"ngClass"]],template:function(t,n){1&t&&e.ɵɵelement(0,"div",0),2&t&&e.ɵɵproperty("ngClass",e.ɵɵpureFunction1(1,xe,n.shown))},directives:[n.NgClass],styles:["[_nghost-%COMP%] > div[_ngcontent-%COMP%]{background-color:hsla(0,0%,39.2%,.5);bottom:0;display:none;left:0;position:absolute;right:0;top:0;z-index:2}[_nghost-%COMP%] > div.igo-backdrop-shown[_ngcontent-%COMP%]{display:block}"]});var we=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();we.ɵmod=e.ɵɵdefineNgModule({type:we}),we.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||we)},imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(we,{declarations:[Me],imports:[n.CommonModule],exports:[Me]});var Se=function(){function t(t,e){this.el=t,this.matIconRegistry=e,this.hidden=!1,this.disabled=!1,this.inverseColor=!1,this.inheritColor=!1}return Object.defineProperty(t.prototype,"igoMatBadgeIcon",{set:function(t){var e=this;this.matIconRegistry.getNamedSvgIcon(t).subscribe((function(t){e.svg=t,e.updateSvg()}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matBadgeHidden",{set:function(t){this.hidden=t,this.updateHidden()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matBadgeDisabled",{set:function(t){this.disabled=t,this.updateDisabled()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"igoMatBadgeInverseColor",{set:function(t){this.inverseColor=t,this.updateColor()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"igoMatBadgeInheritColor",{set:function(t){this.inheritColor=t,this.updateColor()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"badge",{get:function(){return this.el.nativeElement.querySelector(".mat-badge-content")},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.badge.style.alignItems="center",this.badge.style.justifyContent="center",this.updateHidden(),this.updateColor(),this.updateSvg()},t.prototype.updateSvg=function(){this.badge&&(this.badge.innerHTML="",this.svg&&this.badge.appendChild(this.svg))},t.prototype.updateColor=function(){this.badge&&(this.inheritColor?this.inverseColor?(this.badge.style.color="currentColor",this.badge.style.background="none"):(this.badge.style.color="",this.badge.style.background="currentColor"):this.inverseColor?(this.badge.style.color=window.getComputedStyle(this.badge,null).getPropertyValue("background-color"),this.badge.style.background="none"):(this.badge.style.color="",this.badge.style.background=""),this.originalColor=this.badge.style.color,this.updateDisabled())},t.prototype.updateHidden=function(){this.badge&&(this.badge.style.display=this.hidden?"none":"flex")},t.prototype.updateDisabled=function(){this.badge&&this.inverseColor&&(this.disabled?(this.originalColor=this.badge.style.color,this.badge.style.color="#b9b9b9"):this.badge.style.color=this.originalColor)},t}();Se.ɵfac=function(t){return new(t||Se)(e.ɵɵdirectiveInject(e.ElementRef),e.ɵɵdirectiveInject(a.MatIconRegistry))},Se.ɵdir=e.ɵɵdefineDirective({type:Se,selectors:[["","igoMatBadgeIcon",""]],inputs:{igoMatBadgeIcon:"igoMatBadgeIcon",matBadgeHidden:"matBadgeHidden",matBadgeDisabled:"matBadgeDisabled",igoMatBadgeInverseColor:"igoMatBadgeInverseColor",igoMatBadgeInheritColor:"igoMatBadgeInheritColor"}});var Ie=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Ie.ɵmod=e.ɵɵdefineNgModule({type:Ie}),Ie.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ie)},imports:[[T.MatBadgeModule,a.MatIconModule],T.MatBadgeModule]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ie,{declarations:[Se],imports:[T.MatBadgeModule,a.MatIconModule],exports:[T.MatBadgeModule,Se]});var Oe=function(){function t(t){this.el=t,this.clickout=new e.EventEmitter}return t.prototype.handleMouseClick=function(t,e){e&&(this.el.nativeElement.contains(e)||this.clickout.emit(t))},t}();Oe.ɵfac=function(t){return new(t||Oe)(e.ɵɵdirectiveInject(e.ElementRef))},Oe.ɵdir=e.ɵɵdefineDirective({type:Oe,selectors:[["","igoClickout",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("click",(function(t){return n.handleMouseClick(t,t.target)}),!1,e.ɵɵresolveDocument)},outputs:{clickout:"clickout"}});var Te=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Te.ɵmod=e.ɵɵdefineNgModule({type:Te}),Te.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Te)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Te,{declarations:[Oe],exports:[Oe]});var $e=function(){function t(){}return t.prototype.transform=function(t,e){return void 0===t?t:t instanceof Array?t.map((function(t){return Object.assign(Object.create(t),t)})):Object.assign(Object.create(t),t)},t}();$e.ɵfac=function(t){return new(t||$e)},$e.ɵpipe=e.ɵɵdefinePipe({name:"clone",type:$e,pure:!0});var Ee=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Ee.ɵmod=e.ɵɵdefineNgModule({type:Ee}),Ee.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ee)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ee,{declarations:[$e],exports:[$e]});var Pe=function(){function t(t,n){this.renderer=t,this.el=n,this._collapsed=!1,this.toggle=new e.EventEmitter}return Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(t){this._target=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){t?this.collapseTarget():this.expandTarget(),this._collapsed=t,this.toggle.emit(t)},enumerable:!1,configurable:!0}),t.prototype.click=function(){this.collapsed=!this.collapsed},t.prototype.collapseTarget=function(){this.renderer.addClass(this.target,"igo-collapsed"),this.renderer.addClass(this.el.nativeElement,"collapsed")},t.prototype.expandTarget=function(){this.renderer.removeClass(this.target,"igo-collapsed"),this.renderer.removeClass(this.el.nativeElement,"collapsed")},t}();Pe.ɵfac=function(t){return new(t||Pe)(e.ɵɵdirectiveInject(e.Renderer2),e.ɵɵdirectiveInject(e.ElementRef))},Pe.ɵdir=e.ɵɵdefineDirective({type:Pe,selectors:[["","igoCollapse",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("click",(function(){return n.click()}))},inputs:{target:"target",collapsed:"collapsed"},outputs:{toggle:"toggle"}});var je=function(){function t(){this._title="",this._collapsed=!1,this.toggle=new e.EventEmitter}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){this._collapsed=t,this.toggle.emit(t)},enumerable:!1,configurable:!0}),t}();je.ɵfac=function(t){return new(t||je)},je.ɵcmp=e.ɵɵdefineComponent({type:je,selectors:[["igo-collapsible"]],inputs:{title:"title",collapsed:"collapsed"},outputs:{toggle:"toggle"},ngContentSelectors:["*"],decls:7,vars:3,consts:[["svgIcon","chevron-up","mat-list-avatar","","igoCollapse","",1,"igo-chevron",3,"target","collapsed","toggle"],["matLine",""],["content",""]],template:function(t,n){if(1&t&&(e.ɵɵprojectionDef(),e.ɵɵelementStart(0,"mat-list-item"),e.ɵɵelementStart(1,"mat-icon",0),e.ɵɵlistener("toggle",(function(t){return n.collapsed=t})),e.ɵɵelementEnd(),e.ɵɵelementStart(2,"h4",1),e.ɵɵtext(3),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementStart(4,"div",null,2),e.ɵɵprojection(6),e.ɵɵelementEnd()),2&t){var o=e.ɵɵreference(5);e.ɵɵadvance(1),e.ɵɵproperty("target",o)("collapsed",n.collapsed),e.ɵɵadvance(2),e.ɵɵtextInterpolate(n.title)}},directives:[s.MatListItem,a.MatIcon,s.MatListAvatarCssMatStyler,Pe,v.MatLine],styles:["[_nghost-%COMP%] .mat-list .mat-list-item.mat-list-avatar{height:auto;padding:0;width:auto}mat-list-item[_ngcontent-%COMP%]{overflow:hidden}"]});var ke=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();ke.ɵmod=e.ɵɵdefineNgModule({type:ke}),ke.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ke)},imports:[[a.MatIconModule,s.MatListModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ke,{declarations:[je,Pe],imports:[a.MatIconModule,s.MatListModule],exports:[je,Pe]});var Fe=function(t){this.dialogRef=t};Fe.ɵfac=function(t){return new(t||Fe)(e.ɵɵdirectiveInject($.MatDialogRef))},Fe.ɵcmp=e.ɵɵdefineComponent({type:Fe,selectors:[["igo-confirm-dialog"]],decls:12,vars:10,consts:[["mat-dialog-title","",1,"mat-typography"],["mat-dialog-content","",1,"mat-typography"],["mat-dialog-actions",""],["mat-button","","color","primary",3,"click"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"h2",0),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd(),e.ɵɵelementStart(3,"div",1),e.ɵɵtext(4),e.ɵɵelementEnd(),e.ɵɵelementStart(5,"div",2),e.ɵɵelementStart(6,"button",3),e.ɵɵlistener("click",(function(){return n.dialogRef.close(!0)})),e.ɵɵtext(7),e.ɵɵpipe(8,"translate"),e.ɵɵelementEnd(),e.ɵɵelementStart(9,"button",4),e.ɵɵlistener("click",(function(){return n.dialogRef.close(!1)})),e.ɵɵtext(10),e.ɵɵpipe(11,"translate"),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,4,"igo.common.confirmDialog.title")),e.ɵɵadvance(3),e.ɵɵtextInterpolate(n.confirmMessage),e.ɵɵadvance(3),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(8,6,"igo.common.confirmDialog.confirmBtn")),e.ɵɵadvance(3),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(11,8,"igo.common.confirmDialog.cancelBtn")))},directives:[$.MatDialogTitle,$.MatDialogContent,$.MatDialogActions,o.MatButton],pipes:[S.TranslatePipe],styles:["h2[_ngcontent-%COMP%]{margin:5px 0 10px}div[mat-dialog-content][_ngcontent-%COMP%]{max-width:200px}div[mat-dialog-actions][_ngcontent-%COMP%]{margin:10px 0 0}"]});var _e=function(){function t(t){this.dialog=t}return t.prototype.open=function(t){var e=this.dialog.open(Fe,{disableClose:!1});return e.componentInstance.confirmMessage=t,e.afterClosed()},t}();_e.ɵfac=function(t){return new(t||_e)(e.ɵɵinject($.MatDialog))},_e.ɵprov=e.ɵɵdefineInjectable({token:_e,factory:_e.ɵfac});var De=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();De.ɵmod=e.ɵɵdefineNgModule({type:De}),De.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||De)},providers:[_e],imports:[[o.MatButtonModule,$.MatDialogModule,u.IgoLanguageModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(De,{declarations:[Fe],imports:[o.MatButtonModule,$.MatDialogModule,u.IgoLanguageModule],exports:[Fe]});var Be=function(){function t(t,n,o){this.overlay=t,this.viewContainerRef=n,this.elementRef=o,this.menuPosition=new e.EventEmitter}return t.prototype.onContextMenu=function(t){var e=this,n=t.x,o=t.y;this.close(),t.preventDefault(),this.menuPosition.emit({x:n,y:o}),this.overlayRef=null;var i=this.overlay.position().flexibleConnectedTo({x:n,y:o}).withPositions([{originX:"end",originY:"bottom",overlayX:"start",overlayY:"top"}]);this.overlayRef=this.overlay.create({positionStrategy:i,scrollStrategy:this.overlay.scrollStrategies.close()}),this.overlayRef.attach(new E.TemplatePortal(this.menuContext,this.viewContainerRef,{$implicit:void 0})),this.sub=d.fromEvent(document,"click").pipe(f.filter((function(t){var n=t.target;return e.close(),!!e.overlayRef&&!e.overlayRef.overlayElement.contains(n)})),f.take(1)).subscribe((function(){return e.close()})),this.sub=d.fromEvent(document,"contextmenu").pipe(f.filter((function(t){var n=t.target;if(n&&!e.elementRef.nativeElement.contains(n)&&!e.overlayRef.overlayElement.contains(n))return!0;t.preventDefault()})),f.take(1)).subscribe((function(){return e.close()}))},t.prototype.close=function(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null),this.sub&&this.sub.unsubscribe()},t}();Be.ɵfac=function(t){return new(t||Be)(e.ɵɵdirectiveInject(O.Overlay),e.ɵɵdirectiveInject(e.ViewContainerRef),e.ɵɵdirectiveInject(e.ElementRef))},Be.ɵdir=e.ɵɵdefineDirective({type:Be,selectors:[["","igoContextMenu",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("contextmenu",(function(t){return n.onContextMenu(t)}))},inputs:{menuContext:["igoContextMenu","menuContext"]},outputs:{menuPosition:"menuPosition"}});var Ve=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Ve.ɵmod=e.ɵɵdefineNgModule({type:Ve}),Ve.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ve)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ve,{declarations:[Be],exports:[Be]});var Ae=function(){function t(){this._html=""}return Object.defineProperty(t.prototype,"html",{get:function(){return this._html},set:function(t){this._html=t},enumerable:!1,configurable:!0}),t}();Ae.ɵfac=function(t){return new(t||Ae)},Ae.ɵcmp=e.ɵɵdefineComponent({type:Ae,selectors:[["igo-custom-html"]],inputs:{html:"html"},decls:2,vars:3,consts:[[1,"custom-html",3,"innerHTML"]],template:function(t,n){1&t&&(e.ɵɵelement(0,"div",0),e.ɵɵpipe(1,"sanitizeHtml")),2&t&&e.ɵɵproperty("innerHTML",e.ɵɵpipeBind1(1,1,n.html),e.ɵɵsanitizeHtml)},pipes:[ht],styles:[".custom-html[_ngcontent-%COMP%]{padding:20px}"]});var Re=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}();Re.ɵmod=e.ɵɵdefineNgModule({type:Re}),Re.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Re)},imports:[[n.CommonModule,a.MatIconModule,c.MatTooltipModule,P.MatInputModule,o.MatButtonModule,u.IgoLanguageModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Re,{declarations:[ht,Ae],imports:[n.CommonModule,a.MatIconModule,c.MatTooltipModule,P.MatInputModule,o.MatButtonModule,u.IgoLanguageModule],exports:[ht,Ae]});var Ne=function(){function t(){this.allowedExtensions=[],this.filesDropped=new e.EventEmitter,this.filesInvalid=new e.EventEmitter,this.background="inherit"}return t.prototype.onDragOver=function(t){t.preventDefault(),t.stopPropagation(),this.background="#999"},t.prototype.onDragLeave=function(t){t.preventDefault(),t.stopPropagation(),this.background="inherit"},t.prototype.onDrop=function(t){if(t.preventDefault(),t.stopPropagation(),!t.alreadyFired){t.alreadyFired=!0,this.background="inherit";var e=this.validExtensions(t);e.valid.length&&this.filesDropped.emit(e.valid),e.invalid.length&&this.filesInvalid.emit(e.invalid)}},t.prototype.validExtensions=function(t){var e,n,o=t.dataTransfer.files,i={valid:[],invalid:[]};if(o.length>0)try{for(var r=H(o),a=r.next();!a.done;a=r.next()){var s=a.value,l=s.name.split(".")[s.name.split(".").length-1];0===this.allowedExtensions.length||-1!==this.allowedExtensions.lastIndexOf(l)&&0!==s.size?i.valid.push(s):i.invalid.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i},t}();Ne.ɵfac=function(t){return new(t||Ne)},Ne.ɵdir=e.ɵɵdefineDirective({type:Ne,selectors:[["","igoDragAndDrop",""]],hostVars:2,hostBindings:function(t,n){1&t&&e.ɵɵlistener("dragover",(function(t){return n.onDragOver(t)}))("dragleave",(function(t){return n.onDragLeave(t)}))("drop",(function(t){return n.onDrop(t)})),2&t&&e.ɵɵstyleProp("background",n.background)},inputs:{allowedExtensions:"allowedExtensions"},outputs:{filesDropped:"filesDropped",filesInvalid:"filesInvalid"}});var Le=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Le.ɵmod=e.ɵɵdefineNgModule({type:Le}),Le.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Le)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Le,{declarations:[Ne],exports:[Ne]});var He=function(){function t(t){this.componentFactory=t,this.subscriptions=[],this.inputs={},this.inputs$$={},this.subscribers={}}return t.prototype.setTarget=function(t){this.target=t,this.componentRef=t.createComponent(this.componentFactory),this.updateInputs(this.inputs),this.updateSubscribers(this.subscribers)},t.prototype.destroy=function(){void 0!==this.target&&this.target.clear(),void 0!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=void 0),this.unobserveAllInputs(),this.unsubscribeAll()},t.prototype.updateInputs=function(t){var e=this;if(this.inputs=t,void 0!==this.componentRef){var n=this.componentRef.instance;this.componentFactory.inputs.forEach((function(o){var i=o.propName;e.unobserveInput(i);var r=t[i];t.hasOwnProperty(i)&&(r instanceof d.Observable?e.observeInput(i,r):e.setInputValue(n,i,r))})),"function"==typeof n.onUpdateInputs&&n.onUpdateInputs()}},t.prototype.setInputValue=function(t,e,n){if(n!==t[e]){var o=Object.getPrototypeOf(t),i=Object.getOwnPropertyDescriptor(o,e);void 0!==i&&void 0!==i.set?i.set.call(t,n):t[e]=n}},t.prototype.updateSubscribers=function(t){var e=this;if(this.subscribers=t,void 0!==this.componentRef){var n=this.componentRef.instance;this.componentFactory.outputs.forEach((function(o){var i=o.propName;if(t.hasOwnProperty(i)){var r=n[i],a=t[i];Array.isArray(a)?a.forEach((function(t){e.subscriptions.push(r.subscribe(t))})):e.subscriptions.push(r.subscribe(a))}}))}},t.prototype.observeInput=function(t,e){var n=this;this.inputs$$[t]=e.subscribe((function(e){var o=n.componentRef.instance;n.setInputValue(o,t,e),"function"==typeof o.onUpdateInputs&&o.onUpdateInputs()}))},t.prototype.unobserveInput=function(t){void 0!==this.inputs$$[t]&&(this.inputs$$[t].unsubscribe(),this.inputs$$[t]=void 0)},t.prototype.unobserveAllInputs=function(){Object.values(this.inputs$$).forEach((function(t){void 0!==t&&t.unsubscribe()})),this.inputs$$={}},t.prototype.unsubscribeAll=function(){this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions=[]},t}(),Je=function(){function t(t){this.resolver=t}return t.prototype.create=function(t){var e=this.resolver.resolveComponentFactory(t);return new He(e)},t}();Je.ɵfac=function(t){return new(t||Je)(e.ɵɵinject(e.ComponentFactoryResolver))},Je.ɵprov=e.ɵɵdefineInjectable({token:Je,factory:Je.ɵfac,providedIn:"root"});var qe=["target"];function ze(t,e){}var Ke=function(){function t(t,e){this.dynamicComponentService=t,this.cdRef=e,this.inputs={},this.subscribers={}}return t.prototype.ngOnChanges=function(t){var e=t.component,n=t.inputs,o=t.subscribers,i=h.ObjectUtils.objectsAreEquivalent;if(e&&e.currentValue!==e.previousValue)this.createComponent(e.currentValue);else{var r=n&&i(n.currentValue||{},n.previousValue||{}),a=o&&i(o.currentValue||{},o.previousValue||{});!1===r&&this.updateInputs(),!1===a&&this.updateSubscribers()}this.cdRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.dynamicComponent&&this.dynamicComponent.destroy()},t.prototype.createComponent=function(t){void 0!==this.dynamicComponent&&this.dynamicComponent.destroy(),this.dynamicComponent=t instanceof He?t:this.dynamicComponentService.create(t),this.renderComponent()},t.prototype.renderComponent=function(){this.updateInputs(),this.updateSubscribers(),this.dynamicComponent.setTarget(this.target)},t.prototype.updateInputs=function(){this.dynamicComponent.updateInputs(this.inputs)},t.prototype.updateSubscribers=function(){this.dynamicComponent.updateSubscribers(this.subscribers)},t}();Ke.ɵfac=function(t){return new(t||Ke)(e.ɵɵdirectiveInject(Je),e.ɵɵdirectiveInject(e.ChangeDetectorRef))},Ke.ɵcmp=e.ɵɵdefineComponent({type:Ke,selectors:[["igo-dynamic-outlet"]],viewQuery:function(t,n){var o;(1&t&&e.ɵɵstaticViewQuery(qe,!0,e.ViewContainerRef),2&t)&&(e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.target=o.first))},inputs:{component:"component",inputs:"inputs",subscribers:"subscribers"},features:[e.ɵɵNgOnChangesFeature],decls:2,vars:0,consts:[["target",""]],template:function(t,n){1&t&&e.ɵɵtemplate(0,ze,0,0,"ng-template",null,0,e.ɵɵtemplateRefExtractor)},styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}"],changeDetection:0});var Ue=function(){};Ue.ɵmod=e.ɵɵdefineNgModule({type:Ue}),Ue.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ue)},imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ue,{declarations:[Ke],imports:[n.CommonModule],exports:[Ke]});var We=function(){};We.ɵmod=e.ɵɵdefineNgModule({type:We}),We.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||We)},providers:[Je],imports:[[n.CommonModule,Ue],Ue]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(We,{imports:[n.CommonModule,Ue],exports:[Ue]});var Qe=["flexibleMain"],Ge=["*",[["","igoFlexibleFill",""]]],Ye=function(){function t(t,e){this.el=t,this.mediaService=e,this._initial="0",this._collapsed="0",this._expanded="100%",this._initialMobile=this.expanded,this._collapsedMobile=this.collapsed,this._expandedMobile=this.expanded,this._direction="column",this._state="initial"}return Object.defineProperty(t.prototype,"initial",{get:function(){return this._initial},set:function(t){this._initial=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){this._collapsed=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){this._expanded=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"initialMobile",{get:function(){return this._initialMobile},set:function(t){this._initialMobile=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsedMobile",{get:function(){return this._collapsedMobile},set:function(t){this._collapsedMobile=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expandedMobile",{get:function(){return this._expandedMobile},set:function(t){this._expandedMobile=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){var n=this,o={initial:this.initial,collapsed:this.collapsed,expanded:this.expanded};this.mediaService.isMobile()&&Object.assign(o,{initial:this.initialMobile,collapsed:this.collapsedMobile,expanded:this.expandedMobile});var i=o[e];void 0!==i&&(this.setSize(i),setTimeout((function(){n._state=e}),t.transitionTime))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.el.nativeElement.className+=this.direction,this.mediaService$$=this.mediaService.media$.subscribe((function(e){return t.state=t.state}))},t.prototype.ngOnDestroy=function(){this.mediaService$$&&this.mediaService$$.unsubscribe()},t.prototype.setSize=function(t){this._state="transition","column"===this.direction?this.main.nativeElement.style.height=t:"row"===this.direction&&(this.main.nativeElement.style.width=t)},t}();Ye.transitionTime=250,Ye.ɵfac=function(t){return new(t||Ye)(e.ɵɵdirectiveInject(e.ElementRef),e.ɵɵdirectiveInject(u.MediaService))},Ye.ɵcmp=e.ɵɵdefineComponent({type:Ye,selectors:[["igo-flexible"]],viewQuery:function(t,n){var o;(1&t&&e.ɵɵstaticViewQuery(Qe,!0),2&t)&&(e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.main=o.first))},inputs:{initial:"initial",collapsed:"collapsed",expanded:"expanded",initialMobile:"initialMobile",collapsedMobile:"collapsedMobile",expandedMobile:"expandedMobile",direction:"direction",state:"state"},ngContentSelectors:["*","[igoFlexibleFill]"],decls:8,vars:4,consts:[["flexibleMain",""],[1,"igo-container"],[1,"igo-flexible-fill"]],template:function(t,n){1&t&&(e.ɵɵprojectionDef(Ge),e.ɵɵelementStart(0,"div",null,0),e.ɵɵelementStart(2,"div",1),e.ɵɵprojection(3),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementStart(4,"div",2),e.ɵɵelementStart(5,"div"),e.ɵɵelementStart(6,"div",1),e.ɵɵprojection(7,1),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&e.ɵɵclassMapInterpolate2("igo-flexible-main ",n.state," ",n.direction,"")},styles:["[_nghost-%COMP%]{display:flex;height:100%;width:100%}.column[_nghost-%COMP%]{flex-direction:column}.row[_nghost-%COMP%]{flex-direction:row}.igo-flexible-main[_ngcontent-%COMP%]{flex:0 0 auto;overflow:hidden}.igo-flexible-main.column[_ngcontent-%COMP%]{transition:height .25s ease-in}.igo-flexible-main.row[_ngcontent-%COMP%]{transition:width .25s ease-in}.igo-flexible-fill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{bottom:0;left:0;position:absolute;right:0;top:0}.igo-container[_ngcontent-%COMP%]{height:100%;margin:0 5px;overflow:hidden;padding:5px 0;position:relative;width:calc(100% - 10px)} .igo-flexible-fill{flex:1 1 auto;overflow:hidden;position:relative} .igo-content{height:100%;overflow:auto;width:100%} igo-panel{height:100%}"]});var Xe=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();function Ze(t){if(t.validator){var e=t.validator({});if(e&&e.required)return!0}return!!t.controls&&void 0!==Object.keys(t.controls).find((function(e){return Ze(t.controls[e])}))}function tn(){return{required:"igo.common.form.errors.required"}}function en(t,e){var n=t.errors||{},o=Object.keys(n).map((function(t){return e[t]})).filter((function(t){return void 0!==t}));return o.length>0?o[0]:""}function nn(t){return t.groups.reduce((function(t,e){return t.concat(e.fields)}),[].concat(t.fields))}Xe.ɵmod=e.ɵɵdefineNgModule({type:Xe}),Xe.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Xe)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Xe,{declarations:[Ye],exports:[Ye]});var on=["buttons"],rn=["*",[["","formButtons",""]]],an=function(t){return{"igo-form-body-with-buttons":t}},sn=function(){function t(){this.autocomplete="off",this.submitForm=new e.EventEmitter}return Object.defineProperty(t.prototype,"hasButtons",{get:function(){return 0!==this.buttons.nativeElement.children.length},enumerable:!1,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=t.formData;e&&e.currentValue!==e.previousValue&&(void 0===e.currentValue?this.clear():this.setData(e.currentValue))},t.prototype.onSubmit=function(){this.submitForm.emit(this.getData())},t.prototype.getData=function(){var t=this,e={};return nn(this.form).forEach((function(n){t.updateDataWithFormField(e,n)})),e},t.prototype.setData=function(t){this.form.fields.forEach((function(e){e.control.setValue(p(t,e.name).safeObject)})),this.form.groups.forEach((function(e){e.fields.forEach((function(e){e.control.setValue(p(t,e.name).safeObject)}))}))},t.prototype.updateDataWithFormField=function(t,e){var n=e.control;n.disabled||(t[e.name]=n.value)},t.prototype.clear=function(){this.form.control.reset()},t}();sn.ɵfac=function(t){return new(t||sn)},sn.ɵcmp=e.ɵɵdefineComponent({type:sn,selectors:[["igo-form"]],viewQuery:function(t,n){var o;(1&t&&e.ɵɵstaticViewQuery(on,!0),2&t)&&(e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.buttons=o.first))},inputs:{form:"form",formData:"formData",autocomplete:"autocomplete"},outputs:{submitForm:"submitForm"},features:[e.ɵɵNgOnChangesFeature],ngContentSelectors:["*","[formButtons]"],decls:7,vars:5,consts:[[3,"autocomplete","formGroup","ngSubmit"],[1,"igo-form-body",3,"ngClass"],[1,"igo-form-content"],[1,"igo-form-buttons"],["buttons",""]],template:function(t,n){1&t&&(e.ɵɵprojectionDef(rn),e.ɵɵelementStart(0,"form",0),e.ɵɵlistener("ngSubmit",(function(){return n.onSubmit()})),e.ɵɵelementStart(1,"div",1),e.ɵɵelementStart(2,"div",2),e.ɵɵprojection(3),e.ɵɵelementEnd(),e.ɵɵelementStart(4,"div",3,4),e.ɵɵprojection(6,1),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&(e.ɵɵproperty("autocomplete",n.autocomplete)("formGroup",n.form.control),e.ɵɵadvance(1),e.ɵɵproperty("ngClass",e.ɵɵpureFunction1(3,an,n.hasButtons)))},directives:[j.ɵangular_packages_forms_forms_y,j.NgControlStatusGroup,j.FormGroupDirective,n.NgClass],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100%}.igo-form-body[_ngcontent-%COMP%], .igo-form-content[_ngcontent-%COMP%], form[_ngcontent-%COMP%]{height:100%}.igo-form-body-with-buttons[_ngcontent-%COMP%] .igo-form-content[_ngcontent-%COMP%]{height:calc(100% - 56px)}.igo-form-content[_ngcontent-%COMP%]{display:flex}"],changeDetection:0});var ln=function(){};ln.ɵmod=e.ɵɵdefineNgModule({type:ln}),ln.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ln)},imports:[[n.CommonModule,j.FormsModule,j.ReactiveFormsModule],j.FormsModule,j.ReactiveFormsModule]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ln,{declarations:[sn],imports:[n.CommonModule,j.FormsModule,j.ReactiveFormsModule],exports:[sn,j.FormsModule,j.ReactiveFormsModule]});var cn=function(){function t(t){this.formBuilder=t}return t.prototype.form=function(t,e){var n=this.formBuilder.group({});return t.forEach((function(t){n.addControl(t.name,t.control)})),e.forEach((function(t){n.addControl(t.name,t.control)})),{fields:t,groups:e,control:n}},t.prototype.group=function(t,e){var n=t.options||{},o=this.formBuilder.group({});e.forEach((function(t){o.addControl(t.name,t.control)}));var i=this.getValidators(n.validator);return o.setValidators(i),Object.assign({},t,{fields:e,control:o})},t.prototype.field=function(t){var e=t.options||{},n={value:"",disabled:e.disabled},o=this.formBuilder.control(n),i=this.getValidators(e.validator);return o.setValidators(i),Object.assign({type:"text"},t,{control:o})},t.prototype.extendFieldConfig=function(t,e){var n=Object.assign({},t.options||{},e.options||{}),o=Object.assign({},t.inputs||{},e.inputs||{}),i=Object.assign({},t.subscribers||{},e.subscribers||{});return Object.assign({},t,{options:n,inputs:o,subscribers:i})},t.prototype.getValidators=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.getValidator(t)})):this.getValidator(t)},t.prototype.getValidator=function(t){if("string"!=typeof t)return t;var e=t.match(/^([a-zA-Z]{3,15})\((.{0,20})\)$/);if(!e)return j.Validators[t];var n=e[1],o=e[2];return j.Validators[n](o)},t}();cn.ɵfac=function(t){return new(t||cn)(e.ɵɵinject(j.FormBuilder))},cn.ɵprov=e.ɵɵdefineInjectable({token:cn,factory:cn.ɵfac,providedIn:"root"});var un=function(){function t(){}return t.register=function(e,n){t.fields[e]=n},t.prototype.getFieldByType=function(e){return t.fields[e]},t}();function pn(t){return function(e){un.register(t,e)}}function dn(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵelement(1,"igo-dynamic-outlet",1),e.ɵɵelementContainerEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("component",o.getFieldComponent())("inputs",o.getFieldInputs())("subscribers",o.getFieldSubscribers())}}un.fields={},un.ɵfac=function(t){return new(t||un)},un.ɵprov=e.ɵɵdefineInjectable({token:un,factory:un.ɵfac,providedIn:"root"});var fn=function(){function t(t){this.formFieldService=t,this.fieldInputs=void 0,this.fieldSubscribers=void 0}return Object.defineProperty(t.prototype,"fieldOptions",{get:function(){return this.field.options||{}},enumerable:!1,configurable:!0}),t.prototype.getFieldComponent=function(){return this.formFieldService.getFieldByType(this.field.type||"text")},t.prototype.getFieldInputs=function(){if(void 0!==this.fieldInputs)return this.fieldInputs;var t=this.fieldOptions.errors||{};return this.fieldInputs=Object.assign({placeholder:this.field.title,disableSwitch:this.fieldOptions.disableSwitch||!1},Object.assign({},this.field.inputs||{}),{formControl:this.field.control,errors:Object.assign({},{required:"igo.common.form.errors.required"},t)}),this.fieldInputs},t.prototype.getFieldSubscribers=function(){return void 0!==this.fieldSubscribers||(this.fieldSubscribers=Object.assign({},this.field.subscribers||{})),this.fieldSubscribers},t}();function hn(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-option",4),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=n.$implicit;e.ɵɵproperty("value",o.value),e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",o.title," ")}}function gn(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"mat-icon",5),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onDisableSwitchClick()})),e.ɵɵpipe(1,"async"),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("svgIcon",!0===e.ɵɵpipeBind1(1,1,i.disabled$)?"checkbox-blank-outline":"checkbox-marked-outline")}}function mn(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-error"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,1,o.getErrorMessage()))}}function vn(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"mat-icon",3),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onDisableSwitchClick()})),e.ɵɵpipe(1,"async"),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("svgIcon",!0===e.ɵɵpipeBind1(1,1,i.disabled$)?"checkbox-blank-outline":"checkbox-marked-outline")}}function yn(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-error"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,1,o.getErrorMessage()))}}function bn(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"mat-icon",3),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onDisableSwitchClick()})),e.ɵɵpipe(1,"async"),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("svgIcon",!0===e.ɵɵpipeBind1(1,1,i.disabled$)?"checkbox-blank-outline":"checkbox-marked-outline")}}function Cn(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-error"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,1,o.getErrorMessage()))}}fn.ɵfac=function(t){return new(t||fn)(e.ɵɵdirectiveInject(un))},fn.ɵcmp=e.ɵɵdefineComponent({type:fn,selectors:[["igo-form-field"]],inputs:{field:"field"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"component","inputs","subscribers"]],template:function(t,n){1&t&&e.ɵɵtemplate(0,dn,2,3,"ng-container",0),2&t&&e.ɵɵproperty("ngIf",void 0!==n.field)},directives:[n.NgIf,Ke],styles:["mat-form-field{width:100%} .igo-form-disable-switch{margin-right:8px}"],changeDetection:0}),t.FormFieldSelectComponent=function(){function t(){this.disabled$=new d.BehaviorSubject(!1),this.choices$=new d.BehaviorSubject([]),this.disableSwitch=!1}return Object.defineProperty(t.prototype,"choices",{get:function(){return this.choices$.value},set:function(t){this.choices$.next(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return Ze(this.formControl)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.disabled$.next(this.formControl.disabled)},t.prototype.getErrorMessage=function(){return en(this.formControl,this.errors)},t.prototype.onDisableSwitchClick=function(){this.toggleDisabled()},t.prototype.toggleDisabled=function(){var t=!this.disabled$.value;!0===t?this.formControl.disable():this.formControl.enable(),this.disabled$.next(t)},t}(),t.FormFieldSelectComponent.ɵfac=function(e){return new(e||t.FormFieldSelectComponent)},t.FormFieldSelectComponent.ɵcmp=e.ɵɵdefineComponent({type:t.FormFieldSelectComponent,selectors:[["igo-form-field-select"]],inputs:{choices:"choices",formControl:"formControl",placeholder:"placeholder",errors:"errors",disableSwitch:"disableSwitch"},decls:6,vars:8,consts:[[3,"required","placeholder","formControl"],[3,"value",4,"ngFor","ngForOf"],["class","igo-form-disable-switch","matPrefix","",3,"svgIcon","click",4,"ngIf"],[4,"ngIf"],[3,"value"],["matPrefix","",1,"igo-form-disable-switch",3,"svgIcon","click"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"mat-form-field"),e.ɵɵelementStart(1,"mat-select",0),e.ɵɵtemplate(2,hn,2,2,"mat-option",1),e.ɵɵpipe(3,"async"),e.ɵɵelementEnd(),e.ɵɵtemplate(4,gn,2,3,"mat-icon",2),e.ɵɵtemplate(5,mn,3,3,"mat-error",3),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("required",n.required)("placeholder",n.placeholder)("formControl",n.formControl),e.ɵɵadvance(1),e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(3,6,n.choices$)),e.ɵɵadvance(2),e.ɵɵproperty("ngIf",!0===n.disableSwitch),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.formControl.errors))},directives:[g.MatFormField,m.MatSelect,j.RequiredValidator,j.NgControlStatus,j.FormControlDirective,n.NgForOf,n.NgIf,v.MatOption,a.MatIcon,g.MatPrefix,g.MatError],pipes:[n.AsyncPipe,S.TranslatePipe],encapsulation:2,changeDetection:0}),t.FormFieldSelectComponent=N([pn("select")],t.FormFieldSelectComponent),t.FormFieldTextComponent=function(){function t(){this.disabled$=new d.BehaviorSubject(!1),this.disableSwitch=!1}return Object.defineProperty(t.prototype,"required",{get:function(){return Ze(this.formControl)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.disabled$.next(this.formControl.disabled)},t.prototype.getErrorMessage=function(){return en(this.formControl,this.errors)},t.prototype.onDisableSwitchClick=function(){this.toggleDisabled()},t.prototype.toggleDisabled=function(){var t=!this.disabled$.value;!0===t?this.formControl.disable():this.formControl.enable(),this.disabled$.next(t)},t}(),t.FormFieldTextComponent.ɵfac=function(e){return new(e||t.FormFieldTextComponent)},t.FormFieldTextComponent.ɵcmp=e.ɵɵdefineComponent({type:t.FormFieldTextComponent,selectors:[["igo-form-field-text"]],inputs:{formControl:"formControl",placeholder:"placeholder",errors:"errors",disableSwitch:"disableSwitch"},decls:4,vars:5,consts:[["matInput","",3,"required","placeholder","formControl"],["class","igo-form-disable-switch","matPrefix","",3,"svgIcon","click",4,"ngIf"],[4,"ngIf"],["matPrefix","",1,"igo-form-disable-switch",3,"svgIcon","click"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"mat-form-field"),e.ɵɵelement(1,"input",0),e.ɵɵtemplate(2,vn,2,3,"mat-icon",1),e.ɵɵtemplate(3,yn,3,3,"mat-error",2),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("required",n.required)("placeholder",n.placeholder)("formControl",n.formControl),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!0===n.disableSwitch),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.formControl.errors))},directives:[g.MatFormField,P.MatInput,j.DefaultValueAccessor,j.RequiredValidator,j.NgControlStatus,j.FormControlDirective,n.NgIf,a.MatIcon,g.MatPrefix,g.MatError],pipes:[n.AsyncPipe,S.TranslatePipe],encapsulation:2,changeDetection:0}),t.FormFieldTextComponent=N([pn("text")],t.FormFieldTextComponent),t.FormFieldTextareaComponent=function(){function t(){this.disabled$=new d.BehaviorSubject(!1),this.disableSwitch=!1}return Object.defineProperty(t.prototype,"required",{get:function(){return Ze(this.formControl)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.disabled$.next(this.formControl.disabled)},t.prototype.getErrorMessage=function(){return en(this.formControl,this.errors)},t.prototype.onDisableSwitchClick=function(){this.toggleDisabled()},t.prototype.toggleDisabled=function(){var t=!this.disabled$.value;!0===t?this.formControl.disable():this.formControl.enable(),this.disabled$.next(t)},t}(),t.FormFieldTextareaComponent.ɵfac=function(e){return new(e||t.FormFieldTextareaComponent)},t.FormFieldTextareaComponent.ɵcmp=e.ɵɵdefineComponent({type:t.FormFieldTextareaComponent,selectors:[["igo-form-field-textarea"]],inputs:{formControl:"formControl",placeholder:"placeholder",errors:"errors",disableSwitch:"disableSwitch"},decls:5,vars:5,consts:[["matInput","",3,"required","placeholder","formControl"],["class","igo-form-disable-switch","matPrefix","",3,"svgIcon","click",4,"ngIf"],[4,"ngIf"],["matPrefix","",1,"igo-form-disable-switch",3,"svgIcon","click"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"mat-form-field"),e.ɵɵelementStart(1,"textarea",0),e.ɵɵtext(2," "),e.ɵɵelementEnd(),e.ɵɵtemplate(3,bn,2,3,"mat-icon",1),e.ɵɵtemplate(4,Cn,3,3,"mat-error",2),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("required",n.required)("placeholder",n.placeholder)("formControl",n.formControl),e.ɵɵadvance(2),e.ɵɵproperty("ngIf",!0===n.disableSwitch),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.formControl.errors))},directives:[g.MatFormField,P.MatInput,j.DefaultValueAccessor,j.RequiredValidator,j.NgControlStatus,j.FormControlDirective,n.NgIf,a.MatIcon,g.MatPrefix,g.MatError],pipes:[n.AsyncPipe,S.TranslatePipe],encapsulation:2,changeDetection:0}),t.FormFieldTextareaComponent=N([pn("textarea")],t.FormFieldTextareaComponent);var xn=function(){};function Mn(t,n){if(1&t&&(e.ɵɵelementStart(0,"div",5),e.ɵɵelement(1,"igo-form-field",6),e.ɵɵelementEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext(2);e.ɵɵproperty("ngClass",i.getFieldNgClass(o)),e.ɵɵadvance(1),e.ɵɵproperty("field",o)}}function wn(t,n){if(1&t&&(e.ɵɵelementStart(0,"div",3),e.ɵɵtemplate(1,Mn,2,2,"div",4),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngForOf",o.group.fields)}}function Sn(t,n){if(1&t&&(e.ɵɵelementStart(0,"mat-error"),e.ɵɵtext(1),e.ɵɵpipe(2,"translate"),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵtextInterpolate(e.ɵɵpipeBind1(2,1,o.getErrorMessage()))}}xn.ɵmod=e.ɵɵdefineNgModule({type:xn}),xn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||xn)},imports:[[n.CommonModule,j.FormsModule,j.ReactiveFormsModule,a.MatIconModule,g.MatFormFieldModule,P.MatInputModule,m.MatSelectModule,u.IgoLanguageModule,Ue]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(xn,{declarations:[fn,t.FormFieldSelectComponent,t.FormFieldTextComponent,t.FormFieldTextareaComponent],imports:[n.CommonModule,j.FormsModule,j.ReactiveFormsModule,a.MatIconModule,g.MatFormFieldModule,P.MatInputModule,m.MatSelectModule,u.IgoLanguageModule,Ue],exports:[fn,t.FormFieldSelectComponent,t.FormFieldTextComponent,t.FormFieldTextareaComponent]});var In=function(){function t(){}return Object.defineProperty(t.prototype,"formControl",{get:function(){return this.group.control},enumerable:!1,configurable:!0}),t.prototype.getFieldColSpan=function(t){var e=2,n=t.options||{};return n.cols&&n.cols>0&&(e=Math.min(n.cols,2)),e},t.prototype.getFieldNgClass=function(t){var e;return(e={})["igo-form-field-colspan-"+this.getFieldColSpan(t)]=!0,e},t.prototype.getErrorMessage=function(){var t=this.group.options||{};return en(this.formControl,t.errors||{})},t}();In.ɵfac=function(t){return new(t||In)},In.ɵcmp=e.ɵɵdefineComponent({type:In,selectors:[["igo-form-group"]],inputs:{group:"group",errors:"errors"},ngContentSelectors:["*"],decls:4,vars:2,consts:[["class","igo-form-group-fields",4,"ngIf"],[1,"igo-form-group-extra-content"],[4,"ngIf"],[1,"igo-form-group-fields"],["class","igo-form-field-wrapper",3,"ngClass",4,"ngFor","ngForOf"],[1,"igo-form-field-wrapper",3,"ngClass"],[3,"field"]],template:function(t,n){1&t&&(e.ɵɵprojectionDef(),e.ɵɵtemplate(0,wn,2,1,"div",0),e.ɵɵelementStart(1,"div",1),e.ɵɵprojection(2),e.ɵɵelementEnd(),e.ɵɵtemplate(3,Sn,3,3,"mat-error",2)),2&t&&(e.ɵɵproperty("ngIf",n.group&&n.group.fields.length>0),e.ɵɵadvance(3),e.ɵɵproperty("ngIf",n.formControl.errors))},directives:[n.NgIf,n.NgForOf,n.NgClass,fn,g.MatError],pipes:[S.TranslatePipe],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto;padding:10px 5px;width:100%}.igo-form-field-wrapper[_ngcontent-%COMP%]{display:inline-block;padding:0 5px}.igo-form-field-colspan-2[_ngcontent-%COMP%]{width:100%}.igo-form-field-colspan-1[_ngcontent-%COMP%]{width:50%}"],changeDetection:0});var On=function(){};On.ɵmod=e.ɵɵdefineNgModule({type:On}),On.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||On)},imports:[[n.CommonModule,g.MatFormFieldModule,u.IgoLanguageModule,xn]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(On,{declarations:[In],imports:[n.CommonModule,g.MatFormFieldModule,u.IgoLanguageModule,xn],exports:[In]});var Tn=function(){};Tn.ɵmod=e.ɵɵdefineNgModule({type:Tn}),Tn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Tn)},providers:[cn,un],imports:[[n.CommonModule,On,xn],ln,On,xn]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Tn,{imports:[n.CommonModule,On,xn],exports:[ln,On,xn]});var $n=function(){};$n.ɵmod=e.ɵɵdefineNgModule({type:$n}),$n.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||$n)},imports:[[n.CommonModule,j.FormsModule,m.MatSelectModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope($n,{declarations:[ct],imports:[n.CommonModule,j.FormsModule,m.MatSelectModule],exports:[ct]});var En=function(){function t(){}return t.prototype.onDrop=function(t){t.preventDefault(),t.stopPropagation()},t}();En.ɵfac=function(t){return new(t||En)},En.ɵdir=e.ɵɵdefineDirective({type:En,selectors:[["","igoStopDropPropagation",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("drop",(function(t){return n.onDrop(t)}))}});var Pn=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Pn.ɵmod=e.ɵɵdefineNgModule({type:Pn}),Pn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Pn)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Pn,{declarations:[En,ut],exports:[En,ut]});var jn=function(){};jn.ɵmod=e.ɵɵdefineNgModule({type:jn}),jn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||jn)},imports:[[x.MatPaginatorModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(jn,{declarations:[dt],imports:[x.MatPaginatorModule],exports:[dt]});var kn=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();kn.ɵmod=e.ɵɵdefineNgModule({type:kn}),kn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||kn)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(kn,{declarations:[ft],exports:[ft]});var Fn=function(){};Fn.ɵmod=e.ɵɵdefineNgModule({type:Fn}),Fn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Fn)},imports:[[n.CommonModule,y.MatTableModule,b.MatSortModule,a.MatIconModule,o.MatButtonModule,r.MatCheckboxModule,x.MatPaginatorModule,Pn,Re,jn,kn,u.IgoLanguageModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Fn,{declarations:[te,pt],imports:[n.CommonModule,y.MatTableModule,b.MatSortModule,a.MatIconModule,o.MatButtonModule,r.MatCheckboxModule,x.MatPaginatorModule,Pn,Re,jn,kn,u.IgoLanguageModule],exports:[te]});var _n=function(){};_n.ɵmod=e.ɵɵdefineNgModule({type:_n}),_n.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||_n)},imports:[[n.CommonModule],$n,Fn,jn]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(_n,{imports:[n.CommonModule],exports:[$n,Fn,jn]});var Dn=function(){function t(t,e){this.http=t,this.configService=e,this.jsonURL=this.getPathToConfigFile()}return t.prototype.loadConfigTour=function(){var t=this;this.getJSON().subscribe((function(e){t.allToursOptions=e}),(function(t){throw new Error("Problem with Interactive tour configuration file: interactiveTour.json not find. Check if the file and is path is set correctly.")}))},t.prototype.getPathToConfigFile=function(){return this.configService.getConfig("interactiveTour.pathToConfigFile")||"./config/interactiveTour.json"},t.prototype.getJSON=function(){return this.http.get(this.jsonURL).pipe(f.catchError((function(t){throw t.error.caught=!0,t})))},t.prototype.getTourOptionData=function(t){if(void 0!==this.allToursOptions){var e=t;return e=e.replace(/\s/g,""),this.allToursOptions[e]}},t}();Dn.ɵfac=function(t){return new(t||Dn)(e.ɵɵinject(M.HttpClient),e.ɵɵinject(u.ConfigService))},Dn.ɵprov=e.ɵɵdefineInjectable({token:Dn,factory:Dn.ɵfac});var Bn=function(){function t(t,e,n,o,i){this.configService=t,this.mediaService=e,this.languageService=n,this.interactiveTourLoader=o,this.shepherdService=i,this.nextIndex=1,this.isAppHaveTour()&&this.interactiveTourLoader.loadConfigTour()}return t.prototype.isAppHaveTour=function(){var t=this.configService.getConfig("interactiveTour.activateInteractiveTour");return void 0===t||t},t.prototype.isToolHaveTourConfig=function(t){return void 0!==this.interactiveTourLoader.getTourOptionData(t)},t.prototype.disabledTourButton=function(t){var e,n,o=this.interactiveTourLoader.getTourOptionData(t);if(null==o?void 0:o.conditions)try{for(var i=H(null==o?void 0:o.conditions),r=i.next();!r.done;r=i.next()){var a=r.value;if(null===document.querySelector(a))return!0}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return!1},t.prototype.isMobile=function(){return this.mediaService.isMobile()},t.prototype.isTourDisplayInMobile=function(){return void 0===this.configService.getConfig("interactiveTour.tourInMobile")||this.configService.getConfig("interactiveTour.tourInMobile")},t.prototype.getButtons=function(t){return"noBackButton"===t?[{classes:"shepherd-button-primary",text:this.languageService.translate.instant("igo.common.interactiveTour.nextButton"),type:"next"}]:"first"===t?[{classes:"shepherd-button-secondary",text:this.languageService.translate.instant("igo.common.interactiveTour.exitButton"),type:"cancel"},{classes:"shepherd-button-primary",text:this.languageService.translate.instant("igo.common.interactiveTour.nextButton"),type:"next"}]:"last"===t?[{classes:"shepherd-button-secondary",text:this.languageService.translate.instant("igo.common.interactiveTour.backButton"),type:"back"},{classes:"shepherd-button-primary",text:this.languageService.translate.instant("igo.common.interactiveTour.exitButton"),type:"cancel"}]:[{classes:"shepherd-button-secondary",text:this.languageService.translate.instant("igo.common.interactiveTour.backButton"),type:"back"},{classes:"shepherd-button-primary",text:this.languageService.translate.instant("igo.common.interactiveTour.nextButton"),type:"next"}]},t.prototype.getAction=function(t){return{click:"click"}[t.toLowerCase()]},t.prototype.addProgress=function(){var t=this,e=0,n=setInterval((function(){if(t.getCurrentStep()){if(t.getCurrentStep().options.attachTo.element&&!document.querySelector(t.getCurrentStep().options.attachTo.element))return t.cancel(),void clearInterval(n);var o=t.getCurrentStep().getElement();o&&o.querySelectorAll(".shepherd-content, .shepherd-text").forEach((function(t){t.classList.add("mat-typography")}));var i=o?o.querySelector(".shepherd-header"):void 0;if(e++,(i||e>21)&&clearInterval(n),i){var r=t.steps,a=document.createElement("span");a.className="shepherd-progress",a.innerText=r.indexOf(t.getCurrentStep())+1+"/"+r.length,i.insertBefore(a,o.querySelector(".shepherd-cancel-icon"))}}}),100)},t.prototype.checkNext=function(t,e,n){if(e.getCurrentStep()){if(e.getCurrentStep().options.attachTo.element&&document.querySelector(e.getCurrentStep().options.attachTo.element))return void e.complete();if(t.index===e.steps.length-1)return void e.complete();e.steps.splice(t.index,1);var o=e.steps[t.index];o.options.attachTo.element&&!document.querySelector(o.options.attachTo.element)?n.checkNext(t,e,n):(e._setupModal(),e.show(o.id))}},t.prototype.executeAction=function(t,e){if(e&&(!e.condition||!("!"===e.condition.charAt(0)&&document.querySelector(e.condition.slice(1))||"!"!==e.condition.charAt(0)&&!document.querySelector(e.condition)))){var n=document.querySelector(e.element||t.element),o=this.getAction(e.action);n&&o&&n[o]()}},t.prototype.executeActionPromise=function(t,e){var n=this;return new Promise((function(o){if(n.executeAction(t,e),e&&e.waitFor)var i=0,r=e.maxWait?e.maxWait/100:20,a=setInterval((function(){(++i>r||document.querySelector(e.waitFor))&&(clearInterval(a),o())}),100);else o()}))},t.prototype.getShepherdSteps=function(t){var e,n,o=this,i=[],r=0,a=function(e){i.push({attachTo:{element:e.element,on:e.position||t.position},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,15]}}]},beforeShowPromise:function(){return Promise.all([o.executeActionPromise(o.previousStep,o.previousStep?o.previousStep.beforeChange:void 0),o.executeActionPromise(e,e.beforeShow)])},buttons:s.getButtons(0===r?"first":r+1===t.steps.length?"last":t.steps[r].noBackButton?"noBackButton":void 0),classes:e.class,highlightClass:e.highlightClass,scrollTo:e.scrollToElement||t.scrollToElement||!0,canClickTarget:e.disableInteraction?!e.disableInteraction:void 0,title:s.languageService.translate.instant(e.title||t.title),text:[s.languageService.translate.instant(e.text)],when:{show:function(){o.executeAction(e,e.onShow)},hide:function(){o.previousStep=e,o.executeAction(e,e.onHide)}}}),r++},s=this;try{for(var l=H(t.steps),c=l.next();!c.done;c=l.next()){a(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return i},t.prototype.startTour=function(t){var e=this,n=this.interactiveTourLoader.getTourOptionData(t);this.shepherdService.defaultStepOptions={classes:n.class,highlightClass:n.highlightClass,canClickTarget:!n.disableInteraction||!n.disableInteraction,cancelIcon:{enabled:!0}};var o=this.getShepherdSteps(n);this.shepherdService.modal=!0,this.shepherdService.confirmCancel=!1,this.shepherdService.addSteps(o),this.shepherdService.tourObject.on("show",this.addProgress),this.shepherdService.tourObject.on("cancel",(function(t){e.checkNext(t,e.shepherdService.tourObject,e)})),this.shepherdService.start()},t}();Bn.ɵfac=function(t){return new(t||Bn)(e.ɵɵinject(u.ConfigService),e.ɵɵinject(u.MediaService),e.ɵɵinject(u.LanguageService),e.ɵɵinject(Dn),e.ɵɵinject(k.ShepherdService))},Bn.ɵprov=e.ɵɵdefineInjectable({token:Bn,factory:Bn.ɵfac,providedIn:"root"});var Vn=function(){function t(t){void 0===t&&(t={}),this.options=t,this.activeTool$=new d.BehaviorSubject(void 0),this.toolbar$=new d.BehaviorSubject([]),this.activeToolHistory=[],this.store=new tt([],{getKey:function(t){return t.name}}),this.setToolbar(t.toolbar),this.initStore()}return Object.defineProperty(t.prototype,"tools$",{get:function(){return this.store.entities$},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.activeTool$$.unsubscribe(),this.store.destroy()},t.prototype.getTool=function(t){return this.store.get(t)},t.prototype.getTools=function(){return this.store.all()},t.prototype.setTools=function(t){this.store.load(t)},t.prototype.getToolbar=function(){return this.toolbar$.getValue()},t.prototype.setToolbar=function(t){this.toolbar$.next(t||[])},t.prototype.activateTool=function(t,e){void 0===e&&(e={});var n=this.getTool(t);void 0!==n&&this.store.state.update(n,{active:!0,options:e},!0)},t.prototype.activatePreviousTool=function(){if(this.activeToolHistory.length<=1)this.deactivateTool();else{var t=J(this.activeToolHistory.splice(-2,2),2),e=t[0];t[1];this.activateTool(e)}},t.prototype.deactivateTool=function(){this.clearActiveToolHistory(),this.store.state.updateAll({active:!1})},t.prototype.initStore=function(){var t=this;this.store=new tt([],{getKey:function(t){return t.name}}),this.activeTool$$=this.store.stateView.firstBy$((function(t){return!0===t.state.active})).subscribe((function(e){if(void 0!==e){var n=e.entity,o=Object.assign({},n.options||{},e.state.options||{});t.setActiveTool(Object.assign({},n,{options:o}))}else t.setActiveTool(void 0)}))},t.prototype.setActiveTool=function(t){this.activeTool$.next(t),void 0===t?this.clearActiveToolHistory():this.activeToolHistory=this.activeToolHistory.filter((function(e){return e!==t.name})).concat([t.name])},t.prototype.clearActiveToolHistory=function(){this.activeToolHistory=[]},t}(),An=function(){function t(){this.toolbox=new Vn,this.toolbox.setTools(this.getTools())}return t.register=function(e){t.tools[e.name]=e},t.prototype.getTool=function(e){return t.tools[e]},t.prototype.getTools=function(){return Object.values(t.tools)},t}();function Rn(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"button",1),e.ɵɵlistener("click",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().startInteractiveTour()})),e.ɵɵelementStart(1,"span",2),e.ɵɵtext(2),e.ɵɵpipe(3,"translate"),e.ɵɵpipe(4,"translate"),e.ɵɵpipe(5,"async"),e.ɵɵelementEnd(),e.ɵɵelement(6,"mat-icon",3),e.ɵɵpipe(7,"translate"),e.ɵɵpipe(8,"translate"),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵproperty("ngClass",i.getClass())("disabled",i.disabledTourButton),e.ɵɵadvance(2),e.ɵɵtextInterpolate2("",e.ɵɵpipeBind1(3,5,"igo.common.interactiveTour.buttonTitle")," ",e.ɵɵpipeBind1(4,7,e.ɵɵpipeBind1(5,9,i.discoverTitleInLocale$)),""),e.ɵɵadvance(4),e.ɵɵproperty("matTooltip",i.disabledTourButton?e.ɵɵpipeBind1(7,11,"igo.common.interactiveTour.disaledTooltipTourToolButton"):e.ɵɵpipeBind1(8,13,"igo.common.interactiveTour.tooltipTourToolButton"))}}An.tools={},An.ɵfac=function(t){return new(t||An)},An.ɵprov=e.ɵɵdefineInjectable({token:An,factory:An.ɵfac,providedIn:"root"});var Nn=function(){function t(t,e){this.interactiveTourService=t,this.toolService=e,this.tourToStart="",this.discoverTitleInLocale$=d.of("IGO")}return t.prototype.getClass=function(){return{"tour-button-tool-icon":"icon"===this.styleButton,"tour-button-tool":"raised"===this.styleButton}},Object.defineProperty(t.prototype,"toolbox",{get:function(){return this.toolService.toolbox},enumerable:!1,configurable:!0}),t.prototype.getTourToStart=function(){return this.tourToStart?this.tourToStart:this.activeToolName},Object.defineProperty(t.prototype,"activeToolName",{get:function(){return this.toolbox?this.isActiveTool?this.toolbox.activeTool$.getValue().name:"global":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveTool",{get:function(){return this.toolbox?void 0!==this.toolbox.activeTool$.getValue():void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isToolHaveTour",{get:function(){return!("about"===this.activeToolName&&!this.tourToStart)&&this.interactiveTourService.isToolHaveTourConfig(this.getTourToStart())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTourButton",{get:function(){return!1!==this.isToolHaveTour&&(!this.interactiveTourService.isMobile()||!1!==this.isTourDisplayInMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTourDisplayInMobile",{get:function(){return this.interactiveTourService.isTourDisplayInMobile()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledTourButton",{get:function(){return this.interactiveTourService.disabledTourButton(this.activeToolName)},enumerable:!1,configurable:!0}),t.prototype.startInteractiveTour=function(){var t=this.getTourToStart();t&&this.interactiveTourService.startTour(t)},t}();Nn.ɵfac=function(t){return new(t||Nn)(e.ɵɵdirectiveInject(Bn),e.ɵɵdirectiveInject(An))},Nn.ɵcmp=e.ɵɵdefineComponent({type:Nn,selectors:[["igo-interactive-tour"]],inputs:{tourToStart:"tourToStart",styleButton:"styleButton",discoverTitleInLocale$:"discoverTitleInLocale$"},decls:1,vars:1,consts:[["mat-raised-button","","tooltip-position","below","matTooltipShowDelay","500",3,"ngClass","disabled","click",4,"ngIf"],["mat-raised-button","","tooltip-position","below","matTooltipShowDelay","500",3,"ngClass","disabled","click"],[1,"interactive-tour-button-title"],["svgIcon","presentation-play",3,"matTooltip"]],template:function(t,n){1&t&&e.ɵɵtemplate(0,Rn,9,15,"button",0),2&t&&e.ɵɵproperty("ngIf",n.showTourButton)},directives:[n.NgIf,o.MatButton,n.NgClass,a.MatIcon,c.MatTooltip],pipes:[S.TranslatePipe,n.AsyncPipe],styles:[".shepherd-has-title .shepherd-content .shepherd-header{padding:.5em .75em}.shepherd-title{font-weight:revert!important;margin:0!important}.shepherd-progress{color:#737373;margin-right:15px}.shepherd-text{font-size:14px!important}.shepherd-element{border:1px solid #474747;box-shadow:4px 5px hsla(0,0%,39.6%,.6)}"],encapsulation:2});var Ln=function(){};Ln.ɵmod=e.ɵɵdefineNgModule({type:Ln}),Ln.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ln)},providers:[Bn,Dn],imports:[[n.CommonModule,a.MatIconModule,o.MatButtonModule,c.MatTooltipModule,u.IgoLanguageModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ln,{declarations:[Nn],imports:[n.CommonModule,a.MatIconModule,o.MatButtonModule,c.MatTooltipModule,u.IgoLanguageModule],exports:[Nn]});var Hn=function(){function t(){}return t.prototype.transform=function(t,e){var n=[];return Object.getOwnPropertyNames(t).forEach((function(e){return n.push({key:e,value:t[e]})})),n},t}();Hn.ɵfac=function(t){return new(t||Hn)},Hn.ɵpipe=e.ɵɵdefinePipe({name:"keyvalue",type:Hn,pure:!0});var Jn=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();function qn(t,n){1&t&&e.ɵɵelementContainer(0)}function zn(t,n){1&t&&e.ɵɵelementContainer(0)}Jn.ɵmod=e.ɵɵdefineNgModule({type:Jn}),Jn.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Jn)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Jn,{declarations:[Hn],exports:[Hn]});var Kn=function(t,e){return{obj:t,baseKey:e}};function Un(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,zn,1,0,"ng-container",2),e.ɵɵelementContainerEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit,i=e.ɵɵnextContext().baseKey,r=e.ɵɵnextContext(),a=e.ɵɵreference(5);e.ɵɵadvance(1),e.ɵɵproperty("ngTemplateOutlet",a)("ngTemplateOutletContext",e.ɵɵpureFunction2(2,Kn,o.value,r.getKey(i,o.key)))}}function Wn(t,n){if(1&t&&(e.ɵɵelementStart(0,"p"),e.ɵɵelementStart(1,"span"),e.ɵɵelementStart(2,"b"),e.ɵɵtext(3),e.ɵɵelementEnd(),e.ɵɵtext(4," : "),e.ɵɵelementEnd(),e.ɵɵelement(5,"span",10),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit,i=e.ɵɵnextContext().baseKey,r=e.ɵɵnextContext();e.ɵɵadvance(3),e.ɵɵtextInterpolate(r.getKey(i,o.key)),e.ɵɵadvance(2),e.ɵɵproperty("innerHtml",o.value,e.ɵɵsanitizeHtml)}}function Qn(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Un,2,5,"ng-container",8),e.ɵɵtemplate(2,Wn,6,2,"ng-template",null,9,e.ɵɵtemplateRefExtractor),e.ɵɵelementContainerEnd()),2&t){var o=e.ɵɵreference(3),i=e.ɵɵnextContext().$implicit,r=e.ɵɵnextContext(2);e.ɵɵadvance(1),e.ɵɵproperty("ngIf",r.isObject(i.value))("ngIfElse",o)}}function Gn(t,n){if(1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Qn,4,2,"ng-container",7),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext().baseKey,r=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngIf",-1===r.ignoreKeys.indexOf(r.getKey(i,o.key)))}}function Yn(t,n){if(1&t&&(e.ɵɵtemplate(0,Gn,2,1,"ng-container",6),e.ɵɵpipe(1,"keyvalue")),2&t){var o=n.obj;e.ɵɵproperty("ngForOf",e.ɵɵpipeBind1(1,1,o))}}var Xn=function(t){return{obj:t}},Zn=function(){function t(t){this.dialogRef=t}return t.prototype.isObject=function(t){return"object"==typeof t&&!Array.isArray(t)},t.prototype.getKey=function(t,e){return(t?t+".":"")+e},t}();Zn.ɵfac=function(t){return new(t||Zn)(e.ɵɵdirectiveInject($.MatDialogRef))},Zn.ɵcmp=e.ɵɵdefineComponent({type:Zn,selectors:[["igo-json-dialog"]],decls:9,vars:5,consts:[["mat-dialog-title","",1,"mat-typography"],["mat-dialog-content","",1,"mat-typography"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["loopObject",""],["mat-dialog-actions",""],["mat-button","","color","primary",3,"click"],[4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["notObject",""],[1,"propertyValue",3,"innerHtml"]],template:function(t,n){if(1&t&&(e.ɵɵelementStart(0,"h1",0),e.ɵɵtext(1),e.ɵɵelementEnd(),e.ɵɵelementStart(2,"div",1),e.ɵɵtemplate(3,qn,1,0,"ng-container",2),e.ɵɵtemplate(4,Yn,2,3,"ng-template",null,3,e.ɵɵtemplateRefExtractor),e.ɵɵelementEnd(),e.ɵɵelementStart(6,"div",4),e.ɵɵelementStart(7,"button",5),e.ɵɵlistener("click",(function(){return n.dialogRef.close(!1)})),e.ɵɵtext(8," OK "),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t){var o=e.ɵɵreference(5);e.ɵɵadvance(1),e.ɵɵtextInterpolate(n.title),e.ɵɵadvance(2),e.ɵɵproperty("ngTemplateOutlet",o)("ngTemplateOutletContext",e.ɵɵpureFunction1(3,Xn,n.data))}},directives:[$.MatDialogTitle,$.MatDialogContent,n.NgTemplateOutlet,$.MatDialogActions,o.MatButton,n.NgForOf,n.NgIf],pipes:[Hn],encapsulation:2});var to=function(){function t(t){this.dialog=t}return t.prototype.open=function(t,e,n){var o=this.dialog.open(Zn,{disableClose:!1});return o.componentInstance.data=e,o.componentInstance.title=t,o.componentInstance.ignoreKeys=n,o.afterClosed()},t}();to.ɵfac=function(t){return new(t||to)(e.ɵɵinject($.MatDialog))},to.ɵprov=e.ɵɵdefineInjectable({token:to,factory:to.ɵfac});var eo=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}();eo.ɵmod=e.ɵɵdefineNgModule({type:eo}),eo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||eo)},providers:[to],imports:[[n.CommonModule,o.MatButtonModule,$.MatDialogModule,Jn]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(eo,{declarations:[Zn],imports:[n.CommonModule,o.MatButtonModule,$.MatDialogModule,Jn],exports:[Zn]});var no=function(){function t(t,n){this.renderer=t,this.el=n,this._color="primary",this._focused=!1,this._selected=!1,this._disabled=!1,this.beforeSelect=new e.EventEmitter,this.beforeFocus=new e.EventEmitter,this.beforeUnselect=new e.EventEmitter,this.beforeUnfocus=new e.EventEmitter,this.beforeDisable=new e.EventEmitter,this.beforeEnable=new e.EventEmitter,this.focus=new e.EventEmitter,this.unfocus=new e.EventEmitter,this.select=new e.EventEmitter,this.unselect=new e.EventEmitter,this.disable=new e.EventEmitter,this.enable=new e.EventEmitter}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused},set:function(t){t!==this._focused&&(this.disabled||(t?this.beforeFocus.emit(this):this.beforeUnfocus.emit(this),this._focused=t,!0!==this.selected&&this.toggleFocusedClass(),t?this.focus.emit(this):this.unfocus.emit(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){t!==this._selected&&(this.disabled||(t?this.beforeSelect.emit(this):this.beforeUnselect.emit(this),this._selected=t,this._focused=t,this.toggleSelectedClass(),t?this.select.emit(this):this.unselect.emit(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t!==this._disabled&&(!0===t&&(this.selected=!1),t?this.beforeDisable.emit(this):this.beforeEnable.emit(this),this._disabled=t,this.toggleDisabledClass(),t?this.disable.emit(this):this.enable.emit(this))},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.selected=!0},t.prototype.getOffsetTop=function(){return this.el.nativeElement.offsetTop-5},t.prototype.toggleFocusedClass=function(){this.focused?this.addCls(t.focusedCls):this.removeCls(t.focusedCls)},t.prototype.toggleSelectedClass=function(){this.selected?(this.addCls(t.selectedCls),this.removeCls(t.focusedCls)):this.removeCls(t.selectedCls)},t.prototype.toggleDisabledClass=function(){this.disabled?this.addCls(t.disabledCls):this.removeCls(t.disabledCls)},t.prototype.addCls=function(t){this.renderer.addClass(this.el.nativeElement,t)},t.prototype.removeCls=function(t){this.renderer.removeClass(this.el.nativeElement,t)},t}();no.focusedCls="igo-list-item-focused",no.selectedCls="igo-list-item-selected",no.disabledCls="igo-list-item-disabled",no.ɵfac=function(t){return new(t||no)(e.ɵɵdirectiveInject(e.Renderer2),e.ɵɵdirectiveInject(e.ElementRef))},no.ɵdir=e.ɵɵdefineDirective({type:no,selectors:[["","igoListItem",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("click",(function(){return n.onClick()}))},inputs:{color:"color",focused:"focused",selected:"selected",disabled:"disabled"},outputs:{beforeSelect:"beforeSelect",beforeFocus:"beforeFocus",beforeUnselect:"beforeUnselect",beforeUnfocus:"beforeUnfocus",beforeDisable:"beforeDisable",beforeEnable:"beforeEnable",focus:"focus",unfocus:"unfocus",select:"select",unselect:"unselect",disable:"disable",enable:"enable"}});var oo=function(t){return{selectable:t}},io=function(){function t(t){this.el=t,this._navigation=!0,this._selection=!0,this.subscriptions=[]}return Object.defineProperty(t.prototype,"navigation",{get:function(){return this._navigation},set:function(t){this._navigation=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this._selectedItem},set:function(t){this.focusedItem=t,this._selectedItem=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedItem",{get:function(){return this._focusedItem},set:function(t){this._focusedItem=t},enumerable:!1,configurable:!0}),t.prototype.handleKeyboardEvent=function(t){this.navigationEnabled&&("ArrowUp"===t.key||"ArrowDown"===t.key?(t.preventDefault(),this.navigate(t.key)):"Enter"===t.key&&this.select(this.focusedItem))},t.prototype.ngOnInit=function(){this.enableNavigation()},t.prototype.ngAfterViewInit=function(){var t=this;this.listItems.length&&this.init(),this.listItems$$=this.listItems.changes.subscribe((function(e){return t.init()}))},t.prototype.ngOnDestroy=function(){this.listItems$$.unsubscribe()},t.prototype.focus=function(t){this.selection&&(this.unfocus(),void 0!==t&&(t.focused=!0))},t.prototype.unfocus=function(){void 0!==this.focusedItem&&(this.focusedItem.focused=!1),this.focusedItem=void 0},t.prototype.focusNext=function(){var t,e=this.listItems.toArray(),n=this.el.nativeElement,o=!0,i=this.getFocusedIndex();for(void 0===i&&(i=-1);o&&i<e.length-1;)o=(t=e[i+=1]).disabled;void 0!==t&&this.focus(t),e[i+1]?void 0===t||this.isScrolledIntoView(t.el.nativeElement)||(n.scrollTop=t.el.nativeElement.offsetTop+t.el.nativeElement.children[0].offsetHeight-n.clientHeight):n.scrollTop=n.scrollHeight-n.clientHeight},t.prototype.focusPrevious=function(){for(var t,e=this.listItems.toArray(),n=this.el.nativeElement,o=!0,i=this.getFocusedIndex();o&&i>0;)o=(t=e[i-=1]).disabled;if(void 0!==t&&this.focus(t),e[i-1]){if(void 0!==t&&!this.isScrolledIntoView(t.el.nativeElement)){n.scrollTop=t.el.nativeElement.offsetTop-3}}else n.scrollTop=0},t.prototype.select=function(t){this.selection&&(this.unselect(),void 0!==t&&(t.selected=!0))},t.prototype.unselect=function(){this.unfocus(),void 0!==this.selectedItem&&(this.selectedItem.selected=!1),this.selectedItem=void 0},t.prototype.enableNavigation=function(){this.navigation&&(this.navigationEnabled=!0)},t.prototype.disableNavigation=function(){this.navigationEnabled=!1},t.prototype.scrollToItem=function(t){this.el.nativeElement.scrollTop=t.getOffsetTop()},t.prototype.isScrolledIntoView=function(t){var e=this.el.nativeElement.scrollTop+this.el.nativeElement.offsetTop,n=e+this.el.nativeElement.clientHeight,o=t.offsetTop;return o+t.children[0].offsetHeight<=n&&o>=e},t.prototype.init=function(){this.subscribe(),this.selectedItem=this.findSelectedItem(),this.focusedItem=this.findFocusedItem(),this.enableNavigation()},t.prototype.subscribe=function(){var t=this;this.unsubscribe(),this.listItems.toArray().forEach((function(e){t.subscriptions.push(e.beforeSelect.subscribe((function(e){return t.handleItemBeforeSelect(e)}))),t.subscriptions.push(e.select.subscribe((function(e){return t.handleItemSelect(e)}))),t.subscriptions.push(e.beforeFocus.subscribe((function(e){return t.handleItemBeforeFocus(e)}))),t.subscriptions.push(e.focus.subscribe((function(e){return t.handleItemFocus(e)})))}),this)},t.prototype.unsubscribe=function(){this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions=[]},t.prototype.handleItemBeforeFocus=function(t){t!==this.focusedItem&&this.unfocus()},t.prototype.handleItemFocus=function(t){this.focusedItem=t},t.prototype.handleItemBeforeSelect=function(t){t!==this.focusedItem&&this.unselect()},t.prototype.handleItemSelect=function(t){this.selectedItem=t},t.prototype.findSelectedItem=function(){return this.listItems.toArray().find((function(t){return t.selected}))},t.prototype.findFocusedItem=function(){return this.listItems.toArray().find((function(t){return t.focused}))},t.prototype.getFocusedIndex=function(){var t=this;return this.listItems.toArray().findIndex((function(e){return e===t.focusedItem}))},t.prototype.navigate=function(t){switch(t){case"ArrowUp":this.focusPrevious();break;case"ArrowDown":this.focusNext()}},t}();io.ɵfac=function(t){return new(t||io)(e.ɵɵdirectiveInject(e.ElementRef))},io.ɵcmp=e.ɵɵdefineComponent({type:io,selectors:[["igo-list"]],contentQueries:function(t,n,o){var i;(1&t&&e.ɵɵcontentQuery(o,no,!0),2&t)&&(e.ɵɵqueryRefresh(i=e.ɵɵloadQuery())&&(n.listItems=i))},hostBindings:function(t,n){1&t&&e.ɵɵlistener("keydown",(function(t){return n.handleKeyboardEvent(t)}),!1,e.ɵɵresolveDocument)("enter",(function(t){return n.handleKeyboardEvent(t)}),!1,e.ɵɵresolveDocument)},inputs:{navigation:"navigation",selection:"selection"},ngContentSelectors:["*"],decls:2,vars:3,consts:[["igoClickout","",3,"ngClass","clickout","click"]],template:function(t,n){1&t&&(e.ɵɵprojectionDef(),e.ɵɵelementStart(0,"mat-list",0),e.ɵɵlistener("clickout",(function(){return n.disableNavigation()}))("click",(function(){return n.enableNavigation()})),e.ɵɵprojection(1),e.ɵɵelementEnd()),2&t&&e.ɵɵproperty("ngClass",e.ɵɵpureFunction1(1,oo,n.selection))},directives:[s.MatList,Oe,n.NgClass],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto;position:relative}mat-list[_ngcontent-%COMP%]{padding-top:0}[_nghost-%COMP%]{position:static}[_nghost-%COMP%] .mat-list .mat-list-item .mat-list-text>*{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;line-height:18px;max-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:normal}[_nghost-%COMP%] .mat-list .mat-list-item.mat-list-item-avatar .mat-list-item-content{display:-webkit-flex;height:46px;padding:3px}[_nghost-%COMP%] .mat-list .mat-list-item.mat-list-item-avatar{height:46px}[_nghost-%COMP%] .mat-list igo-collapsible>.mat-list-item>.mat-list-item-content>.mat-list-text>.mat-line{font-weight:700;opacity:.9}[_nghost-%COMP%] .mat-list .mat-list-item.mat-list-item-avatar .mat-list-item-content>mat-icon{padding:8px}[_nghost-%COMP%] [igolistitem] mat-list-item [mat-list-avatar]{height:auto;width:40px}[_nghost-%COMP%] mat-list.selectable[_ngcontent-%COMP%] [igolistitem]:not(.igo-list-item-disabled) mat-list-item:hover{cursor:pointer}[_nghost-%COMP%] [igolistitem]:focus{outline:none}"]});var ro=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();function ao(t,n){if(1&t&&(e.ɵɵelementStart(0,"div",2),e.ɵɵelementStart(1,"h3"),e.ɵɵprojection(2,1),e.ɵɵelementStart(3,"div",3),e.ɵɵtext(4),e.ɵɵprojection(5,2),e.ɵɵelementEnd(),e.ɵɵprojection(6,3),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(4),e.ɵɵtextInterpolate1(" ",o.title," ")}}ro.ɵmod=e.ɵɵdefineNgModule({type:ro}),ro.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ro)},imports:[[n.CommonModule,a.MatIconModule,s.MatListModule,Te]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ro,{declarations:[no,io],imports:[n.CommonModule,a.MatIconModule,s.MatListModule,Te],exports:[no,io]});var so=["*",[["","panelLeftButton",""]],[["","panelHeader",""]],[["","panelRightButton",""]]],lo=function(){function t(){this._withHeader=!0}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"withHeader",{get:function(){return this._withHeader},set:function(t){this._withHeader=t},enumerable:!1,configurable:!0}),t}();lo.ɵfac=function(t){return new(t||lo)},lo.ɵcmp=e.ɵɵdefineComponent({type:lo,selectors:[["igo-panel"]],hostVars:2,hostBindings:function(t,n){2&t&&e.ɵɵclassProp("igo-panel-with-header",n.withHeader)},inputs:{title:"title",withHeader:"withHeader"},ngContentSelectors:["*","[panelLeftButton]","[panelHeader]","[panelRightButton]"],decls:3,vars:1,consts:[["class","igo-panel-header mat-typography","title","",4,"ngIf"],["title","",1,"igo-panel-content"],["title","",1,"igo-panel-header","mat-typography"],[1,"igo-panel-title"]],template:function(t,n){1&t&&(e.ɵɵprojectionDef(so),e.ɵɵtemplate(0,ao,7,1,"div",0),e.ɵɵelementStart(1,"div",1),e.ɵɵprojection(2),e.ɵɵelementEnd()),2&t&&e.ɵɵproperty("ngIf",n.withHeader)},directives:[n.NgIf],styles:["[_nghost-%COMP%]{display:block}.igo-panel-header[_ngcontent-%COMP%]{height:46px;padding:3px;text-align:center}.igo-panel-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{height:40px;margin:0}.igo-panel-header[_ngcontent-%COMP%] [panelleftbutton]{float:left;margin-right:-40px}.igo-panel-header[_ngcontent-%COMP%] [panelrightbutton]{float:right}.igo-panel-content[_ngcontent-%COMP%]{overflow:auto}.igo-panel-with-header[_nghost-%COMP%] .igo-panel-content[_ngcontent-%COMP%]{height:calc(100% - 46px)}[_nghost-%COMP%]:not(.igo-panel-with-header) .igo-panel-content[_ngcontent-%COMP%]{height:100%}.igo-panel-title[_ngcontent-%COMP%]{display:block;float:left;font-size:1.17em;font-weight:700;height:100%;line-height:40px;margin-left:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 80px)}"],changeDetection:0});var co=function(){};co.ɵmod=e.ɵɵdefineNgModule({type:co}),co.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||co)},imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(co,{declarations:[lo],imports:[n.CommonModule],exports:[lo]});var uo=function(){function t(t,e){this.renderer=e}return t.prototype.onOpen=function(){this.focusedElement=document.activeElement},t.prototype.onCloseStart=function(){document.activeElement!==this.focusedElement?this.blurElement=this.focusedElement:this.blurElement=void 0},t.prototype.onClose=function(){this.blurElement&&this.renderer.selectRootElement(this.blurElement).blur(),this.blurElement=void 0,this.focusedElement=void 0},t}();uo.ɵfac=function(t){return new(t||uo)(e.ɵɵdirectiveInject(F.MatSidenav,2),e.ɵɵdirectiveInject(e.Renderer2))},uo.ɵdir=e.ɵɵdefineDirective({type:uo,selectors:[["","igoSidenavShim",""]],hostBindings:function(t,n){1&t&&e.ɵɵlistener("open",(function(t){return n.onOpen(t)}))("close-start",(function(t){return n.onCloseStart(t)}))("close",(function(t){return n.onClose(t)}))}});var po=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();po.ɵmod=e.ɵɵdefineNgModule({type:po}),po.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||po)},imports:[[]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(po,{declarations:[uo],exports:[uo]});var fo=function(t){return{"igo-spinner-container":!0,"igo-spinner-shown":t}},ho=function(){function t(){this.shown$=new d.BehaviorSubject(!1)}return Object.defineProperty(t.prototype,"shown",{get:function(){return this.shown$.value},set:function(t){this.shown$.next(t)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.shown=!0},t.prototype.hide=function(){this.shown=!1},t}();ho.ɵfac=function(t){return new(t||ho)},ho.ɵcmp=e.ɵɵdefineComponent({type:ho,selectors:[["igo-spinner"]],inputs:{shown:"shown"},decls:4,vars:5,consts:[[3,"ngClass"],[1,"igo-spinner-background"],["diameter","40","mode","indeterminate"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"div",0),e.ɵɵpipe(1,"async"),e.ɵɵelement(2,"div",1),e.ɵɵelement(3,"mat-progress-spinner",2),e.ɵɵelementEnd()),2&t&&e.ɵɵproperty("ngClass",e.ɵɵpureFunction1(3,fo,e.ɵɵpipeBind1(1,1,n.shown$)))},directives:[n.NgClass,_.MatProgressSpinner],pipes:[n.AsyncPipe],styles:[".igo-spinner-container[_ngcontent-%COMP%]{display:none;pointer-events:none}.igo-spinner-container.igo-spinner-shown[_ngcontent-%COMP%]{display:block}mat-progress-spinner[_ngcontent-%COMP%]{border-radius:50%;height:40px;width:40px}.igo-spinner-background[_ngcontent-%COMP%]{border:4px solid #fff;border-radius:50%;height:36px;left:2px;position:absolute;top:2px;width:36px}"]});var go=function(){function t(t,e){this.spinner=t,this.activityService=e}return t.prototype.ngOnInit=function(){var t=this;this.counter$$=this.activityService.counter$.pipe(f.debounceTime(50)).subscribe((function(e){e>0?t.spinner.show():t.spinner.hide()}))},t.prototype.ngOnDestroy=function(){this.counter$$.unsubscribe()},t}();go.ɵfac=function(t){return new(t||go)(e.ɵɵdirectiveInject(ho,2),e.ɵɵdirectiveInject(u.ActivityService))},go.ɵdir=e.ɵɵdefineDirective({type:go,selectors:[["","igoSpinnerActivity",""]]});var mo=function(){};mo.ɵmod=e.ɵɵdefineNgModule({type:mo}),mo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||mo)},imports:[[n.CommonModule,_.MatProgressSpinnerModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(mo,{declarations:[go,ho],imports:[n.CommonModule,_.MatProgressSpinnerModule],exports:[go,ho]});var vo,yo=function(t){function e(e,n,o){var i=t.call(this)||this;return i._database=e,i._model=n,i._sort=o,i._filterChange=new d.BehaviorSubject(""),i}return R(e,t),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filterChange.value},set:function(t){this._filterChange.next(t)},enumerable:!1,configurable:!0}),e.prototype.connect=function(){var t=this;if(!this._database)return d.merge([]);var e=[this._database.dataChange,this._filterChange,this._sort.sortChange];return d.merge.apply(void 0,q(e)).pipe(f.map((function(){return t.getFilteredData(t._database.data)})),f.map((function(e){return t.getSortedData(e)})))},e.prototype.disconnect=function(){},e.prototype.getFilteredData=function(t){var e=this;return this.filter?t.slice().filter((function(t){return-1!==e._model.columns.filter((function(t){return t.filterable})).map((function(e){return h.ObjectUtils.resolve(t,e.name)})).join(" ").toLowerCase().indexOf(e.filter.toLowerCase())})):t},e.prototype.getSortedData=function(t){var e=this;return this._sort.active&&""!==this._sort.direction?t.sort((function(t,n){var o=h.ObjectUtils.resolve(t,e._sort.active),i=h.ObjectUtils.resolve(n,e._sort.active);return h.ObjectUtils.naturalCompare(i,o,e._sort.direction)})):t},e}(D.DataSource);(vo=t.TableActionColor||(t.TableActionColor={}))[vo.primary=0]="primary",vo[vo.accent=1]="accent",vo[vo.warn=2]="warn";var bo=["filter"];function Co(t,n){1&t&&(e.ɵɵelementStart(0,"div",12),e.ɵɵelementStart(1,"mat-form-field",13),e.ɵɵelement(2,"input",14,15),e.ɵɵpipe(4,"translate"),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(2),e.ɵɵproperty("placeholder",e.ɵɵpipeBind1(4,1,"igo.common.table.filter")))}function xo(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"th",16),e.ɵɵelementStart(1,"mat-checkbox",17),e.ɵɵlistener("change",(function(t){e.ɵɵrestoreView(o);var n=e.ɵɵnextContext();return t?n.masterToggle():null})),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Mo(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"td",18),e.ɵɵelementStart(1,"mat-checkbox",19),e.ɵɵlistener("click",(function(t){return e.ɵɵrestoreView(o),t.stopPropagation()}))("change",(function(t){e.ɵɵrestoreView(o);var i=n.$implicit,r=e.ɵɵnextContext();return t?r.selection.toggle(i):null})),e.ɵɵelementEnd(),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("checked",r.selection.isSelected(i))}}function wo(t,n){if(1&t&&(e.ɵɵelementStart(0,"th",25),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit;e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",o.title," ")}}function So(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,wo,2,1,"th",24),e.ɵɵelementContainerEnd())}function Io(t,n){if(1&t&&(e.ɵɵelementStart(0,"th",16),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext(2).$implicit;e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",o.title," ")}}function Oo(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,Io,2,1,"th",6),e.ɵɵelementContainerEnd())}var To=function(){return{}};function $o(t,n){if(1&t&&(e.ɵɵelementStart(0,"td",27),e.ɵɵtext(1),e.ɵɵelementEnd()),2&t){var o=n.$implicit,i=e.ɵɵnextContext(2).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.model.cellClassFunc?r.model.cellClassFunc(o,i):e.ɵɵpureFunction0(2,To)),e.ɵɵadvance(1),e.ɵɵtextInterpolate1(" ",r.getValue(o,i.name)," ")}}function Eo(t,n){1&t&&(e.ɵɵelementContainerStart(0),e.ɵɵtemplate(1,$o,2,3,"td",26),e.ɵɵelementContainerEnd())}function Po(t,n){if(1&t&&e.ɵɵelement(0,"td",29),2&t){var o=n.$implicit,i=e.ɵɵnextContext(2).$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.model.cellClassFunc?r.model.cellClassFunc(o,i):e.ɵɵpureFunction0(2,To))("innerHTML",r.getValue(o,i.name),e.ɵɵsanitizeHtml)}}function jo(t,n){1&t&&e.ɵɵtemplate(0,Po,1,3,"td",28)}function ko(t,n){if(1&t&&(e.ɵɵelementContainerStart(0,20),e.ɵɵtemplate(1,So,2,0,"ng-container",21),e.ɵɵtemplate(2,Oo,2,0,"ng-container",21),e.ɵɵtemplate(3,Eo,2,0,"ng-container",22),e.ɵɵtemplate(4,jo,1,0,"ng-template",null,23,e.ɵɵtemplateRefExtractor),e.ɵɵelementContainerEnd()),2&t){var o=n.$implicit,i=e.ɵɵreference(5);e.ɵɵproperty("matColumnDef",o.name),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",o.sortable),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!o.sortable),e.ɵɵadvance(1),e.ɵɵproperty("ngIf",!o.html)("ngIfElse",i)}}function Fo(t,n){1&t&&e.ɵɵelement(0,"th",16)}function _o(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"button",31),e.ɵɵlistener("click",(function(t){e.ɵɵrestoreView(o);var i=n.$implicit,r=e.ɵɵnextContext().$implicit;return e.ɵɵnextContext().handleClickAction(t,i,r)})),e.ɵɵelement(1,"mat-icon",32),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext(2);e.ɵɵproperty("color",r.getActionColor(i.color)),e.ɵɵadvance(1),e.ɵɵpropertyInterpolate("svgIcon",i.icon)}}function Do(t,n){if(1&t&&(e.ɵɵelementStart(0,"td",18),e.ɵɵtemplate(1,_o,2,2,"button",30),e.ɵɵelementEnd()),2&t){var o=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("ngForOf",o.model.actions)}}function Bo(t,n){1&t&&e.ɵɵelement(0,"tr",33)}function Vo(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"tr",34),e.ɵɵlistener("click",(function(){e.ɵɵrestoreView(o);var t=n.$implicit;return e.ɵɵnextContext().selection.toggle(t)})),e.ɵɵelementEnd()}if(2&t){var i=n.$implicit,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",r.model.rowClassFunc?r.model.rowClassFunc(i):e.ɵɵpureFunction0(1,To))}}var Ao=function(){function n(){this._hasFIlterInput=!0,this.selection=new B.SelectionModel(!0,[]),this.select=new e.EventEmitter}return Object.defineProperty(n.prototype,"database",{get:function(){return this._database},set:function(t){this._database=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"model",{get:function(){return this._model},set:function(t){this._model=t},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasFilterInput",{get:function(){return this._hasFIlterInput},set:function(t){this._hasFIlterInput=t},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var t=this;this.dataSource=new yo(this.database,this.model,this.sort),this.model&&(this.displayedColumns=this.model.columns.filter((function(t){return!1!==t.displayed})).map((function(t){return t.name})),this.model.selectionCheckbox&&this.displayedColumns.unshift("selectionCheckbox"),this.model.actions&&this.model.actions.length&&this.displayedColumns.push("action")),this.selection.changed.subscribe((function(e){return t.select.emit(e)}))},n.prototype.ngAfterViewInit=function(){var t=this;this.filter&&d.fromEvent(this.filter.nativeElement,"keyup").pipe(f.debounceTime(150),f.distinctUntilChanged()).subscribe((function(){t.dataSource&&(t.dataSource.filter=t.filter.nativeElement.value)}))},n.prototype.ngOnChanges=function(t){t.database&&(this.dataSource=new yo(this.database,this.model,this.sort),this.selection.clear())},n.prototype.getActionColor=function(e){return t.TableActionColor[e]},n.prototype.getValue=function(t,e){return h.ObjectUtils.resolve(t,e)},n.prototype.isAllSelected=function(){return this.selection.selected.length===this.database.data.length},n.prototype.masterToggle=function(){var t=this;this.isAllSelected()?this.selection.clear():this.database.data.forEach((function(e){return t.selection.select(e)}))},n.prototype.handleClickAction=function(t,e,n){t.stopPropagation(),e.click(n)},n}();Ao.ɵfac=function(t){return new(t||Ao)},Ao.ɵcmp=e.ɵɵdefineComponent({type:Ao,selectors:[["igo-table"]],viewQuery:function(t,n){var o;(1&t&&(e.ɵɵviewQuery(bo,!0),e.ɵɵstaticViewQuery(b.MatSort,!0)),2&t)&&(e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.filter=o.first),e.ɵɵqueryRefresh(o=e.ɵɵloadQuery())&&(n.sort=o.first))},inputs:{database:"database",model:"model",hasFilterInput:"hasFilterInput"},outputs:{select:"select"},features:[e.ɵɵNgOnChangesFeature],decls:14,vars:5,consts:[[1,"table-box"],["class","table-header",4,"ngIf"],[1,"table-container"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","selectionCheckbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass","click",4,"matRowDef","matRowDefColumns"],[1,"table-header"],["floatPlaceholder","never"],["matInput","",3,"placeholder"],["filter",""],["mat-header-cell",""],[3,"checked","indeterminate","change"],["mat-cell",""],[3,"checked","click","change"],[3,"matColumnDef"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["cellHTML",""],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header",""],["mat-cell","","class","mat-cell-text",3,"ngClass",4,"matCellDef"],["mat-cell","",1,"mat-cell-text",3,"ngClass"],["mat-cell","","class","mat-cell-text",3,"ngClass","innerHTML",4,"matCellDef"],["mat-cell","",1,"mat-cell-text",3,"ngClass","innerHTML"],["mat-mini-fab","",3,"color","click",4,"ngFor","ngForOf"],["mat-mini-fab","",3,"color","click"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",3,"ngClass","click"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"div",0),e.ɵɵtemplate(1,Co,5,3,"div",1),e.ɵɵelementStart(2,"div",2),e.ɵɵelementStart(3,"table",3,4),e.ɵɵelementContainerStart(5,5),e.ɵɵtemplate(6,xo,2,2,"th",6),e.ɵɵtemplate(7,Mo,2,1,"td",7),e.ɵɵelementContainerEnd(),e.ɵɵtemplate(8,ko,6,5,"ng-container",8),e.ɵɵelementContainerStart(9,9),e.ɵɵtemplate(10,Fo,1,0,"th",6),e.ɵɵtemplate(11,Do,2,1,"td",7),e.ɵɵelementContainerEnd(),e.ɵɵtemplate(12,Bo,1,0,"tr",10),e.ɵɵtemplate(13,Vo,1,2,"tr",11),e.ɵɵelementEnd(),e.ɵɵelementEnd(),e.ɵɵelementEnd()),2&t&&(e.ɵɵadvance(1),e.ɵɵproperty("ngIf",n.hasFilterInput),e.ɵɵadvance(2),e.ɵɵproperty("dataSource",n.dataSource),e.ɵɵadvance(5),e.ɵɵproperty("ngForOf",n.model.columns),e.ɵɵadvance(4),e.ɵɵproperty("matHeaderRowDef",n.displayedColumns),e.ɵɵadvance(1),e.ɵɵproperty("matRowDefColumns",n.displayedColumns))},directives:[n.NgIf,y.MatTable,b.MatSort,y.MatColumnDef,y.MatHeaderCellDef,y.MatCellDef,n.NgForOf,y.MatHeaderRowDef,y.MatRowDef,g.MatFormField,P.MatInput,y.MatHeaderCell,r.MatCheckbox,y.MatCell,b.MatSortHeader,n.NgClass,o.MatButton,a.MatIcon,y.MatHeaderRow,y.MatRow],pipes:[S.TranslatePipe],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.table-container[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.table-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.table-header[_ngcontent-%COMP%]{align-items:baseline;display:flex;flex:0 1 auto;font-size:20px;justify-content:space-between;max-width:500px;min-height:64px;padding:8px 24px 0}tr[mat-header-row][_ngcontent-%COMP%], tr[mat-row][_ngcontent-%COMP%]{height:60px}.mat-cell-text[_ngcontent-%COMP%]{overflow:hidden;word-wrap:break-word}td[mat-cell][_ngcontent-%COMP%]{padding-right:15px}th.mat-header-cell[_ngcontent-%COMP%]{padding-right:5px}button[_ngcontent-%COMP%]{margin-right:10px}"]});var Ro=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();Ro.ɵmod=e.ɵɵdefineNgModule({type:Ro}),Ro.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Ro)},imports:[[n.CommonModule,j.FormsModule,D.CdkTableModule,a.MatIconModule,o.MatButtonModule,y.MatTableModule,g.MatFormFieldModule,P.MatInputModule,b.MatSortModule,r.MatCheckboxModule,u.IgoLanguageModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Ro,{declarations:[Ao],imports:[n.CommonModule,j.FormsModule,D.CdkTableModule,a.MatIconModule,o.MatButtonModule,y.MatTableModule,g.MatFormFieldModule,P.MatInputModule,b.MatSortModule,r.MatCheckboxModule,u.IgoLanguageModule],exports:[Ao]});var No,Lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(tt);function Ho(t,e){return void 0===t&&(t="300ms"),void 0===e&&(e="ease-in-out"),V.trigger("toolSlideInOut",[V.state("enter",V.style({transform:"translate3d(0, 0, 0)"})),V.transition("void => enter",V.animate(t+" "+e))])}function Jo(t,n){if(1&t&&(e.ɵɵelement(0,"igo-actionbar",2),e.ɵɵpipe(1,"async"),e.ɵɵpipe(2,"async"),e.ɵɵpipe(3,"async")),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("store",o.actionStore)("withIcon",!0)("withTitle",e.ɵɵpipeBind1(1,6,o.toolbarWithTitle$))("withTooltip",!e.ɵɵpipeBind1(2,8,o.toolbarWithTitle$))("scrollActive",e.ɵɵpipeBind1(3,10,o.toolbarWithTitle$))("horizontal",!1)}}(No=t.ToolboxColor||(t.ToolboxColor={})).White="white",No.Grey="grey",No.Primary="primary";var qo=function(t,e){return{"igo-tool-container-with-toolbar":t,"igo-tool-container-with-animation":e}};function zo(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementStart(0,"div",3),e.ɵɵlistener("@toolSlideInOut.start",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onAnimationStart()}))("@toolSlideInOut.done",(function(){return e.ɵɵrestoreView(o),e.ɵɵnextContext().onAnimationComplete()})),e.ɵɵpipe(1,"async"),e.ɵɵelement(2,"igo-dynamic-outlet",4),e.ɵɵelementEnd()}if(2&t){var i=n.ngIf,r=e.ɵɵnextContext();e.ɵɵproperty("ngClass",e.ɵɵpureFunction2(6,qo,!r.actionStore.empty,r.animate))("@toolSlideInOut",e.ɵɵpipeBind1(1,4,r.animation$)),e.ɵɵadvance(2),e.ɵɵproperty("component",i.component)("inputs",r.getToolInputs(i))}}var Ko=function(){function e(){this.activeTool$=new d.BehaviorSubject(void 0),this.actionStore=new Lo([]),this.animation$=new d.BehaviorSubject("none"),this.toolbar$=new d.BehaviorSubject([]),this.toolbarWithTitle$=this.activeTool$.pipe(f.map((function(t){return void 0===t}))),this.animating$=new d.BehaviorSubject(!1),this.animate=!1,this.color=t.ToolboxColor.White}return Object.defineProperty(e.prototype,"classColorGrey",{get:function(){return this.color===t.ToolboxColor.Grey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classColorPrimary",{get:function(){return this.color===t.ToolboxColor.Primary},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.toolbar$$=this.toolbox.toolbar$.subscribe((function(e){return t.onToolbarChange(e)})),this.activeTool$$=this.toolbox.activeTool$.subscribe((function(e){return t.onActiveToolChange(e)}))},e.prototype.ngOnDestroy=function(){this.toolbar$$.unsubscribe(),this.activeTool$$.unsubscribe(),this.actionStore.destroy()},e.prototype.onAnimationStart=function(){this.animating$.next(!0)},e.prototype.onAnimationComplete=function(){this.animating$.next(!1)},e.prototype.getToolInputs=function(t){return t.options||{}},e.prototype.onToolbarChange=function(t){this.setToolbar(t)},e.prototype.onActiveToolChange=function(t){var e=this;this.animate?this.onAnimate((function(){return e.setActiveTool(t)})):this.setActiveTool(t)},e.prototype.setActiveTool=function(t){if(void 0===t)this.actionStore.state.updateAll({active:!1});else{var e=this.actionStore.get(t.name);void 0!==e&&this.actionStore.state.update(e,{active:!0},!0)}this.activeTool$.next(t),this.animate&&this.animation$.next("enter")},e.prototype.setToolbar=function(t){var e=this,n=t.reduce((function(t,n){var o=e.toolbox.getTool(n);return void 0===o||t.push({id:o.name,title:o.title,icon:o.icon,tooltip:o.tooltip,args:[o,e.toolbox],handler:function(t,e){e.activateTool(t.name)},ngClass:function(t,n){return e.toolbox.activeTool$.pipe(f.map((function(e){var n=!1;void 0!==e&&t.name===e.name&&(n=!0);var o=!1;return void 0!==e&&t.name===e.parent&&(o=!0),{"tool-activated":n,"children-tool-activated":o}})))}}),t}),[]);this.actionStore.load(n),this.toolbar$.next(t)},e.prototype.onAnimate=function(t){var e=this;this.unAnimate(),this.animating$$=this.animating$.subscribe((function(n){n||(t.call(e),e.unAnimate())}))},e.prototype.unAnimate=function(){this.animating$$&&this.animating$$.unsubscribe()},e}();Ko.ɵfac=function(t){return new(t||Ko)},Ko.ɵcmp=e.ɵɵdefineComponent({type:Ko,selectors:[["igo-toolbox"]],hostVars:4,hostBindings:function(t,n){2&t&&e.ɵɵclassProp("color-grey",n.classColorGrey)("color-primary",n.classColorPrimary)},inputs:{toolbox:"toolbox",animate:"animate",color:"color"},decls:4,vars:6,consts:[[3,"store","withIcon","withTitle","withTooltip","scrollActive","horizontal",4,"ngIf"],["class","igo-tool-container",3,"ngClass",4,"ngIf"],[3,"store","withIcon","withTitle","withTooltip","scrollActive","horizontal"],[1,"igo-tool-container",3,"ngClass"],[3,"component","inputs"]],template:function(t,n){1&t&&(e.ɵɵtemplate(0,Jo,4,12,"igo-actionbar",0),e.ɵɵpipe(1,"async"),e.ɵɵtemplate(2,zo,3,9,"div",1),e.ɵɵpipe(3,"async")),2&t&&(e.ɵɵproperty("ngIf",e.ɵɵpipeBind1(1,2,n.toolbar$).length>0),e.ɵɵadvance(2),e.ɵɵproperty("ngIf",e.ɵɵpipeBind1(3,4,n.activeTool$)))},directives:[n.NgIf,ye,n.NgClass,Ke],pipes:[n.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden;position:relative;width:100%}.igo-tool-container[_ngcontent-%COMP%]{bottom:0;left:0;position:absolute;right:0;top:0}.igo-tool-container-with-animation[_ngcontent-%COMP%]{transform:translate3d(100%,0,0)}.igo-tool-container-with-toolbar[_ngcontent-%COMP%]{left:50px}igo-actionbar[_ngcontent-%COMP%]{height:100%}igo-actionbar.with-title[_ngcontent-%COMP%]{overflow:auto;width:100%}igo-actionbar[_ngcontent-%COMP%]:not(.with-title){-o-box-shadow:2px 0 2px 0 #ddd;box-shadow:2px 0 2px 0 #ddd;overflow:hidden;width:48px}@media only screen and (orientation:landscape) and (max-width:959px),only screen and (orientation:portrait) and (max-width:599px){igo-actionbar[_ngcontent-%COMP%]:not(.with-title){overflow:auto}}igo-dynamic-outlet[_ngcontent-%COMP%]{overflow:auto}"],data:{animation:[Ho()]},changeDetection:0});var Uo=function(){};Uo.ɵmod=e.ɵɵdefineNgModule({type:Uo}),Uo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Uo)},imports:[[n.CommonModule,Ce,We]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Uo,{declarations:[Ko],imports:[n.CommonModule,Ce,We],exports:[Ko]});var Wo=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[An]}},t}();function Qo(t,n){if(1&t&&e.ɵɵelement(0,"igo-dynamic-outlet",1),2&t){var o=e.ɵɵnextContext();e.ɵɵproperty("component",o.widget)("inputs",o.inputs)("subscribers",o.getEffectiveSubscribers())}}Wo.ɵmod=e.ɵɵdefineNgModule({type:Wo}),Wo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Wo)},imports:[[n.CommonModule],Uo]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Wo,{imports:[n.CommonModule],exports:[Uo]});var Go=function(){function t(){var t=this;this.baseSubscribers={cancel:function(e){return t.onCancel(e)},complete:function(e){return t.onComplete(e)}},this.subscribers={},this.complete=new e.EventEmitter,this.cancel=new e.EventEmitter}return t.prototype.ngOnDestroy=function(){this.destroyWidget()},t.prototype.getEffectiveSubscribers=function(){var t=this,e=Object.assign({},this.subscribers);return Object.keys(this.baseSubscribers).forEach((function(n){var o=e[n],i=t.baseSubscribers[n];e[n]=void 0!==o?function(t){o(t),i(t)}:i})),e},t.prototype.onCancel=function(t){this.cancel.emit(t),this.destroyWidget()},t.prototype.onComplete=function(t){this.complete.emit(t),this.destroyWidget()},t.prototype.destroyWidget=function(){void 0!==this.widget&&this.widget.destroy(),this.widget=void 0},t}();Go.ɵfac=function(t){return new(t||Go)},Go.ɵcmp=e.ɵɵdefineComponent({type:Go,selectors:[["igo-widget-outlet"]],inputs:{widget:"widget",inputs:"inputs",subscribers:"subscribers"},outputs:{complete:"complete",cancel:"cancel"},decls:1,vars:1,consts:[[3,"component","inputs","subscribers",4,"ngIf"],[3,"component","inputs","subscribers"]],template:function(t,n){1&t&&e.ɵɵtemplate(0,Qo,1,3,"igo-dynamic-outlet",0),2&t&&e.ɵɵproperty("ngIf",n.widget)},directives:[n.NgIf,Ke],styles:["igo-dynamic-outlet[_ngcontent-%COMP%]{height:100%}"],changeDetection:0});var Yo=function(){};Yo.ɵmod=e.ɵɵdefineNgModule({type:Yo}),Yo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Yo)},imports:[[n.CommonModule,We]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Yo,{declarations:[Go],imports:[n.CommonModule,We],exports:[Go]});var Xo=function(){function t(t){this.dynamicComponentService=t}return t.prototype.create=function(t){return this.dynamicComponentService.create(t)},t}();Xo.ɵfac=function(t){return new(t||Xo)(e.ɵɵinject(Je))},Xo.ɵprov=e.ɵɵdefineInjectable({token:Xo,factory:Xo.ɵfac,providedIn:"root"});var Zo=function(){};Zo.ɵmod=e.ɵɵdefineNgModule({type:Zo}),Zo.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||Zo)},providers:[Xo],imports:[[n.CommonModule,Yo],Yo]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(Zo,{imports:[n.CommonModule,Yo],exports:[Yo]});var ti=function(){function t(){this.selectedChange=new e.EventEmitter}return t.prototype.getWorkspaceTitle=function(t){return Y(t)},t.prototype.onSelectedChange=function(t){var e=t.value;this.store.activateWorkspace(e),this.selectedChange.emit({selected:!0,value:e})},t}();ti.ɵfac=function(t){return new(t||ti)},ti.ɵcmp=e.ɵɵdefineComponent({type:ti,selectors:[["igo-workspace-selector"]],inputs:{store:"store"},outputs:{selectedChange:"selectedChange"},decls:1,vars:3,consts:[[3,"store","multi","titleAccessor","selectedChange"]],template:function(t,n){1&t&&(e.ɵɵelementStart(0,"igo-entity-selector",0),e.ɵɵlistener("selectedChange",(function(t){return n.onSelectedChange(t)})),e.ɵɵelementEnd()),2&t&&e.ɵɵproperty("store",n.store)("multi",!1)("titleAccessor",n.getWorkspaceTitle)},directives:[ct],styles:["igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-infix{padding:0}igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-wrapper{padding-bottom:1.75em}"],changeDetection:0});var ei=function(){};function ni(t,n){if(1&t){var o=e.ɵɵgetCurrentView();e.ɵɵelementContainerStart(0),e.ɵɵelementStart(1,"igo-widget-outlet",1),e.ɵɵlistener("cancel",(function(){e.ɵɵrestoreView(o);var t=n.ngIf;return e.ɵɵnextContext().onWidgetCancel(t)}))("complete",(function(){e.ɵɵrestoreView(o);var t=n.ngIf;return e.ɵɵnextContext().onWidgetComplete(t)})),e.ɵɵpipe(2,"async"),e.ɵɵpipe(3,"async"),e.ɵɵelementEnd(),e.ɵɵelementContainerEnd()}if(2&t){var i=n.ngIf,r=e.ɵɵnextContext();e.ɵɵadvance(1),e.ɵɵproperty("widget",i)("inputs",e.ɵɵpipeBind1(2,3,r.widgetInputs$))("subscribers",e.ɵɵpipeBind1(3,5,r.widgetSubscribers$))}}ei.ɵmod=e.ɵɵdefineNgModule({type:ei}),ei.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ei)},imports:[[n.CommonModule,$n]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ei,{declarations:[ti],imports:[n.CommonModule,$n],exports:[ti]});var oi=function(){function t(){this.deactivateWidget=new e.EventEmitter}return Object.defineProperty(t.prototype,"widget$",{get:function(){return this.workspace.widget$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widgetInputs$",{get:function(){return this.workspace.widgetInputs$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widgetSubscribers$",{get:function(){return this.workspace.widgetSubscribers$},enumerable:!1,configurable:!0}),t.prototype.onWidgetCancel=function(t){this.workspace.deactivateWidget(),this.deactivateWidget.emit(t)},t.prototype.onWidgetComplete=function(t){this.workspace.deactivateWidget(),this.deactivateWidget.emit(t)},t}();oi.ɵfac=function(t){return new(t||oi)},oi.ɵcmp=e.ɵɵdefineComponent({type:oi,selectors:[["igo-workspace-widget-outlet"]],inputs:{workspace:"workspace"},outputs:{deactivateWidget:"deactivateWidget"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"widget","inputs","subscribers","cancel","complete"]],template:function(t,n){1&t&&(e.ɵɵtemplate(0,ni,4,7,"ng-container",0),e.ɵɵpipe(1,"async")),2&t&&e.ɵɵproperty("ngIf",e.ɵɵpipeBind1(1,1,n.widget$))},directives:[n.NgIf,Go],pipes:[n.AsyncPipe],styles:["igo-widget-outlet[_ngcontent-%COMP%]{height:100%}"],changeDetection:0});var ii=function(){};ii.ɵmod=e.ɵɵdefineNgModule({type:ii}),ii.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ii)},imports:[[n.CommonModule,Yo]]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ii,{declarations:[oi],imports:[n.CommonModule,Yo],exports:[oi]});var ri=function(){};ri.ɵmod=e.ɵɵdefineNgModule({type:ri}),ri.ɵinj=e.ɵɵdefineInjector({factory:function(t){return new(t||ri)},imports:[[n.CommonModule],ei,ii]}),("undefined"==typeof ngJitMode||ngJitMode)&&e.ɵɵsetNgModuleScope(ri,{imports:[n.CommonModule],exports:[ei,ii]});var ai=function(){function t(t){this.dataChange=new d.BehaviorSubject([]),t&&this.dataChange.next(t)}return Object.defineProperty(t.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),t.prototype.set=function(t){this.dataChange.next(t)},t.prototype.add=function(t){var e=this.data.slice();e.push(t),this.set(e)},t.prototype.remove=function(t){var e=this.data.slice(),n=e.indexOf(t);e.splice(n,1),this.set(e)},t}();var si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e}(He),li=function(t){function e(){var e=t.apply(this,q(arguments))||this;return e.activeWorkspace$=new d.BehaviorSubject(void 0),e}return R(e,t),e.prototype.activateWorkspace=function(t){var e=this.activeWorkspace$.value;void 0!==e&&e.deactivate(),this.deactivateWorkspace(),void 0!==t&&(this.state.update(t,{active:!0,selected:!0},!0),this.activeWorkspace$.next(t),t.activate())},e.prototype.deactivateWorkspace=function(){var t=this.activeWorkspace$.value;void 0!==t&&(t.deactivate(),this.activeWorkspace$.next(void 0))},e}(tt),ci=function(){function t(t){this.options=t,this.widget$=new d.BehaviorSubject(void 0),this.widgetInputs$=new d.BehaviorSubject({}),this.widgetSubscribers$=new d.BehaviorSubject({}),this.change=new d.Subject,this.active$=new d.BehaviorSubject(!1)}return Object.defineProperty(t.prototype,"id",{get:function(){return this.options.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.options.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"meta",{get:function(){return this.options.meta||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"entityStore",{get:function(){return this.options.entityStore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionStore",{get:function(){return this.options.actionStore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widget",{get:function(){return this.widget$.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasWidget",{get:function(){return void 0!==this.widget},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this.active$.value},enumerable:!1,configurable:!0}),t.prototype.activate=function(){var t=this;!0===this.active&&this.deactivate(),this.active$.next(!0),void 0!==this.entityStore&&(this.entities$$=this.entityStore.stateView.all$().subscribe((function(){return t.onStateChange()}))),this.change.next()},t.prototype.deactivate=function(){this.active$.next(!1),this.deactivateWidget(),void 0!==this.entities$$&&this.entities$$.unsubscribe(),void 0!==this.change$&&this.change$.unsubscribe()},t.prototype.activateWidget=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),this.widget$.next(t),this.widgetInputs$.next(e),this.widgetSubscribers$.next(n),this.change.next()},t.prototype.deactivateWidget=function(){this.widget$.next(void 0),this.change.next()},t.prototype.onStateChange=function(){this.change.next()},t}();t.ActionStore=Lo,t.ActionbarComponent=ye,t.BackdropComponent=Me,t.ClickoutDirective=Oe,t.ClonePipe=$e,t.CollapseDirective=Pe,t.CollapsibleComponent=je,t.ConfirmDialogComponent=Fe,t.ConfirmDialogService=_e,t.ContextMenuDirective=Be,t.CustomHtmlComponent=Ae,t.DragAndDropDirective=Ne,t.DynamicComponent=He,t.DynamicComponentService=Je,t.DynamicOutletComponent=Ke,t.EntitySelectorComponent=ct,t.EntityStateManager=X,t.EntityStore=tt,t.EntityStoreFilterCustomFuncStrategy=it,t.EntityStoreFilterSelectionStrategy=rt,t.EntityStoreStrategy=ot,t.EntityStoreWatcher=et,t.EntityTableComponent=te,t.EntityTablePaginatorComponent=dt,t.EntityTransaction=nt,t.EntityView=Z,t.FlexibleComponent=Ye,t.FormComponent=sn,t.FormFieldComponent=fn,t.FormFieldService=un,t.FormGroupComponent=In,t.FormService=cn,t.IgoActionModule=Ce,t.IgoActionbarModule=be,t.IgoBackdropModule=we,t.IgoBadgeIconDirective=Se,t.IgoClickoutModule=Te,t.IgoCloneModule=Ee,t.IgoCollapsibleModule=ke,t.IgoConfirmDialogModule=De,t.IgoContextMenuModule=Ve,t.IgoCustomHtmlModule=Re,t.IgoDrapDropModule=Le,t.IgoDynamicComponentModule=We,t.IgoDynamicOutletModule=Ue,t.IgoEntityModule=_n,t.IgoEntitySelectorModule=$n,t.IgoEntityTableModule=Fn,t.IgoEntityTablePaginatorModule=jn,t.IgoFlexibleModule=Xe,t.IgoFormFieldComponent=pn,t.IgoFormFieldModule=xn,t.IgoFormFormModule=ln,t.IgoFormGroupModule=On,t.IgoFormModule=Tn,t.IgoImageModule=kn,t.IgoInteractiveTourModule=Ln,t.IgoJsonDialogModule=eo,t.IgoKeyValueModule=Jn,t.IgoListModule=ro,t.IgoMatBadgeIconModule=Ie,t.IgoPanelModule=co,t.IgoSidenavModule=po,t.IgoSpinnerModule=mo,t.IgoStopPropagationModule=Pn,t.IgoTableModule=Ro,t.IgoToolModule=Wo,t.IgoToolboxModule=Uo,t.IgoWidgetModule=Zo,t.IgoWidgetOutletModule=Yo,t.IgoWorkspaceModule=ri,t.IgoWorkspaceSelectorModule=ei,t.IgoWorkspaceWidgetOutletModule=ii,t.InteractiveTourComponent=Nn,t.InteractiveTourLoader=Dn,t.InteractiveTourService=Bn,t.JsonDialogComponent=Zn,t.JsonDialogService=to,t.KeyValuePipe=Hn,t.ListComponent=io,t.ListItemDirective=no,t.PanelComponent=lo,t.SanitizeHtmlPipe=ht,t.SecureImagePipe=ft,t.SidenavShimDirective=uo,t.SpinnerActivityDirective=go,t.SpinnerComponent=ho,t.StopDropPropagationDirective=En,t.StopPropagationDirective=ut,t.TableComponent=Ao,t.TableDataSource=yo,t.TableDatabase=ai,t.ToolComponent=function(t){return function(e){An.register(Object.assign({},t,{component:e}))}},t.ToolService=An,t.Toolbox=Vn,t.ToolboxComponent=Ko,t.Widget=si,t.WidgetOutletComponent=Go,t.WidgetService=Xo,t.Workspace=ci,t.WorkspaceSelectorComponent=ti,t.WorkspaceStore=li,t.WorkspaceWidgetOutletComponent=oi,t.formControlIsRequired=Ze,t.getAllFormFields=nn,t.getControlErrorMessage=en,t.getDefaultErrorMessages=tn,t.getEntityIcon=function(t){var e=t.meta||{};return e.icon?e.icon:Q(t,e.iconProperty||"icon")},t.getEntityId=G,t.getEntityProperty=Q,t.getEntityRevision=function(t){return(t.meta||{}).revision||0},t.getEntityTitle=Y,t.getEntityTitleHtml=function(t){var e=t.meta||{};return e.titleHtml?e.titleHtml:Q(t,e.titleHtmlProperty||"titleHtml")},t.getFormFieldByName=function(t,e){return nn(t).find((function(t){return t.name===e}))},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
17
|
-
//# sourceMappingURL=igo2-common.umd.min.js.map
|